/* Base styles */
body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #fff;
  margin: 0;
  padding: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

/* Screen container for intro, email, rules, final */
.center-box {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  border: 4px solid #ff00ff; /* bright neon pink */
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff; /* stronger glow */
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}


@media (max-width: 480px) {
  .center-box {
    margin: 20px auto;
    padding: 15px;
    min-height: auto;
  }
}

/* Screens */
.screen {
  display: none;
}
.screen.active {
  display: block;
}

/* Form inputs */
input[type="email"] {
  padding: 12px;
  font-size: 16px;
  margin: 12px auto;
  width: 90%;
  max-width: 300px;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Buttons */
button {
  padding: 12px 24px;
  font-size: 16px;
  margin: 10px auto;
  background-color: #ff3366;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  width: 90%;
  max-width: 300px;
}
button:hover {
  background-color: #ff0033;
}

/* Error text */
.error {
  color: #ff4d4d;
  font-size: 14px;
}

/* Instructions with checkmarks */
.instruction-list {
  text-align: left;
  padding-left: 0;
  margin-top: 10px;
  margin-bottom: 20px;
  list-style: none;
}
.instruction-list li::before {
  content: '✔';
  color: #00ff99;
  font-weight: bold;
  margin-right: 10px;
}
.instruction-list li {
  margin: 8px 0;
  font-size: 16px;
}

@media (max-width: 480px) {
  .instruction-list li {
    font-size: 14px;
  }
}


/* Hand images */
.hand-row {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  flex-wrap: wrap;
}
.hand {
  width: 80px;
  height: 80px;
  border: 3px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border 0.3s ease;
}
.hand.selected {
  border: 9px solid #3498db; /* blue */
}
.hand.ai-selected {
  border: 9px solid #e74c3c; /* red */
}

/* Game info */
#timer, #round-info, #score {
  margin: 10px 0;
  font-size: 18px;
}

#result {
  margin-top: 20px;
  font-size: 20px;
  color: #2ecc71;
}

.hidden {
  display: none;
}

/* Responsive hand scaling */
@media (max-width: 480px) {
  .hand {
    width: 60px;
    height: 60px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }

  h1, h2 {
    font-size: 20px;
  }
}
button:disabled {
  background-color: gray;
  cursor: not-allowed;
  opacity: 0.7;
}


#nextRoundBtn {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 16px;
  background-color: #00cc99;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  width: 90%;
  max-width: 300px;
}

#nextRoundBtn:hover {
  background-color: #00aa77;
}

@media (max-width: 480px) {
  #nextRoundBtn {
    font-size: 14px;
    padding: 10px;
  }
}
