body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f4f4f4;
  overflow: hidden;
}
#startScreen img {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 50%;
  height: auto;
}

#startScreen button {
  display: block;
  margin: 0 auto;
}
#startScreen {
  position: fixed; /* Utilise fixed pour qu'il reste centré même lors du scroll */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centre précisément */
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 2;
  width: 100%;
  height: 100%;
}

button {
  font-size: 20px;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #ff4b5c;
  color: white;
  border: none;
  border-radius: 5px;
}

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

#gameCanvas {
  position: fixed;
  display: none; /* Masque l'écran du jeu au début */
  z-index: 1;
}

#GOScreen {
  position: fixed; /* Utilise fixed pour qu'il reste centré même lors du scroll */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centre précisément */
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 2;
  width: 100%;
  height: 100%;
}

#WINScreen {
  position: fixed; /* Utilise fixed pour qu'il reste centré même lors du scroll */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centre précisément */
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 2;
  width: 100%;
  height: 100%;
}


#GOScreen {
  position: fixed; /* Utilise fixed pour qu'il reste centré même lors du scroll */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centre précisément */
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 2;
  width: 100%;
  height: 100%;
}

#startVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: none; /* Hidden by default */
}


#startVideo, #GOVideoScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: none; /* Hidden by default */
  }

  #WINVideoScreen {
    position: fixed;
    top: 0; /* Make sure the top is at 0 for proper alignment */
    left: 0;
    width: 100%;
    height: 100%; /* Keep full height */
    display: none; /* Hidden by default */
    object-fit: cover;
}




#gameCanvas {
  display: none; /* Hidden until the game starts */
}

#gameOverVideo, #winVideo {
    width: 100%; 
    height: auto;
}

#restartButton{
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50; /* Green */
    z-index: 999;
}

#restartButton:hover {
    background-color: #45a049; /* Darker green on hover */
  }

.title {
  padding-bottom: 2rem;
}

.instructions__title {
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0 auto;
  text-align: center;
}

.instructions__text {
  text-align: left;
  margin: 0 auto;
  font-size: 1.5rem;
  width: fit-content;
  margin-bottom: 4rem;

  text-align: left;
  margin: 0 auto;
  font-size: 1.5rem;
  width: fit-content;
}

.instructions__text-key {
  font-weight: 600;
}
