body,
html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

#orientation-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    color: black;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
    padding: 1rem;
  }

input[type=text] {
    border: 3px solid #555;
    font-size: 1.5em;
}
input[type=email] {
    border: 3px solid #555;
    font-size: 1.5em;
}
.top-right {
    position: fixed;
    top: 7px;
    right: 7px;
    background-color: #fefefe;
    padding: 1em;
    border-radius: 33px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    width: 15%;
  }

.hint-box{
    position: fixed;
    top: 100px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2em;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.container {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    /* padding: 10px; */
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    width: 100%;
    z-index: 20;
    /* Z-index pour la zone du texte */
    position: relative;
}

.displayText {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    font-size: 1em;
    transition: opacity 0.5s ease;
    position: relative;
    margin: 0 0% 42px 0%;
    /* Nécessaire pour que z-index fonctionne */
    z-index: 21;
    /* Z-index plus élevé pour être au-dessus de l'image */
}

#endOfChapter, #game {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    font-size: 1em;
    margin-bottom: 42px;
    transition: opacity 0.5s ease;
    position: relative;
    /* Nécessaire pour que z-index fonctionne */
    z-index: 21;
    /* Z-index plus élevé pour être au-dessus de l'image */
}



.button {
    padding: 12px 25px;
    border: none;
    background-color: #ff7f50;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

button:hover {
    background-color: #ff5722;
}


/* L'image est hors de l'écran à gauche au départ */



.hidden-image {
    position: fixed;
    top: 50%;
    left: -300px;
    /* Hors de l'écran */
    transform: translateY(-50%);
    transition: left 3s ease;
    opacity: 0;
    z-index: 1;
    /* Image derrière le texte */
}


/* Quand l'image devient visible */

.show-image {
    left: 20%;
    /* Centre horizontalement */
    transform: translate(-50%, -50%);
    opacity: 1;
    z-index: 0;
    /* Garder l'image derrière le texte */
}