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

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: url("start-game-background.jpg") no-repeat center center/cover;
  font-family: Raleway, sans-serif;
}

.card {
  background: rgba(20, 20, 20, 0.9);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.6);
  text-align: center;
  color: #ff4444;
  border: 2px solid #660000;
}

h1 {
  margin-bottom: 125px;
  color: #ff0000;
  text-shadow: 2px 2px 10px #660000;
  font-weight: 400;
  font-size: 50px;
  filter: url(#goo);
  position: relative;
}

.drop {
  width: 0.4em;
  height: 0.4em;
  border-radius: 0 100% 100% 100%;
  background-color: currentColor;
  position: absolute;
  top: 41%;
  animation: drop 3s infinite both;

  &:nth-child(1) {
    left: 57%;
  }

  &:nth-child(2) {
    left: 53%;
    animation-delay: -0.4s;
  }

  &:nth-child(3) {
    left: 60%;
    animation-delay: -1.5s;
  }

  &:nth-child(4) {
    left: 43%;
    animation-delay: -0.8s;
  }

  &:nth-child(5) {
    left: 46%;
    animation-delay: -1.3s;
  }
}

@keyframes drop {
  0% {
    transform: translateY(0) scaleX(0.85) rotate(45deg);
    animation-timing-function: ease-out;
  }
  60% {
    transform: translateY(120%) scaleX(0.85) rotate(45deg);
    animation-timing-function: ease-in;
  }
  80%,
  100% {
    transform: translateY(60vh) scaleX(0.85) rotate(45deg);
  }
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: "Press Start 2P", cursive;
}

.start-button {
  background-color: #990000;
  color: white;
  box-shadow: 0px 0px 15px rgba(255, 0, 0, 0.8);
}

.start-button:hover {
  background-color: #660000;
}

.instructions-button {
  background-color: #222222;
  color: white;
  box-shadow: 0px 0px 10px rgba(100, 100, 100, 0.8);
}

.instructions-button:hover {
  background-color: #111111;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background: #222;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(255, 0, 0, 0.8);
  text-align: center;
}

.instructions-image {
  max-width: 100%;
  height: auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: white;
  font-family: "Press Start 2P", cursive;
}

.close:hover {
  color: #ff4444;
}