/* 
   MistNova.click - Main Stylesheet
   Featuring a maroon color scheme with gaming cartoon elements
*/

/* --- Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Changa', 'Comic Sans MS', 'Marker Felt', fantasy;
  background-color: #ffebee; /* Match disclaimer section background */
  background-image: none; /* Remove textured background */
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #800000;
  transition: all 0.3s ease;
}

a:hover {
  color: #c70039;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Navigation --- */
.main-header {
  background-color: #8b0000;
  padding: 12px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffcc33;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 25px;
}

.nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 5px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #ffcc33;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ffcc33;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
}

/* --- Hero Section --- */

.hero-section {
  background-color: #610017;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 150px 0;
}

/* restored original decorative SVG overlay */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('bg.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
  opacity: 0.6;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 30px 20px;
   animation: floatUpDown 4s ease-in-out infinite; /* ✅ added */
}

.hero-centered { /* utility to center and constrain content */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.12;
  color: #ffdd66;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.hero-description {
  font-size: 1.5rem;
  margin: 2rem;
  color: rgba(255,255,255,0.95);
  max-width: 720px;
}

.hero-cta {
  display: inline-block;
  background-color: #ffdd66;
  color: #430006;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}

/* Add hero image to the bottom left of the hero section */
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px; /* Adjust size as needed */
  height: 150px; /* Adjust size as needed */
 
  z-index: 5;

}

/* --- Disclaimer Section --- */
.disclaimer-section {
  margin-top: 2rem;
  background-color: #ffebee;
  padding: 20px 0;
  border-top: 3px solid #c70039;
  border-bottom: 3px solid #c70039;
}

.disclaimer-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.disclaimer-icon {
  font-size: 2rem;
  color: #c70039;
  margin-right: 15px;
}

.disclaimer-text {
  font-size: 1rem;
  color: #800000;
  font-weight: 500;
}

.disclaimer-text strong {
  font-weight: 700;
  color: #c70039;
}

/* --- Games Section --- */
.games-section {
  padding: 60px 0;
  background-color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  color: #800000;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 0px rgba(255, 204, 51, 0.3);
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.games-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.game-frame-container {
  position: relative;
  background: linear-gradient(145deg, #8b0000, #c70039);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-frame-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.game-frame {
  width: 100%;
  max-width: 900px;
  height: 506px; /* 16:9 aspect ratio for 900px width */
  margin: 0 auto;
  border: none;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

/* --- About Section --- */
.about-section {
  background-color: #fffbf0;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M50,10 L60,40 L90,50 L60,60 L50,90 L40,60 L10,50 L40,40 Z" fill="%23ffcc33" opacity="0.1"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 1; /* Set opacity to full visibility */
  transform: rotate(45deg);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.about-image img {
  flex: 1;
  height: 300px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  animation: floatUpDown 4s ease-in-out infinite; /* ✅ added */
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px); /* adjust movement distance */
  }
}

.about-text {
  flex: 1;
}

.about-title {
  font-size: 2.5rem;
  color: #800000;
  margin-bottom: 20px;
}

.about-description {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* --- Reviews Section --- */
.reviews-section {
  padding: 80px 0;
  background-color: #fff;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: #ffebee;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #c70039;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.review-text {
  font-size: 1rem;
  color: #444;
  font-style: italic;
  margin-bottom: 15px;
}

.reviewer-name {
  font-weight: 700;
  color: #800000;
  text-align: right;
}

/* --- Features Section --- */
.features-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.features-section::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(255, 207, 63, 0.1);
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
  /* z-index: 1; */
}

.feature-card {
background-color: #800000;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: white; /* ensures text is visible on red */
}

.feature-card:hover {
  transform: translateY(-5px);
  background-color: rgb(143, 0, 0);
}

.feature-icon {
  font-size: 2.5rem;
  color: #ffcc33;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.feature-description {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* --- Contact Form --- */
.contact-section {
  padding: 80px 0;
  background-color: #fff;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background-color: #f8f0f4;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #800000;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.form-control:focus {
  border-color: #c70039;
  outline: none;
  box-shadow: 0 0 0 3px rgba(199, 0, 57, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  background-color: #800000;
  color: #fff;
  border: none;
  padding: 14px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: inline-block;
}

.form-submit:hover {
  background-color: #c70039;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(199, 0, 57, 0.3);
}

/* --- Legal Pages --- */
.legal-section {
  padding: 80px 0;
  background-color: #fff;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-title {
  color: #800000;
  margin-bottom: 40px;
  text-align: center;
  font-size: 2.5rem;
}

.legal-content {
  background-color: #f8f0f4;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.legal-content h2 {
  color: #c70039;
  margin: 30px 0 15px;
  font-size: 1.8rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.legal-content li {
  margin-bottom: 10px;
}

/* --- Footer --- */
.footer {
  background-color: #2a0008;
  color: #fff;
  padding: 60px 0 30px;
  text-align: center;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.footer-site-title {
  font-size: 1.5rem;
  color: #ffcc33;
  font-weight: 700;
}

.footer-description {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer-heading {
  color: #ffcc33;
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 12px;
}

.footer-link a {
  color: #fff;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-link a:hover {
  opacity: 1;
  color: #ffcc33;
  padding-left: 5px;
}

.footer-quick-links ul,
.footer-legal ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  list-style: none;
}

.footer-quick-links ul li,
.footer-legal ul li {
  display: inline;
}

.footer-quick-links h3,
.footer-legal h3 {
  margin-bottom: 10px;
}

.footer-disclaimer {
  background-color: rgba(255, 204, 51, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.footer-disclaimer strong {
  color: #ffcc33;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* --- Age Confirmation Overlay --- */
.age-confirmation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.age-confirmation.show {
  visibility: visible;
  opacity: 1;
}

.age-confirmation-content {
  background: linear-gradient(145deg, #800000, #c70039);
  border-radius: 20px;
  padding: 0;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: popIn 0.5s forwards;
}

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

.confirmation-header {
  background-color: #ffcc33;
  padding: 20px;
  text-align: center;
}

.confirmation-header h3 {
  color: #800000;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.confirmation-body {
  padding: 30px;
  text-align: center;
  color: #fff;
}

.confirmation-body p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.confirmation-footer {
  padding: 0 30px 30px;
}

.confirm-age-btn {
  width: 100%;
  background-color: #ffcc33;
  color: #800000;
  border: none;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.confirm-age-btn:hover {
  background-color: #ffdb70;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Scroll to Top Button --- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #800000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  visibility: hidden;
  opacity: 0;
}

.scroll-top.show {
  visibility: visible;
  opacity: 1;
}

.scroll-top:hover {
  background-color: #c70039;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .hero-content,
  .about-content {
    flex-direction: column;
  }
  
  .hero-text,
  .about-text {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #8b0000;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-200%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-item {
    margin: 0 0 15px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .game-frame-container {
        height: auto;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
  }
  
  .game-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .confirmation-body {
    padding: 20px;
  }
}