@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

body {
  margin: 0;
  background-color: rgb(39, 39, 39);
  display: flex;
  justify-content: center;
  font-family: "Courier New", Courier, monospace;
}

canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 25px;
  z-index: 10;
}

.game-over-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 700px;
  background-color: rgb(56, 56, 56);
  margin-top: -4px;
  z-index: 11;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: whitesmoke;
}

.game-over-container h1 {
  margin-bottom: 65px;
  font-family: "Press Start 2P", cursive;
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.game-over-container button {
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
}

button {
  cursor: pointer;
  color: rgb(0, 0, 0);
  background-color: rgb(195, 195, 195);
  border: none;
  height: 50px;
  width: 200px;
  border-radius: 5px;
  font-size: 20px;
  font-family: "Courier New", Courier, monospace;
}

button:hover {
  filter: brightness(80%);
}

button:active {
  transform: scale(0.95);
}

button:focus {
  outline: none;
}

.start-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 700px;
  background-color: rgb(56, 56, 56);
  z-index: 11;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: whitesmoke;
  margin-top: 25px;
}

.start-screen h1 {
  font-family: "Press Start 2P", cursive;
  font-size: 35px;
  margin-bottom: 50px;
  text-align: center;
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}

button {
  font-family: "Press Start 2P", cursive;
  cursor: pointer;
  color: rgb(0, 0, 0);
  background-color: rgb(195, 195, 195);
  border: none;
  height: 50px;
  width: 200px;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}

button:hover {
  filter: brightness(80%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: scale(0.95) translateY(0);
}

.hidden {
  display: none;
}

.social-buttons {
  display: flex;
  gap: 25px;
  margin-top: 15px;
}

.social-buttons a {
  text-decoration: none;
  font-size: 40px;
  color: whitesmoke;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-buttons a:hover {
  transform: scale(1.2);
  color: #171515;
}

.social-buttons a:nth-child(2):hover {
  color: #0e76a8;
}

/* Montior and Larger */
@media screen and (min-width: 1800px) {
  canvas,
  .start-screen {
    margin-top: 100px;
  }

  .game-over-container {
    margin-top: 100px;
  }
}

/* Large Smartphone (Vertical) */
@media screen and (max-width: 500px) {
  canvas,
  .start-screen {
    width: 100%;
    height: 700px;
    margin-top: 50px;
  }

  .game-over-container {
    width: 100%;
    height: 700px;
    margin-top: 50px;
  }
}
