#quiz-container {
  max-width: 800px;
  margin: 40px auto;
  font-family: Arial, sans-serif;
  padding: 0 20px;
}

#quiz-form h2 {
  text-align: center;
  margin-bottom: 5px;
}

.tagline {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.question {
  margin-bottom: 20px;
}
.question p {
  font-weight: bold;
  margin-bottom: 10px;
}
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.options label {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.options label.selected {
  background: #e0f7fa;
  border-color: #00796b;
}
.options input {
  display: none;
}
.options span {
  margin-left: 8px;
  font-size: 14px;
}

#submit-btn {
  display: block;
  margin: 30px auto;
  padding: 12px 24px;
  font-size: 16px;
  background: #00796b;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#submit-btn:hover {
  background: #005a4f;
}

#result {
  display: none;
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  font-family: Arial, sans-serif;
  padding: 0 20px;
}

.progress-bar {
  width: 100%;
  background: #f0f0f0;
  border-radius: 25px;
  overflow: hidden;
  margin: 20px 0;
}
.progress {
  width: 0;
  height: 20px;
  background: #00796b;
  transition: width 5s linear;
}

/* Responsive share buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.share-buttons a {
  flex: 1 1 150px;
  max-width: 200px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.share-buttons a.facebook { background: #3b5998; }
.share-buttons a.twitter  { background: #1da1f2; }

@media (max-width: 600px) {
  .share-buttons a {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* Score Legend */
.legend {
  text-align: left;
  display: inline-block;
  margin-top: 20px;
}
.legend h3 {
  margin-bottom: 10px;
}
.legend ul {
  list-style: none;
  padding: 0;
}
.legend li {
  margin: 4px 0;
}
