/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #1a1a1a;
  color: #fff;
}

/* Header */
header {
  background-color: #111;
  padding: 15px 0;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation List */
.nav-list {
  list-style: none;
  display: flex;
  gap: 25px;
  transition: 0.3s ease-in-out;
}

.nav-list.active {
  display: block;
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  padding: 20px 0;
  text-align: center;
  transform: translateY(0); /* Initial position */
  z-index: 100; /* Ensure it is on top of other content */
}

/* Overlay Background */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dark transparent overlay */
  display: none;
  z-index: 50; /* Positioned below the menu */
}

.nav-list li a {
  text-decoration: none;
  color: #ff6b6b;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s ease;
}

/* Add spacing between the list items */
.nav-list li {
  margin-bottom: 30px; /* Adjust the spacing as needed */
}

/* 🍔 Hamburger Menu */
.menu-toggle {
  display: none; /* Default, hide on large screens */
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 15px;
  z-index: 1000; /* Ensure it's on top of other elements */
}

.menu-toggle .bar {
  background: #ff6b6b;
  height: 4px;
  width: 30px;
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile View */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex; /* Show hamburger on mobile */
  }

  .nav-list {
    display: none; /* Hide by default on mobile */
    transform: translateY(-100%);
  }

  .nav-list.active {
    display: block;
    transform: translateY(0);
  }

  /* Hamburger animation when clicked */
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }
}

/* Video Background */
#video-background {
  position: relative;
  width: 100%;
  height: 720px; /* You can adjust the height as necessary */
  background-color: black; /* Black background */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ensure video maintains aspect ratio without cropping */
#video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 100%;
  object-fit: contain; /* Maintain the aspect ratio without cropping */
}

/* Content Styling */
#characters {
  text-align: center;
  padding: 50px 20px;
  background-color: #222;
}

.character-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.character-card {
  background: #333;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
}

.character-card p {
	padding: 10px 0 0;
}

.character-card:hover {
  transform: scale(1.05);
}

.character-card img {
  max-width: 100%;
  border-radius: 5px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Darker background */
  justify-content: center;
  align-items: center;
  z-index: 1050;
  pointer-events: auto;
  overflow: hidden; /* Prevent any scroll on the modal itself */
  padding: 20px;
}

.modal-content {
  background: #ffffff; /* Dark background for content */
  max-width: 90%; /* Limit the width of the modal */
  max-height: 90%; /* Limit the height */
  position: relative;
  overflow: hidden; /* Prevent scrolling */
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}

iframe{
    width: 646px;
	height: 196px; /* Adjust height as necessary */
    border: none;
}

#characterIframe {
  width: 1440px;
  height: 900px;
  border: none;
  overflow: hidden;
}

/* Close button styles */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #ff6b6b;
  background: none;
  border: none;
  padding: 5px 10px;
  border-radius: 50%;
}

/* Disable modal on mobile */
@media (max-width: 768px) {
  .modal {
    display: none !important;
  }
}


#story {
  background-color: #2a2a2a;
  padding: 50px 20px;
  text-align: center;
}

#story img {
  width: 100%; /* Make image responsive */
  max-width: 800px; /* Set a max-width for larger screens */
  height: auto; /* Maintain aspect ratio */
  margin-bottom: 20px; /* Space between image and text */
}

#story p {
  text-align: center;
  max-width: 800px; /* Limit text width for better readability */
  margin: 0 auto; /* Centers the div horizontally */
  padding: 10px 20px 50px;  
}

/* Gallery Styles */
#gallery {
  background-color: #333;
  padding: 50px 20px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.gallery-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-track {
  display: flex;
  animation: autoScroll 120s linear infinite;
}

.gallery-track img {
  width: 25vw;
  height: auto;
  border-radius: 5px;
  margin: 0 5px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Hover effect */
.gallery-track img:hover {
  transform: scale(0.95);
}

/* 'Get the Game' Section */
#get-the-game {
  background-color: #444;
  padding: 50px 20px;
  text-align: center;
}

/* For Steam widget iframe */
#get-game {
  width: 646px;
  height: 196px;
  border: none;
}

footer {
  background-color: #111;
  padding: 20px 10px; /* Padding on the sides to make it less tight */
  text-align: center;
  margin-top: 30px;
}

.social-icons {
  display: flex;
  justify-content: center; /* Center the icons */
  gap: 15px; /* Spacing between the icons */
  margin-bottom: 15px; /* Space between icons and text */
}

.social-icons a {
  color: #ff6b6b;
  font-size: 24px;
  text-decoration: none;
}

footer p {
  color: #fff; /* Ensuring the footer text is white */
  font-size: 14px;
  margin-top: 10px; /* Small margin for separation */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Keyframes for smooth scroll */
@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  #video-background {
    height: 400px;
  }

  .gallery-track img {
    width: 40vw; /* Adjust the width for smaller screens */
  }
}

@media (max-width: 480px) {
  #video-background {
    height: 300px;
  }

  .gallery-track img {
    width: 50vw; /* Adjust the width for even smaller screens */
  }
}

/* For mobile responsiveness */
@media (max-width: 768px) {
  #story {
    padding: 30px 15px; /* Adjust padding for mobile */
  }

  #story img {
    width: 100%; /* Make image take full width on smaller screens */
    max-width: 100%; /* Ensure it doesn't overflow */
  }
  
  #story h1 {
    font-size: 1.5rem; /* Adjust text size */
  }

  #story p {
    font-size: 1rem; /* Adjust paragraph text size */
  }
}
/* Make the iframe responsive only on small screens */
@media (max-width: 768px) {
    .responsive-iframe-container {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        height: 0;
        overflow: hidden;
    }

    .responsive-iframe-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}