/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #f0f2f5, #d4e3ff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background-color: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 320px;
}

.container h4 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

#turn {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.buttons button {
  width: 80px;
  height: 80px;
  font-size: 32px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  background-color: #f5f5f5;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.buttons button:hover:not(:disabled) {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.buttons button:disabled {
  cursor: not-allowed;
  background-color: #ddd;
}

#result {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

#reset {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#reset:hover {
  background-color: #0056b3;
}


/* Win Animation */
.win-animate {
  animation: blink 0.6s ease-in-out infinite alternate;
}

@keyframes blink {
  0% { transform: scale(1); background-color: #fff5cc; }
  100% { transform: scale(1.1); background-color: #ffe97f; }
}

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

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.close-btn {
  padding: 8px 20px;
  font-size: 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.close-btn:hover {
  background-color: #0056b3;
}

audio {
    display: none;
}