html,
body {
    background-color: var(--blue);
}

#sidebar-ganz {
    background-color: transparent;
}

#sidebar-ganz:has(.sidebar.active) {
    background-color: var(--blue);
}

.line-number-0 {
    color: transparent;
}


.footnote-3 {
    font-family: 'Rules Light';
    font-size: 1.1vw;
    position: absolute;
    top: 15%;
    right: 10%;
    width: 12vw;
    text-indent: -9%; 
}



#controls {
    position: fixed;
    left: 0;
    top: 5%;
    z-index: 1000;
    flex-direction: row;
    gap: 0.6vw;
    background-color: var(--white);
    padding: 0.5vw 0.5vw 0.5vw 2vw;
    border-radius: 0 10px 10px 0;
    opacity: 0.9;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: padding 0.3s ease;
}

#controls:hover {
    padding-left: 4vw;
}

#timer {
    font-size: 2vw;
}





/* STOP BUTTON  */
#stop-button {
    display: flex;
    object-fit: cover;
    transition: ease 0.3s;
    cursor: pointer;
}

#stop-button img {
    width: 1.7vw;
    height: auto;
}

#stop-button .unfilled {
    display: block;
}

#stop-button:hover .unfilled {
    display: none;
}

#stop-button .filled {
    display: none;
}

#stop-button:hover .filled {
    display: block;
}


/* STOP BUTTON-OVERLAY */
.overlay-chaos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.overlay-chaos.hidden {
    opacity: 0;
    pointer-events: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


.overlay-content-2 {
    color: var(--schrift);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 80vw;
}

.overlay-content-2 h3 {
    font-size: 2vw;
}

.overlay-content-2 p {
    font-size: 1.2vw;
    line-height: 1.4;
}


.overlay-content-2 button {
    cursor: pointer;
    font-size: 3vw;
    font-family: "Mono Book";
    text-decoration: none;
}


.first-row {
    display: flex;
    flex-direction: row;
    gap: 0.5vw;
}



/* ////////////////////////// */



#toleranz-index {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin-bottom: 5vw;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

#step-0 {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 7vw 7vw 5vw;
    margin-bottom: 30vw;
}



#header {
    font-size: 5vw;
    margin-bottom: 1vw;
    letter-spacing: -1.4px;
}


.header-untertitel {
    padding-left: 0.5vw;
    width: 50%;
    margin-bottom: 0.5vw;
}


/* START TEST BUTTON */
.start-test {
    opacity: 0;
    font-family: "Cinetype Bold";
    text-transform: uppercase;
    font-size: 1.4vw;
    transition: all ease 0.3s;
}


.explore-test:hover .start-test {
    opacity: 1;
    padding-left: 4vw;

}


.line-wrapper {
    position: relative;
    top: 3%;
    left: -9.5%;
    height: 20px;
    width: 800px;
    transform: rotate(-140deg);
}

.dotted-line {
    border-top: 2px dotted var(--schrift);
    height: 0;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.dot-end {
    width: 10px;
    height: 10px;
    background: var(--schrift);
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}





#step-1 {
    width: 100%;
    height: 100vh;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 30vw;
}


.step-1-header {
    position: relative;
    left: -31.5%;
    top: 15%;
    z-index: 1000;
    flex-direction: row;
    background-color: var(--white);
    padding: 1vw 1vw 1vw 1vw;
    border-radius: 0 10px 10px 0;
    opacity: 0.9;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: padding 0.3s ease;
}

.step-1-header:hover {
    padding-left: 36vw;
}




#start-game-button {
    position: absolute;
    top: 50%;
    left: 48%;
    font-size: 1.2vw;
    font-family: "Cinetype Bold";
    text-transform: uppercase;
}



/* FLOATING NUMBERS */
.number-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: transparent;
}



.number-counter {
    display: flex;
    justify-content: center;
    font-size: 1.2vw;
    margin-top: 6vw;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}




.floating-number {
    position: absolute;
    font-size: 1.2vw;
    color: var(--white);
    user-select: none;
    cursor: pointer;
    pointer-events: auto;
    animation: float 3s linear infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.floating-number.clicked {
    opacity: 0;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1) translateZ(0);
        opacity: 1;
    }

    25% {
        transform: translate(50px, -50px) rotate(45deg) scale(1.5) translateZ(50px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-40px, 40px) rotate(-90deg) scale(0.7) translateZ(-50px);
        opacity: 0.6;
    }

    75% {
        transform: translate(-60px, -30px) rotate(135deg) scale(1.3) translateZ(30px);
        opacity: 0.8;
    }

    100% {
        transform: translate(40px, 60px) rotate(-45deg) scale(0.9) translateZ(-30px);
        opacity: 1;
    }
}




.next-step {
    position: relative;
    width: 100%;
    height: fit-content;
    bottom: 4%;
    align-items: center;

}


.next-step button {
    font-family: 'Cinetype Bold';
    cursor: none;
    font-size: 1.2vw;
}





#step-2 {
    width: 100%;
    height: 100vh;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 30vw;
}


.step-2-header {
    position: relative;
    left: -35%;
    top: 13%;
    z-index: 1000;
    flex-direction: row;
    background-color: var(--white);
    padding: 1vw 1vw 1vw 1vw;
    border-radius: 0 10px 10px 0;
    opacity: 0.9;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: padding 0.3s ease;
}

.step-2-header:hover {
    padding-left: 40vw;
}


/* DRAGGING ELEMENTS */
#chaotic-ui {
    z-index: 9;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.target-area {
    position: absolute;
    border-bottom: 5px dotted var(--white);
    transition: all 0.3s ease;
    z-index: 50;
    pointer-events: none;
}

.target-area.active {
    border-bottom: 5px dotted var(--schrift);
}

.drag-button {
    position: absolute;
    user-select: none;
    z-index: 100;
    transition: all 0.3s ease;
    color: var(--white);
    font-family: inherit;
    font-size: 2vw;
}

.drag-button:hover {
    text-decoration: none;
}

.drag-button.dragging {
    opacity: 0.8;
    transform: scale(1.05);
}

.drag-button.over-target {
    color: var(--schrift);
}


.fake-drag {
    position: absolute;
    z-index: 100;
    color: var(--white);
    font-family: inherit;
    font-size: 2vw;
    pointer-events: none;
}

#message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    z-index: 1000;
}






#step-3 {
    width: 100%;
    height: 100vh;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 30vw;
}


.step-3-header {
    position: relative;
    left: -8.5%;
    top: 15%;
    z-index: 1000;
    flex-direction: row;
    background-color: var(--white);
    padding: 1vw 1vw 1vw 1vw;
    border-radius: 0 10px 10px 0;
    opacity: 0.9;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: padding 0.3s ease;
}

.step-3-header:hover {
    padding-left: 15vw;
}



/* CHAOTIC TEXT */
#chaotic-text {
    position: relative;
    width: 50vw;
    height: 75vh;
    left: 25%;
    transition: all 0.3s ease;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4vw;
}

#chaotic-text p {
    letter-spacing: -0.1px;
    font-size: 1.4vw;
    line-height: 1.2;
    color: var(--white);
    max-width: 40vw;
    text-align: left !important;
    position: relative;
    transition: all 0.5s ease;
}


.chaotic-char {
    display: inline-block;
    transition: all 0.8s ease;
    position: relative;
    will-change: transform, color, opacity;
    transform-style: preserve-3d;
    color: inherit;
}

.chaotic-char.chaos-active {
    animation: float 8s infinite alternate ease-in-out;
    color: var(--white);
    will-change: transform, opacity;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1) translateZ(0) skew(0deg, 0deg);
        opacity: 1;
    }

    20% {
        transform: translate(100px, -80px) rotate(120deg) scale(2) translateZ(100px) skew(20deg, -20deg);
        opacity: 0.7;
    }

    40% {
        transform: translate(-120px, 60px) rotate(-240deg) scale(0.5) translateZ(-80px) skew(-30deg, 15deg);
        opacity: 0.5;
    }

    60% {
        transform: translate(80px, 100px) rotate(360deg) scale(1.8) translateZ(50px) skew(15deg, 30deg);
        opacity: 0.8;
    }

    80% {
        transform: translate(-60px, -120px) rotate(-180deg) scale(0.7) translateZ(-100px) skew(-25deg, -15deg);
        opacity: 0.6;
    }

    100% {
        transform: translate(40px, 80px) rotate(90deg) scale(1.2) translateZ(30px) skew(10deg, -10deg);
        opacity: 0.9;
    }
}





#step-4 {
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

#typing-button {
    font-size: 2vw;
    text-decoration: none;
    cursor: none;
}


#typewriter-effect {
    margin: 0 22vw 0 22vw;
}

#typewriter {
    text-align: center;
}

#typewriter span {
    font-family: "Cinetype Bold";
    text-transform: uppercase;
}



/* SCROLL BUTTON  */
/* .scroll-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: var(--blue);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.scroll-locked {
    overflow: hidden;
} */