@import url('https://fonts.googleapis.com/css2?family=Comic+Neue&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');
        

        body {
            margin: 0;
            padding: 0;
            width: 100vw;
            height: 100dvh;
            overflow: hidden;
            background-color: rgb(186, 240, 254);
            touch-action: none;
            user-select: none;
            pointer-events: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            pointer-events: none;
            position: fixed;
            top: 0;
            left: 0;
            transform-origin: center;
        }

        h1 {
            position: fixed;
            color: white;
            font-family: Arial, sans-serif;
            font-size: 1.2vw;
            text-align: center;

        }
       
        img {
            image-rendering: crisp-edges; 
            transform: translateZ(0); 
        }

        #world {
            will-change: transform;
            transform: scale(0.07);
            transform-origin: center center;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: flex-end;
            align-items: flex-start;
            margin-left: -3vw;
            margin-top: 5vh;
            transition: margin-top 1.5s ease-out, margin-left 1.5s ease-out, left 0.25s linear, top 0.25s linear;
            top: 0;
            left: 0; 
        }

        #table_construction{
            position: fixed;
            width: 20vw;
            height: 15vh;
            z-index: 0;
            transition: left 0.25s linear, top 0.25s linear;
            object-fit: cover;
        }

        #construction_menu{
            position: fixed;
            width: 70vw;
            height: 85vh;
            object-fit: cover;
            justify-content: center;
            align-items: center;
            display: flex;
            top: 0vh;
            left: 15vw;
            opacity: 0;
            transition: opacity 0.3s ease-out, top 1s ease-out;
            z-index: 9999;
        }

        #lateral_arrow{
            position: fixed;
            width: 3vw;
            height: 8vh;
            left: 95vw;
            z-index: 9999;
            display: none;
            pointer-events: all;
        }

        #platform_1 {
            width: 10vw;
            height: 12vh;
            position: fixed;
            background-color: rgb(168, 108, 3);
            transition: left 0.25s linear, top 0.25s linear;
            z-index: -1;
        }

        #platform_2 {
            width: 23.44vw;        
            height: 33.33vh;      
            position: fixed;
            background-color: rgb(124, 3, 168);
            margin-top: 28.5vh;    
            margin-left: 39.65vw;  
            display: none; 
            z-index: -1;
        }

        #preside_container {
            position: fixed;
            top: 50vh;
            left: 30vw;
            transform: translate(10%, -60%);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 5vw;
            height: 10vw;
            border-radius: 1vw;
            object-fit: cover;
            backface-visibility: hidden;
        }

        #platform_container {
            position: fixed;
            transform: translate(-510%, 250%);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 10vw;
            height: 10vw;
            border-radius: 1vw;
            opacity: 0;
        }

        #tertiary_container{
            position: fixed;
            left: 80vw;
            top: 39vh;
        }
        #tertiary_character{
            width: 28vw;
            height: 20vh;
        }

        #preside {
            width: 5vw;
            height: 19vh;
            position: fixed;
            top: 0vh;
            left: 0vw;
            transition: left 0.1s, top 0.1s;
        }

        #student {
            width: 3.3vw;          
            height: 5vh;       
            background-color: red;
            position: fixed;
            top: 39vh;   
            left: 72.7vw;
            transition: left 0.25s linear, top 0.25s linear;
        }

        #missions {
            position: fixed; 
            left: 50vw; 
            top: 30vh; 
            width: 25vw;
            z-index: 3;
        }

        #c_menu_main_text {
            font-size: 7vh;
            text-align: center;
            position: absolute;
            z-index: 9999;
            font-family:'Courier New', Courier, monospace;
            -webkit-text-stroke: 3px black;
        }

        #img_preside_dialogues {
            position: fixed;
            z-index: -1;
            height: 60vh;
            top: 3vh;
            margin-left: -45vw;
            object-fit: cover;
            pointer-events: none;
            transform: scale(0.8); 
            transform-origin: center center;
            transition: transform 0.3s linear;
        }
        #anonymous_character_dialogues {
            position: fixed;
            z-index: -1;
            width: 18vw;
            height: 60vh;
            top: 8vh;
            margin-left: 52vw;
            object-fit: cover;
            pointer-events: none; 
            transform: scale(0.9); 
            transform-origin: center center;
            transition: transform 0.3s linear;
        }

        #dialogues_container {
            position: fixed;
            top: 0;
            left: 0vw;
            width: 100vw;
            height: 97vh;
            display: flex;
            justify-content: center;
            align-items: end;
            opacity: 0;
            transition: opacity 0.3s linear;
            
        }

        #dialogues {
            border-radius: 1.5vw;
            padding-left: 4vw;
            padding-right: 4vw;
            margin: 0;
            width: 80vw;
            height: 33vh;
            font-size: 5vh;
            color: black;
            text-align: left;
            font-family: "Comic Neue", cursive;
            font-weight: 700;
            position: fixed;
            z-index: 1;
        }

        #dialogues_text {
            margin: 0;
            padding: 0;
            white-space: pre-wrap; 
            word-wrap: break-word; 
            overflow-wrap: break-word; 
            margin-top: -4vh;
            margin-left: 10vw;
            z-index: 0;
            opacity: 1;
        }

        #text_box_dialogues {
            position: absolute;
            width: 85vw;
            height: 43vh; 
            border-radius: 3.3vw;
            z-index: -10;
            opacity: 1;
            margin-left: -2vw;
            margin-top: -12.5vh;
            border: 1vh solid black;
        }

        #character_name {
            margin: 0;
            padding: 0;
            white-space: pre-wrap; 
            word-wrap: break-word; 
            overflow-wrap: break-word; 
            margin-top: 2vh;
        }

        #name_box{
            background-color: rgba(255, 255, 255);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
            border-radius: 5vw;
            padding-left: 0.5vw;
            padding-right: 0.5vw;
            margin: 0;
            width: 13vw;
            height: 10vh;
            top: 46vh;
            font-size: 5vh;
            margin-left: 5vw;
            color: black;
            text-align: center;
             font-family: "Comic Neue", cursive;
            font-weight: 800;
            position: fixed;
            z-index: 10;
        }

        #bob_illustration, #tertiary_illustration {
            position: fixed;
            width: 10vw;
            height: 15vh;
            top: 32vh;
            left: 82.8vw;
            z-index: 1;
            opacity: 0;
            transition: opacity 0.1s linear, left 0.25s linear, top 0.25s linear;
        }
        #cinematic-bars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
        }

        #click_circle {
            width: 5vw;
            height: 8vh;
            position: fixed;
            border-radius: 50%;
            background-color: green; 
            pointer-events: none;
            z-index: 9999;
            opacity: 0;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 2s ease-out, opacity 0.3s;
        }

        #start_overlay {
            transform: center center;
            width: 100vw;
            height: 100vh;
            background-color: black;
            position: fixed;
            z-index: 9999;
        }

        #menu1 {
            transform-origin: center center;
            object-fit: contain;
            width: 80vw;
            height: 80vh;
            margin-top: 10vh;
        }

        #structure_barrow {
            width: 12vw;
            height: 12vh;
            position: fixed;
            z-index: 5;
        }
        #structure_wheel {
            width: 3vw;
            height: 5vh;
            margin-left: 6.91vw;
            margin-top: 9.1vh;
            position: fixed;
            z-index: 4;
        }

        #structure_camion {
            width: 150vw;
            height: 130vh;
            position: fixed;
            z-index: 4;
        }

        #barrow{
            transition: margin-left 0.3s linear;
            transform: scaleX(-1);
            width: 15vw;
            height: 15vh;
        }

        #choices {
            width: 20vw;
            height: 20vh;
            position: fixed;
            transform-origin: center center;
            display: none;
            z-index: 2;
        }

        #decoration_container {
            width: 7vw;
            height: 7vh;
            position: fixed;
            transform-origin: center center;
            display: block;
            z-index: 1;
            transition: left 0.25s linear, top 0.25s linear;
        }

        .decoration {
            width: 7vw;
            height: 7vh;
            position: absolute;
        }

        .arrow {
            position: absolute;
            width: 6vw;
            height: 9vh;
        }

        .arrow_oblique {
            position: absolute;
            width: 5vw;
            height: 7.5vh;
        }

        .structure_wheel_camion{
            width: 12vw;
            height: 20vh;
            position: fixed;
            z-index: 5;
            transition: transform 1s linear;
        }

        .bar {
            position: absolute;
            height: 7vh;
            width: 100%;
            background-color: black;
            transition: transform 0.5s ease;
            z-index: 9999;
        }

        .top {
            top: 0;
            transform: translateY(-100%);
        }

        .bottom {
            bottom: 0;
            transform: translateY(100%);
        }

        .cinematic .top {
            transform: translateY(0);
        }

        .cinematic .bottom {
            transform: translateY(0);
        }

        .hud-container {
            position: fixed;
            top: 1.5vh;
            right: 1vw;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 1vh;
            z-index: 9998;
        }

        .hud-box {
            background-color: rgba(0, 0, 0, 0.6); 
            color: white;
            font-family: Arial, sans-serif;
            font-size: 1.2vw;
            padding: 0.6vh 1vw;
            border: 0.15vw solid white;
            border-radius: 0.6vw;
            min-width: 8vw;
            text-align: right;
            position: fixed;
        }

        .hud_missions {
            position: absolute;
            top: 14.5vh;
            right: 5vw;
            width: 25vw;
            background-color: rgba(50, 50, 50, 0.6);
            opacity: 1;
            border-radius: 0.6vw;
            padding: 0.6vh 0 0.6vh 1vw; 
            color: white;
            box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.3);
            overflow: hidden;
            transition: max-height 0.3s linear;
        }

        .toggle-icon {
            position: absolute;
            top: 0.6vh;
            right: 0.4vw;
            width: 2vw;
            height: 3vh;
            opacity: 1;
            transition: opacity 0.3s linear;
        }

        .mission_1, .mission_2, .mission_3 {
            display: flex;
            align-items: center;
            width: 100%;
            margin: 3.3vh 0;
            cursor: pointer;
            position: relative;
        }

        .mission_1 h1, .mission_2 h1, .mission_3 h1 {
            font-size: 2vw;
            margin: 0;
            padding-left: 5vw;
            word-break: break-word;
            white-space: normal;
        }

        .mission_1 img, .mission_2 img, .mission_3 img {
            width: 3.7vw;
            height: 5.5vh;
        }

        .mission_2, .mission_3 {
            opacity: 0;
            transition: opacity 0.4s linear;
            
        }

        .hud_missions.open .mission_1, .hud_missions.open .mission_2, .hud_missions.open .mission_3 {
            opacity: 1;
            cursor: auto;
        }

        .hud_missions.closed .mission_1 {
            cursor: pointer;
        }

        .hud_missions.closed {
            max-height: 12vh;
            cursor: pointer;
        }

        .hud_missions.open {
            max-height: 40vh;
            cursor: auto;
        }
        .school_imgs {
            position: fixed;
            transform: scale(1);
            transition: left 0.25s linear, top 0.25 linear;
            will-change: transform, left, top;
        }
        .sprite {
            backface-visibility: hidden;
        }
        .tile {
            position: absolute;
            width: 2100px;
            height: 2400px;
            display: block;
            border: 1px solid rgb(1, 207, 1);
            width: 210vw; 
            height: 240vh;
            transition: left 0.25s linear, top 0.25s linear;
            left: 3vw;
            top: 3vh;
        }

        .mobile_movement {
            position: fixed;
            width: 20vw;
            height: 20vh;
            display: none;
            transform-origin: center center;
            top: 60vh;
            left: 20vw;
            pointer-events: all;
        }

        .arrow_choice {
            width: 8vw;
            height: 8vh;
            position: absolute;
        }

        .text_choice {
            text-align: left;
            width: 25vw;
            height: 5vh;
            font-size: 4vh;
            white-space: pre-wrap; 
            word-wrap: break-word; 
            overflow-wrap: break-word; 
            position: absolute;
            margin-left: 3vw; 
            margin-top: 1.3vh;
            color: black;
        }

        .box_choise1 {
            position: absolute;
            width: 30vw;
        }


        @keyframes constructionLayoutAnimation {
            0% {
                top: -80vh;
            }
            100% {
                top: 0vh;
            }
        }

        @keyframes swipeLeft{
            0% {
                left: 15vw;
            }
            100% {
                left: -100vw;
            }
        }

        @keyframes swipeRight{
            0% {
                left: 15vw;
            }
            100% {
                left: 120vw;
            }
        }

        @keyframes changeMenuRight {
            0%{
                left: 120vw;
            }
            100% {
                left: 15vw;
            }
        }

        @keyframes changeMenuLeft {
            0%{
                left: -100vw;
            }
            100% {
                left: 15vw;
            }
        }
        
        @keyframes animation_wheel {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        @keyframes animationCamionCutscene {
            0% {
                top: 200vh;
            }
            50% {
                top: 199vh;
            }
            100% {
                top: 200vh;
            }
        }