/* === General Body === */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* === Header and Banner === */
.header-image {
    max-height: 300px;
    overflow: hidden;
}

.header-image img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.overlay-text {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.overlay-text h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.overlay-text p {
    font-size: 1.2rem;
}

/* === Section Wrappers === */
.section-wrapper {
    background-color: #f8f9fa; /* Light grey background */
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* === Section Headings === */
.section-wrapper h2 {
    font-weight: bold;
    color: #343a40;
    margin-bottom: 30px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Game Cards Shared Styles === */
#games .card,
#summer-discounts .card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

#games .card:hover,
#summer-discounts .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 1rem;
    text-align: center; /* Center text in card */
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #343a40;
}

.card-text {
    font-size: 0.95rem;
}

.card-text.text-danger,
.card-text.text-success {
    font-weight: bold;
}

/* === Add to Cart Buttons === */
.card .btn-primary {
    background-color: #6c757d !important; /* Grey tone */
    border-color: #6c757d !important;
    color: #fff;
}

.card .btn-primary:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}

/* === Carousel Scroll Section for Summer Discounts === */
.summer-carousel-wrapper {
    position: relative;
    padding: 10px;
}

.summer-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 1rem;
    padding-bottom: 10px;
}

.summer-carousel .card {
    flex: 0 0 auto;
    width: 250px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
}

.carousel-btn.left {
    left: -10px;
}

.carousel-btn.right {
    right: -10px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* === Scroll to Top Button === */
#scrollTopBtn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 1000;
    display: none;
    background-color: #343a40;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #007bff;
}

/* === Footer Styling === */
footer {
    background-color: #212529;
    color: white;
}

footer a {
    text-decoration: none;
    color: #ffffff;
}

footer a:hover {
    text-decoration: underline;
    color: #ffc107;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .overlay-text h1 {
        font-size: 1.8rem;
    }

    .overlay-text p {
        font-size: 1rem;
    }

    .header-image {
        max-height: 200px;
    }

    .summer-carousel .card {
        width: 80%;
    }

    .carousel-btn {
        display: none;
    }
}
