body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}


/* Score */
#score {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-family: monospace;
    font-size: 20px;
    z-index: 10;
}

/* Vie */
#lives {
    position: absolute;
    top: 40px;
    left: 10px;
    color: white;
    font-family: monospace;
    font-size: 20px;
    z-index: 10;
}

/* Écran d'accueil */
/*
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
*/
#start-screen {
    position: fixed;
    inset: 0;
    background-image: url('../assets/fond.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Audiowide', sans-serif;
    color: white;
    z-index: 100;
}

#title {
    font-size: 3em;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px black;
}

#start-button {
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-family: 'Audiowide', sans-serif;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px #000;
}

#start-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* GAME OVER */
#game-over-screen {
    position: fixed;
    inset: 0;
    background-image: url('../assets/fond.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Audiowide', sans-serif;
    color: white;
    z-index: 100;
  }
  
  #final-score {
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px black;
  }
  
  #game-over-text {
    font-size: 3em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px black;
  }
  
  #replay-button {
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-family: 'Audiowide', sans-serif;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px #000;
  }
  
  #replay-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
  }
  
  /* VICTOIRE  */
  #victory-screen {
    position: fixed;
    inset: 0;
    background-image: url('../assets/fond.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Audiowide', sans-serif;
    color: white;
    z-index: 100;
  }
  
  #victory-text {
    font-size: 3em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px black;
  }
  
  #victory-score {
    font-size: 2em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px black;
  }
  
  #victory-replay {
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-family: 'Audiowide', sans-serif;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px #000;
  }
  
  #victory-replay:hover {
    background-color: rgba(255, 255, 255, 0.4);
  }
  

  /* Animation de fondu */
.fade-in {
    animation: fadeIn 1s ease forwards;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .fade-out {
    animation: fadeOut 1s ease forwards;
  }
  
  @keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }