* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins", sans-serif;
}



ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}


header {
    background-color: black;
}

header .navbar {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-logo .logo-text {
    color: white;
    font: size 2rem;
    font-weight:600;
}

.navbar .nav-home {
    display: flex;
    gap: 10px;
}

.navbar .nav-home .nav-link {
    padding: 10px 18px;
    color: white;
    font-size: 1.12rem;
    border-radius: 30px;
    transition: 0.3se ease;

}

.navbar .nav-home .nav-link:hover {
     color: brown;
    background-color: yellow;

}


.game-image {
    max-width: 1400px;
    height: 250px;
    object-fit: cover;
    margin: 5px;
}

.game-text {
    font-size: 35px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

.Filter-section {
    background-color:black;
    width: 500px;
    height: 175px;
    border-radius: 0.5rem;
}

.Filter-box .Filter-section {
    margin: 0 auto;
    max-width: 1400px;
}

.Filter-section h1 {
    font-size: 2rem;
    line-height: 1;
    color: white;

}

form input {
    width: 20rem;
    padding: .2rem;
    border: none;
    border-radius: 20px;
    outline: none;
    font-size: 1rem;
    border-bottom: 1px solid #ffff;
    margin-bottom: 0.8rem;
}

.btn {
    text-decoration: none;
    color: black;
    font-size: 1rem;
    background-color: #fff;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
}
.active {
    background-color: #fff;
}

.games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, .1rem));
    column-gap: 1rem;
    padding: 1rem 0;
    row-gap: 2rem;
}


.store-details {
    text-align: center;
    padding-bottom: .1rem;
} 

.store-details h2 {
    font-size: 1rem;
    font-weight: 500;

}

.store-details p {
    font-size: 0.8rem;
    color: black;
    font-weight: 700;

}

.store-details a {
    font-size: 0.5rem;
    text-decoration: none;
    color: #fff;
    background-color: black;
    padding: .5rem 1rem;
    border-radius: 3px;
}
    



.game-info {
display: flex;
gap: 1rem;
align-items: flex-start;
}

.trailer {
width: 600px;
margin: 5px;
}

.trailer iframe {
width: 600px;
height: 338px;
border: none;
}

.details {
    flex: 5;
}





.game-foto {
    max-width: 2000px;
    margin: 5px;
    object-fit: cover;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}



.game-details {
    margin: 5px;
}



.hero-section {
    background-image: url(Fotoğraflar/bej.png);
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0px 500px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}


.source-note {
    margin: 20px 5px;
    font-size: 0.8rem;
    color: #666;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}








@media (max-width: 768px) {

    /* Navbar */
    header .navbar {
        flex-direction: column;
        padding: 15px 10px;
        gap: 10px;
    }

    .navbar .nav-home {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .navbar .nav-home .nav-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }


    /* Search */
    form input {
        width: 90%;
        max-width: 350px;
    }


    /* Filters */
    .Filter-section {
        width: 95%;
        height: auto;
        padding: 15px;
        margin: 0 auto;
    }

    .Filter-section .btn {
        display: inline-block;
        margin: 0;
        padding: 5px;
        white-space: nowrap;
    }


    /* Games */
    .games {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }


    /* Game cards */
    .store-details h2 {
        font-size: 0.9rem;
    }

    .store-details p {
        font-size: 0.75rem;
    }

    .store-details a {
        font-size: 0.7rem;
        padding: 5px 8px;
    }


    /* Game detail page */
    .game-info {
        flex-direction: column;
    }


    /* Trailer */
    .trailer {
        width: 100%;
        margin: 5px 0;
    }

    .trailer iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }


    /* Screenshots */
    .game-foto {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        margin: 5px;
    }


    /* Details */
    .details,
    .game-details {
        width: 100%;
        padding: 10px;
        margin: 0;
    }


    /* Game title */
    .game-text {
        font-size: 25px;
    }


    /* Game image */
    .game-image {
        width: 100%;
        height: 180px;
        margin: 0;
    }


    /* Home */
    .hero-section {
        width: 100%;
        height: 100vh;
        padding: 20px;
        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: center;

        text-align: center;
    }


    /* Source note */
    .source-note {
        margin: 20px 5px;
        font-size: 0.8rem;
        color: #666;
    }




    .filter-box { width: 100%; } .filter-box .btn 
    { display: inline-block; margin: 0; padding: 5px 4px; font-size: 0.8rem; white-space: nowrap; }

}

