/* Base Styling */
:root {
  --bg-dark: #0d0d0d;
  --ember-orange: #ff4500;
  --ash-grey: #2e2e2e;
  --text-light: #e0e0e0;
}
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

/* Body and Headings */
body { 
  /* Use Open Sans for body text */
  font-family: 'Open Sans', sans-serif; 
  background-color: var(--bg-dark); 
  color: var(--text-light); 
  font-size: 1rem; /* Default body font size */
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Headings using Bebas Neue */
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem; /* Impactful main heading */
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Sticky Navigation Bar */
nav {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(5px);
  transition: background 0.3s ease;
}
nav .nav-links {
  display: flex;
  align-items: center;
}
nav a {
  color: var(--text-light);
  margin: 0 1rem;
  text-decoration: none;
  font-size: 1.2rem; /* Navigation links are clear and legible */
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
}
nav a i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}
nav a:hover {
  color: var(--ember-orange);
}
/* Underline effect for nav links */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--ember-orange);
  transition: width 0.3s ease;
}
nav a:hover::after, nav a.active::after {
  width: 100%;
}
nav:hover {
  background: rgba(0, 0, 0, 0.95);
}

.navlogo {
  height:50px;
  margin-top:0.5em
}
/* Hamburger icon for mobile */
.hamburger {
  display: none;
  width: 30px;
  height: 25px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
.hamburger span {
  display: block;
  height: 4px;
  background-color: var(--text-light);
  border-radius: 2px;
}

/* Mobile Flyout Menu */
.flyout-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: var(--bg-dark);
  box-shadow: -4px 0 10px rgba(0,0,0,0.5);
  z-index: 200;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
}
.flyout-menu.open {
  right: 0;
}
.flyout-menu a {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: var(--ember-orange);
  text-decoration: none;
  text-align: center;
}
/* Close Icon */
.flyout-close {
  align-self: flex-end;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  margin-bottom: 1rem;
  margin-top: -0.5em;
  margin-right: 0.2em;
  background: none;
  border: none;
}

/* Overlay for mobile menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  display: none;
  transition: opacity 0.3s ease;
}
.overlay.open {
  display: block;
}

/* Hero Section with Parallax */
header {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  border-bottom: 4px solid var(--ember-orange);
}
.hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url('/img/lehero2.webp') no-repeat center center;
  background-size: cover;
  will-change: transform;
  z-index: 2;
}

/* Main Content Styling */
main { 
  padding: 2rem; 
  margin: 0 10%; 
}
.intro { 
  text-align: center; 
  margin-bottom: 3rem; 
}

/* Game Cards */
.game-links {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  main { margin: 0 5%; }
  .game-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 414px) {
  main { margin: 0 2%; }
}
@media (max-width: 600px) {
  .game-links {
    grid-template-columns: 1fr;
  }
  header { height: 50vh; }
}
@media (max-width: 414px) and (min-width: 320px) {
  header { height: 40vh; }
}

/* Card Styling */
.game {
  background: linear-gradient(145deg, #2e2e2e, #383838);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.game:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px 5px var(--ember-orange);
}
.game.active-card {
  box-shadow: 0 0 20px 5px rgba(255, 255, 0, 0.7);
}
.game.active-card:hover {
  box-shadow: 0 0 20px 5px var(--ember-orange);
}
.game img {
  width: 100%;
  height: auto;
  display: block;
}
.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.card-content h2 {
  margin: 0.5rem 0;
  color: var(--ember-orange);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  font-size: 2rem; /* Use Bebas Neue sizing, already applied in h2 rule */
}
.card-content p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
}
.card-button {
  display: inline-block;
  background: var(--ember-orange);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 1rem; /* Consistent body font size */
}
.card-button:hover {
  background: #e03c00;
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #111;
  color: var(--ember-orange);
}

.footer-link {
  color: var(--ember-orange);
  text-decoration: none;
}

.footer-link:visited {
  color: var(--ember-orange);
  text-decoration: none;
}

.footer-link:active {
  color: var(--ember-orange);
  text-decoration: none;
}

.footer-link:hover {
  color: #ff6b33; /* Slightly lighter orange */
  text-decoration: none;
}


/* Mobile Styles */
@media (max-width: 768px) {
  nav .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
