/* ========== Main Page Styles ========== */
.banner {
    position: relative;
    width: 100vw;
    height: 320px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 0 50px;
}

section {
    margin-bottom: 40px;
}

/* ========== Search Box ========== */
.search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: linear-gradient(to bottom, #2a475e, #1b2838);
}

.tag-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.tag-bar span {
    background-color: #2a475e;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);

}

.tag-bar span:hover {
    background-color: #66c0f4;
    color: #000;
    box-shadow: 0 0 8px #66c0f4;

}

#searchInput {
    width: 50%;
    max-width: 600px;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #1b2838;
    color: #ffffff;
    outline: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

#searchInput::placeholder {
    color: #999;
}

.search-results {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 20px;

}

/* ========== Gallery Layout ========== */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.container h2 {
    margin-bottom: 20px;
}

.game-card {
    background-color: #2a475e;
    border-radius: 6px;
    overflow: hidden;
    width: 300px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    height: auto;
}

.game-card:hover {
    box-shadow: 0 0 8px #66c0f4;

}

.game-card img {
    width: 100%;
    aspect-ratio: 231 / 87;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.game-card img:hover {
    transform: scale(1.02);
}

.game-card h3 {
    padding: 8px 12px 4px;
    font-size: 1rem;
    font-weight: bold;
}

.game-card p {
    padding: 0 12px 12px;
    color: #a5c7dc;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery {
        justify-content: center;
    }

    .game-card {
        width: 70%;
    }

    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav a {
        margin: 10px 0;
    }
}