/* Proxima Nova Font */
/* @font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNova-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNova-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
} */ 

*{box-sizing:border-box;margin:0;padding:0;font-family:'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;}

/* Prevent text selection for native app feel */
body, button, .card, .homepage, .about-page, .about-content {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-color: #c94a2a;
  --bg-color-allas-ratt: #c94a2a;
  --bg-color-gladje: #2681C4;
  --bg-color-demokrati: #007C5E;
  --bg-color-rent-spel: #05A5E2;
  --card-bg: #ffffff;
  --option-bg: #f5f5f5;
  --text-dark: #1a1a1a;
  --text-muted: #333;
  --home-bg-top: #c5e5f3;
  --home-bg-bottom: #2e7dab;
  --home-text: #0d3a54;
  --focus-color: #005a9c;
}

/* Twemoji - consistent emoji appearance on non-Apple platforms */
img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
}

/* Landscape orientation overlay for mobile */
.landscape-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--home-bg-top), var(--home-bg-bottom));
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.landscape-overlay-icon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: rotatePhone 1.5s ease-in-out infinite;
}

@keyframes rotatePhone {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-90deg); }
}

.landscape-overlay-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--home-text);
  line-height: 1.5;
}

/* Show overlay on mobile devices in landscape - multiple conditions for compatibility */
/* When width > height and it's a small screen */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .landscape-overlay { display: flex !important; }
}

@media screen and (orientation: landscape) and (max-height: 450px) {
  .landscape-overlay { display: flex !important; }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
  .landscape-overlay { display: flex !important; }
}

@media screen and (orientation: landscape) and (max-height: 550px) {
  .landscape-overlay { display: flex !important; }
}

@media screen and (orientation: landscape) and (max-height: 600px) and (max-width: 1000px) {
  .landscape-overlay { display: flex !important; }
}

/* Fallback: any landscape with aspect ratio typical of phones */
@media screen and (orientation: landscape) and (min-aspect-ratio: 16/9) and (max-height: 700px) {
  .landscape-overlay { display: flex !important; }
}

/* Hide on tablets and desktops */
@media screen and (min-height: 700px) {
  .landscape-overlay { display: none !important; }
}

@media screen and (orientation: portrait) {
  .landscape-overlay { display: none !important; }
}

/* WCAG: Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .landscape-overlay-icon {
    animation: none !important;
  }
  
  .speech-bubble {
    animation: none !important;
  }
  
  .splash-logo {
    animation: none !important;
    opacity: 1 !important;
    transform: scale(1) !important;
  }
}

/* WCAG: Support high contrast mode */
@media (prefers-contrast: more) {
  :root {
    --text-dark: #000000;
    --text-muted: #000000;
    --home-text: #000000;
    --option-bg: #ffffff;
  }
  
  .category-btn,
  .info-btn,
  .back-btn,
  .next-btn {
    border: 2px solid #000000 !important;
  }
  
  .option {
    border: 2px solid #000000;
  }
}

/* WCAG: Visible focus indicators (2.4.7) */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

.category-btn:focus-visible,
.info-btn:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 90, 156, 0.3);
}

.back-btn:focus-visible,
.next-btn:focus-visible,
.home-back-btn:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 90, 156, 0.3);
}

/* Skip link for keyboard users (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--focus-color);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

html {
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: var(--home-bg-top);
}

body{
  min-height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, var(--home-bg-top), var(--home-bg-bottom));
  color: #fff;
  font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  /* WCAG: Ensure minimum text size for readability */
  font-size: 100%;
  line-height: 1.5;
}

/* ================================
   SPLASH SCREEN STYLES
   ================================ */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--home-bg-top), var(--home-bg-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-screen.hidden {
  display: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.splash-logo {
  width: 120px;
  height: auto;
  animation: zoomIn 1.5s ease-out forwards;
}

.splash-logo img {
  width: 100%;
  height: auto;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Modern Google-style spinner */
.splash-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  animation: spinner-rotate 1.4s linear infinite;
}

.splash-spinner::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #fff;
  box-sizing: border-box;
  animation: spinner-dash 1.4s ease-in-out infinite;
}

@keyframes spinner-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinner-dash {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error message styling */
.error-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 20px;
  width: 100%;
}

.error-message.visible { display: flex; }
.error-text { 
  font-size: 17px; 
  color: var(--home-text); 
  margin: 0; 
  font-weight: 500;
  line-height: 1.4;
  display: block;
  width: 100%;
}

.retry-btn {
  background: var(--home-bg-bottom);
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================================
   HOMEPAGE STYLES
   ================================ */
.homepage {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: none;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(to bottom, var(--home-bg-top), var(--home-bg-bottom));
  padding: 40px 24px 30px;
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.homepage.active {
  display: flex;
}

.speech-bubble {
  font-size: 73px;
  margin-bottom: 0px;
  margin-top: -15px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.homepage-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--home-text);
  margin-bottom: 10px;
  text-align: center;
}

.homepage-description {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--home-text);
  text-align: center;
  margin-bottom: 24px;
  max-width: 360px;
}

.category-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin-bottom: 24px;
}

.category-btn {
  background: #fff;
  border: none;
  border-radius: 30px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  /* WCAG 2.5.5: Minimum touch target size 44x44px */
  min-height: 48px;
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.category-btn:active {
  transform: scale(0.98);
}

.info-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 58, 84, 0.85);
  border: none;
  border-radius: 30px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  /* WCAG 2.5.5: Minimum touch target size 44x44px */
  min-height: 48px;
}

.info-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.info-btn:hover {
  background: rgba(13, 58, 84, 0.95);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.homepage-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* ================================
   GAME PAGE STYLES
   ================================ */
.game-page {
  display: none;
  flex-direction: column;
  background: linear-gradient(to bottom, var(--home-bg-top), var(--home-bg-bottom));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
}

.game-page.active {
  display: flex;
}

.question-type-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.question-type-page.active {
  display: flex;
}

/* Page transitions with smooth fade */
.homepage,
.question-type-page,
.game-page,
.about-page {
  transition: opacity 0.25s ease-in-out;
  opacity: 1;
}

.homepage.fade-out,
.question-type-page.fade-out,
.game-page.fade-out,
.about-page.fade-out {
  opacity: 0;
}

.home-back-btn {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 10;
}

.type-buttons {
  margin-bottom: 60px;
}

/* ================================
   ABOUT PAGE STYLES
   ================================ */
.about-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--home-bg-top), var(--home-bg-bottom));
  padding-top: 60px;
  overflow-y: auto;
}

.about-page.active {
  display: flex;
}

.about-logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.about-logo img {
  width: 100%;
  height: auto;
}

.about-content {
  width: 100%;
  max-width: 400px;
  padding: 0 10px 40px;
}

/* Wider about content on tablets and desktops */
@media (min-width: 768px) {
  .about-content {
    max-width: 700px;
    padding: 0 24px 40px;
  }
}

@media (min-width: 1024px) {
  .about-content {
    max-width: 800px;
  }
}

.about-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--home-text);
  margin-bottom: 20px;
  text-align: center;
}

.about-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--home-text);
  margin-top: 28px;
  margin-bottom: 14px;
  text-align: center;
}

.about-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--home-text);
  text-align: left;
  margin-bottom: 16px;
}

.about-intro {
  font-weight: 600;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  /* WCAG 2.5.5: Minimum touch target size 44x44px */
  min-height: 48px;
}

.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.back-btn:active {
  transform: scale(0.97);
}

.back-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-dark);
}

.progress {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.95;
}

/* Carousel */
.carousel {
  position: relative;
  flex: 1;
  overflow: visible;
  padding-bottom: 30px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Card Styling */
.card {
  position: absolute;
  top: calc(50% - 30px);
  left: 50%;
  width: 80%;
  height: 83%;
  max-height: 83%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  border-radius: 18px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
  user-select: none;
  cursor: grab;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

/* Category-colored cards - dynamic classes from API */
.card.card-category-0 { background: #c94a2a; }
.card.card-category-1 { background: #2681C4; }
.card.card-category-2 { background: #007C5E; }
.card.card-category-3 { background: #05A5E2; }

/* White text for colored cards */
.card.card-category-0 .card-title,
.card.card-category-0 .card-description,
.card.card-category-0 .card-question,
.card.card-category-1 .card-title,
.card.card-category-1 .card-description,
.card.card-category-1 .card-question,
.card.card-category-2 .card-title,
.card.card-category-2 .card-description,
.card.card-category-2 .card-question,
.card.card-category-3 .card-title,
.card.card-category-3 .card-description,
.card.card-category-3 .card-question {
  color: #ffffff;
}

/* Options stay white/light for readability on colored cards */
.card.card-category-0 .option,
.card.card-category-1 .option,
.card.card-category-2 .option,
.card.card-category-3 .option {
  background: rgba(255,255,255,0.95);
  color: var(--text-dark);
}

.carousel-track.is-dragging .card {
  cursor: grabbing;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-description {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.28;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-question {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.28;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  background: var(--option-bg);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-dark);
}

/* Footer */
.footer {
  padding: 0px 16px 16px;
  margin-top: -70px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.next-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  top: -16px;
  /* WCAG 2.5.5: Minimum touch target size 44x44px */
  min-height: 48px;
}

.next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.next-btn:active {
  transform: scale(0.97);
}

.next-btn svg {
  width: 18px;
  height: 18px;
}

/* ================================
   TABLET STYLES (768px+)
   ================================ */
@media (min-width: 768px) {
  .homepage {
    padding: 80px 40px 60px;
  }
  
  .speech-bubble {
    font-size: 90px;
  }
  
  .homepage-title {
    font-size: 44px;
  }
  
  .homepage-description {
    font-size: 19px;
    line-height: 1.45;
    max-width: 470px;
  }
  
  .category-buttons {
    max-width: 450px;
  }
  
  .category-btn {
    padding: 20px 28px;
    font-size: 18px;
  }
  
  .header {
    padding: 24px 40px;
  }
  
  .back-btn {
    font-size: 16px;
    padding: 10px 16px;
  }
  
  .progress {
    font-size: 16px;
  }
  
  .card {
    width: 80%;
    max-width: 650px;
    height: 82%;
    max-height: 580px;
    padding: 32px 36px;
    border-radius: 20px;
  }
  
  .card-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  
  .card-description {
    font-size: 17px;
    margin-bottom: 28px;
    line-height: 1.28;
  }
  
  .card-question {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.28;
  }
  
  .options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  
  .option {
    padding: 15px 20px;
    font-size: 15px;
    min-height: 70px;
    display: flex;
    align-items: center;
    border-radius: 12px;
  }
  
  .footer {
    padding: 20px 40px 32px;
  }
  
  .next-btn {
    font-size: 16px;
    padding: 14px 24px;
  }
  
  .home-back-btn {
    top: 24px;
    left: 40px;
  }
}

/* ================================
   DESKTOP STYLES (1024px+)
   ================================ */
@media (min-width: 1024px) {
  .homepage {
    padding: 100px 60px 80px;
  }
  
  .speech-bubble {
    font-size: 100px;
  }
  
  .homepage-title {
    font-size: 52px;
  }
  
  .homepage-description {
    font-size: 20px;
    line-height: 1.45;
    max-width: 580px;
  }
  
  .category-buttons {
    max-width: 500px;
    gap: 16px;
  }
  
  .category-btn {
    padding: 22px 32px;
    font-size: 19px;
  }
  
  .header {
    padding: 28px 60px;
  }
  
  .back-btn {
    font-size: 17px;
    padding: 12px 20px;
  }
  
  .progress {
    font-size: 17px;
  }
  
  .card {
    width: 75%;
    max-width: 850px;
    height: 80%;
    max-height: 620px;
    padding: 40px 48px;
    border-radius: 24px;
  }
  
  .card-title {
    font-size: 30px;
    margin-bottom: 24px;
  }
  
  .card-description {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 32px;
  }
  
  .card-question {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 24px;
  }
  
  .options {
    gap: 16px;
  }
  
  .option {
    padding: 19px 24px;
    font-size: 16px;
    border-radius: 14px;
    min-height: 80px;
  }
  
  .footer {
    padding: 24px 60px 40px;
  }
  
  .next-btn {
    font-size: 17px;
    padding: 16px 28px;
  }
  
  .home-back-btn {
    top: 28px;
    left: 60px;
  }
}

/* ================================
   LARGE DESKTOP (1400px+)
   ================================ */
@media (min-width: 1400px) {
  .card {
    max-width: 900px;
    max-height: 620px;
    padding: 48px 56px;
  }
  
  .card-title {
    font-size: 32px;
  }
  
  .card-description {
    font-size: 21px;
    font-weight: 600;
  }
}

/* ================================
   SMALL PHONES (height < 700px)
   Optimize card to fit content without scrolling
   Only apply to mobile devices (max-width: 767px)
   ================================ */
@media (max-height: 700px) and (max-width: 767px) {
  .card {
    height: 88%;
    max-height: 88%;
    top: calc(50% - 20px);
    padding: 16px 16px;
  }
  
  .card-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .card-description {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.25;
  }
  
  .card-question {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.25;
  }
  
  .options {
    gap: 6px;
  }
  
  .option {
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.25;
  }
  
  .header {
    padding: 8px 16px;
  }
  
  .footer {
    padding: 0px 16px 12px;
    margin-top: -60px;
  }
}

/* Extra small phones (height < 600px) - only mobile */
@media (max-height: 600px) and (max-width: 767px) {
  .card {
    height: 90%;
    max-height: 90%;
    top: calc(50% - 15px);
    padding: 12px 14px;
  }
  
  .card-title {
    font-size: 15px;
    margin-bottom: 6px;
  }
  
  .card-description {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.25;
  }
  
  .card-question {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.25;
  }
  
  .options {
    gap: 5px;
  }
  
  .option {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* ================================
   SHORT DESKTOP SCREENS
   For desktop browsers resized to short height
   ================================ */
@media (max-height: 750px) and (min-width: 768px) {
  .card {
    width: 80%;
    height: 88%;
    max-height: 88%;
    top: calc(50% - 15px);
    padding: 28px 36px;
  }
  
  .card-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .card-description {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.28;
  }
  
  .card-question {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.28;
  }
  
  .option {
    padding: 11px 18px;
    min-height: 60px;
  }
  
  .header {
    padding: 8px 16px;
  }
  
  .footer {
    padding: 0px 16px 10px;
    margin-top: -50px;
  }
}

@media (max-height: 650px) and (min-width: 768px) {
  .card {
    width: 85%;
    height: 92%;
    max-height: 92%;
    top: calc(50% - 10px);
    padding: 20px 28px;
  }
  
  .card-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .card-description {
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.28;
  }
  
  .card-question {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.28;
  }
  
  .option {
    padding: 9px 14px;
    min-height: 50px;
    font-size: 14px;
  }
  
  .footer {
    margin-top: -40px;
  }
}