@import url("https://fonts.googleapis.com/css2?family=Nabla:EDPT,EHLT@30..200,24&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");

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

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

#TutContainer {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

h2#score,
h2#game-over {
  font-size: 52pt;
  font-family: "Nabla";
  position: absolute;
  z-index: 1000;
  top: 0;
  line-height: 1em;
  left: calc(50% - 50px);
  /* right: 20px; */
  width: 100px;
  text-align: center;
  color: blue;
  margin: 0;
  padding: 0;
}

h2#game-over {
  position: relative;
  width: 80%;
  margin: 0 auto;
  left: auto;
  font-size: 72pt;
}

h2#lives {
  position: absolute;
  right: 20px;
  top: 0;
  z-index: 1000;
}

h2#lives img {
  display: inline-block;
  width: 32px;
  margin-right: 10px;
  transition: all 0.3s ease-out;
}

h2#lives img.life-removed {
  transform: scale(3);
  opacity: 0;
  transition: all 0.3s ease-out;
}

#game-over-wrapper, #game-start-wrapper {
  position: absolute;
  height: 80vh;
  width: 100vw;
  padding-top: 20vh;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  text-align: center;
  color: white;
}

h2#game-start {
  font-size: 2em;
  font-family: "Quicksand", sans-serif;
}

#game-over-wrapper h3, #game-start-wrapper h3 {
  font-weight: bold;
  font-size: 1.6em;
  font-family: "Quicksand", sans-serif;
  margin-top: 2em;
  margin-bottom: 2em;
  line-height: 2em;
}

#end-score {
  font-size: 1.6em;
}

#game-over-wrapper a,
#game-over-wrapper a:visited,
#game-over-wrapper a:focus,
#game-over-wrapper a:active,
#game-start-wrapper a,
#game-start-wrapper a:visited,
#game-start-wrapper a:focus,
#game-start-wrapper a:active  {
  padding: 0.5em 2em;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  cursor: pointer;
  box-shadow: 0px 0px 10px 0 rgba(0, 0, 0, 0.5);
  text-align: center;
  text-shadow: 0px 2.08px 2.08px rgba(0, 0, 0, 0.22),
    0px 2.08px 4.159px rgba(0, 0, 0, 0.2);
  font-family: "Quicksand", sans-serif;
  font-style: normal;
  text-transform: uppercase;
  border-radius: 20px;
  border: 0;
  background: rgb(255, 107, 0);
  background: linear-gradient(
    0deg,
    rgba(255, 107, 0, 1) 0%,
    rgba(255, 215, 0, 1) 100%
  );
  transition: all 0.3s ease-out;
}

#game-over-wrapper a:hover,
#game-start-wrapper a:hover {
  background: linear-gradient(
    0deg,
    rgba(88, 38, 0, 1) 0%,
    rgba(227, 135, 14, 1) 100%
  );
  transition: all 0.3s ease-out;
}

@font-palette-values --Nabla {
  font-family: Nabla;
  base-palette: 7;
}

h2#score span,
h2#game-over span {
  animation: depth 1s ease-in-out alternate infinite;
  position: relative;
  display: inline-block;
  font-variation-settings: "EDPT" 40;
  font-palette: --Nabla;
  @for $i from 1 through 12 {
    &:nth-child(#{$i}) {
      animation-delay: $i * 0.1s;
    }
  }
}

h2#game-start span {
  animation: depth 1s ease-in-out alternate infinite;
  position: relative;
  display: inline-block;
  font-variation-settings: "EDPT" 40;
  font-palette: --Nabla;
  @for $i from 1 through 12 {
    &:nth-child(#{$i}) {
      animation-delay: $i * 0.1s;
    }
  }
}

#tryagain-button, #start-button {
  background: linear-gradient(
    0deg,
    rgba(88, 38, 0, 1) 0%,
    rgba(227, 135, 14, 1) 100%
  );
  color: white;
  font-size: 1.6em;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer
}

#newlife-wrapper {
  perspective: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: absolute;
  bottom: -20vh;
  right: calc(50vw - 75px);
  z-index: 1000;
  opacity: 1;
}

#newlife {
  width: 150px;
  height: 150px;
  background-image: url("../img/ico-heart-flat.png");
  background-repeat: no-repeat;
  background-size: 100%;
  transform: rotateY(45deg);
  animation: rotateAnimation 0.4s linear infinite;
}

#newlife-wrapper.newlife-wrapper-add {
  transform: scale(0.25);
  opacity: 0.1;
  right: 1vw;
  bottom: 32vh;
  transition: all 0.9s ease-out;
}

@keyframes depth {
  0% {
    transform: translatex(0) translatey(0);
  }
  100% {
    font-variation-settings: "EDPT" 60;
    transform: translatex(0.15em) translatey(0.1em);
  }
}

@keyframes rotateAnimation {
  from {
    transform: rotateY(45deg);
  }
  to {
    transform: rotateY(225deg);
  }
}
