@import url('https://fonts.googleapis.com/css?family=Comfortaa');

:root {
  --text-color: #ccc;
}

* {
  user-select: none;
}

html, body {
  margin: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  position: relative;
  font-family: 'Comfortaa', cursive;
  color: #a9acb7;
  background-color: #1e1f22;
}

#container {
  width: 100%;
  height: 100%;
}

#score {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  font-size: 10vh;
  transition: transform 0.5s ease;
  color: var(--text-color);
  transform: translateY(-200px) scale(1);
}

#game {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-over > * {
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  transform: translateY(-50px);
  color: var(--text-color);
}

.game-over > h2 {
  margin: 0;
  padding: 0;
  font-size: 40px;
}

.game-ready {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.game-ready > .start-button {
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  transform: translateY(-50px);

  border: 3px solid var(--text-color);
  padding: 10px 20px;
  background-color: transparent;
  color: var(--text-color);
  font-size: 30px;
}

#instructions {
  position: absolute;
  width: 100%;
  top: 16vh;
  left: 0;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
}

#instructions.hide {
  opacity: 0 !important;
}

.ready > .game-ready > .start-button {
  opacity: 1;
  transform: translateY(0);
}

.playing > #instructions {
  opacity: 1;
}

.playing > #score,
.resetting > #score {
  transform: translateY(0px) scale(1);
}

.ended > #score {
  transform: translateY(6vh) scale(1.5);
}

.ended > .game-over > * {
  opacity: 1;
  transform: translateY(0);
}

.ended > .game-over > p {
  transition-delay: 0.3s;
}