/* ==============================
   GENERAL RESET & BODY
   ============================== */
body.theaurorajoy-fun {
  margin: 0;
  padding: 0;
  font-family: 'Kanit', sans-serif;
  background-color: #1b2533;
  color: #81d5ff;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #ffc001;
  transition: color 0.3s;
}

a:hover {
  color: #81d5ff;
}

img {
  max-width: 100%;
  display: block;
}

/* ==============================
   NAVBAR
   ============================== */
.theaurorajoy-fun-nav {
  background-color: #1b2533;
  padding: 1rem 0;
}

.theaurorajoy-fun-nav .nav-logo {
  max-height: 70px;
}

.theaurorajoy-fun-nav .nav-link {
  color: #81d5ff;
  margin: 0 0.5rem;
  font-weight: 500;
}

.theaurorajoy-fun-nav .nav-link.active {
  color: #ffc001;
}

.navbar-toggler {
  border: 1px solid #ffc001;
}

.navbar-toggler-icon {
	color: #ffc001 !important;
	background-color: #81d5ff; 
}

/* ==============================
   HERO SECTION
   ============================== */
.theaurorajoy-fun-hero {
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #1b2533;
  background-image: url('../images/hero.jpg'); /* Add your hero image here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.theaurorajoy-fun-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  color: #81d5ff;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffc001;
  text-shadow: 0 0 10px #ffc001, 0 0 20px #ffc001;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.theaurorajoy-fun-btn {
  background-color: #ffc001;
  color: #1b2533;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  transition: all 0.3s;
}

.theaurorajoy-fun-btn:hover {
  background-color: #81d5ff;
  color: #1b2533;
}

/* ==============================
   GAMES / PLAY SECTION
   ============================== */
.theaurorajoy-fun-play {
  background-color: #1b2533;
  color: #81d5ff;
  padding: 4rem 1rem;
}

.theaurorajoy-fun-play .section-title {
  color: #ffc001;
  text-shadow: 0 0 10px #ffc001, 0 0 20px #ffc001;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
}

/* Game Iframe Wrapper: 16:9 ratio with max-width and max-height */
.theaurorajoy-fun-main-frame {
  position: relative;
  width: 100%;
  max-width: 900px;      /* maximum width */
  margin: 0 auto 3rem auto;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;

  /* Aspect ratio padding */
  aspect-ratio: 16/9;   /* 16:9 */
  max-height: 506px;      /* 900 * 9 / 16 = 506px */
}

/* Iframe fills the wrapper */
.theaurorajoy-fun-main-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .theaurorajoy-fun-main-frame {
    max-width: 700px;
    padding-top: 56.25%; /* maintain 16:9 ratio */
    max-height: 394px;    /* 700 * 9 / 16 */
  }
}

@media (max-width: 576px) {
  .theaurorajoy-fun-main-frame {
    max-width: 100%;
    padding-top: 56.25%; /* maintain 16:9 ratio */
    max-height: calc(100vw * 9 / 16); /* dynamically adjust to screen width */
  }
}



/* ==============================
   FEATURES SECTION
   ============================== */
.theaurorajoy-fun-features {
  padding: 4rem 1rem;
}

.theaurorajoy-fun-features .section-title {
  font-size: 2.5rem;
  color: #ffc001;
  text-shadow: 0 0 8px #ffc001;
}

.theaurorajoy-fun-features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.theaurorajoy-fun-feature {
  flex: 1 1 220px;
  background-color: #1b2533;
  padding: 2rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.theaurorajoy-fun-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.6);
}

.feature-icon {
  font-size: 3rem;
  color: #ffc001;
  margin-bottom: 1rem;
}

/* ==============================
   ABOUT SECTION
   ============================== */
.theaurorajoy-fun-about {
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-image img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.about-content {
  max-width: 600px;
}

.about-content .section-title {
  color: #ffc001;
  font-size: 2rem;
  text-shadow: 0 0 8px #ffc001;
  margin-bottom: 1.5rem;
}

.about-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ==============================
   CONTACT SECTION
   ============================== */
.theaurorajoy-fun-contact {
  padding: 4rem 1rem;
}

.theaurorajoy-fun-contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.contact-info {
  flex: 1 1 300px;
  background-color: #1b2533;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.contact-info h4 {
  color: #ffc001;
  margin-bottom: 1rem;
}

.contact-info p a {
  color: #81d5ff;
}

.contact-form {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: none;
  background-color: #2a3550;
  color: #81d5ff;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #ffc001;
}

.contact-form button {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  background-color: #ffc001;
  color: #1b2533;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover {
  background-color: #81d5ff;
  color: #1b2533;
}
/* Contact form errors */
.contact-form .error-text {
  color: #ffc001;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Success alert */
.success-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffc001;
  color: #1b2533;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

/* Show alert */
.success-alert.show {
  opacity: 1;
  pointer-events: auto;
}

/* ==============================
   FOOTER
============================== */
.theaurorajoy-fun-footer {
  background-color: #1b2533;
  color: #81d5ff;
  font-family: 'Outfit', sans-serif;
  position: relative;
}

.theaurorajoy-fun-footer a {
  color: #ffc001;
  text-decoration: none;
  transition: all 0.3s;
}

.theaurorajoy-fun-footer a:hover {
  color: #81d5ff;
  text-decoration: underline;
}

.footer-logo {
  max-width: 160px;
  height: auto;
  margin: 0 auto;
}

.footer-links li {
  margin: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-disclaimer {
  background-color: #1b2533;
  border: 1px solid #ffc00133;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  color: #81d5ff;
  text-align: left;
}

.footer-disclaimer h4 {
  color: #ffc001;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px #ffc001;
}

.footer-disclaimer p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.875rem;
  color: #81d5ff;
  margin-top: 1rem;
}

.footer-copy a.text-accent {
  color: #ffc001;
  font-weight: 600;
}

.footer-copy a.text-accent:hover {
  color: #81d5ff;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-links li {
    margin: 0.5rem;
  }
  .footer-disclaimer {
    text-align: center;
  }
}


/* ==============================
   RESPONSIVE LAYOUT
   ============================== */
@media (max-width: 992px) {
  .theaurorajoy-fun-about {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .theaurorajoy-fun-features-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .theaurorajoy-fun-contact-grid {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}


/* ==============================
   POPUP DISCLAIMER
============================== */
.theaurorajoy-fun-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27,37,51,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 9999;
}

.theaurorajoy-fun-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-inner {
  background-color: #1b2533;
  color: #81d5ff;
  padding: 2rem;
  max-width: 500px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.popup-header h3 {
  color: #ffc001;
  text-shadow: 0 0 10px #ffc001;
}

.popup-text {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.popup-buttons .exit-btn {
  background-color: #1b2533;
  color: #ffc001;
  border: 1px solid #ffc001;
}

.popup-buttons .exit-btn:hover {
  background-color: #ffc001;
  color: #1b2533;
}

/* ==============================
   SCROLL TO TOP BUTTON
============================== */
.theaurorajoy-fun-scroll {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ffc001;
  color: #1b2533;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s;
  z-index: 999;
}

.theaurorajoy-fun-scroll.show {
  display: block;
}

.theaurorajoy-fun-scroll:hover {
  background-color: #81d5ff;
}


/* ==============================
   LEGAL PAGES (Disclaimer, Privacy, Terms)
   ============================== */
.theaurorajoy-fun-legal {
  background-color: #1b2533;
  color: #81d5ff;
  padding: 5rem 1rem;
  font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
}

.theaurorajoy-fun-legal .container {
  max-width: 900px;
  margin: 0 auto;
}

/* Headings */
.theaurorajoy-fun-legal .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffc001;
  text-shadow: 0 0 10px #ffc001, 0 0 20px #ffc001;
  margin-bottom: 2rem;
  text-align: center;
}

.theaurorajoy-fun-legal h2 {
  color: #ffc001;
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(255,192,1,0.6);
  font-weight: 600;
}

/* Paragraphs */
.theaurorajoy-fun-legal p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: #bde6ff;
}

/* Links */
.theaurorajoy-fun-legal a {
  color: #ffc001;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.theaurorajoy-fun-legal a:hover {
  color: #81d5ff;
  text-shadow: 0 0 6px #81d5ff;
}

/* Strong emphasis */
.theaurorajoy-fun-legal strong {
  color: #ffc001;
  font-weight: 600;
}

/* Lists (if any appear later) */
.theaurorajoy-fun-legal ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.theaurorajoy-fun-legal ul li {
  margin-bottom: 0.8rem;
  color: #bde6ff;
}

/* Divider Line */
.theaurorajoy-fun-legal hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #ffc001, transparent);
  margin: 2.5rem 0;
  opacity: 0.5;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .theaurorajoy-fun-legal {
    padding: 3rem 1rem;
  }

  .theaurorajoy-fun-legal .section-title {
    font-size: 2rem;
  }

  .theaurorajoy-fun-legal h2 {
    font-size: 1.4rem;
  }

  .theaurorajoy-fun-legal p {
    font-size: 1rem;
  }
}

/* Fade-in Animation */
@keyframes fadeInLegal {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.theaurorajoy-fun-legal {
  animation: fadeInLegal 1s ease-out both;
}

/* Subtle Glow Accent under Headings */
.theaurorajoy-fun-legal h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 6px;
  background: #ffc001;
  box-shadow: 0 0 10px #ffc001;
  border-radius: 3px;
}
