﻿/* styles.css */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka One', cursive;
    background-color: #1C1678; /* Page background color */
    color: #2C3E50;
    position: relative;  /* Ensures proper stacking context */
    width: 100%;
    height: 100%;
    overflow-x: hidden;  /* Prevents horizontal scrolling */
    overflow-y: auto
}

.header-background {
    background-color: #A3FFD6; /* Header background color */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
}

header {
    width: 100%;
    z-index: 1000; /* Ensure header content is above the header background */
}

header .container {
    max-width: 1000px; /* Adjust this to your desired max width */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}

.container {
    max-width: 1000px; /* Maximum width of the content */
    margin: 0 auto; /* Centers the content */
    display: flex; /* Enables flex layout for children */
    justify-content: space-between; /* Space distribution */
    align-items: center; /* Vertical alignment */
    padding: 10px 40px; /* Padding inside the container */
    position: relative; /* Relative for stacking context */
    z-index: 1000; /* Above the header background */
    box-sizing: border-box; /* Include padding in width calculation */
}

.main-content {
    color: #FFF;
    padding: 20px; /* Adjust padding as necessary */
    /* Add more styles if necessary */
}

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

.logo {
    width: 150px;
    height: auto;
    margin-right: 10px;
}

.section-title {
    font-size: 48px; /* Large font size for the title */
    color: #FFFFFF; /* White color for the text */
    text-shadow: -2px -2px 0 #1C1678, 2px -2px 0 #1C1678, -2px 2px 0 #1C1678, 2px 2px 0 #1C1678; /* Outline effect */
    text-align: center; /* Center the title */
    margin-bottom: 30px; /* Spacing after the title */
}

.about-image-container {
    text-align: center;
    margin: 0 auto 20px; /* Center the container and add margin below */
    position: relative; /* To position images within the container */
    width: 100%; /* Full width on mobile */
    aspect-ratio: 1 / 1; /* Example height, adjust as needed */
}

.about-background,
.about-foreground {
    transition: transform 0.3s ease;
    position: absolute; /* Absolute position within the container */
    left: 50%;
    top: 50%;
    max-width: 100%; /* Make sure images do not overflow */
}


.about-background {
    transform: translate(-50%, -50%);
}

.about-foreground {
    transform: translate(-50%, calc(-50% + 10%));
}

.about-foreground:hover {
    transform: translate(calc(-50% + 10px), calc(-50% + 10% + 10px));
}

.about-text {
    font-size: 32px; /* Large font size for big text */
    color: #A3FFD6; /* White color for the text */
    text-align: center; /* Center the text */
    margin: 20px 0; /* Spacing for aesthetic */
    line-height: 1.4; /* Adjust line height for readability */
    background-color: #1C1678; /* Background color as provided */
    padding: 20px; /* Padding inside the text box */
    display: inline-block; /* For background color fitting to text */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5); /* Shadow for depth */
    margin: 0 auto;
}

.coming-soon-text {
    font-size: 32px; /* Large font size for emphasis */
    color: #A3FFD6; /* White color for the text */
    text-align: center; /* Center the text */
    background-color: #1C1678; /* Dark background color */
    padding: 20px;
    display: block; /* Allows us to set margin auto for centering */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Shadow for depth */
    margin: 0 auto; /* Center the text block horizontally */
    margin-bottom: 20px; /* Additional bottom margin for spacing */
}

.content-section {
    max-width: 1000px;
    margin: auto;
    background-color: transparent; /* Light background for contrast with the title */
    box-sizing: border-box;
    padding: 50px; /* Increase padding for aesthetic spacing */
    margin-top: 100px; /* Adjust top margin to give space from header */
    position: relative; /* To stack correctly in the document flow */
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    margin: 0;
}

nav ul li {
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #1C1678;
    text-decoration: none;
}

ul {
    list-style-type: disc; /* Default bullet style, you can change this if you like */
    padding-left: 20px; /* Adjust the padding to align the list as desired */
}

ul li strong {
    font-weight: bold; /* Make subtitles bold */
    color: #A3FFD6; /* Adjust the color to match your design */
    /* Add more styles if necessary */
}

section, footer {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

footer {
    background-color: #8576FF; /* Or any other color you prefer */
    color: #1C1678;
    text-align: center;
    padding: 20px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo {
    width: 120px; /* Or your desired size */
    height: auto;
}

.footer-text p,
.footer-text a {
    color: #1C1678;
    font-size: 16px; /* Adjust as needed */
    text-decoration: none;
    margin: 5px 0; /* Spacing for aesthetic */
}

.footer-text a:hover {
    text-decoration: underline; /* Optional: if you want a hover effect */
}

/* Ensure your links are visible against the footer background */
.footer-text a {
    color: inherit;
    opacity: 0.8; /* Slightly lower opacity for stylistic preference */
}

.footer-text a:hover {
    opacity: 1; /* Full opacity on hover */
}

a {
    color: #8576FF; /* This sets the color of all links to your specified color */
    text-decoration: none; /* Optional: removes the underline from links */
}

a:hover {
    text-decoration: underline; /* Optional: adds an underline on hover for better user interaction */
}

/* Responsive adjustments, if necessary */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 20px; /* Space between logo and text in mobile view */
    }
}

button, .button {
    background-color: #FCB900;
    color: #2C3E50;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover, .button:hover {
    background-color: #FC4A1A;
}

#contactForm {
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Fredoka One', cursive; /* Ensures the form uses the same font */
    color: #2C3E50; /* Adjust the text color as needed */
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
    font-family: 'Fredoka One', cursive; /* Consistent font for input fields */
}

#contactForm textarea {
    height: 150px; /* Adjust height as needed */
}

#contactForm button[type="submit"] {
    width: 100%;
    background-color: #A3FFD6;
    color: #1C1678;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Fredoka One', cursive; /* Consistent font for the button */
}

#contactForm button[type="submit"]:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .header-background {
        position: fixed; /* Keep fixed position on mobile */
        width: 100%; /* Full width */
        top: 0;
        left: 0;
        z-index: 999;
    }

    header .container {
        padding: 10px; /* Reduced padding on mobile */
    }

    .logo {
        width: 120px; /* Smaller logo on mobile */
        margin-right: 10px;
    }

    nav ul {
        padding: 0;
        margin-right: 10px; /* Add space to the right of the nav */
    }

    nav ul li {
        margin-right: 10px; /* Less space between menu items */
    }

    nav ul li a {
        font-size: 14px; /* Smaller font size for links */
    }
    
    .content-section {
        padding: 30px 20px; /* Less vertical padding, more horizontal padding */
        margin-top: 60px; /* Less gap between sections */
    }

    .section-title {
        margin-top: 0; /* Remove top margin for titles */
        margin-bottom: 20px; /* Less space after titles */
    }
}

#particles-js {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;  // very high to ensure it's on top of everything
    pointer-events: none !important;  // allows interaction with elements below
}

#particles-js canvas {
    box-shadow: 0 0 8px #ffff88;  // Adds a glow effect to the canvas
}


.game-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.game-card h3 {
    margin: 12px 0;
    font-size: 20px;
    color: #1C1678;
}

.store-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.store-links a {
    padding: 6px 12px;
    font-size: 14px;
    background-color: #FCB900;
    color: #1C1678;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.store-links a:hover {
    background-color: #FC4A1A;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.game-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 40px;
    scrollbar-width: none;
}

.game-list::-webkit-scrollbar {
    display: none;
}

.embla {
    position: relative;
    overflow: visible; /* allow arrows to overflow */
    padding: 0 60px;    /* optional: give some breathing room inside too */
}

.embla__viewport {
    overflow: hidden;
    width: 100%;
}

.embla__container {
    display: flex;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.embla__slide {
    position: relative;
    flex: 0 0 80%;
    max-width: 400px;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 10px;
    margin: 0 10px;
    background-color: transparent; /* ❌ Removed green background */
    box-shadow: none; /* Optional: remove shadow too */
}

.game-icon {
    width: 100%;
    max-width: 256px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 10px;
    display: block;
}

.game-title {
    font-size: 20px;
    color: #FFFFFF;
    margin: 10px 0;
}

.button-wrapper {
    display: flex;
    justify-content: center;
}

.appstore-button {
    max-height: 100px;
    height: auto;
    width: auto;
}

.embla__slide img {
    width: 100%;
    border-radius: 5px;
}

.embla__prev,
.embla__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
}

.embla__prev {
    left: -50px; /* move more left */
}

.embla__next {
    right: -50px; /* move more right */
}

@media (min-width: 768px) {
    .embla__slide {
        flex: 0 0 33.3333%;
        max-width: none;
    }
}

@media (max-width: 400px) {
    .game-icon {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .about-text {
        font-size: 24px; /* a bit smaller, still easy to read */
    }
}

@media (max-width: 768px) {
    .about-foreground {
        transform: translate(-50%, calc(-50% + 5%)) scale(0.75);;
    }
}

@media (max-width: 768px) {
    .about-foreground:hover {
        transform: translate(calc(-50% + 10px), calc(-50% + 5% + 10px)) scale(0.75);;
    }
}

.embla__container.center-if-single .embla__slide {
    margin: 0 auto;
}