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

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    /* Dark color */ #16213e 50%,
    /* Dark blue */ #0f3460 100% /* Bluish */
  );
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  z-index: 0; /* Ensure body is behind quiz container */
  /* Add flexbox for centering */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Quiz container remains white */
.quiz-container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
  position: relative;
  z-index: 1; /* Ensure it's above the background */
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

#question {
  margin-bottom: 1.5rem;
  color: #444;
}

.option {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.option:hover {
  background-color: #e8e8e8;
}

.selected {
  background-color: #59a1e5;
}

#navigation {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}

button {
  padding: 0.5rem 1rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  background-color: #45a049;
}

#result {
  text-align: center;
}

input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}
#answers-container {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 5px;
}

.answer-item {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.correct {
  background-color: #e6ffe6;
}

.incorrect {
  background-color: #ffe6e6;
}

/* Stars Keith Clark https://codepen.io/keithclark/pen/DQdKbg 
----------------------------------------------------------------*/

#space,
.stars {
  overflow: hidden;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.stars {
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      #eee,
      rgba(0, 0, 0, 0)
    ),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: zoom 20s infinite;
  opacity: 0;
}

.stars:nth-child(1) {
  background-position: 50% 50%;
  animation-delay: 0s;
}
.stars:nth-child(2) {
  background-position: 20% 60%;
  animation-delay: 1s;
}
.stars:nth-child(3) {
  background-position: -20% -30%;
  animation-delay: 2s;
}
.stars:nth-child(4) {
  background-position: 40% -80%;
  animation-delay: 3s;
}
.stars:nth-child(5) {
  background-position: -20% 30%;
  animation-delay: 4s;
}

@keyframes zoom {
  0% {
    opacity: 0.5;
    transform: scale(1);
    animation-timing-function: ease-in;
  }
  85% {
    opacity: 1;
    transform: scale(1.8);
    animation-timing-function: linear;
  }
  100% {
    opacity: 0.2;
    transform: scale(2.1);
  }
}
/* Add these styles at the end of styles.css */

/* Welcome page styling */
.welcome-container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 600px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.welcome-content {
  text-align: center;
}

.welcome-content h1 {
  color: #333;
  margin-bottom: 1.5rem;
}

.welcome-content p {
  color: #444;
  margin: 1rem 0;
  line-height: 1.6;
}

.welcome-content ul {
  list-style-type: disc;
  text-align: left;
  margin: 1rem auto;
  padding-left: 2rem;
  max-width: 90%;
  color: #444;
}

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

#start-quiz-btn {
  padding: 0.75rem 2rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

#start-quiz-btn:hover {
  background-color: #45a049;
}
.welcome-container {
  display: block; /* Should be visible initially */
}
.quiz-container {
  display: none; /* Should be hidden initially */
}
