*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:linear-gradient(180deg,#0f172a,#1e293b);
    color:white;
    min-height:100vh;
}

/* HEADER */

header{
    display:flex;
    align-items:center;
    padding:20px 50px;
    background:#111827;
    position:sticky;
    top:0;
    z-index:1000;
}

header img{
    margin: right 30px;
}


header h1{
    font-size:2rem;
    color:#38bdf8;
}

nav{
    display:flex;
    gap:25px;
}

#theme toogle{
    margin-left: auto;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
    padding:8px 12px;
    border-radius:10px;
}

nav a:hover{
    background:rgba(56,189,248,.15);
    color:#38bdf8;
}

/* HERO */

.hero{
    text-align:center;
    padding:100px 20px;
}

.hero h2{
    font-size:3rem;
    margin-bottom:15px;
    color:white;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:25px;
    color:#cbd5e1;
}

.hero button{
    background:#38bdf8;
    color:white;
    border:none;
    padding:15px 30px;
    border-radius:30px;
    cursor:pointer;
    font-size:1rem;
    transition:0.3s;
}

.hero button:hover{
    transform:scale(1.05);
    background:#0ea5e9;
}

/* SEARCH */

.search-section{
    padding:40px 20px;
    text-align:center;
}

.search-section input{
    width:700px;
    max-width:90%;
    padding:16px 24px;
    border:none;
    border-radius:50px;
    font-size:16px;
    outline:none;
}

/* CATEGORIES */

.categories{
    padding:20px;
    text-align:center;
}

.categories h2{
    margin-bottom:20px;
}

.category-list{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
}

.category-list button{
    border:none;
    border-radius:30px;
    padding:12px 20px;
    background:#38bdf8;
    color:white;
    cursor:pointer;
    transition:0.3s;
}

.category-list button:hover{
    transform:translateY(-3px);
}

/* GAMES */

.games{
    padding:50px;
}

.games h2{
    text-align:center;
    margin-bottom:30px;
}

.game-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.game-card{
    background:#1e293b;
    border-radius:20px;
    overflow:hidden;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 5px 15px rgba(0,0,0,.3);
}

.game-card:hover{
    transform:translateY(-8px);
}

.game-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.game-card h3{
    text-align:center;
    padding:15px;
    color: #0ea5e9;
    text-emphasis: none;
}

/* FOOTER */

footer{
    margin-top:60px;
    text-align:center;
    padding:30px;
    background:#111827;
    color:#94a3b8;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111827;
}

::-webkit-scrollbar-thumb{
    background:#38bdf8;
    border-radius:20px;
}

/* RESPONSIVE */

@media(max-width:768px){

    header{
        flex-direction:column;
        gap:15px;
        padding:20px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h2{
        font-size:2rem;
    }

    .hero p{
        font-size:1rem;
    }

    .games{
        padding:25px;
    }

    .game-grid{
        grid-template-columns:1fr;
    }
}