body {
  text-align: center;
  background: linear-gradient(135deg, #011F3F 0%, #1e3c72 100%);
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

#level-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 2rem;
  margin: 3% 0 1% 0;
  color: #FEF2BF;
  text-shadow: 0 0 15px rgba(254, 242, 191, 0.6);
}

#start-message {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  margin: 1% 0 3% 0;
  color: #FEF2BF;
  text-shadow: 0 0 10px rgba(254, 242, 191, 0.4);
  opacity: 0.8;
}

.container {
  display: block;
  width: 50%;
  margin: auto;
}

.btn {
  margin: 25px;
  display: inline-block;
  height: 200px;
  width: 200px;
  border: 8px solid #333;
  border-radius: 20%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.game-over {
  background: rgba(255, 0, 0, 0.7);
  animation: flash 0.3s ease-in-out;
}

@keyframes flash {
  0%, 100% { background: rgba(255, 0, 0, 0.7); }
  50% { background: rgba(255, 0, 0, 0.9); }
}

.red {
  background: linear-gradient(135deg, #ff3333 0%, #cc0000 50%, #990000 100%);
}

.green {
  background: linear-gradient(135deg, #33ff33 0%, #00cc00 50%, #009900 100%);
}

.blue {
  background: linear-gradient(135deg, #3333ff 0%, #0000cc 50%, #000099 100%);
}

.yellow {
  background: linear-gradient(135deg, #ffff33 0%, #cccc00 50%, #999900 100%);
}

.pressed {
  box-shadow: 0 0 25px white, inset 0 0 15px rgba(255, 255, 255, 0.4);
  transform: scale(0.95);
  filter: brightness(1.3);
}

/* Modal Styles */
.modal {
  display: block;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  margin: 10% auto;
  padding: 30px;
  border: 3px solid #FEF2BF;
  border-radius: 20px;
  width: 80%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  color: #FEF2BF;
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(254, 242, 191, 0.6);
}

.modal-content p {
  color: #FEF2BF;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 15px 0;
}

.close-btn {
  color: #FEF2BF;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ff4757;
}

.got-it-button {
  background: linear-gradient(45deg, #2ed573 0%, #1e90ff 100%);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 25px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.got-it-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(45deg, #26d0ce 0%, #1a73e8 100%);
}

.instructions {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(254, 242, 191, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  color: #FEF2BF;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  line-height: 1.6;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.instructions p {
  margin: 10px 0;
}
