html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: system-ui, sans-serif;
}

body {
  background-image: url('images/background.jpg'); /* your image path */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quiz-box {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 620px;
  height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#welcome-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h2, h4 {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 1rem;
}

.card {
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.option-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid;
  margin: 6px;
  display: inline-block;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  position: relative;
}

.option-circle.selected {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.option-circle::after {
  content: "";
  display: none;
  width: 10px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -5px;
  margin-top: -7px;
}

.option-circle.selected::after {
  display: block;
}

.option-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  margin: 4px;
  flex: 1 1 50px;
  min-width: 50px;
}

.legend {
  gap: 4px;
  margin-bottom: 1.5rem;
}

/* Option colors */
.option-red { border-color: #f87171; background-color: rgba(248, 113, 113, 0.2); }
.option-orange { border-color: #fbbf24; background-color: rgba(251, 191, 36, 0.2); }
.option-gray { border-color: #d1d5db; background-color: rgba(209, 213, 219, 0.3); }
.option-green { border-color: #4ade80; background-color: rgba(74, 222, 128, 0.2); }
.option-teal { border-color: #2dd4bf; background-color: rgba(45, 212, 191, 0.2); }

#next-btn {
  font-size: 1rem;
  padding: 0.6rem;
  border-radius: 6px;
  font-weight: 500;
}

#next-btn:disabled {
  background-color: #ccc;
  border-color: #ccc;
}

#validation-warning {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 500px), (max-height: 600px) {
  .quiz-box {
    height: 100vh;
    padding: 1rem;
  }

  .option-circle {
    width: 30px;
    height: 30px;
  }

  .option-container {
    font-size: 0.7rem;
    margin: 4px;
  }

  h2, h4 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.85rem;
  }

  #next-btn {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}
