/* Responsive Styles */

/* Mobile Styles (up to 768px) */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .navbar {
    padding: 0 var(--spacing-sm);
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--dark-blue);
    z-index: 1000;
    transition: var(--transition);
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: var(--spacing-sm) 0;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .hero {
    height: 70vh;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
  }
  
  .game-card h3 {
    font-size: 1rem;
    height: 60px;
  }
  
  .feature {
    padding: var(--spacing-sm);
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    margin: var(--spacing-sm) 0;
  }
  
  /* Game Pages */
  .game-header {
    padding: var(--spacing-sm);
  }
  
  .game-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .game-title {
    font-size: 1.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    gap: var(--spacing-sm);
  }
  
  /* Legal Pages */
  .legal-container {
    padding: var(--spacing-sm);
  }
  
  .legal-content h2 {
    font-size: 1.3rem;
  }
}

/* Tablet Styles (768px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
  }
  
  .footer-content {
    padding: 0 var(--spacing-sm);
  }
  
  /* Game Pages */
  .game-title {
    font-size: 1.8rem;
  }
}

/* Large Desktop Styles (above 1024px) */
@media screen and (min-width: 1025px) {
  .container {
    max-width: 1400px;
  }
  
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .about-content, .disclaimer-content {
    max-width: 1000px;
  }
}

/* Height-based Media Queries */
@media screen and (max-height: 600px) {
  .hero {
    height: auto;
    min-height: 400px;
    padding: var(--spacing-xl) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

/* For Game iframes on very small screens */
@media screen and (max-width: 480px) {
  .game-frame {
    height: 60vh;
  }
}

/* For Print */
@media print {
  .navbar, .footer, .cta-button, .game-button, .submit-button {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero, .games, .about, .features, .disclaimer, .legal-page {
    padding: 20px;
    background: none;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
  }
  
  .legal-container, .about-content, .disclaimer-content {
    background: none;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}