@font-face {
  font-family: 'Zelda';
  src: url('Zelda.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Zelda', sans-serif;
}
body {
    background-color: rgb(1, 31, 1);
    overflow: hidden;
}
#canvas1 {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    border-radius: 5px;
    border: solid 3px rgb(141, 73, 17);
}
#canvas_hud {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    border-radius: 10px;
    border: solid 2px red;
    background-color: red;
}
#Health-System {
  width: 400px;
  height: 200px;
  position: absolute;
  left: 18%;
  top: 9%;
}
#healthBar {
    width: 300px;
    height: 30px;
    border: 5px solid #8d4911;
    background-color: rgb(53, 0, 0);
    border-radius: 1px;
    clip-path:unset;
  }
  #hearth {
    left: -10%;
    top: -20%;
    width: 100px;
    position: absolute;
  }
  #info-astuce {
    display: flex;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    width: 1450px;
    height: 750px;
    background-color:rgb(129, 67, 16);
    z-index: 10;
    border-radius: 20px;
    transition: ease 0.5s;
    opacity: 1;
    flex-direction: row;
  }
  i  {
    color: #438a43;
    font-size: 60px;

  }
  #key-help {
    width: 50%;
    height: 100%;
    flex-direction: column;
    display: flex;
    align-items: center;
  }
  #move-key {
    display: flex;
    width: 50%;
    flex-direction: column;
    align-items: center;
    margin-top: 5%;
    justify-content: space-between;
  }
  #move-key h2 {
    font-size: 50px;
    color: #438a43;
  }
  #healthFill {
    height: 100%;
    background-color: #4ec237; /* couleur verte pour la vie */
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #info-astuce.active {
    opacity: 0;
  }
#history-context {
  width: 40%;
  height: 100%;
  margin-left: 5%;
  color: #438a43;
  font-weight: 100;
}
#history-context p {
  font-size: 30px;
  text-align: left;
  margin-top: 20%;
}
#history-context h2 {
  font-size: 50px;
  align-items: center;
  text-align: center;
  margin-top: 5%;
}
  #other-key {
    display: flex;
    width: 50%;
    flex-direction: column;
    align-items: center;
    margin-top: 5%; 
  font-size: 50px; 
  color: #438a43;
}
  #other-key img {
    width: 100px;
    padding: 20px;
  }
  #site-made {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    bottom: 2%;
    color: #8d4911;
    font-size: 30px;
  }
  #icons-made {
    display: none;
  }
  #title-game {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 5%;
    font-size: 40px;
    color: rgb(141, 73, 17);
    font-weight: 900;
    }
  /* === removing default button style ===*/
.button {
    margin: 0;
    height: auto;
    background: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10%;
    margin-top: 44%;
    scale: 1.5;
  }
  
  /* button styling */
  .button {
    --border-right: 6px;
    --text-stroke-color: rgba(255, 255, 255, 0.6);
    --animation-color: rgb(71, 238, 49);
    --fs-size: 2em;
    letter-spacing: 10px;
    text-decoration: none;
    font-size: var(--fs-size);
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 0.5px var(--text-stroke-color);
  }
  /* this is the text, when you hover on button */
  .hover-text {
    position: absolute;
    box-sizing: border-box;
    content: attr(data-text);
    color: var(--animation-color);
    width: 0%;
    inset: 0;
    border-right: var(--border-right) solid var(--animation-color);
    overflow: hidden;
    transition: 0.5s;
    -webkit-text-stroke: 1px var(--animation-color);
  }
  /* hover */
  .button:hover .hover-text {
    width: 100%;
    filter: drop-shadow(0 0 10px var(--animation-color))
  }
  #accept-info {
    width: 200px;
    height: 50px;
    background-color: #438a43;
    border: none;
    position: absolute;
    right: 5%;
    bottom: 5%;
    font-size: 20px;
    border-radius: 50px;
    color: black;
  }
  #button-music {
    background-color: #438a43;
    border-radius: 30px;
    border:#8d4911;
    width: 150px;
    color: #8d4911;
    display: flex;
    justify-content: center;
    position: absolute;
    left: 2.5%;
    top: 20%;
    height: 50px;
    align-items: center;
    transition: 0.5s;
    cursor: pointer;

  }
  #button-music i {
    color:#8d4911;
    font-size: 30px;
    margin-top: 5px;
  }
  #button-music:hover {
    scale: 1.1;
    transition: 0.5s;
    background-color: #8d4911;
  }
  #button-music:hover i {
    color:#438a43;
  }
  #accept-info:hover {
    background-color: darkgreen;
    scale: 1.1;
  }
  #volumeControl {
    -webkit-appearance: none; /* Supprime les styles par défaut de certains navigateurs */
    background:#8d4911; /* Couleur de fond */
    border-radius: 10px; /* Bord arrondi */
    width: 150px;
    height: 20px;
  }
  #volumeControl::-webkit-slider-thumb {
    -webkit-appearance: none; /* Supprime les styles par défaut de certains navigateurs */
    width: 15px; /* Largeur du curseur */
    height: 30px; /* Hauteur du curseur */
    background:#438a43; /* Couleur du curseur */
    border-radius: 10px; /* Bord arrondi */
    cursor: pointer; /* Curseur au survol */
  }
  #volume-game {
    height: 20%;
    width: 13%;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15%;
    justify-content: space-between;
  } 
  #volume-game h2 {
    color: #438a43;
    text-align: center;
    margin: 20px;

  }
  #volumeEffect {
    -webkit-appearance: none; /* Supprime les styles par défaut de certains navigateurs */
    background:#8d4911; /* Couleur de fond */
    border-radius: 10px; /* Bord arrondi */
    width: 150px;
    height: 20px;
  }
  #volumeEffect::-webkit-slider-thumb {
    -webkit-appearance: none; /* Supprime les styles par défaut de certains navigateurs */
    width: 15px; /* Largeur du curseur */
    height: 30px; /* Hauteur du curseur */
    background:#438a43; /* Couleur du curseur */
    border-radius: 10px; /* Bord arrondi */
    cursor: pointer; /* Curseur au survol */
  }
  #EndGame {
    display: none;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    width: 1450px;
    height: 750px;
    background-color:rgb(129, 67, 16);
    z-index: 10;
    border-radius: 20px;
    transition: ease 0.5s;
    opacity: 0;
    flex-direction: column;
    align-items: center;
  }
  #EndGame h1 {
    color: #438a43;
    font-size: 60px;
    padding: 20px;
  }
  #EndGame p {
    color: #438a43;
    font-size: 36px;
    text-align: center;
    padding: 20px;
  }
  #EndGame.active {
    display: flex;
    opacity: 1;
  }
  #refresh {
    width: 50%;
    height: 100px;
    background-color: #438a43;
    border: none;
    position: absolute;
    right: 25%;
    bottom: 5%;
    font-size: 20px;
    border-radius: 50px;
    color: black;
    font-size: 80px;
    text-align: center;
    align-items: center;
  }
  #refresh:hover {
    background-color: darkgreen;
    scale: 1.1;
  }