@import url("https://fonts.googleapis.com/css?family=Comfortaa");
html, body {
  margin: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  position: relative;
  font-family: "Comfortaa", cursive;
}

#game-container {
  width: 100%;
  height: 100%;
}
#game-container #score {
  position: absolute;
  top: 25vh;
  width: 100%;
  text-align: center;
  font-size: 10vh;
  transition: transform 0.5s ease;
  color: #333344;
   transform: translatey(-500px) scale(1); 
}
@media screen and (max-width: 600px) {
  #game-container #score {
    top: 28vh;
    width: 100%;
    font-size: 8vh;
  }
}
#game-container #game {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
#game-container .game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#game-container .game-over * {
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  transform: translatey(-50px);
  color: #333344;
}
#game-container .game-over h2 {
  margin: 0;
  padding: 0;
  font-size: 40px;
}
#game-container .game-ready {
  position: absolute;
  bottom: 10vh;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
}
@media screen and (max-width: 600px) {
  #game-container .game-ready {
    bottom: 1vh;
  }
}

#game-container .game-ready #start-button{
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  transform: translatey(-50px);
  border: 3px solid #333344;
  padding: 10px 20px;
  background-color: transparent;
  color: #333344;
  font-size: 30px;
}
#game-container .game-ready #start-text{
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  transform: translatey(-50px);
  background-color: transparent;
  color: #333344;
  font-size: 20px;
  text-align: center;
}
#game-container #instructions {
  position: absolute;
  width: 100%;
  height: 100%;
  /* top: 17vh; */
  bottom: 10vh;
  font-size: 16px;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
}
@media screen and (max-width: 600px) {
  #game-container #instructions {
    bottom: 1vh;
  }
}
#game-container #instructions.hide {
  opacity: 0 !important;
}
#game-container.playing #score, #game-container.resetting #score {
  transform: translatey(0px) scale(1);
}
#game-container.playing #instructions {
  opacity: 1;
}
#game-container.ready .game-ready #start-button{
  opacity: 1;
  transform: translatey(0);
}
#game-container.ready .game-ready #start-text {
  opacity: 1;
  transform: translatey(0);
}
#game-container.ended #score {
  transform: translatey(3vh) scale(1.25);
}
#game-container.ended .game-over * {
  opacity: 1;
  transform: translatey(0);
}
#game-container.ended .game-over p {
  transition-delay: 0.3s;
}