.report-button {
    width: clamp(70px, 5vw, 100vw);
    transition: filter 0.3s;
    cursor: pointer;
}

.report-button:hover {
    filter: brightness(120%);
}

#timer {
    order: 3;
}

.timer {
    display: flex;
    color: #00ff74;
    font-size: clamp(50px, 4.167vw, 100vw);
    justify-content: flex-end;
}

.logo {
    opacity: 0.6;
    width: clamp(100px, 8vw, 250px);
    height: auto;
    pointer-events: none;
    align-self: center;
}

.board {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.5vw, 12px);
}

.board-row {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    gap: clamp(3px, 0.25vw, 6px);
    user-select: none;
}


.tile {
    position: relative;
    /* Permet le positionnement absolu de la barre de curseur à l'intérieur */
    /* Box */
    border: 1px solid black;
    background-color: rgba(216, 116, 16, 0.411);
    width: clamp(50px, 5vw, 70px);
    height: clamp(50px, 5vw, 70px);

    /* Text */
    color: rgb(255, 255, 255);
    font-size: clamp(20px, 5vw, 35px);
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tile-cursor::after {
    content: '';
    display: block;
    width: 80%;
    height: 2px;
    background-color: #ede49b;
    position: absolute;
    bottom: 5px;
}

.hint {
    color: rgba(255, 255, 255, 0.2);
    /* Rendre le texte presque transparent */
}

.correct {
    background-color: #6AAA64;
    color: white;
    border-color: white;
}

.present {
    background-color: #eb7933;
    color: white;
    border-color: white;
}

.absent {
    background-color: red;
    color: white;
    border-color: white;
}

.revealed {
    background-color: rgb(38, 156, 177) !important;
    color: white;
    border-color: white;
}

.messagejoker {
    position: absolute;
    font-size: 2rem;
    color: white;
    padding: 10px;
    border-radius: 5px;
    background-color: rgb(38, 156, 177);
    left: 50%;
    /* Positionne le message à 50% de la largeur du parent */
    transform: translateX(-50%);
    /* Décale le message de 50% de sa propre largeur vers la gauche */
    bottom: 5vh;
}

.message2 {
    position: absolute;
    font-size: 2rem;
    color: white;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(179, 60, 60, 0.589);
    left: 50%;
    /* Positionne le message à 50% de la largeur du parent */
    transform: translateX(-50%);
    /* Décale le message de 50% de sa propre largeur vers la gauche */
    bottom: 5vh;
}

#answer {
    display: none;
    position: absolute;
    padding: 10px;
    border-radius: 5px;
    font-size: 2rem;
    color: white;
    left: 50%;
    /* Positionne le message à 50% de la largeur du parent */
    transform: translateX(-50%);
    /* Décale le message de 50% de sa propre largeur vers la gauche */
    bottom: 3vh;
    background-color: rgb(38, 156, 177);
}

.hidden {
    display: none;
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0px rgba(0, 255, 64, 0.822);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(255, 0, 0, 0);
    }
}

.selectable-tile {
    animation: pulseBorder 1.5s infinite;
    cursor: pointer;
    /* Change le curseur pour indiquer l'interactivité */
}

.joker-message {
    position: absolute;
    font-size: 2rem;
    color: white;
    top: 90vh;
    left: 31.5vw;
    padding: 10px;
    border-radius: 5px;
    background-color: rgb(38, 156, 177);
}



.key-tile {
    /* Box */
    border: 1px solid lightgray;
    width: 36px;
    height: 40px;
    margin: 1px;

    /* Text */
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enter-key-tile {
    /* Box */
    border: 1px solid lightgray;
    width: 76px;
    height: 40px;
    margin: 1px;

    /* Text */
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.misplaced {
    background-color: orange;
    color: white;
    border-color: white;
}

.selected {
    background-color: rgb(92, 203, 220);
}


.buttons-finished-revelio {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin-right: 2rem;
}


.pushablenext {
    background: hsl(138.46deg 89.39% 21.22%);
    border-radius: 0.75rem;
    border: none;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    align-self: center;
    margin: 1.25rem 0;
}

.frontnext {
    display: flex;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: clamp(18px, 1.5vw, 32vw);
    background: hsl(113.54deg 87.1% 29.46%);
    color: white;
    transform: translateY(-6px);
    justify-content: center;
    pointer-events: none;
}

.pushableexplanation {
    background: hsl(197.13deg 100% 19.69%);
    border-radius: 0.75rem;
    border: none;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    align-self: center;
    margin: 1.25rem 0;
}

.frontexplanation {
    display: flex;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: clamp(18px, 1.5vw, 32vw);
    background: hsl(205.44deg 100% 47%);
    color: white;
    transform: translateY(-6px);
    justify-content: center;
    pointer-events: none;
}

.pushablelearnmorelink {
    background: hsl(340deg 100% 19.69%);
    border-radius: 0.75rem;
    border: none;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    align-self: center;
    margin-top: 5vh;
    text-decoration: none;
}

.frontlearnmorelink {
    display: flex;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: clamp(18px, 1.5vw, 32vw);
    background: hsl(345deg 100% 47%);
    color: white;
    transform: translateY(-6px);
    justify-content: center;
    pointer-events: none;
}

.pushablenext:active .frontnext,
.pushableexplanation:active .frontexplanation,
.pushablelearnmorelink:active .frontlearnmorelink,
.pushablesubmit:active .frontsubmit {
    transform: translateY(-2px);
}


.report-button {
    position: absolute;
    bottom: 8.5vh;
    right: 6vw;
    width: 4vw;
    transition: filter 0.3s;
    /* Animation douce */
}

.report-button:hover {
    filter: brightness(120%);
    /* Augmenter la luminosité */
}

.modal {
    display: none;
    /* Caché par défaut */
    position: fixed;
    /* Reste en place même lors du défilement */
    z-index: 3;
    /* Assis au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    /* Pleine largeur */
    height: 100%;
    /* Pleine hauteur */
    background-color: rgb(0, 0, 0);
    /* Couleur de fond */
    background-color: rgba(0, 0, 0, 0.4);
    /* Couleur de fond avec opacité */
}

.modal-content {
    background-image: url(/static/home/signalement.webp);
    background-size: contain;
    background-repeat: no-repeat;
    margin: 15% auto;
    padding: 20px;
    width: 50%;
    height: 80%;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 35vw;
    bottom: -20vh;
    z-index: 2;
}

/* Styliser le bouton de soumission du formulaire */
.modal-content button {
    position: absolute;
    text-decoration: none;
    padding: 20px 30px;
    font-size: 1.5rem;
    cursor: pointer;
    border: 0px;
    background: transparent;
    transition: all .2s;
    overflow: hidden;
    color: #fff;
    border-radius: 40px;
    bottom: 17vh;
    right: 32.5vw;
    z-index: 5;
}

.modal-content button::after {
    content: '';
    width: 100vw;
    height: 20vh;
    position: absolute;
    top: -50px;
    left: -100px;
    background-image: linear-gradient(#d4c092, #9e8a6c);
    z-index: -1;
    margin-bottom: 20px;
}

.modal-content button:hover {
    transform: translate(0, -6px);
    box-shadow: 10px -10px 25px 0px rgba(233, 209, 102, 0.25), -10px 10px 25px 0px rgba(179, 158, 97, 0.25);
}

.editable-div2 {
    overflow: auto;
    /* Active le défilement pour le texte dépassant 35vh */
    width: 21.2vw;
    height: 32vh;
    position: absolute;
    line-height: 150%;
    font-family: 'Grape Nuts', cursive;
    font-size: 20px;
}

.editable-div {
    padding: 5px;
    border-radius: 4px;
    background-color: #ded9cc;
    width: 21.2vw;
    height: 41vh;
    position: absolute;
    top: 24.5vh;
    left: 3.7vw;
}

.editable-div2:focus {
    outline: none;
    /* Supprime la bordure de focus par défaut */
}

.editable-div2[placeholder]:empty:before {
    content: attr(placeholder)"";
    /* Afficher le texte de l'attribut placeholder */
    color: #959292;
    /* Couleur grise pour le texte du placeholder */
    white-space: pre-wrap;
    /* Permet le retour à la ligne */
}

.close {
    float: right;
    /* Position à droite */
    font-size: 28px;
    /* Taille de la police plus grande */
    font-weight: bold;
    /* Police en gras */
    cursor: pointer;
    /* Style de curseur pour indiquer la cliquabilité */
    position: absolute;
    left: 27vw;
    top: 2vh;
}

.close:hover,
.close:focus {
    color: rgb(108, 73, 63);
    /* Changement de couleur au survol ou au focus */
    text-decoration: none;
    /* Enlever la décoration de texte */
    cursor: pointer;
    /* Style de curseur pour indiquer la cliquabilité */
}

@media only screen and (min-width: 600px) and (max-width: 800px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .game-container {
        margin-top: 0;
    }

    .infos-container {
        margin-top: 20px;
        width: 90%;
        justify-content: center;
        align-items: flex-start;
    }

    .tile {
        width: clamp(20px, 8vw, 70px);
        height: clamp(20px, 8vw, 70px);    
    }
}

@media only screen and (min-width: 801px) and (max-width: 1024px) {

}

@media only screen and (max-width: 768px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .game-container {
        margin-top: 0;
    }

    .infos-container {
        margin-top: 20px;
        width: 90%;
        justify-content: center;
        align-items: flex-start;
    }

    .tile {
        width: clamp(20px, 8vw, 70px);
        height: clamp(20px, 8vw, 70px);    
    }
}


