/* FONT */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

body {
  background: url("../assets/background.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 400px;
  height: auto;
  margin: 2rem 0;
  animation: logo 2s infinite;
}

.btn {
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  transform: translateY(5px);
}

.game {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.errors {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.timer {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

#board {
  height: 500px;
  width: 700px;
  margin: 0 auto;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.card {
  cursor: pointer;
  width: 100px;
  height: 100px;
  margin: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.1);
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.btn {
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  transform: translateY(5px);
}

/* Style de la modal */
#modal {
  display: none; /* Par défaut, masquez la modal */
  position: fixed; /* Position fixe pour la modal par-dessus la page */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.7
  ); /* Fond semi-transparent pour assombrir la page en arrière-plan */
  z-index: 999; /* Assurez-vous que la modal est au premier plan */
}

/* Style du contenu de la modal */
#modal .winner {
  background-color: #fff; /* Couleur de fond de la modal */
  padding: 20px;
  width: 300px;
  margin: 100px auto; /* Centrez la modal verticalement et horizontalement */
  text-align: center;
  border-radius: 5px;
}

/* Style du texte "Le gagne la partie!" dans la modal */
#modal p.winner span#winner {
  font-weight: bold;
  color: orange; /* Couleur du texte */
}

.win-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-menu {
  text-decoration: none;
  color: white;
  margin: 0.5rem;
  background-color: orange;
  padding: 1rem;
  border-radius: 1rem;
  transition: all 0.3s ease-in-out;
}

.btn-menu:hover {
  transform: scale(1.1);
}

.btn-footer1,
.btn-footer2 {
  display: none;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  #board {
    height: 600px;
    width: 350px;
    background-color: rgba(255, 255, 255, 0.801);
  }
  .card {
    cursor: pointer;
    width: 75px;
    height: 75px;
    margin: 0.3rem;
    transition: all 0.3s ease-in-out;
  }
  .btn-footer1 {
    display: block;
    position: absolute;
    width: 60px;
    height: 50px;
    top: 5px;
    left: 5px;
  }
  .btn-footer2 {
    display: block;
    position: absolute;
    width: 60px;
    height: 50px;
    top: 5px;
    right: 5px;
  }
  .logo {
    display: none;
  }
  .errors {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }
  .footer {
    display: none;
  }
  .timer {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-height: 800px) {
  .logo {
    display: none;
  }
}
