@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&family=Sedgwick+Ave+Display&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-image: url(img/bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: none;
}

/* load */ 

.load {
  width: 100%;
  height: 100%;
  background: #000000;
  opacity: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: block;
  color: aliceblue;
}
.load>h1 {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.loading {
  color: white;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.highlight {
  color: red;
}


/* cursor */

#cursor {
  position: absolute;
  width: 400px;
  height: 400px;
  background-image: url(img/baton.png);
  background-size: contain;
  pointer-events: none;
  z-index: 15;
}

/* btn cast spell */

#start-btn {
  z-index: 4;
  position: absolute;
  top: 15%;
  left: 48%;
  transform: translate(-50%, -50%);
  padding: 10px;
  border-radius: 0 0 40% 40%;
  background-color: black;
  color: yellow;
  animation: pulse 1s infinite ease-in-out;
}

#start-btn:hover {
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* afficher le tire */

#output {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 50px;
  color: black;
  font-weight: bold;
  letter-spacing: 1rem;
  font-family: 'Rock Salt';
}

/* Magic spell note */ 

#SpellNote {
  z-index: 10;
  position: absolute;
  top: 85%;
  left: 85%;
  transform: translate(-50%, -50%);
  height: 600px;
  width: 500px;
  background-color: transparent;
  scale: 0.5;
}

#SpellNote:hover {
  scale: 0.7;
}

#SpellNoteText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: 100%;
  background-image: url(img/page.png);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  font-family: 'Rock Salt';
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes turn1 {
  0% {
    color: black;
  }
  100% {
    color: rgba(255, 0, 0, 0);
  }
}

@keyframes turn2 {
  0% {
    color: rgba(0, 0, 255, 0);
  }
  100% {
    color: black;
  }
}

#past {
  position: absolute;
  top: 50%;
  left: 12.3%;
  transform: translate(-50%, -50%);
  height: 500px;
  width: 100px;
  background-color: transparent;
  z-index: 20;
  display: none;
}

#future {
  z-index: 20;
  position: absolute;
  top: 50%;
  left: 87.7%;
  transform: translate(-50%, -50%);
  height: 500px;
  width: 100px;
  background-color: transparent;
  display: none;
}

#overlay {
  z-index: 9;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
} 


/* dummy */

#dummy {
  z-index: 1;
  height: 350px;
  width: 350px;
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#dummy img {
  width: 100%;
  height: 100%;
}


/* magic */ 

#charged {
  display: none;
  z-index: 3;
  height: 5px;
  width: 5px;
  position: absolute;
  border-radius: 50%;
  background-color: rgb(0, 0, 0);
  border: 1px solid rgb(0, 0, 0);
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.5);
}

#inflamare {
  display: none;
  z-index: 2;
  height: 350px;
  width: 350px;
  background-image: url(img/inflamare.gif);
  position: absolute;
  top: 50%;
  left: 50%; 
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#lumos {
  z-index: 50;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: none;
  background-color: white;
}

#nox {
  z-index: 50;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: none;
  background-color: black;
}

@keyframes leviosa {
  0% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, -120%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

@keyframes leviosa2 {
  0% {
    rotate: 0deg;
  }
  50% {
    rotate: 180deg;
  }
  100% {
    rotate: 360deg;
  }
}


