:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --background-color: #ecf0f1;
  --text-color: #2c3e50;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
}

.container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 800px;
  width: 90%;
}

.game-title {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mode-selection {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mode-selection button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-selection button.active {
  background-color: var(--secondary-color);
  transform: scale(1.05);
}

.score-board {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.score-card {
  background-color: white;
  padding: 1rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
}

.score-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.score-card span {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.vs {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

.choices {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.choice {
  font-size: 2.5rem;
  padding: 1.5rem;
  border: none;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.choice:hover {
  transform: scale(1.1) rotate(15deg);
  background-color: var(--secondary-color);
  color: white;
}

.result {
  text-align: center;
  margin-bottom: 2rem;
  min-height: 1.5em;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.control-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-btn:hover {
  background-color: var(--secondary-color);
  transform: scale(1.05);
}

.game-mode {
  display: none;
}

.game-mode.active {
  display: block;
}

#player-turn {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: bold;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 15px;
  width: 80%;
  max-width: 500px;
  position: relative;
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.rules-content {
  margin-top: 1rem;
}

.rules-content p {
  margin: 1rem 0;
  font-weight: bold;
}

.rules-content ul {
  list-style-type: none;
  padding-left: 1rem;
}

.rules-content li {
  margin: 0.5rem 0;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .choices {
    gap: 1rem;
  }

  .choice {
    font-size: 2rem;
    padding: 1rem;
  }
}
