

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  min-height: 100vh;
  color: #111;
  position: relative;
}
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none !important;
}


/* Background grid */
#start-container {
  background: rgba(255,255,255,0.9);
  padding: 40px 120px;
  border-radius: 64px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(1.5);
  animation: startReveal 1.6s ease-out forwards;
  position: relative;
  z-index: 2;
}
@keyframes startReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transform: scale(1.5);
  }
}

#start-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    #f4f2ef 0%,
    #e9e5df 50%,
    #ded8d1 100%
  );
}

#start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 5px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 5px);
  background-size: 120px 120px;
  pointer-events: none;
}


.author-link,
.author-link:visited,
.author-link:active {
  color: inherit;
  text-decoration: underline;
  font-style: italic;
}

.author-link:hover {
  opacity: 0.7;
}

#start-screen h1 {
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
#start-screen p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

.name-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
  width: 260px;
}

.name-input label {
  font-size: 14px;
  text-align: left;
  color: #333;
}

.name-input input {
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.2);
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
  background: white;
}

.name-input input:focus {
  border-color: #000;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 16px;
  cursor: pointer;
}

/* Hide default checkbox */
.toggle input {
  appearance: none;
  width: 50px;
  height: 26px;
  background: #ddd;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
}

/* Toggle circle */
.toggle input::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: black;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

/* Checked state */
.toggle input:checked {
  background: #86e07d;
}

.toggle input:checked::before {
  transform: translateX(24px);
}
#start-btn {
  background: black;
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

#start-btn:hover {
  opacity: 0.5;
}
.nav {
  
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 48px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  animation: navReveal 0.6s ease-out;
}

/* Left Title */
.nav-left {
  font-weight: 500;
  font-size: 20px; 
  letter-spacing: 0.5px;
}

/* Right Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Follow text */
.follow-text {
  font-size: 18px;
  opacity: 0.6;
}

/* ===== Base Style For All Icons ===== */
.icon-youtube,
.icon-facebook,
.icon-gmail {
  width: 36px;
  height: 36px;
 
  display: inline-flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;
  font-size: 18px;
  font-weight: 500;

  text-decoration: none;
  color: inherit;

  background: rgba(0, 0, 0, 0.06);
  transition:
    
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


/* Hover effect */
.icon-youtube:hover {
  background: #ff5f5f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 0, 0, 0.35);
}

.icon-facebook:hover {
  background: #00459f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(24, 119, 242, 0.35);
}

.icon-gmail:hover {
  background: #fd2e84;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(153, 3, 103, 0.35);
}


/* Entrance animation */
@keyframes navReveal {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
/* ===============================
   QUIZ SCREEN BASE
================================ */

#quiz-screen {
  min-height: 100vh;
  padding: 120px 60px 100px;
  background: #cfd6da;

  display: flex;
  justify-content: center;
  align-items: center;
}


/* ===============================
   MAIN CONTAINER
================================ */

.quiz-container {
  width: 1480px;
  max-width: 95%;
transform: scale(1.1);
  background: #e8e8e8;
  border-radius: 28px;

  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;

  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);
}


/* ===============================
   PASSAGE BOX (LEFT)
================================ */

.passage-box {
  background: #dddddd;
  border-radius: 18px;
  padding: 40px;

  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);

  display: flex;
  flex-direction: column;
}

.passage-box h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 25px;
}

.passage-box p {
  font-size: 22px;
  line-height: 1.75;
  color: #444;
}


/* ===============================
   QUESTION BOX (RIGHT)
================================ */

.question-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.question-box h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  margin-top: 30px;
  opacity: 0.7;
}

#question-text {
  font-size: 24px;
  margin-bottom: 30px;
  color: #444;
}


/* ===============================
   OPTIONS
================================ */

#options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  margin-bottom: 35px;
  cursor: pointer;
  padding: 10px 14px;
  
}

/* Custom radio */
#options input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #555;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: 0.25s ease;
  padding: 10px;
}

#options input[type="radio"]:checked {
  border-color: #000;
}

#options input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 50%;
  top: 5px;
  left: 5px;
}

/* Optional hover effect */
.option:hover {
  opacity: 0.85;
}


/* ===============================
   CHECK BUTTON
================================ */

#check-btn {
  align-self: flex-end;

  padding: 10px 54px;
  border-radius: 22px;

  border: 1px solid #999;
  background: #dcdcdc;

  font-size: 18px;
  cursor: pointer;
  transition: 0.25s ease;
}

#check-btn:hover:not(:disabled) {
  background: #555;
  color: white;
  border-color: #555;
}

#check-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ===============================
   EXPLANATION BOX
================================ */

#explanation-box {
  margin-top: 30px;
  padding: 22px;
  border-radius: 20px;

  background: #cddbd3;
  font-size: 18px;
  color: #232323;

  animation: fadeIn 0.4s ease;
}


/* ===============================
   BOTTOM BAR
================================ */

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: white;
  border-top: 1px solid rgba(0,0,0,0.08);

  padding: 12px 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow: 0 -4px 15px rgba(0,0,0,0.05);

  z-index: 1000;
}


#timer-display {
  font-size: 24px;
  font-weight: 500;
}

#end-btn {
  padding: 10px 26px;
  border-radius: 28px;

  border: 1px solid #333;
  background: white;

  font-size: 18px;
  cursor: pointer;
  transition: 0.25s ease;
}

#end-btn:hover {
  background: #333;
  color: white;
}


/* ===============================
   UTILITIES
================================ */

.hidden {
  display: none !important;
}

button {
  font-family: inherit;
}


/* ===============================
   ANIMATIONS
================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===============================
   Result Screen
================================ */
#result-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 40px;

  background: linear-gradient(
    120deg,
    #dcd6cf 0%,
    #d9ded8 40%,
    #cfe3da 100%
  );
}
.result-card {
  width: 100%;
  max-width: 820px;

  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 28px;
  padding: 60px 50px 50px;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);

  text-align: center;
  transform: scale(1.2);
}
#result-title {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  color: #1f1f1f;
  margin-bottom: 50px;
}
.congrats-line {
  font-size: 34px; 
  font-weight: 500px;
  color: #3a3a3a;
}

.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(255,255,255,0.75);
  border-radius: 18px;
color: #343434;
  padding: 35px 20px;
  margin-bottom: 45px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}
.stats div {
  flex: 1;
  text-align: center;
  position: relative;
}
.stats div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(0,0,0,0.08);
}
.stats p {
  font-size: 16px;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 12px;
}
.stats h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 600;
}
#result-screen button {
  padding: 12px 34px;

  border-radius: 30px;
  border: 1px solid #222;

  background: transparent;
  font-size: 14px;
  cursor: pointer;

  transition: 0.3s ease;
}

#result-screen button:hover {
  background: #222;
  color: white;
}

/* =====================================
   DONATION OVERLAY
===================================== */

@keyframes donationOverlayAppear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes donationCardSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#donation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: donationOverlayAppear 0.5s ease-out;
}

#donation-video-wrapper {
  width: 550px;
  max-width: 90%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

#donation-video {
  width: 100%;
  display: block;
  pointer-events: none; /* disables interaction */
}

/* Donation Card */

#donation-card {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.donation-card-inner {
  width: 700px;
  max-width: 90%;
position: relative;
  background: #f4f0e9;
  border-radius: 24px;
  padding: 50px;
  text-align: center;

  box-shadow: 0 30px 60px rgba(0,0,0,0.25);

  animation: donationCardSlideUp 0.6s ease-out 0.2s both;
}

#close-donation {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

#donation-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 24px;
}

#donation-card p {
  font-size: 28px;
  margin-bottom: 34px;
  color: #444;
  padding: 24px;
}

#donate-btn {
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  background: #c9a24d;
  color: white;
  font-size: 26px;
  cursor: pointer;
  transition: 0.25s ease;
}

#donate-btn:hover {
  background: #b38e3f;
}

/* ===============================
   DONATION SELECTION PAGE
================================= */

.donate-page {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #111;

  /* slightly richer beige gradient for contrast */
  background: linear-gradient(135deg, #ece8e0, #ded6cc);
  background-image: url("./assets/subtle-pattern.png");
  background-repeat: repeat;
  background-size: 600px;
}

/* container background for content cards */
.donate-container {
  background: rgba(255,255,255,0.9);
  padding: 40px 20px 60px;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border: 2px solid #000; /* black stroke around container */
  position: relative;
  overflow: hidden;
}

/* optional subtle inner shadow for depth */
.donate-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
  pointer-events: none;
}

/* Main section */
.country-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 30px;
}

/* Centered container */
.donate-container {
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

/* Title */
.donate-title {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* Description */
.donate-subtext {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333; /* darker for better readability */
  max-width: 680px;
  margin: 0 auto 60px auto;
}

/* Cards wrapper */
.country-cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Base card style */
.country-card {
  width: 320px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  padding: 32px 24px;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* Hover effect */
.country-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

/* Icon */
.country-icon {
  width: 80px;
  height: auto;
  margin-bottom: 18px;
}

/* Card headings */
.country-card h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Card description */
.country-card p {
  font-size: 1.1rem;
  opacity: 0.85;
  text-align: center;
  line-height: 1.4;
}

/* ===============================
   VIETNAM CARD
================================= */

.vn-card {
  background: #c62828;
  color: white;
}

.vn-card p {
  opacity: 0.9;
}

/* ===============================
   INTERNATIONAL CARD
================================= */

.intl-card {
  background: white;
  color: #2c2c2c;
  border: 1px solid #e3e3e3;
}

.intl-card:hover {
  border-color: #c9c9c9;
}

/* ===============================
   Bottom gratitude note
================================= */

.gratitude-note {
  margin-top: 50px;
  font-size: 1rem;
  color: #777;
  padding: 0 30px;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 768px) {

  .donate-title {
    font-size: 2.2rem;
  }

  .country-cards {
    flex-direction: column;
    align-items: center;
  }

  .country-card {
    width: 90%;
    max-width: 400px;
  }

}

/* ===============================
   VIETNAM DONATION PAGE
================================= */

.vn-donate-container {
  max-width: 850px;
}

/* QR + Bank layout */
.qr-section {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  margin: 40px 0 50px 0;
  flex-wrap: wrap;
}

/* QR image */
.qr-image {
  width: 260px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.12);
  border: 3px solid #000;
}

/* Bank info block */
.bank-info {
  text-align: left;
  max-width: 300px;
}

.bank-info h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.bank-info p {
  margin: 6px 0;
  font-size: 1rem;
}

/* Copy button */
.copy-btn {
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid #000;
  background: #c62828;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

.copy-btn:hover {
  background: #a81f1f;
  transform: translateY(-2px);
}

/* Back button */
.back-btn {
  margin-top: 35px;
  padding: 10px 22px;
  border-radius: 14px;
  border: 2px solid #000;
  background: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

.back-btn:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {

  .qr-section {
    flex-direction: column;
  }

  .bank-info {
    text-align: center;
  }

}