html.a-fullscreen body {
    filter: saturate(2);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #020031;
    user-select: none;
    -webkit-user-select: none;
}

body.locked #scene-container {
    pointer-events: none;
}

body.locked #watermark-buttons button,
body.locked #reset-button {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#border-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

body.inactive #border-overlay {
    opacity: 0;
}

#border-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
}

#border-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    bottom: 0;
    background: white;
}

.border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: white;
}

.border-left {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 70px;
    background: white;
}

#scene-container {
    position: fixed;
    top: 70px;
    left: 70px;
    right: 70px;
    bottom: 100px;
    z-index: 0;
}

#watermark {
    position: fixed;
    bottom: 41px;
    left: 70px;
    right: 70px;
    font-family: monospace;
    font-size: 24px;
    color: #000;
    z-index: 999999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.inactive #watermark-buttons {
    opacity: 0;
}

#watermark-text {
    transition: color 0.8s ease-out;
}

body.inactive #watermark-text {
    color: #fff;
}

#watermark-text {
    white-space: nowrap;
    pointer-events: auto;
}

#watermark-buttons {
    display: flex;
    gap: 10px;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

#reset-button, #lock-button, #share-button, #info-button, #download-button {
    width: 40px;
    height: 40px;
    padding: 0;
    background: black;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#reset-button:hover, #lock-button:hover, #share-button:hover, #info-button:hover, #download-button:hover {
    background: #333;
    opacity: 1;
}

#lock-button.locked {
    background: gray;
}

#reset-button img, #lock-button img, #share-button img, #info-button img, #download-button img {
    width: 30px;
    height: 30px;
}

#download-button {
    display: none;
}

#reset-button:hover, #lock-button:hover, #share-button:hover, #info-button:hover {
    background: #333;
}

#lock-button.locked {
    background: gray;
}

#reset-button {
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

#reset-button.disabled-state {
    background: gray;
    cursor: not-allowed;
}

#reset-button.disabled-state > img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

#reset-button.disabled-state:hover {
    background: gray;
}

#reset-button:disabled:hover {
    background: #020031;
}

#gamepad-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
    font-family: monospace;
    color: #0f0;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    z-index: 999;
}

#gamepad-indicator.active {
    display: flex;
}

.button-row {
    display: flex;
    gap: 8px;
}

.button {
    width: 30px;
    height: 30px;
    background: #333;
    border: 2px solid #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.1s;
}

.button.pressed {
    background: #0f0;
    border-color: #0f0;
    color: #000;
    box-shadow: 0 0 10px #0f0;
}

.axis-row {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.axis-bar {
    width: 80px;
    height: 10px;
    background: #333;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.axis-value {
    width: 10px;
    height: 10px;
    background: #0f0;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 40px;
    transition: left 0.1s;
}

#gamepad-status {
    font-size: 14px;
    margin-bottom: 5px;
}

#lightbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 25px;
    z-index: 9999999;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#lightbox.show {
    visibility: visible;
    opacity: 1;
}

#lightbox-text {
    color: #ccc;
    font-family: monospace;
    font-size: 20px;
}

#lock-lightbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 25px;
    z-index: 9999999;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#lock-lightbox.show {
    visibility: visible;
    opacity: 1;
}

#lock-lightbox-text {
    color: #ccc;
    font-family: monospace;
    font-size: 20px;
}

#share-lightbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 25px;
    z-index: 9999999;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#share-lightbox.show {
    visibility: visible;
    opacity: 1;
}

#share-lightbox-text {
    color: #ccc;
    font-family: monospace;
    font-size: 20px;
}

#share-lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    font-family: monospace;
}

#share-lightbox-close:hover {
    color: white;
}

#info-lightbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 25px;
    z-index: 9999999;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#info-lightbox.show {
    visibility: visible;
    opacity: 1;
}

#info-lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    font-family: monospace;
    font-weight: bold;
    background: rgba(0, 0, 0, 1);
    border-radius: 10px;
    padding: 5;
}

#info-lightbox-close:hover {
    color: white;
}

#info-lightbox-content {
    color: #ccc;
    font-family: monospace;
    font-size: 16px;
    line-height: 1.8;
}

#share-lightbox-url {
    background: black;
    padding: 10px;
    margin-top: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ccc;
    font-family: monospace;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    border-radius: 10px;
}

#share-lightbox-url:hover {
    color: white;
}

#share-lightbox-url.copied {
    opacity: 0;
}

#share-lightbox-url.clicked {
    color: black;
    background: white;
}

#share-lightbox-qr {
    margin-top: 15px;
    color: #ccc;
    font-family: monospace;
    font-size: 16px;
}

#share-lightbox-qr canvas, 
#share-lightbox-qr img {
    margin-top: 10px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.a-enter-vr {
    display: none !important;
}

a-scene {
    display: block;
    width: 100%;
    height: 100%;
}

/* Tooltip styles */
[data-tooltip] {
    position: relative;
    z-index: 1001;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #000 !important;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 1001;
    mix-blend-mode: normal;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

#description-navigation {
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    border-radius: 10px;
    padding: 20px;
}

#description-navigation .nav-columns {
    display: flex;
    justify-content: center;
    gap: 20px;
    user-select: none;
}

#description-navigation .nav-columns > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
}

#info-lightbox-content {
    user-select: none;
}

#description-navigation .nav-columns > span img {
    margin-bottom: 20px;
}

@media only screen and (max-width: 1023px) {
               
    .border-left,
    #border-overlay::before,
    #border-overlay::after,
    #reset-button,
    #lock-button,
    #description-navigation .nav-columns > span,
    #share-lightbox-qr,
    #description-navigation
     {
        display: none;
    }

    .border-bottom {
        height: 60px;

    }

    #watermark {
        left: 9px;
        bottom: 7px;
        font-size: 16px;
        line-height: 1.4;;
        width: 95%;
        gap: 5px;
    }

    #watermark-text {
        left: 10px;
        top: 20px;
        white-space: normal;
    }

    #watermark-buttons {
        gap: 5px;
    }

    #info-lightbox-content {
        overflow-y: scroll;
        overflow-x: hidden;
        height: 100%;
        width: 98%;
    }

    #info-lightbox,
    #share-lightbox
     {
        top: 0;
        left: 0;
        width: 88vw;
        bottom: 70px;
        transform: none;
    }

    #share-lightbox {
        padding-top: 100px;
    }


}