body.front {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    overflow: hidden;
}

body.front {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.full-screen {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.options-menu {
    position: fixed;
    min-width: unset;
    top: 5px;
    right: 5px;
    max-height: calc(100vh - 10px);
}

.phone-menu-toggler {
    visibility: hidden;
}

@media (max-width: 480px) {
    .options-menu {
        visibility: hidden;
        bottom: 5px;
        left: 5px;
    }

    .options-menu-visible {
        visibility: visible;
    }

    .phone-menu-toggler {
        visibility: visible;
        position: fixed;
        top: 5px;
        right: 5px;
    }
}

canvas { display: block; }

.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(20,20,50,0.75);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
    z-index: 100;
}

.loading div {
    text-align: center;
    padding: 1rem;
}

.interface {
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0.95;
}

.interface .navbar {
    opacity: 0.8;
}

.statusbar {
    opacity: 0.8;
    position: absolute;
    bottom: 0rem;
    left: 0.25rem;
    width: calc(100% - 1rem);
    height: 1.75rem;
    padding-left: 0.75rem;
    font-size: 0.85rem;
    padding-top: 0.25rem;
    background-color: #363636;
    color: white;
}

.interface .viewtool {
    position: absolute;
    top: 4.5rem;
    right: 1rem;
    width: 30rem;
}

.interface .tool {
    position: absolute;
    top: 4.5rem;
    left: 1rem;
    width: 30rem;
}

.infopanel {
    max-height: calc(100vh - 18rem);
    overflow-Y: auto;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0.5rem;
}

.modal-col-panel {
    max-height: calc(100vh - 18rem);
    overflow-y: scroll;
    overflow-x: hidden;
}

.not-loaded {
    position: absolute;
    top: calc(50vh - 10rem);
    left: calc(50vw - 20rem);
    width: 40rem;
    padding: 1rem;
    background-color: rgba(200,200,200,0.5);
    border-radius: 2rem;
    box-shadow: 10px 5px 5px rgba(0,0,0,0.25);
}

.preloader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #121212;
    z-index: 1000;
}

.text-3d {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 2rem;
    height: 0;
    animation: growText 4s ease-out forwards;
    text-shadow:
            0 1px 0 #ccc,
            0 2px 0 #c9c9c9,
            0 3px 0 #bbb,
            0 4px 0 #b9b9b9,
            0 5px 0 #aaa,
            0 6px 1px rgba(0,0,0,.1),
            0 0 5px rgba(0,0,0,.1),
            0 1px 3px rgba(0,0,0,.3),
            0 3px 5px rgba(0,0,0,.2),
            0 5px 10px rgba(0,0,0,.25),
            0 10px 10px rgba(0,0,0,.2),
            0 20px 20px rgba(0,0,0,.15);
    transform-origin: bottom;
    line-height: 1;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    text-align: center;
}

.text-3d-spacer {
    height: 6rem;
}

.progress-container {
    width: min(80%, 300px);
    height: 0.75rem;
    background-color: #333;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff7b00, #ff0058);
    border-radius: 0.75rem;
    transition: width 0.1s ease;
}

.percentage-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 2.5s forwards;
}

.percentage {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    min-width: 2.5rem;
    text-align: right;
}

.loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.press-key-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;

}

.press-key-text.visible {
    opacity: 1;
}

@keyframes growText {
    0% {
        height: 0;
        opacity: 0;
        transform: scaleY(0);
    }
    20% {
        opacity: 1;
    }
    100% {
        height: auto;
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .text-3d {
        font-size: 2.5rem;
        text-shadow:
                0 1px 0 #ccc,
                0 2px 0 #c9c9c9,
                0 3px 0 #bbb,
                0 4px 0 #b9b9b9,
                0 2px 1px rgba(0,0,0,.1),
                0 0 3px rgba(0,0,0,.1),
                0 1px 2px rgba(0,0,0,.3),
                0 2px 3px rgba(0,0,0,.2),
                0 3px 5px rgba(0,0,0,.25);
    }
    .press-key-text {
        font-size: 0.8rem;
        text-align: center;
        padding: 0 1rem;
    }
}