* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #333;
  font-family: Arial, sans-serif;
}

#game-container {
  position: relative;
  width: 375px;
  height: 667px;
}

#gameCanvas {
  background: #70c5ce;
  position: absolute;
  top: 0;
  left: 0;
}

#stats {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 20px;
  z-index: 1;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

#stats span {
  margin-right: 20px;
}

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

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 80%;
}

#failureModal .dramatic-text {
  color: red;
  font-size: 40px;
  animation: shake 0.5s ease-in-out infinite;
}

#proceedBtn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 18px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#proceedBtn:hover {
  background-color: #45a049;
}

#celebrationModal .modal-content {
  background: linear-gradient(135deg, #ffd700, #ff69b4);
  color: white;
  padding: 30px;
  max-width: 90%;
  width: 90vw;
}

.watch-container {
  margin: 20px 0;
  text-align: center;
}

.watch-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@media only screen and (max-width: 375px) {
  #game-container {
    width: 100%;
    height: 100vh;
  }
}

#startMessage {
  z-index: 2;
  pointer-events: none;
}

/* Add specific mobile styles */
@media only screen and (max-width: 480px) {
  #celebrationModal .modal-content {
    max-width: 95%;
    width: 95vw;
    padding: 20px;
  }

  #celebrationModal h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  #celebrationModal p {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .watch-container {
    margin: 15px 0;
  }
}
