* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: url("/img/bg.png");
    background-size: cover;
    max-width: 1400px;
    margin: auto;
}

main {
    padding-top: 40px;
    padding-bottom: 20px;
    min-height: 100vh;
}
.main-logo{
    width: 7%;
    border-radius: 50%;
}
@media (max-width: 575.98px) { 
    .main-logo{
        width: 10%;
    } 
}
main h1,
main p {
    padding: 1rem;
    text-align: center;
}

section {
    padding: 2rem;
    font-size: 1.5rem;
}

.hidden {
    display: none !important;
}

.header {
    background-color: #7f1d1d; /* Changed to a deep red */
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* position: fixed; */
    top: 0;
    width: 100%;
    z-index: 20;
}

.header-menu-icon {
    font-size: 1.5rem;
    cursor: pointer;
}

.header-nav {
    display: none;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    align-items: center;
}

.header-nav a,
.header-nav .nav-item {
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav .nav-item:hover {
    color: #facc15; /* Yellow hover effect */
}

.header-auth-buttons {
    display: none;
    gap: 0.75rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
}

.btn-signin {
    background-color: #b91c1c; /* Red for sign-in button */
    color: white;
}

.btn-register {
    background-color: transparent;
    border-color: #facc15; /* Yellow border for register button */
    color: white;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(7, 7, 7, 0.45);
    z-index: 40;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 16rem;
    background-color: #ffb32ef7;
    color: white;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 300ms ease-in-out;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    background-color: #b91c1c; /* Red for sidebar header */
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid #dc2626; /* Lighter red for border */
}

.sidebar-header span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-close-icon {
    cursor: pointer;
}

.sidebar-list {
    list-style: none;
    font-size: 0.875rem;
}

.sidebar-list a {
    border: 0 solid #dc2626; /* Lighter red border */
    border-bottom-width: 2px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
}

.sidebar-list a:hover {
    background-color: #b91c1c;
}

.sidebar-icon {
    width: 1.25em;
    height: 1.25em;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 60;
}

.popup-content {
    background-color: white;
    color: #111827;
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.popup-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.popup-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.popup-content input {
    width: 100%;
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.25rem;
}

.popup-content button.submit-btn {
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

#signInPopup button.submit-btn {
    background-color: #b91c1c; /* Red for sign-in popup button */
}

#registerPopup button.submit-btn {
    background-color: #991b1b; /* Slightly darker red for register popup button */
}

.banner-container {
    padding: 1.5rem 1rem;
}

.slide-item {
    padding: 0 0.5rem;
}

.image-wrapper {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.footer {
    background-color: #7f1d1d; /* Red for footer */
    color: white;
    font-size: 0.875rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-top {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 0.8;
}

.social-icon {
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
    border-radius: 9999px;
    color: white;
}

.icon-facebook {
    background-color: #1877F2; /* Unchanged, as it's specific to Facebook */
}

.icon-xtwitter {
    background-color: black; /* Unchanged, as it's specific to Twitter */
}

.icon-linkedin {
    background-color: #0077B5; /* Unchanged, as it's specific to LinkedIn */
}

.icon-instagram {
    background-image: linear-gradient(to top right, #facc15, #dc2626, #b91c1c); /* Yellow to red gradient for Instagram */
}

.footer-bottom {
    background-color: #991b1b; /* Darker red for footer bottom */
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    border-top: 1px solid #b91c1c; /* Red border */
}

.bottom-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bottom-bar-item:last-child {
    margin-top: 0.5rem;
}

.bottom-bar-icon {
    font-size: 1.125rem;
}

.separator {
    display: none;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

@media (min-width: 768px) {
    .header-nav,
    .header-auth-buttons {
        display: flex;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-links {
        /* justify-content: flex-start; */
    }

    .footer-bottom {
        flex-direction: row;
    }

    .bottom-bar-item:last-child {
        margin-top: 0;
    }

    .separator {
        display: inline-block;
    }
}

.popular-games {
    padding: 2rem 1rem;
    color: white;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 16px;
}

.game-card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.button-container {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.download-btn {
    color: #fff;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.75rem 2.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
    background: linear-gradient(90deg, #b91c1c 26.44%, #b91c1c 50%, #b91c1c 75.96%); /* Red to yellow gradient */
    box-shadow: 0px 4.25px 21.66px 0px rgba(0, 0, 0, 0.12),
        inset 0px -17px 13.5px 0px #7f1d1d; /* Darker red inset shadow */
}

.download-btn:hover {
    transform: scale(1.05);
}

@media (min-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}