/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  text-align: center;
  background-color: #000; /* Black background */
  color: #FFD700; /* Gold text color */
  margin: 0;
  padding: 0;
  height: 100%;
}

#app {
  margin: 20px auto;
  max-width: 600px;
  padding: 20px;
  background-color: #222; /* Dark background */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

#card-image {
  transition: transform 0.3s ease;
}

#card-image.reversed {
  transform: rotate(180deg);
}


#card-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
  border: 3px solid #FFD700; /* Gold border */
}

#choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice {
  padding: 15px;
  background: #333; /* Dark background for choices */
  border: 2px solid #444; /* Darker border */
  cursor: pointer;
  border-radius: 8px;
  color: #FFD700;
  font-size: 1.1em;
  transition: background 0.3s, transform 0.3s;
}

.choice:hover {
  background: #444;
  transform: scale(1.05);
}

.choice.selected {
  background: #2e2e2e;
  border-color: #6c6;
}

.choice.correct {
  background: #28a745; /* Green for correct */
  border-color: #155724;
  color: #fff;
}

.choice.incorrect {
  background: #dc3545; /* Red for incorrect */
  border-color: #721c24;
  color: #fff;
}

#results {
  margin-top: 30px;
  text-align: center;
}

#score {
  font-size: 1.5em;
  margin-bottom: 20px;
}

#play-again {
  padding: 12px 25px;
  background: #FFD700; /* Gold button */
  color: #000;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1.2em;
  transition: background 0.3s;
}

#play-again:hover {
  background: #e0b200; /* Darker gold on hover */
}

#timer {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
}

.incorrect-answer {
  margin-bottom: 20px;
  padding: 15px;
  background: #333;
  border: 1px solid #444;
  border-radius: 8px;
  color: #FFD700;
}

.incorrect-answer-image {
  max-width: 150px;
  display: block;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 2px solid #FFD700;
}

#incorrect-answers p {
  margin: 5px 0;
  color: #FFD700;
}

/* Progress Bar Styling */
#progress-bar-container {
  margin-top: 20px;
  width: 100%;
  background: #444;
  padding: 3px;
  border-radius: 5px;
}

progress {
  width: 100%;
  height: 20px;
  border-radius: 5px;
  border: none;
  background-color: #333;
  appearance: none;
}

progress::-webkit-progress-bar {
  background-color: #444;
}

progress::-webkit-progress-value {
  background-color: #FFD700; /* Gold color for progress */
}

/* Button Styles */
.btn {
  padding: 12px 25px;
  background: #FFD700; /* Gold button */
  color: #000;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1.2em;
  transition: background 0.3s;
}

.btn:hover {
  background: #e0b200; /* Darker gold on hover */
}

/* Button Group Layout */
.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2; /* Adjust transparency if needed */
  pointer-events: none; /* Makes sure clicks go through */
}

/* Responsiveness for small devices */
@media screen and (max-width: 600px) {
  #app {
    padding: 15px;
    margin: 10px;
  }

  #card-image {
    max-width: 100%;
  }

  .choice {
    font-size: 1em;
    padding: 12px;
  }

  #play-again {
    font-size: 1.1em;
    padding: 10px 20px;
  }

  #timer {
    font-size: 1.2em;
  }
}
