body {
  background-image: url("../images/background-v3.png");
  background-size: cover;
}

h1{
  color: #ff0000;
  text-align: center;
  font-family: "Inria Sans", sans-serif;
  animation: fadein 0.5s ease-in;
}

.centre {
  display: grid;
  place-content: center;
}

#jouer-son{
  font-size: 15px;
  background-color: #860000;
  border: 1px solid #000;
  margin-top: 10px;
  padding: .25em .25em;
  cursor: pointer;
  border-radius: 10px;
  animation: fadein 0.5s ease-in;
}

#jouer-son:hover{
  background-color: #000000;
  border-color: #ffffff;
  color: #ff0000;
}

#pause-son{
  font-size: 15px;
  background-color: #860000;
  border: 1px solid #000;
  margin-top: 10px;
  padding: .25em .25em;
  cursor: pointer;
  border-radius: 10px;
  animation: fadein 0.5s ease-in;
}

#pause-son:hover{
  background-color: #000000;
  border-color: #ffffff;
  color: #ff0000;
}


#grille {
    min-width: calc(35vmin + 12px);
    min-height: calc(35vmin + 12px);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: solid black 3px;
    animation: fadein 0.5s ease-in;
    border-radius: 15px;
}

#grille .case {
    border: solid black 1px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    height: 13vmin;
    width: 13vmin;
    margin: 1px;
    background-color: black;
    cursor: pointer;
}


#grille .stag:hover {
  background-image: url("../images/stag-icon-v2.JPG");
  background-repeat: no-repeat;
  animation: fadein 0.4s ease-in;
}

#grille .pistol:hover {
  background-image: url("../images/gun-icon.JPG");
  background-repeat: no-repeat;
  animation: fadein 0.4s ease-in;
}

nav {
margin-top: 1em;
}

.pistol-sprite {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1/1;
  border-radius: 15px;
  object-fit: cover;
  animation: sprite 2000ms linear;
  animation:
      sprite 1s steps(10, jump-none);
    
}

/*sprite resizing (first three lines) */
.cerf-sprite {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1/1;
  border-radius: 15px;
  object-fit: cover;
  animation-fill-mode: forwards;
  animation: sprite 2000ms linear;
  animation:
      sprite 1s steps(10, jump-none);
}


.winning-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 50%);
  justify-content: center;
  align-items: center;
  color: white;
  font-family: "Inria Sans", sans-serif;
  font-size: 3rem;
  flex-direction: column;
}

.winning-message button {
  font-size: 3rem;
  background-color: #860000;
  border: 1px solid #000;
  margin-top: 10px;
  padding: .25em .25em;
  cursor: pointer;
  border-radius: 10px;
  animation: fadein 1.5s ease-in;
}

.winning-message button:hover {
  background-color: #000000;
  border-color: #ffffff;
  color: #ff0000;
}

.winning-message.show {
    display: flex;
  }

#returnButton {
  text-decoration: none;
  font-size: 3rem;
  background-color: #860000;
  border: 1px solid #000;
  margin-top: 10px;
  padding: .25em .25em;
  cursor: pointer;
  border-radius: 10px;
  color: #000;
  animation: fadein 1.5s ease-in;
}

#returnButton:hover {
  text-decoration: none;
  background-color: #000000;
  border-color: #ffffff;
  color: #ff0000;
}

@keyframes sprite {
    from {
      object-position: 0% 0%;
    }
    to {
      object-position: 100% 0%;
    }
  }

  .cerf-sprite {
    animation-fill-mode: forwards;
  }

  .pistol-sprite {
    animation-fill-mode: forwards;
  }

  #hide {
    display: none;
  }

  @keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }

  }
