/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.video-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.video-container iframe {
  max-width: 100%;
  border-radius: 12px;
}


body {
    font-family: 'Inter', sans-serif; /* Use Inter as the primary font */
    line-height: 1.6;
    background-color: #1a1924; /* Surface */
    color: #ffffff; /* White text for contrast */
}

header {
    background-color: #212348; /* Total  */
    padding: 1rem;
}

nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li.about-link {
    margin-left: auto;
}

a {
    text-decoration: none;
    color: #aeacf3; /* Primary */
    font-family: 'Inter', sans-serif; /* Ensure links use Inter */
}

a:hover {
    color: #9898ef; /* Primary*/
    font-weight: bold;
}

main {
    padding: 2rem;
    background-color: #2f2e39; /* Surface*/
    border-radius: 10px;
    margin: 1rem auto;
    max-width: 1200px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 1.5rem; /* Space between cards */
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card {
    background-color: #313131; /* Surface */
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-card img {
    width: 100%;
    height: 212px; /* Fixed height for images */;
    border-radius: 15px 15px 0 0; /* Rounded corners only at the top */
    display: block; /* Remove any default inline spacing */
}

.game-card .game-title {
    padding: 1rem; /* Adjust padding as needed */
    font-size: 1.2rem;
    color: #ffffff; /* White text for contrast */
    background-color: #212348; /* Total */
    width: 100%;
    border-radius: 0 0 15px 15px; /* Rounded corners only at the bottom */
    margin: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif; /* Ensure footer uses Inter */
}

/* Art Gallery */
.art-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.art-piece {
    background-color: #ffffff00;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1;
}

.art-piece img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
}

.art-piece:hover {
    transform: scale(1.05);
}

/* Full-Size Image Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
}

.overlay.active {
    display: flex;
}


/* Game Detail Section */
.game-detail {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.game-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #aeacf3; /* Primary*/
    font-family: 'Inter', sans-serif; /* Ensure headings use Inter */
}

.game-detail img {
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.game-detail p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
    font-family: 'Inter', sans-serif; /* Ensure paragraphs use Inter */
}

/* Video Container */
.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    border-radius: 15px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Image Gallery Section */
.image-gallery {
    margin-top: 2rem;
}

.image-gallery h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #aeacf3; /* Primary */
    font-family: 'Inter', sans-serif; /* Ensure headings use Inter */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 1rem; /* Space between images */
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Back Button */
.back-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 10px 20px;
    background-color: #4960e3; /* Primary */
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif; /* Ensure buttons use Inter */
}

.back-button:hover {
    background-color: #6872e8; /* Primary */
}

/* Intro Section */
.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #aeacf3; /* Primary */
    font-family: 'Inter', sans-serif; /* Ensure headings use Inter */
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff; /* White text for contrast */
    font-family: 'Inter', sans-serif; /* Ensure paragraphs use Inter */
}

/* About Section */
.about-image {
    width: 300px;
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    margin-bottom: 1rem;
}

.about-content h1{
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #aeacf3; /* Primary */
    font-family: 'Inter', sans-serif; /* Ensure headings use Inter */
}

/* Featured Games Section */
.featured-games img {
    width: 640px; /* or whatever your native width is */
    height: auto;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
  }
.featured-games {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-highlight {
    display: flex;
    align-items: center;
    background-color: #46444e; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.game-highlight:hover {
    transform: scale(1.02);
}

.game-highlight img {
    width: 300px;
    height: 225px;
    border-right: 5px solid #aeacf3; /* Primary */

}

.game-info {
    padding: 1.5rem;
    flex: 1;
}

.game-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #aeacf3; /* Primary */
    font-family: 'Inter', sans-serif; /* Ensure headings use Inter */
}

.game-info .tagline {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff; /* White text */
    font-family: 'Inter', sans-serif; /* Ensure text uses Inter */
}

.game-info .learn-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4960e3; /* Primary */
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif; /* Ensure buttons use Inter */
}

.game-info .learn-more:hover {
    background-color: #6570e7; /* Primary */
}

/* Skills Section */
.skills-section {
    margin-top: 2rem;
    text-align: center;
}

.skills-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #aeacf3; /* Primary */
    font-family: 'Inter', sans-serif; /* Ensure headings use Inter */
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); /* Responsive grid */
    gap: 1rem; /* Space between icons */
    max-width: 600px; /* Adjust as needed */
    margin: 0 auto; /* Center the grid */
}

.skills-grid img {
    width: 100%; /* Make icons responsive */
    height: auto;
    border-radius: 10px; /* Optional: Add rounded corners */
    transition: transform 0.3s ease;
}

.skills-grid img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

/*SLIDESHOW STYLES */
    
    * {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: -60px;
  border-radius: 3px 0 0 3px;
}

/* Push left arrow OUTSIDE */
.prev {
  left: -60px;
}


/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(69, 63, 78, 0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 18px;
  padding-top: 10px;
  position: relative;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


/* Media Query for Mobile Devices */
@media (max-width: 768px) {

    .video-container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem; /* breathing room from edges */
        display: flex;
        justify-content: center;
    }

    .video-container iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-width: 100%;
    }

    .slideshow-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .mySlides img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .prev, .next {
        padding: 12px;
        font-size: 16px;
        top: 50%;
    }

    .prev {
        left: 8px;
    }

    .next {
        right: 8px;
    }

    .intro h1 {
        font-size: 2rem; /* Smaller font size for mobile */
    }

    .intro p {
        font-size: 1rem; /* Smaller font size for mobile */
    }

    .game-highlight {
        flex-direction: column; /* Stack image and text vertically */
    }

    .game-highlight img {
        width: 100%; /* Full width for mobile */
        height: auto; /* Auto height to maintain aspect ratio */
        border-right: none; /* Remove border on mobile */
        border-bottom: 5px solid #aeacf3; /* Add border at the bottom */
    }

    .game-info {
        padding: 1rem; /* Smaller padding for mobile */
    }

    .game-info h2 {
        font-size: 1.5rem; /* Smaller font size for mobile */
    }

    .game-info .tagline {
        font-size: 1rem; /* Smaller font size for mobile */
    }

    .game-info .learn-more {
        width: 100%; /* Full width button for mobile */
        text-align: center; /* Center text in button */
    }

    .about-image {
        width: 100%;
        max-width: 150px; /* Ensures it doesn't get too large */
        height: auto;
    }

    .art-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Smaller grid cells */
        gap: 0.5rem; /* Smaller gap between items */
    }

    .art-piece {
        aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
    }

    .art-piece img {
        border-radius: 10px; /* Slightly smaller border radius */
    }

}