/* Apply Montserrat font to the entire body */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes at least full viewport height */
    overflow: -moz-scrollbars-none; /* For older Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
    scrollbar-width: none; /* For Firefox */
    color: #FFF;
    font-size: 16px; /* Base font size */
}

/* Header styling */
header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align items to the left */
    background: #000;
    padding: 10px 20px; /* Add padding around the content */
    color: #fff;
    width: 100%;
    height: auto; /* Automatic height */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure header stays on top */
}

/* Logo styling */
header .logo {
    margin-right: 20px; /* Add space between logo and navigation */
}

header .logo img {
    width: 5vw; /* Adjust logo size */
}

/* Navigation styling */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-start; /* Align navigation next to the logo */
    align-items: center;
}

nav ul {
    display: flex; /* Display navigation items in a row */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px; /* Add space between navigation items */
}

nav ul li {
    width: auto; /* Ensure each navigation item is sized based on its content */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px; /* Adjust padding for clickable area */
    display: block;
}

nav ul li a:hover {
    background: #555;
    border-radius: 5px; /* Add border radius for hover effect */
}

/* Main content area */
main {
    padding: 20px;
    padding-top: 15vh;
    padding-bottom: 15vh; /* Increase padding to ensure footer doesn't overlap */
    flex: 1;
    background: url('background.jpg');
    background-size: cover; /* Cover ensures full background */
}

/* CTA Button */
.cta {
    font-size: 2rem;
}

/* Merch section styling */
.merch {
    padding: 40px 20px;
    flex: 1;
}

.merch h2 {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Merch item styling */
.merch-item {
    display: flex;
    flex-direction: row; /* Align image and text in a row */
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 20px;
    font-size: 2rem;
    align-items: center;
    justify-content: center;
}

.merch-item h3 {
    font-size: 2rem;
}

.merch-item p {
    font-size: 1.5rem;
}

.merch-item img {
    width: 200px;
    margin-right: 50px; /* Space between text and image */
}

.merch-details {
    max-width: 600px;
    text-align: center;
}


/* CTA Button styling */
.cta {
    background: linear-gradient(135deg, #ff0024, #ff0000);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cta:hover {
    background: linear-gradient(135deg, #ff0000, #ff0024);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.cta:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.5);
}

/* Modal container */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

/* Modal content styling */
.modal-content {
    background-color: #333;
    background-image: url('background.jpg');
    background-size: cover;
    padding: 20px;
    border-radius: 8px;
    max-width: 70vw;
    max-height: 70vh;
    width: 70%;
    height: 70%;
    overflow-y: auto;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

/* Modal body layout */
.modal-body {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 100%;
}

/* Modal image styling */
.modal-image {
    flex: 1;
}

.modal-image img {
    width: 30vw;
    max-width: 50vw;
    height: auto;
    border-radius: 8px;
}

/* Text styling inside modal with opaque background */
.modal-text {
    flex: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    color: #ffffff;
}

/* Base button styling with smooth gradient */
.modal-buy {
    background: linear-gradient(135deg, #ff0024, #ff0000);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.modal-buy:hover {
    background: linear-gradient(135deg, #ff0000, #ff0024);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.modal-buy:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.5);
}

/* Custom styles for the select element */
.size-selector {
    position: relative;
    margin-top: 20px;
}
.size-selector.hidden {
    display: none;
}

.size-selector select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    color: #333;
    background-color: #ffffff;
    border: 2px solid #ff0000;
    border-radius: 8px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom arrow for the dropdown */
.size-selector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 10px solid #ff0000;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Hover effect */
.size-selector select:hover {
    border-color: #cc0000;
}

/* Focus effect */
.size-selector select:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.5);
}

/* Close button styling */
.close {
    color: #ffffff;
    font-size: 2em;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

/* Footer styling */
footer {
    font-size: 1rem; /* Use rem for consistency */
    background: #000;
    color: #fff;
    text-align: center; /* Center-align all text */
    padding: 10px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center all content horizontally */
    z-index: 10; /* Ensure footer is above other content */
}

/* Social media section styling */
footer .social-media {
    display: flex;
    justify-content: center; /* Center social media links within their section */
    gap: 5px; /* Space between social media links */
    margin-top: 10px; /* Add some space between text and social media links */
}

/* Social media links styling */
footer .social-media a {
    color: #fff;
    text-decoration: none;
}

footer .social-media a:hover {
    text-decoration: underline;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    /* General font size adjustment for mobile */
    body {
        font-size: 14px;
    }

    /* Header adjustments for mobile */
    header {
        flex-direction: row; /* Keep the logo and nav in a row */
        padding: 5px 10px; /* Reduce padding to conserve space */
        height: auto; /* Ensure height is only as tall as needed */
    }

    header .logo img {
        width: 15vw; /* Reduce the logo size */
        margin-right: 10px; /* Reduce margin between logo and nav */
    }

    nav ul {
        flex-direction: row; /* Keep navigation items in a row */
        flex-wrap: wrap; /* Allow items to wrap to the next line if necessary */
        gap: 10px; /* Reduce gap between navigation items */
    }

    nav ul li {
        text-align: left;
    }

    nav ul li a {
        padding: 5px 10px; /* Reduce padding inside nav links */
    }

    main {
        padding-top: 80px; /* Space for fixed header */
        padding-bottom: 120px; /* Ensure footer does not overlap */
    }

    .cta {
        font-size: 1.5rem;
        padding: 10px 20px;
    }

    .merch-item {
        flex-direction: column; /* Stack image and text vertically */
        font-size: 1.5rem;
        padding: 15px;
    }

    .merch-item img {
        width: 150px;
        margin-right: 0;
        margin-bottom: 15px; /* Space between image and text */
    }

    .modal-content {
        max-width: 90vw;
        max-height: 90vh;
        width: 90%;
        height: 90%;
    }

    .modal-image img {
        width: 80vw;
        max-width: 100%;
    }

    .modal-text {
        max-width: 100%;
    }

    footer {
        font-size: 0.875rem;
        padding: 8px 0;
    }
}