* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
}

input[type="checkbox"] {

    display: none;

}

.page-principale {
    position: fixed;
    inset: 0;
    background-image:
        url("tung-fond.jpg");
    background-size: cover;
    background-position: center;
    transition: opacity 2s;
}

header {
    position: relative;
    z-index: 50;
    background-color: #b35a07;
    padding: 20px;
    text-align: center;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin: 0 15px;
}

header nav a:hover {
    text-decoration: underline;
}

.sahur-img {
    position: fixed;
    top: 50%;
    width: 280px;
    max-width: 23vw;
    z-index: 5;
}

.sahur-gauche {
    left: 20px;
    animation: rotation-gauche 3s linear infinite;
}

.sahur-droite {
    right: 20px;
    animation: rotation-droite 3s linear infinite;
}

@keyframes rotation-gauche {
    from {
        transform:
            translateY(-50%)
            rotate(0deg);
    }
    to {
        transform:
            translateY(-50%)
            rotate(-360deg);
    }
}

@keyframes rotation-droite {
    from {
        transform:
            translateY(-50%)
            rotate(0deg);
    }
    to {
        transform:
            translateY(-50%)
            rotate(360deg);
    }
}

.brainrot_louis {
    position: absolute;
    left: 50%;
    top: 50%;
    transform:
        translate(-50%, -50%);
    width: 450px;
    max-width: 50vw;
    z-index: 20;
}

.brainrot_louis > img {
    display: block;
    width: 100%;
    height: auto;
}

.bouton-secret {
    position: absolute;
    left: 50%;
    top: 50%;
    transform:
       translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    color: transparent;
    z-index: 100;
}


#secret:checked ~ .page-principale .bouton-secret:hover {
    background: rgba(255,255,255,0.2);
}

.tung-zone {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}


.bouton-tung {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform:
        translateX(-50%);
    padding: 15px 30px;
    border: 4px solid black;
    border-radius: 15px;
    background: red;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    box-shadow:
       0 6px 0 black;
    pointer-events: auto;
    z-index: 300;
}

.bouton-tung {
    display: none;
}

.tung-bouton-1 {
    display: block;
}

.tung {
    position: fixed;
    width: 220px;
    height: auto;
    opacity: 0;
    pointer-events: none;
}


.tung-1 {
    left: 15%;
    top: 20%;
}

.tung-2 {
    right: 15%;
    top: 15%;
}

.tung-3 {
    left: 40%;
    top: 15%;
}

.tung-4 {
    right: 10%;
    top: 55%;
}

.tung-5 {
    left: 10%;
    top: 60%;
}

.tung-6 {
    left: 45%;
    top: 70%;
}

.tung-7 {
    right: 30%;
    top: 25%;
}

.tung-8 {
    left: 25%;
    top: 45%;
}

.tung-9 {
    right: 5%;
    top: 35%;
}

.tung-10 {
    left: 5%;
    top: 35%;
}

.tung-11 {
    right: 20%;
    top: 70%;
}

.tung-12 {
    left: 30%;
    top: 10%;
}

.tung-13 {
    right: 40%;
    top: 40%;
}

@keyframes apparition {
    0% {
        opacity: 0;
        transform:
            scale(0.2)
            rotate(0deg);
    }
    30% {
        opacity: 1;
        transform:
            scale(1.3)
            rotate(20deg);
    }
    100% {
        opacity: 0.9;
        transform:
            scale(1)
            rotate(360deg);
    }
}

#tung1:checked ~ .page-principale .tung-1 {
    opacity: 1;
    animation:
        apparition 1s ease;
}


#tung1:checked ~ .page-principale .tung-bouton-1 {
    display: none;
}


#tung1:checked ~ .page-principale .tung-bouton-2 {
    display: block;
}

#tung2:checked ~ .page-principale .tung-2 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung2:checked ~ .page-principale .tung-bouton-2 {
    display: none;
}

#tung2:checked ~ .page-principale .tung-bouton-3 {
    display: block;
}

#tung3:checked ~ .page-principale .tung-3 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung3:checked ~ .page-principale .tung-bouton-3 {
    display: none;
}

#tung3:checked ~ .page-principale .tung-bouton-4 {
    display: block;
}

#tung4:checked ~ .page-principale .tung-4 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung4:checked ~ .page-principale .tung-bouton-4 {
    display: none;
}

#tung4:checked ~ .page-principale .tung-bouton-5 {
    display: block;
}

#tung5:checked ~ .page-principale .tung-5 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung5:checked ~ .page-principale .tung-bouton-5 {
    display: none;
}

#tung5:checked ~ .page-principale .tung-bouton-6 {
    display: block;
}

#tung6:checked ~ .page-principale .tung-6 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung6:checked ~ .page-principale .tung-bouton-6 {
    display: none;
}

#tung6:checked ~ .page-principale .tung-bouton-7 {
    display: block;
}

#tung7:checked ~ .page-principale .tung-7 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung7:checked ~ .page-principale .tung-bouton-7 {
    display: none;
}

#tung7:checked ~ .page-principale .tung-bouton-8 {
    display: block;
}

#tung8:checked ~ .page-principale .tung-8 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung8:checked ~ .page-principale .tung-bouton-8 {
    display: none;
}

#tung8:checked ~ .page-principale .tung-bouton-9 {
    display: block;
}

#tung9:checked ~ .page-principale .tung-9 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung9:checked ~ .page-principale .tung-bouton-9 {
    display: none;
}

#tung9:checked ~ .page-principale .tung-bouton-10 {
    display: block;
}

#tung10:checked ~ .page-principale .tung-10 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung10:checked ~ .page-principale .tung-bouton-10 {
    display: none;
}

#tung10:checked ~ .page-principale .tung-bouton-11 {
    display: block;
}

#tung11:checked ~ .page-principale .tung-11 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung11:checked ~ .page-principale .tung-bouton-11 {
    display: none;
}

#tung11:checked ~ .page-principale .tung-bouton-12 {
    display: block;
}

#tung12:checked ~ .page-principale .tung-12 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung12:checked ~ .page-principale .tung-bouton-12 {
    display: none;
}

#tung12:checked ~ .page-principale .tung-bouton-13 {
    display: block;
}

#tung13:checked ~ .page-principale .tung-13 {
    opacity: 1;
    animation:
        apparition 1s ease;
}

#tung13:checked ~ .page-principale .tung-bouton-13 {
    display: none;
}


.compteur {
    position: fixed;
    top: 90px;
    left: 20px;
    padding: 12px 18px;
    background:
        rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 10px;
    font-weight: bold;
    z-index: 500;
    display: none;
}

.nombre {
    display: none;
}

.nombre-0 {
    display: inline;
}

#tung1:checked ~ .page-principale .nombre-0 {
    display: none;
}

#tung1:checked ~ .page-principale .nombre-1 {
    display: inline;
}

#tung2:checked ~ .page-principale .nombre-1 {
    display: none;
}

#tung2:checked ~ .page-principale .nombre-2 {
    display: inline;
}

#tung3:checked ~ .page-principale .nombre-2 {
    display: none;
}

#tung3:checked ~ .page-principale .nombre-3 {
    display: inline;
}

#tung4:checked ~ .page-principale .nombre-3 {
    display: none;
}

#tung4:checked ~ .page-principale .nombre-4 {
    display: inline;
}

#tung5:checked ~ .page-principale .nombre-4 {
    display: none;
}

#tung5:checked ~ .page-principale .nombre-5 {
    display: inline;
}

#tung6:checked ~ .page-principale .nombre-5 {
    display: none;
}

#tung6:checked ~ .page-principale .nombre-6 {
    display: inline;
}

#tung7:checked ~ .page-principale .nombre-6 {
    display: none;
}

#tung7:checked ~ .page-principale .nombre-7 {
    display: inline;
}

#tung8:checked ~ .page-principale .nombre-7 {
    display: none;
}

#tung8:checked ~ .page-principale .nombre-8 {
    display: inline;
}

#tung9:checked ~ .page-principale .nombre-8 {
    display: none;
}

#tung9:checked ~ .page-principale .nombre-9 {
    display: inline;
}

#tung10:checked ~ .page-principale .nombre-9 {
    display: none;
}

#tung10:checked ~ .page-principale .nombre-10 {
    display: inline;
}

#tung11:checked ~ .page-principale .nombre-10 {
    display: none;
}

#tung11:checked ~ .page-principale .nombre-11 {
    display: inline;
}

#tung12:checked ~ .page-principale .nombre-11 {
    display: none;
}

#tung12:checked ~ .page-principale .nombre-12 {
    display: inline;
}

#tung13:checked ~ .page-principale .nombre-12 {
    display: none;
}

#tung13:checked ~ .page-principale .nombre-13 {
    display: inline;
}

.indice {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform:
        translateX(-50%);
    padding: 20px 30px;
    background:
        rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 15px;
    text-align: center;
    font-size: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s;
    z-index: 600;
}

#tung13:checked ~ .page-principale .indice {
    opacity: 1;
}

#secret:not(:checked) ~ .page-secrete {
    display: none;
}

#secret:checked ~ .page-principale {
    opacity: 0;
    pointer-events: none;
}

.page-secrete {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle,
            #303030,
            #090909 70%
        );
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 1;
    z-index: 1000;
}

.bouton-retour {
    position: fixed;
    top: 10px;
    left: 10px;
    
    font-size: 20px;
    text-decoration: none;
    color: white;
    
    background: black;
    border-radius: 50%;
    
    width: 30px;
    height: 30px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 9999;
}



.logo-deepwoken {
    position: absolute;
    width: 1500px;
    max-width: 150vw;
    opacity: 0.12;
    z-index: 1;
}

.image-finale {
    position: relative;
    width: 430px;
    max-width: 45vw;
    z-index: 5;
}

.image-finale img {
    display: block;
    width: 100%;
    height: auto;
}

.titre-secret {
    position: absolute;
    left: 8%;
    top: 25%;
    z-index: 5;
}

.titre-secret p {
    letter-spacing: 5px;
    font-size: 14px;
}

.titre-secret h1 {
    margin: 0;
    font-size: 60px;
}

.titre-secret h2 {
    margin-top: 0;
    letter-spacing: 8px;
}

.presentation {
    position: absolute;
    right: 7%;
    top: 50%;
    transform:
       translateY(-50%);
    width: 300px;
    z-index: 5;
}

.presentation h2 {
    border-bottom:
       2px solid white;
    padding-bottom: 10px;
}

.presentation p {
    line-height: 1.6;
}

#info{
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: clamp(10px, 2vw, 20px);
    line-height: 2;
}



    /* Personnage plus gros */
    #destroyman {
        position: fixed;
        left: 0;
        bottom: 1px;
        width: 200px;
        z-index: 9999;
        pointer-events: none;
    }

    /*
      L'image originale a la tête tournée vers la GAUCHE.
      Donc :
        gauche  = image normale
        droite  = image retournée
    */
    .sprite {
        width: 200px;
        display: block;
        transform-origin: center bottom;
        transition: transform 0.12s ease;
    }

    .sprite img {
        display: block;
        width: 200px;
        height: auto;
        user-select: none;
        -webkit-user-drag: none;
    }

    /* La bulle est séparée du sprite : elle ne sera jamais retournée */
    #speech {
        position: absolute;
        left: 50%;
        bottom: calc(100% + 12px);
        transform: translateX(-50%);

        width: max-content;
        max-width: min(300px, 70vw);

        padding: 10px 14px;
        border-radius: 10px;

        background: rgba(20, 20, 20, 0.96);
        color: white;
        border: 1px solid rgba(255,255,255,.25);

        font-size: 14px;
        line-height: 1.35;
        text-align: center;

        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, transform .25s ease;
        box-shadow: 0 5px 18px rgba(0,0,0,.45);
    }

    #speech.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-3px);
    }

    #speech::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -6px;
        width: 10px;
        height: 10px;
        background: rgba(20,20,20,.96);
        border-right: 1px solid rgba(255,255,255,.25);
        border-bottom: 1px solid rgba(255,255,255,.25);
        transform: translateX(-50%) rotate(45deg);
    }
