/*
 * Stylesheet for TOPThunder Games website.
 *
 * This file defines the typography, layout and colour scheme
 * to faithfully recreate the provided design. It uses custom
 * fonts loaded from the fonts directory and structures the
 * page into clear, scroll‑friendly sections. Headings leverage
 * the LEMONMILK font for bold impact while body text uses
 * Montserrat for readability.
 */

@font-face {
    font-family: 'LEMONMILK';
    src: url('fonts/LEMONMILK-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset basic elements */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    color: #000;
    background-color: #ffffff;
}

/* Sticky header with logo and navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    z-index: 1000;
    padding: 10px 40px;
    box-sizing: border-box;
}

header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    height: 48px;
    display: block;
}

header nav a {
    font-family: 'LEMONMILK', sans-serif;
    color: #ffffff;
    margin-left: 32px;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    transition: color 0.2s ease-in-out;
}

header nav a:hover {
    color: #ffb800;
}

/* Hero / home section */
section.hero {
    /*
     * Use the gameplay image directly without a dark overlay. The
     * original request asked us to remove the extra black tint from
     * the hero background. Text shadows are used on the heading
     * and paragraph elements to maintain readability against the
     * colourful backdrop.
     */
    background-image: url('images/Gameplay_img.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 140px 20px 160px; /* top padding accounts for sticky header */
    box-sizing: border-box;
}

section.hero h1 {
    font-family: 'LEMONMILK', sans-serif;
    font-size: 48px;
    color: #ffb800;
    margin: 0 0 20px;
    /* Slight drop shadow to help the heading stand out on the
     * colourful gameplay background now that the dark overlay has
     * been removed.
     */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

section.hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
    /* Slight shadow for improved legibility on busy backgrounds */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Divider line between sections */
.divider {
    width: 100%;
    height: 2px;
    background-image: url('images/Line_img.jpg');
    background-repeat: repeat-x;
    margin: 60px 0;
}

/* About section */
section.about {
    position: relative;
    text-align: center;
    padding: 50px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

section.about .about-background {
    position: absolute;
    /* Anchor the decorative graphic near the top of the section and
     * centre it horizontally. The width is reduced so it doesn’t
     * bleed into the margins and the opacity increased slightly to
     * make sure the dinosaur graphic is visible. A low z-index
     * places it behind the main content.
     */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

section.about h2 {
    font-family: 'LEMONMILK', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
    /*
     * Apply a purple gradient to the “ABOUT US” heading. The original
     * design uses a two‑tone purple gradient that transitions from
     * a deeper violet on the left to a lighter lavender on the right.
     * Using background‑clip and text‑fill allows the gradient to
     * appear only within the text.
     */
	background: linear-gradient(90deg, #231565, #231565);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

section.about .content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

section.about .content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 10px 0;
}

section.about .features {
    margin-top: 20px;
}

section.about .feature {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    font-size: 16px;
}

section.about .feature img {
    width: 22px;
    height: 22px;
    margin-right: 12px;
}

section.about .feature span {
    font-family: 'Montserrat', sans-serif;
}

/* Games section */
section.games {
    text-align: center;
    padding: 50px 20px;
    box-sizing: border-box;
}

section.games h2 {
    font-family: 'LEMONMILK', sans-serif;
    font-size: 36px;
    color: #2e2b7e;
    margin-bottom: 30px;
}

.game-card {
    display: inline-block;
    max-width: 380px;
    width: 100%;
    text-align: center;
}

.game-card img.icon {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-card h3 {
    font-family: 'LEMONMILK', sans-serif;
    font-size: 26px;
    color: #000000;
    margin-top: 20px;
    margin-bottom: 10px;
}

.game-card p.description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #000000;
    margin: 0 auto;
    max-width: 380px;
    line-height: 1.5;
}

.store-buttons {
    margin-top: 20px;
}

.store-buttons a {
    display: inline-block;
    margin: 0 8px;
}

.store-buttons a img {
    height: 50px;
    width: auto;
    transition: transform 0.2s ease-in-out;
}

.store-buttons a img:hover {
    transform: scale(1.05);
}

/* Contact section */
section.contact {
    text-align: center;
    padding: 50px 20px;
    box-sizing: border-box;
}

section.contact h2 {
    font-family: 'LEMONMILK', sans-serif;
    font-size: 36px;
    color: #d43132;
    margin-bottom: 20px;
}

section.contact p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #000;
    margin: 4px 0;
}

section.contact a {
    color: inherit;
    text-decoration: none;
}

section.contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #101010;
    color: #aaaaaa;
    text-align: center;
    padding: 25px 20px;
    box-sizing: border-box;
    font-size: 13px;
}

footer .links {
    margin-bottom: 12px;
}

footer .links a {
    font-family: 'LEMONMILK', sans-serif;
    font-size: 14px;
    color: #aaaaaa;
    margin: 0 15px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s ease-in-out;
}

footer .links a:hover {
    color: #ffb800;
}

footer .copy {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #999999;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

/*
 * Responsive adjustments
 *
 * On smaller screens the navigation bar and footer links should
 * reorganise into stacked or wrapped layouts instead of being
 * crammed into a single row. These media queries adjust font
 * sizes, margins and flex directions to improve readability
 * and spacing on narrow viewports.
 */
@media (max-width: 768px) {
    /* Reduce padding on the header for tighter screens */
    header {
        padding: 10px 20px;
    }

    /* Stack the logo and navigation items vertically */
    header .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Allow nav items to wrap and adjust spacing */
    header nav {
        display: flex;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    header nav a {
        display: block;
        margin-left: 0;
        margin-right: 20px;
        margin-bottom: 8px;
        font-size: 14px;
    }

    /* Ensure sections offset properly when scrolled to via anchor links */
    section {
        scroll-margin-top: 100px;
    }
}

@media (max-width: 600px) {
    /* Stack footer links on very small screens */
    footer .links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer .links a {
        margin: 6px 0;
    }
}