/* Pacifico, Nunito Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Pacifico&display=swap');

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

input,
textarea,
button,
select,
a,
a:link,
a:visited,
a:hover,
a:active {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-decoration: none;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  background-color: rgb(21, 57, 66);
  color: white;

  /* prevent swipe down to refresh on mobile */
  overflow: hidden;

  /* remove select text feature */
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;

  padding: 1rem;
}

#displayScore {
  color: rgb(28, 149, 158);
  padding: 0.5rem;
}

.canvas-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 300px;
  height: 300px;
  /* actual canvas color */
  background: rgb(135, 238, 252);
  border-radius: 24px;
  padding: 1rem;
}

#gameOver {
  font-family: 'Pacifico', cursive;
  font-weight: bold;
  font-size: 1.25rem;
  text-shadow: 1px 1px 3px black;
  transition: 1s;

  position: absolute;
  top: 80px;
  left: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1rem;
  /* background: red; */
}

#gameOver > * {
  padding-bottom: 1.5rem;
}

#gameOver .game-over-text {
  /* transition: 1s; */
  text-shadow: 1px 3px 1px rgba(25, 6, 61, 0.788), 3px 3px 7px rgb(141, 2, 255),
    -1px -1px 4px rgb(232, 117, 255);
  color: rgb(245, 210, 255);
  animation: blink1 1s step-start 0s infinite,
    blink2 2.2s step-start 0s infinite, blink3 2.8s step-start 0s infinite;
}

@keyframes blink1 {
  50% {
    transition: 1s;
    text-shadow: 1px 3px 1px rgba(0, 0, 0, 0.13);
    opacity: 50%;
  }
}
@keyframes blink2 {
  1% {
    transition: 1s;
    text-shadow: 1px 3px 1px rgba(0, 0, 0, 0.13);
    opacity: 50%;
  }
}

@keyframes blink3 {
  2% {
    transition: 1s;
    text-shadow: 1px 3px 1px rgba(0, 0, 0, 0.13);
    opacity: 50%;
  }
}

#playButton {
  position: relative;
  z-index: 10;
}

#playButton {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  padding: 1.05rem 2.65rem;
  border-radius: 1rem;
  background-color: rgb(244, 247, 252);
  color: rgb(90, 92, 89);
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: 0.4s;
  animation: upAndDown 1s ease-in 0s infinite;
}

@keyframes upAndDown {
  50% {
    transition: 1s;
    transform: translateY(2px);
  }
}

#playButton:hover {
  transition: 0.4s;
  color: rgb(9, 192, 3);
  transform: scale(1.04);
  animation: none;
}

#canvas {
  width: 100%;
  height: 100%;
  position: relative;
  /* hide canvas color */
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.445);
}

button {
  width: 50px;
  height: 30px;
  margin-bottom: 5px;
}

/* ------------- */
/* ARROW BUTTONS */
/* .arrow-buttons-container {
  padding: 0, 5rem;

  touch-action: manipulation;

  user-select: none;
  -webkit-user-select: none;
}

.arrow-buttons-container button {
  border-radius: 24px;
  padding-bottom: 1rem;

  font-size: 1.5em;
  color: white;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0, 5rem;
  cursor: pointer;
}

.arrow-buttons-container button:hover {
  color: rgb(0, 238, 255);
  background-color: rgba(8, 14, 32, 0.2);
}

.arrow-buttons-container button:active {
  color: black;
  background-color: rgb(0, 238, 255);
} */
/* ------------- */

#displayTutorial {
  font-size: 1rem;
  /* color: rgb(0, 238, 255); */
  color: rgb(232, 117, 255);
  max-width: 300px;
  text-align: center;
  margin-bottom: 1.5rem;

  opacity: 0;
  animation: fadeOut 6s;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media screen and (min-width: 400px) {
  #gameOver {
    /* top: 80px; */
    left: 35px;
  }
}
