@font-face {
    font-family: 'Retro';
    src: url('../fonts/Retro\ Gaming.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: linear-gradient(to top, #000, #33fff8, #f8ffe0);
    font-family: 'Retro', sans-serif;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Styles pour les boutons du jeu */
button {
    font-family: 'Retro', sans-serif;
    background-color: #f8ffe0;
    color: #000;
    border: 2px solid #000;
    padding: 5px 10px;
    margin: 4px;
    cursor: pointer;
    text-align: center;
}

#home-button-container {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    text-align: right;
}


/* Styles pour les boutons en haut à gauche et à droite */
#buttons-top-left {
    position: absolute;
    top: 100px; /* Ajustez la position verticale selon vos besoins (30px en dessous du header) */
    left: 10px;
}


/* Styles pour les boutons */
#buttons-top-left button {
    font-family: 'Retro', sans-serif;
    background-color: #f8ffe0;
    color: #000;
    border: 2px solid #000;
    padding: 5px 10px;
    margin: 20px;
    cursor: pointer;
    text-align: center;
}

/* Nouveau style pour les boutons en bas à droite */
#buttons-bottom-right {
    position: absolute;
    bottom: 40%; /* Ajustez la position verticale selon vos besoins (10px au-dessus du footer) */
    right: 10px;
}

/* Nouveaux styles pour les boutons en bas à droite */
#buttons-bottom-right button {
    font-family: 'Retro', sans-serif;
    background-color: #f8ffe0;
    color: #000;
    border: 2px solid #000;
    padding: 5px 10px;
    margin: 10px;
    cursor: pointer;
    text-align: center;
}

#niveau-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
}

.retro-dropdown {
    font-family: 'Retro', sans-serif;
    background-color: #f8ffe0;
    color: #000;
    border: 2px solid #000;
    margin: 20px;
    padding: 5px 10px;
    cursor: pointer;
}


.tabloInterieur {
    width: 30px;
    height: 30px;
    font-family: Tahoma;
    font-size: 12px;
    color: black;
    text-align: center;
    border: 1px #c0c0c0 solid;
    cursor: pointer;
}

.tabloExterieur {
    border: 2px #c0c0c0 solid;
    text-align: center;
}

/* Style pour les cases incorrectes */
td.incorrect {
    color: red;
    background-color: rgb(239, 241, 136); /* Orange/jaune pastel */
    font-weight: bold;
}

/* Style pour les cases correctes */
td.correct {
    color: black;
    background-color: none;
    font-weight: normal;
}


a {
    font-family: Tahoma;
    font-size: 12px;
    text-decoration: none;
}

/* Styles pour le header */
header {
    height: 70px;
    text-align: center;
    background-color: #000;
    color: #FFF;
    margin: 0;
    padding: 0;
}


#message-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Noir avec opacité */
    display: none; /* Caché initialement */
    justify-content: center;
    align-items: center;
    z-index: 1; /* Pour être devant la grille */
  }
  
  #message-container {
    background-color: white; /* Fond du message */
    padding: 20px;
    border-radius: 5px;
    text-align: center;
  }
  
  #message-text {
    font-size: 24px;
    font-weight: bold;
  }
  

#grille {
    border: 2px solid #ccc;
    margin: 10px; /* Espace entre le tableau et les éléments adjacents */
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ajoute de l'espace entre header/tableau et tableau/footer */
    background-color: #fff;
    max-width: 320px;
    margin: 8% auto 0;
    padding: 0;
}

/* Style pour le footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #000;
    color: #FFF;
    position: fixed;
    bottom: 0;
    width: 100%; /* Pour occuper toute la largeur de la page */
}
