@font-face {
    font-family: "nokia";
    src: url(nokiafc22.ttf);
}

@font-face {
    font-family: "conman-regular";
    src: url(conman.regular.ttf);
}

body {
    background-color: black;
    overflow: hidden;
    pointer-events: none;
    margin: 0;
}

.loading {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 12px;
}

.loading h1 {
    position: relative;
    margin: auto;
    font-family: "conman-regular";
    font-size: 7vw;
    text-align: center;
    color: white;
    /* width: 20ch; */
    white-space: nowrap;
    /* overflow: hidden; */
    user-select: none;
}

#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: black;
}

.theme {
    display: none;
    width: 100%;
    height: 100%;
    gap: 12px;
}

.theme h1 {
    position: relative;
    margin: auto;
    font-family: "conman-regular";
    font-size: 10vw;
    text-align: center;
    color: white;
    width: 20ch;
    white-space: nowrap;
    overflow: hidden;
    animation: type 2s steps(10);
    animation-delay: 1s;
    animation-fill-mode: both;
    user-select: none;
}

@keyframes type {
    0% {
        width: 0;
    }
}

#theme-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: black;
    transition: opacity 3s ease;
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* HEADER BUTTONS */

.header-buttons {
    display: block;
    position: fixed;
    /* overflow: hidden; */
    gap: 12px;
    width: 100vw;
    /* height: 6vw; */
    height: clamp(64px, 10vw, 140px);
    top: 0;
    text-align: center;
    z-index: 999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.header-buttons.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.header-buttons button {
    position: relative;
    /* text-align: center; */
    /* font-size: 4vw; */
    font-size: clamp(1.5rem, 4.5vw, 2.5rem); /* margin: 10px 10px; */
    /* display: flex; */
    margin-top: 0.25%;
    margin-bottom: 0.25%;
    font-family: "conman-regular";
    display: inline;
    z-index: 0;
    /* width: auto; */
    height: 5vh;
    /* margin: auto; */
    top: 0;
    border: 1px solid black;
    border-radius: 10px;
    border-width: 3px;
    /* box-shadow: 3px 3px 0 0; */
    /* width: fit-content; */

    transition:
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.3s ease;
    transform: scale(1); /* Default size */
    opacity: 0.6; /* Slightly faded when not focused */
}

/* The active state */
.button-active {
    transform: scale(1.15) !important; /* Makes it 15% larger */
    opacity: 1 !important; /* Fully visible */
    margin: 0.25% 1.5%;
}

/* INSTRUCTIONS */

.instructions {
    display: none;
    gap: 12px;
}

#instructions-id {
    gap: 12px;
}

.instructions h1 {
    font-family: "conman-regular";
    /* font-size: 4vw; */
    font-size: clamp(1.5rem, 4vw + 1rem, 5rem);
    color: white;
    position: absolute;
    margin: auto;
    text-align: center;
    bottom: 1%;
    width: 100%;
    /* animation: display-instructions 7s; */
    user-select: none;
}

@keyframes display-instructions {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Fade overlay */

#fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    opacity: 0; /* Start invisible */
    transition: opacity 1s ease-in-out; /* Match your JS timing */
    pointer-events: none;
}

#fade-overlay.is-active {
    opacity: 1;
}

/* Accessibility */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
