/* Modern Reset and Theme */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #2c3e50;
}

#start-page, #quiz-page, #end-page {
  max-width: 650px;
  margin: 40px auto;
  padding: 40px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

h1 {
  color: #3498db;
  margin-bottom: 20px;
  font-size: 2rem;
}

/* Input Styling */
input[type="text"] {
  padding: 12px 15px;
  font-size: 16px;
  width: 80%;
  max-width: 300px;
  margin: 20px 0;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  border-color: #3498db;
}

/* Button Styling */
button {
  padding: 12px 30px;
  margin: 10px;
  font-size: 16px;
  font-weight: bold;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 50px; /* Rounded pill shape */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

button:hover:not(:disabled) {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  box-shadow: none;
}

#restart-button {
  background-color: #2ecc71;
}

#restart-button:hover {
  background-color: #27ae60;
}

/* Quiz Elements */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 25px auto;
  max-width: 550px;
}

.option {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border: 2px solid #edf2f7;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.option:hover {
  background-color: #eef2f7;
  border-color: #3498db;
}

.option input {
  margin-right: 15px;
  transform: scale(1.2);
}

pre {
  text-align: left;
  background-color: #1e272e;
  color: #ffdd59; /* Bright yellow for code visibility */
  padding: 20px;
  border-radius: 10px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  margin: 20px 0;
}

#explanation {
  margin-top: 25px;
  padding: 20px;
  background-color: #f0f9ff;
  border-left: 6px solid #3498db;
  text-align: left;
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

#scoreboard {
  display: inline-block;
  padding: 8px 20px;
  background-color: #2c3e50;
  color: #ecf0f1;
  border-radius: 20px;
  font-size: 18px;
  margin-top: 10px;
}