canvas {
  position: absolute;
}
.rotate-container {
  display: none;
}
.canvasContainer {
  position: relative;
  width: 360px;
  height: 640px;
  margin: 0 auto;
}

#scoreboard {
  position: absolute;
  top: 540px;
  width: 360px;
  text-align: center;
  font-size: 50px;
  color: #333333;
}

#start-screen {
  position: relative;
  width: 100%;
  height: 100%;
}

#gameover-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s;
  text-align: center;
}
#over-buttons {
  position: relative;
  top: 0;
  margin: 0 auto;
  width: 100%;
  opacity: 1;
  transition: opacity 1s;
}

#gameover {
  width: 280px;
  background-color: #333333;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 40px;
  letter-spacing: 4px;
  margin: auto;
  margin-top: 200px;
}

#replay {
  width: 100px;
  background-color: #333333;
  color: #ffffff;
  padding: 10px;
  font-size: 20px;
  letter-spacing: 0;
  transition: background-color 1s;
  margin: 10px auto;
}

#replay:hover {
  background-color: #ffffff;
  color: #333333;
  cursor: pointer;
}

#ctrl-ctn {
  position: relative;
  top: 335px;
  margin: 0 auto;
  width: 50%;
  opacity: 1;
  transition: opacity 1s;
}

.ctrl-btn {
  background-color: #333333;
  color: #ffffff;
  text-align: center;
  font-size: 18px;
  padding: 8px 16px;
  margin: 10px;
}

.mute-button {
  display: inline-block;
  background-image: url('mute.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 25px;
  width: 25px;
  cursor: pointer;
  position: absolute;
  right: 4px;
  top: 607px;
}

@media (max-height: 430px) and (orientation: landscape) {
  .rotate-container {
    display: block;
  }
  .game-content {
    display: none;
  }
}