/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

button {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    padding: 3px 5px 3px 5px;
}

p span.bold {
    font-weight: bold;
}


:root {
    --color-text-primary: black;
    --color-text-placeholder: #798EAE;
    --color-bg-primary: #F5F7FA;
    --color-bg-secondary: #c7c7d6;
    --color-bg-sidebar: #FFFFFF;
    --color-border-hr: #E2E8F0;
    --color-hover-primary: #c77e2a;
    /*--color-hover-primary: #0da000;*/
    --color-hover-secondary: #e2e2fb;
    --color-shadow: rgba(0, 0, 0, 0.05);
    --red-text: #cf0000;

}

li {
    list-style: none;
    /* removes bullets/numbers */
    margin: 0;
    padding: 0;
    margin-bottom: 5px;
}


body.dark-theme {
    --color-text-primary: #F1F5F9;
    --color-text-placeholder: #A6B7D2;
    --color-bg-primary: #111827;
    --color-bg-secondary: #3D4859;
    --color-bg-sidebar: #1f2937;
    --color-border-hr: #3B475C;
    /*--color-hover-primary: #c77e2a; dark mal color*/

    --color-hover-secondary: #48566a;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --red-text: #ff0000;
}

p span.red {
    color: var(--red-text);
}

.menu-item {
    background-color: var(--color-bg-secondary);
    border-radius: 5px;
}

.games-container {
    background-color: var(--color-bg-secondary);
    margin-bottom: 35px;
    border-radius: 100px;
    padding: 20px 20px 45px 45px;
    max-width: 1200px;
}

body {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    /* changed code: set default text color */
    transition: background-color 0.45s ease, color 0.25s ease;

    ::-webkit-scrollbar {
        display: none;
    }
}

/* changed code: make form controls and links inherit the text color, and placeholders use the placeholder variable */
input,
textarea,
button,
select,
a {
    color: inherit;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-placeholder);
}

.search-form input {
    border: none;
    background: none;
    outline: none;
    font-size: 1rem;
    width: 100%;
    margin-left: 15px;
    color: var(--color-text-primary);
}

.search-form span {
    color: var(--color-text-placeholder);
}

.search-form input::placeholder {
    color: var(--color-text-placeholder);
}

.menu-list .menu-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--color-text-primary);
    transition: 0.3s ease;
}

.menu-list .menu-label {
    transition: 0.3s ease;
}


.menu-list .menu-link:is(:hover, .active) {
    color: #fff;
    background: var(--color-hover-primary);
}



.theme-toggle .theme-label {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-toggle .theme-label .theme-text {
    font-size: 1rem;
    transition: opacity 0.4s 0.2s ease;
}

.theme-toggle .theme-toggle-track {
    height: 24px;
    width: 48px;
    position: relative;
    border-radius: 999px;
    margin-left: auto;
    background: #c3d1ec;
    transition: opacity 0.4s 0.2s ease, background-color 0.3s ease;
}

body.dark-theme .theme-toggle .theme-toggle-track {
    background: #695CFE;
}

.theme-toggle-track .theme-toggle-indicator {
    position: absolute;
    top: 3px;
    left: 3px;
    height: 18px;
    width: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

body.dark-theme .theme-toggle-track .theme-toggle-indicator {
    transform: translateX(24px);
}

.site-nav {
    display: none;
    position: sticky;
    top: 0;
    padding: 15px 20px;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border-hr);
}



.container {
    display: flex;
    min-height: 100vh;
    /* changed code: ensure container fills viewport height */
}

/* changed code: make main content take remaining space and allow scrolling inside sections */
.Main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    /* allow sections to overlap during transition */
}

.Main-content .content-section {
    position: absolute;
    inset: 0;
    padding: 24px;
    opacity: 0;
    transform: translateY(8px) scale(0.995);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .32s ease, transform .32s ease, visibility .32s;
    display: block;
    /* keep in flow for height calculation of parent if needed */
    overflow: auto;
}

/* active section fades/slides in and is interactive */
.Main-content .content-section.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.card img {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card img:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
    /* optional slight zoom */
}

p {
    font-size: 30px;
}

h1 {
    font-size: 45px;
}

h2 {
    font-size: 35px;
}

h3 {
    font-size: 40px;

}

.hide {
    display: none;
}

.menu-picture {
    width: 28px;
}

/* ensure stacked mobile layout still looks right */
@media (max-width: 600px) {
    .Main-content .content-section {
        padding: 16px;
    }

    .card-grid {
        grid-template-columns: repeat(1, 1fr);
        /* ✅ one column */
    }
}

@media (max-width: 768px) {
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 10;
        opacity: 0;
        pointer-events: none;
        background: rgba(0, 0, 0, 0.6);
        transition: 0.4s ease;
    }

    .site-nav {
        display: block;
    }
}

@media (max-width: 1500px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        /* ✅ two columns */
    }
}

@media (max-width: 2500px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        /* ✅ three columns */
    }
}

@media (min-width: 1500px) {


    .material-symbols-rounded {
        font-size: 50px;
        transition: font-size 0.5s ease;
    }

    .menu-picture {
        width: 50px;
        transition: width 0.5s ease;
    }

    .menu-label {
        font-size: 25px;
        transition: font-size 0.5s ease;
    }
}

@media (min-width: 2000px) {

    .header-logo {
        width: 200px;
    }

    .material-symbols-rounded {
        font-size: 75px;
        transition: font-size 0.5s ease;
    }

    .menu-picture {
        width: 75px;
        transition: width 0.5s ease;
    }

    .menu-label {
        font-size: 30px;
        transition: font-size 0.5s ease;
    }
}