/* --- Global & Base Styles --- */
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
    color: black;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: white;
    }
}

h1 {
    text-align: center;
    font-family: sans-serif;
}

h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

li {
    list-style: none;
}

.page-title {
    font-size: 4rem;
    font-family: 'Times New Roman', Times, serif;
    color: rgb(255, 255, 255);
    margin-bottom: 30px;
}

/* --- Layout Background --- */
/* --- Layout Background --- */
.bg {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Neeko_0.jpg') center/cover no-repeat fixed;
}

.bg2 {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, #8e7cc3 0%, #010a13 65%);
}

/* --- Centered Text Container --- */
.centered {
    color: white;
}

/* --- Mobile Breakpoint --- */
@media (max-width: 768px) {
    .bg {
        justify-content: center;
        /* Center text on small screens */
        text-align: center;
        padding: 20px;
    }

    .centered h2:nth-of-type(1) {
        font-size: 1.2rem !important;
    }

    .centered h2:nth-of-type(2) {
        font-size: 2.5rem !important;
    }

    .centered p {
        font-size: 1rem !important;
        max-width: 100% !important;
    }
}

main {
    flex: 1;
}

/* --- Shared Navigation & Footer styles --- */
nav,
#footer {
    flex-shrink: 0;
    background-color: #1e2124;
    backdrop-filter: blur(5px);
}

.nav-links2 {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
    margin-left: -20px;
    list-style: none;
    /* Removes default bullet points */
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.logo img {
    height: 100px;
    width: auto;
}

/* Container for the whole navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    /* Spreads logo left, links right */
    align-items: center;
    padding: 10px 20px;
    border-bottom: #c89b3c 2px solid;
}

.nav-links {
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
    /* Removes default bullet points */
    align-items: center;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.25rem;
    padding: 10px;
    /* Smooth transition for all property changes */
    transition: all 0.3s ease;
    border-radius: 5px;
    display: inline-block;
    /* Required for transform to work properly */
}

.nav-links a:hover {
    background-color: #c89b3c;
    color: #000000;
}

/* The "Prettier" Click Effect */
.nav-links a:active {
    transform: scale(0.95);
    /* Gives a physical "press" feeling */
    background-color: #f0c05a;
    /* A bright pop of color on impact */
    transition: transform 0.1s ease;
    /* Fast response on click */
}

/* --- MOBILE RESPONSIVE RULES --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        /* Stacks logo on top of links */
        text-align: center;
        padding: 15px 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        /* Allows links to flow to a new line instead of off-screen */
        justify-content: center;
        margin-top: 15px;
        gap: 10px;
    }

    .nav-links a {
        font-size: 1.1rem;
        /* Slightly smaller text for mobile */
        padding: 8px;
    }
}

/* --- Content Container & Grid --- */
.content-container {
    width: 100%;
    max-width: 1000px;
    /* Increased for better row side-by-side view */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-grid {
    display: flex;
    flex-direction: column;
    /* This forces the 1-row-per-item stack */
    gap: 20px;
    width: 100%;
}


/* --- New Ability Row Structure --- */
.ability-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* Makes height equal between video and text */
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ability-row {
        flex-direction: column;
        /* Stacks text and video on mobile */
    }

    .video-placeholder {
        width: 1056px;
        /* Ensures video doesn't overflow */
    }
}

/* The card takes 50% width */
.preview-box {
    font-size: 1.25rem;
    flex: 1;
    background-color: transparent;
    border: 2px solid #c89b3c;
    border-radius: 8px;
    padding: 20px;
    color: white;
}

/* The video placeholder takes 50% width */
.video-placeholder {
    width: 100%;
    flex: 1;
    background-color: #000;
    border: 2px solid #c89b3c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c89b3c;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .ability-row {
        flex-direction: column;
        /* Stack on phones */
    }
}

.preview-box h3 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-box h3 img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* --- Footer --- */
#footer {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    padding: 10px 20px;
}

#footer p {
    margin: 0;
    line-height: 1;
}

.lore-text {
    font-family: brush script mt, cursive;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 100px;
    font-size: 1.25rem;
    max-width: 75%;
    margin: 0 auto;
    line-height: 1.6;
}

#aqua {
    color: #00ff9d;
}

@media (max-width: 768px) {
    .lore-text {
        padding: 20px;
        font-size: 1rem;
        max-width: 100%;
    }
}