/* ===================================================
   🌿 Billionaire Tax Quiz - Cleaned & Commented Stylesheet
   Organized by sections: Reset, Layout, Components, Buttons, Responsive
   =================================================== */

/* ========== RESET & BASE ==========
   General page settings and font
*/
body {
  font-family: 'Aller', 'Comic Neue', 'Segoe UI', sans-serif;
  background: none;
  color: #333;
  padding: 1rem;
  box-sizing: border-box;
  text-align: center;
}

h1 {
  text-align: center;
  color: #ff6f61;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* ========== LAYOUT COMPONENTS ========== */
.card {
  background: #e9f0d0;
  padding: 1.2rem;
  border-radius: 24px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  text-align: center;
}

.icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.question-box {
  background-color: #3b62a9;
  color: white;
  border-radius: 16px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.further {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #f9edbc;
  border-radius: 12px;
  font-style: italic;
  color: #5e412f;
}

.illustration-placeholder {
  margin: 0.8rem 0;
  height: 120px;
  background: #fdf3e7;
  border: 2px dashed #ffb347;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c97b37;
  font-style: italic;
}

/* ========== BUTTONS ========== */
button {
  display: block;
  width: 100%;
  padding: 0.6rem;
  margin: 0.4rem 0;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: white;
  color: #6786c0;
  font-weight: bold;
  transition: background 0.2s;
}

button:hover {
  background: #eadbfb;
}

button.correct {
  background: #e6f4ea !important;
  color: #1dab44;
}

button.incorrect {
  background: #fce8e6 !important;
  color: #a44b40;
}

button.disabled {
  cursor: default;
  pointer-events: none;
}

button.disabled:hover {
  background: #eadbfb;
}

.next-btn,
.learn-btn {
  background: #1dab44;
  color: white;
}

.next-btn:hover,
.learn-btn:hover {
  background: #77be6a;
}

.share-btn:hover {
  background: #6786c0;
}

.share-btn {
  background: #3b62a9;
  color: white;
  border: none;
  font-weight: bold;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

/* ========== PROGRESS BAR ========== */
.progress-container {
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  height: 10px;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.progress-bar {
  background-color: #3b62a9;
  height: 100%;
  transition: width 0.3s ease;
}

/* ========== LAYOUT: IMAGE + ANSWERS ========== */
.answer-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.image-box {
  width: 100%;
  text-align: center;
}

.image-box img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.answer-block {
  width: 100%;
}

/* Desktop layout: 40% image / 60% content */
@media (min-width: 768px) {
  .answer-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .image-box {
    width: 40%;
  }
  .answer-block {
    width: 60%;
  }
  button {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========== RESPONSIVE BUTTON POSITIONING ========== */
.next-mobile-only {
  display: block;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .next-mobile-only {
    display: none;
  }
}

/* ========== HEADER LOGO ========== */
header {
  position: relative;
}

.logo-left,
.logo-right {
  position: absolute;
  top: 0.5rem;
  height: 40px;
}

.logo-left {
  left: 0.5rem;
}

.logo-right {
  right: 0.5rem;
}

#main-title {
  padding: 0 3rem; /* Ensure space between logos and title */
}
