/* General Styles */
body {
    background-color: #1a1f2b;
    color: #c6d4df;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scrollbar Styles for WebKit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 14px; /* Width of the scrollbar */
    height: 12px; /* Height of the horizontal scrollbar */
}

/* Scrollbar Styles for Firefox */
html {
    scrollbar-color: #66c0f4 #1a1f2b; /* thumb and track color */
}

::-webkit-scrollbar-track {
    background: #1a1f2b; /* Color of the scrollbar track */
    border-radius: 20px; /* Rounded corners for the track */
}

::-webkit-scrollbar-thumb {
    background: #66c0f4; /* Color of the scrollbar thumb */
    border-radius: 20px; /* Rounded corners for the thumb */
    border: 3px solid #1a1f2b; /* Padding around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: #4fa8d3; /* Color of the thumb on hover */
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1f2b;
    padding: 20px;
    position: relative;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: #66c0f4;
    text-align: center;
}

.sign-up-btn {
    background-color: #66c0f4;
    color: #171a21;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

/* Desktop Navigation Bar */
.navbar-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1f2b;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-desktop .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-desktop a {
    color: #c6d4df;
    padding: 15px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bolder;
}

.navbar-desktop a:hover {
    color: #66c0f4;
    text-decoration: underline;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1f2b;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
}

.dropdown-content a {
    color: #c6d4df;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #3c4450;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Dropdown Headings */
.dropdown-content div span {
    font-size: 18px;
    font-weight: bold;
    color: #66c0f4;
    display: block;
    margin-bottom: 10px;
}

/* Mobile Navigation Bar */
.navbar-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #171a21;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-mobile .nav-links {
    display: flex;
    justify-content: center; /* Center the links */
    align-items: center;
    gap: 15px; /* Add some space between the links */
}

.navbar-mobile a {
    color: #c6d4df;
    padding: 8px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 9px;
    white-space: nowrap;
    flex: 1; /* Ensure equal spacing */
    max-width: 100px; /* Adjust as needed */
    text-align: center; /* Center text within each link */
}

.navbar-mobile a:hover {
    color: #66c0f4;
    text-decoration: underline;
}

/* Dropdown Styles for Mobile */
.navbar-mobile .dropdown {
    position: relative;
}

.navbar-mobile .dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%; /* Position dropdown above the link */
    left: 50%; /* Center the dropdown */
    transform: translateX(-50%); /* Center the dropdown */
    background-color: #171a21; /* Match mobile navbar color */
    min-width: 180px; /* Adjust width as needed */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Ensure it appears above the navbar */
    border-radius: 8px;
    padding: 10px; /* Add padding for better spacing */
    max-width: 90vw; /* Ensure dropdown doesn't exceed viewport width */
    white-space: nowrap; /* Prevent text wrapping */
}

.navbar-mobile .dropdown-content a {
    color: #c6d4df;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    font-size: 9px;
    white-space: nowrap;
}

.navbar-mobile .dropdown-content a:hover {
    background-color: #3c4450;
}

.navbar-mobile .dropdown:focus-within .dropdown-content {
    display: block; /* Show dropdown when focused */
}

.navbar-mobile .dropdown-divider {
    border-bottom: 1px solid #3c4450;
    margin: 5px 0;
}

/* Product Section */
.products {
    padding: 20px;
    background-color: #1a1f2b;
    margin-top: 20px;
}

.products h2 {
    color: #66c0f4;
    font-size: 28px;
    text-align: left;
    margin-bottom: 20px;
}

.large-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
    gap: 20px; /* Space between grid items */
    padding: 20px;
}

.large-product-card {
    background-color: #1b2838;
    padding: 10px;
    text-align: left;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.large-product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.large-product-card:hover img {
    opacity: 0.3;
}

.large-product-content p {
    margin: 10px 0;
    font-size: 14px;
    color: #c6d4df;
    transition: opacity 0.3s ease;
}

.large-product-card:hover .large-product-content p {
    opacity: 1;
}

.large-product-card::before {
    content: attr(data-price);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.large-product-card:hover::before {
    opacity: 1;
}

/* Remove underline from paragraphs inside product-card links */
.large-product-card a {
    text-decoration: none; /* Remove underline from the link */
}

.large-product-card a p {
    text-decoration: none;
}

/* Back to Top Button */
.back-to-top {
    text-align: center;
    margin: 20px 0;
}

.back-to-top-btn {
    background-color: #66c0f4;
    color: #171a21;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.back-to-top-btn:hover {
    background-color: #3c4450;
}

/* Sign-Up Form */
.sign-up-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1b2838;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    width: 90%;
    max-width: 400px;
}

.sign-up-form:target {
    display: block;
}

.sign-up-form .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #c6d4df;
    font-size: 24px;
    text-decoration: none;
}

.sign-up-form .close-btn:hover {
    color: #66c0f4;
}

.sign-up-form h2 {
    color: #66c0f4;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.sign-up-form label {
    display: block;
    color: #c6d4df;
    margin-bottom: 5px;
    text-align: left;
}

.sign-up-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: #2a3a4d;
    color: #c6d4df;
    font-size: 14px;
}

.sign-up-form input::placeholder {
    color: #8f9ca7;
}

.sign-up-form button {
    background-color: #66c0f4;
    color: #171a21;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.sign-up-form button:hover {
    background-color: #4fa8d3;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #1b2838;
    padding: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #66c0f4;
}

.footer-contact p {
    margin: 5px 0;
    color: #c6d4df;
    font-size: 14px;
}

.footer-links {
    text-align: left;
    margin: 10px 0;
}

.footer-links h3 {
    margin-bottom: 10px;
    color: #c6d4df;
    font-size: 16px;
}

.footer-links a {
    display: block;
    color: #ffffff;
    margin: 5px 0;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #66c0f4;
}

.footer-social {
    text-align: center;
    margin-top: 10px;
}

.footer-social a {
    display: inline-block;
    margin-left: 10px;
}

.footer-social img {
    width: 30px;
    height: 30px;
}

/* Media Queries for Mobile */
@media (max-width: 720px) {
    .navbar-desktop {
        display: none;
    }

    .navbar-mobile {
        display: flex;
        background-color: #171a21;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .sign-up-btn {
        margin-top: 10px;
    }

    .game-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .game-card {
        width: 180px;
    }

    .large-product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns per row for tablets and smaller screens */
    }

    .large-game-card {
        width: 250px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo-text {
        font-size: 24px;
    }

    .footer-social {
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .large-product-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column per row for mobile devices */
    }
}

/* Additional Media Queries for Specific Mobile Devices */
@media (max-width: 390px) {
    .navbar-mobile .nav-links {
        gap: 15px; /* Reduce gap for smaller screens */
    }

    .navbar-mobile a {
        font-size: 8px; /* Slightly smaller font size */
        padding: 6px; /* Reduce padding */
    }

    .game-card {
        width: 160px; /* Adjust card width for smaller screens */
    }

    .large-game-card {
        width: 220px; /* Adjust card width for smaller screens */
    }

    .footer-logo-text {
        font-size: 22px; /* Slightly smaller logo text */
    }
}

@media (max-width: 375px) {
    .navbar-mobile .nav-links {
        gap: 12px; /* Further reduce gap for 375px screens */
    }

    .navbar-mobile a {
        font-size: 7px; /* Smaller font size */
        padding: 5px; /* Further reduce padding */
    }

    .game-card {
        width: 150px; /* Adjust card width for 375px screens */
    }

    .large-game-card {
        width: 200px; /* Adjust card width for 375px screens */
    }

    .footer-logo-text {
        font-size: 20px; /* Smaller logo text */
    }
}

@media (max-width: 360px) {
    .navbar-mobile .nav-links {
        gap: 10px; /* Minimal gap for 360px screens */
    }

    .navbar-mobile a {
        font-size: 6px; /* Smallest font size */
        padding: 4px; /* Minimal padding */
    }

    .game-card {
        width: 140px; /* Adjust card width for 360px screens */
    }

    .large-game-card {
        width: 180px; /* Adjust card width for 360px screens */
    }

    .footer-logo-text {
        font-size: 18px; /* Smallest logo text */
    }
}