* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'myFont';
  
}

@font-face {
  font-family: 'myFont';
  src: url('Cabin_Sketch-700.ttf');
}

body {
  width: 100dvw;
  height: 100dvh;
}

button {
  border: 0;
}

.hidden {
  display: none !important;
}

.shown {
  display: flex;
}

.screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  
  background: #1B1526;
}

.menu {
  gap: 5vmin;
}



.title {
  font-size: 10vmin;
  color: #FF0072;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  width: 50vmin;
  gap: 5vmin;
}

.btn-menu {
  height: 15vmin;
  font-size: 5vmin;
  border-radius: 2vmin;
  border: 0;
}

.hud {
  font-size: 3vmin;
  color: #FFD200 !important;
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-evenly;
}

canvas {
  width: 90%;
  aspect-ratio: 800 / 400;
  background: linear-gradient(to top, #FFD6B8, #0085AA);
  border: 0.1vmin solid white;
}

.game-controls {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  
  width: 100%;
  height: 20vmin;
}

.game button {
  width: 30vmin;
  height: 15vmin;
  font-size: 4vmin;
  font-weight: bold;
  background: #FF0072;
  box-shadow: 1vmin 1vmin 0 #00CEFF;
  color: white !important;
}

.btn:active {
  scale: 1.05;
}

.game-over {
  color: #FFA400;
  display: flex;
  position: absolute;
  top: 0;
  background: #000000C2;
  backdrop-filter: blur(20px);
}

.game-over h2 {
  color: #FF0072;
  font-size: 10vmin;
}

.game-over p {
  font-size: 5vmin;
}

.btn-restart {
  color: #000 !important;
  margin-top: 10vmin;
  width: 40%;
  height: 12vmin;
  font-size: 5vmin;
}

.animated {
  animation: respire 2s ease-in-out infinite;
}

@keyframes respire {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (orientation: landscape) {
  .hud {
    font-size: 6vmin;
  }
  canvas {
    height : 80vmin;
    width: 160vmin;
    aspect-ratio: 800 / 400;
  }
}