/* Reviews Section */
.reviews-section {
  background: #fff;
  padding: 3rem 1.5rem 2.5rem 1.5rem;
}
.reviews-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.reviews-container h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 900;
  letter-spacing: 1px;
}
.reviews-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.review-card {
  background: #fffbe7;
  border: 2px solid var(--feature-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  min-width: 220px;
  max-width: 300px;
  flex: 1 1 220px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.review-rating {
  color: #f4b400;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}
.review-text {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  font-style: italic;
}
.review-author {
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 700;
  align-self: flex-end;
}
@media (max-width: 700px) {
  .reviews-list {
    flex-direction: column;
    gap: 1.2rem;
  }
  .review-card {
    max-width: 100%;
  }
}
.footer-disclaimer-card {
  background: #fffbe7;
  border: 2px solid var(--feature-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin: 1.5rem auto 0 auto;
  padding: 1.2rem 1.5rem 1.1rem 1.5rem;
  max-width: 600px;
  color: var(--text);
  text-align: left;
}
.footer-disclaimer-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.footer-disclaimer-card p {
  margin: 0;
  font-size: 0.98rem;
}
/* RoamVikHub.Quest Theme: Playful, clean, minimal, unique */
:root {
  --primary: #4fd1c5;
  --secondary: #ffb347;
  --accent: #f43f5e;
  --background: #f7fafc;
  --text: #22223b;
  --footer-bg: #22223b;
  --footer-accent: #4fd1c5;
  --feature-bg: #fffbe7;
  --feature-border: #ffb347;
  --card-radius: 18px;
  --shadow: 0 4px 24px rgba(79,209,197,0.08);
}

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  margin: 0;
  padding: 0;
}

.navbar {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}
.navbar .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
.nav-logo {
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--secondary);
}
.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}

/* Mobile view */
/* Navbar Overlay for Mobile */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,34,59,0.5);
  z-index: 999;
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--primary);
    position: fixed;
    top: 0;
    right: -100vw;
    width: 70vw;
    max-width: 320px;
    height: 100vh;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    z-index: 1001;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: right 0.3s cubic-bezier(.4,0,.2,1);
    opacity: 1;
    overflow-y: auto;
    align-items: flex-start;
  }

  .nav-links.active {
    right: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  }

  .nav-overlay.active {
    display: block;
  }

  .nav-toggle {
    display: flex; /* show hamburger on mobile */
    background: transparent;
    border: none;
  }
}

.hero {
  background: linear-gradient(120deg, var(--primary) 60%, var(--secondary) 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem 1.5rem;
  position: relative;
  width: 100vw;
  max-width: 96.55vw;
  /* margin: 0 calc(50% - 50vw); */
  overflow: hidden;
  border-radius: 0;
}
.hero-content {
  max-width: 1200px;
  width: 100%;
  color: #fff;
  text-align: left;
  margin: 0 auto;
  padding: 0;
  background: none;
}
.hero-content h1 {
  font-size: 2.7rem;
  font-weight: 900;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
}
.hero-content p {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}
.hero-img {
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  object-fit: cover;
  margin-left: 2.5rem;
  display: none;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
  }
  .hero-img {
    display: block;
  }
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem 2rem 1.5rem;
  background: #fff;
}
.about-content {
  max-width: 700px;
  text-align: center;
}
.about-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.about-content p {
  font-size: 1.1rem;
  color: var(--text);
}
.about-img {
  width: 500px;
  height: 450px;
  border-radius: 18px;
  margin: 2rem 0 0 0;
  box-shadow: var(--shadow);
  display: none;
}
@media (min-width: 700px) {
  .about {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
  .about-img {
    display: block;
  }
}

.features {
  background: var(--feature-bg);
  padding: 3rem 1.5rem 2rem 1.5rem;
}
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border: 2px solid var(--feature-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  min-width: 220px;
  max-width: 270px;
  flex: 1 1 220px;
  text-align: center;
}
.feature-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}
.feature-card p {
  color: var(--text);
  font-size: 1rem;
}

.games-section {
  background: #fff;
  padding: 3rem 1.5rem 2rem 1.5rem;
}
.game-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.game-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  height: 520px;
  min-height: 220px;
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  background: #22223b;
  display: block;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .game-frame {
    height: auto;
    aspect-ratio: 16/9;
    min-height: 180px;
    max-height: 60vw;
    width: 100%;
  }
  .game-container {
    gap: 1.2rem;
  }
}

.footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 2.5rem 1.5rem 1.2rem 1.5rem;
  border-top: 4px solid var(--footer-accent);
  margin-top: 2rem;
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--footer-accent);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--secondary);
}
.footer-disclaimer {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: #b2f7ef;
  text-align: center;
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,34,59,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-content {
  background: #fff;
  color: var(--text);
  padding: 2.5rem 2rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 95vw;
  width: 350px;
  text-align: center;
}
.popup-content h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.popup-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.popup-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.popup-button {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: background 0.2s;
}
.popup-button.exit {
  background: var(--accent);
}
.popup-button:hover {
  background: var(--secondary);
}

/* Legal and Contact Section Styles */
.legal-section, .contact-section {
  background: #fff;
  padding: 3.5rem 1.5rem 2.5rem 1.5rem;
}
.legal-container, .contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: #f7fafc;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: left;
}
.legal-container h1, .contact-container h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.2rem;
}
.legal-container p, .legal-container ul, .contact-container p, .contact-form label, .contact-form button {
  font-size: 1.05rem;
  color: var(--text);
}
.legal-container ul {
  margin: 1.2rem 0 1.2rem 1.2rem;
  padding-left: 1.2rem;
}
.legal-container li {
  margin-bottom: 0.5rem;
}
.legal-container a, .contact-container a {
  color: var(--primary);
  text-decoration: underline;
}
.legal-container a:hover, .contact-container a:hover {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1.5px solid var(--feature-border);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: var(--secondary);
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  .features-list {
    flex-direction: column;
    gap: 1.2rem;
  }
}
