
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  text-align: center;
}

body {
  margin: 0;
  padding: 0;
  background-image: url(../img/ice_background.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


h1, h3, p {
  font-family: "Skranji", system-ui;
  font-weight: 700;
  font-style: normal;
  color: #fff;
  margin-bottom: 10px;
}

h1 {
  text-align: center;
  margin-top: 40px; 
  margin-bottom: 10px;
}


h3 {
  font-size: 20px;
  padding: 0.2px;
}

p {
  padding: 10px;
  font-size: 25px;
}


#grille {
  width: 47vmin;
  height: 47vmin;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5px;
}

.case {
  width: 15vmin;
  height: 15vmin;
  aspect-ratio: 1;
  border: 2px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: contain;
  font-size: 5vmin;
  font-weight: bold;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s;
}

.case:hover {
  background-color: #dbdbdb;
  color: #000;
}


#replay {
  display: block;
  margin: 15px auto 0;
  height: 40px;
  width: 150px;
  border-radius: 40px;
  font-size: 18px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  cursor: pointer;
  border: none;
  transition: transform 0.5s;
}

#replay:hover {
  transform: rotate(180deg);
}


nav {
  padding: 3px;
}

.player-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
}


#panel {
  width: 100%;
  height: 100%;
  background-color: #00205B;
  position: absolute;
  z-index: 15;  
  top: 0;
  left: 0;
  padding-top: 10%;
  color: aliceblue;
  font-weight: bold;
  transition: all 2.4s cubic-bezier(0.075, 0.82, 0.165, 1);
  transform-style: preserve-3d;
}


.slide-up {
  transform: translateY(-95%);
}



#casquette {
  animation-name: casquette;
  animation-duration: 9s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-delay: 3s;
  width: 70px;
  height: 150px;
  border: 1px solid #000;
  transform: translateX(-600px);
  margin-top: 10vh;  
  position: relative; 
  z-index: 1;  
}



@keyframes casquette {
  0% {
    transform: translateX(-600px) rotateY(0deg);
  }
  48% {
    transform: translateX(600px) rotateY(0deg);
  }
  50% {
    transform: translateX(600px) rotateY(180deg);
  }
  98% {
    transform: translateX(-600px) rotateY(180deg);
  }
  100% {
    transform: translateX(-600px) rotateY(0deg);
  }
}







  
