/* styles.css */

/* ========================================================================== */
/* Global Styles */
/* ========================================================================== */

@font-face {
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'League Spartan Bold', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000; /* Black background for the entire page */
    color: #fff; /* White text color for contrast */
    min-height: 100vh; /* Ensure the body takes at least full viewport height */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    overflow-x: hidden; /* Prevent horizontal overflow */
    max-width: 100vw;
    scrollbar-width: thin; /* Width of the scrollbar (Firefox) */
    scrollbar-color: purple #000; /* Thumb and track color */
}

    /* Scrollbar styles for WebKit browsers */
    body::-webkit-scrollbar {
        width: 12px; /* Width of the scrollbar */
    }

    body::-webkit-scrollbar-track {
        background: #000; /* Track color (black) */
    }

    body::-webkit-scrollbar-thumb {
        background-color: purple; /* Scrollbar color */
        border-radius: 10px; /* Rounded corners for the scrollbar */
        border: 3px solid #000; /* Space between the scrollbar and the track */
    }

.instructions {
    text-align: center;
    background-color: #1a1a1a; /* Darker background to match Fakes Lounge theme */
    color: #fff;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 0px;
    border-radius: 8px;
    font-size: 1.1em;
    border: 2px solid #4b0082; /* Purple border to match the theme */
    width: 95%; /* Adjusted width */
    max-width: 400px; /* Optional, to prevent it from getting too wide on large screens */
    margin-left: auto;
    margin-right: auto;
}

    .instructions p {
        margin: 0;
        font-weight: bold; /* Bold font for emphasis */
    }
/* ========================================================================== */
/* Top Strip and Navigation */
/* ========================================================================== */

.top-strip {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #000; /* Black background for the sticky top strip */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 10px; /* Increase padding to make the top strip taller */
    border-bottom: 3px solid #4b0082; /* Purple sliver */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between title and buttons */
}

    .top-strip h1 {
        margin: 0; /* Remove default margin */
        text-align: left; /* Align title to the left */
        font-size: 60px;
    }

        .top-strip h1 a {
            text-decoration: none; /* Remove underline from link */
            color: #4b0082; /* Purple text color for the site name */
        }

            .top-strip h1 a:hover {
                color: purple; /* Slightly lighter purple on hover */
            }

.nav-buttons {
    display: flex; /* Ensure buttons are aligned in a row */
    gap: 20px; /* Increased space between buttons */
    align-items: center; /* Vertically center buttons */
    margin-left: auto; /* Push buttons to the right side */
    padding-right: 20px; /* Add padding to the right */
}

.nav-button {
    background-color: black; /* Purple background for the buttons */
    color: white;
    padding: 15px 50px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none; /* Remove underline from links */
    transition: background-color 0.3s; /* Smooth transition for background color */
    white-space: nowrap; /* Prevent text from wrapping */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    border: 3px solid #4b0082; /* Border color */
}

    .nav-button:hover {
        background-color: black; /* Slightly darker purple on hover */
        color: #4b0082; /* Text color */
        border: 3px solid #4b0082; /* Border color */
    }

.welcome-text {
    flex: 1 1 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1vw;
}

    .welcome-text img {
        position: absolute; /* Position the image absolutely within the welcome-text container */
        right: 0; /* Align the image to the right */
        max-height: 110px; /* Set the maximum height for the image */
        width: auto; /* Ensure width adjusts automatically */
        margin-top: -65px;
        padding-right: 150px;
    }

/* ========================================================================== */
/* Announcement Bar */
/* ========================================================================== */

.announcement-bar {
    background-color: #4b0082;
    color: white;
    text-align: center;
    font-size: 16px;
    padding: 10px 0;
    position: sticky;
    top: 50px;
    width: 102%;
    z-index: 999;
}

    .announcement-bar p {
        margin: 0;
    }

/* ========================================================================== */
/* Content and Containers */
/* ========================================================================== */

.content {
    padding: 20px;
    text-align: center;
    background-color: #000; /* Black background for the content area */
    border-radius: 8px; /* Optional: Rounded corners for the content area */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Optional: Shadow for the content area */
    flex: 1; /* Allow content to grow and fill available space */
}

    .content h2 {
        margin-top: 0;
        font-size: 3vw;
        align-items: center;
    }

.content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 100px; /* Adjust the width to make the image smaller */
    height: auto; /* Maintain aspect ratio */
    margin-top: -15px;
    padding: 10px;
}

    .thumbnail:hover {
        transform: scale(1.05); /* Slightly zoom the image on hover */
        transition: transform 0.3s ease; /* Smooth transition for the zoom effect */
    }

.categories-container {
    display: flex; /* Use Flexbox for horizontal alignment */
    flex-wrap: wrap; /* Allow items to wrap to the next line if needed */
    justify-content: center; /* Center items horizontally */
    gap: 20px; /* Space between items */
    max-width: 100%; /* Adjust based on desired width */
    text-align: center; /* Center the categories */
    align-items: center; /* Center items vertically */
    margin-top: 20px; /* Add space above the categories */
    position: relative;
}

.category {
    display: flex;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    height: 50px; /* Set fixed height */
    width: 40%; /* Fixed width for the category squares */
    font-size: 4vw; /* Responsive font size based on viewport width */
    text-decoration: none; /* Remove underline from links */
    padding: 50px;
    border: 3px solid #4b0082; /* Border color */
    background-color: black; /* Background color */
    color: #fff; /* Text color */
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1;
}

    .category:hover {
        background-color: #4b0082; /* Slightly darker purple on hover */
        filter: brightness(90%); /* Slightly reduce brightness to create a grayish effect */
        color: #000; /* Text color */
    }

/* ========================================================================== */
/* Buttons */
/* ========================================================================== */

button {
    background-color: black;
    color: white;
    border: 2px solid #4b0082;
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

    button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    button:hover {
        background-color: #4b0082;
        color: black;
    }

.btn {
    background-color: black;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #4b0082;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 5px;
}

    .btn:hover {
        background-color: #000;
        color: #4b0082;
    }

    .btn:active {
        background-color: #5a0a9f; /* Darker purple on click */
        border-color: #5a0a9f; /* Darker purple border on click */
    }

.discord-button {
    background-color: black;
    color: white;
    border: 2px solid #4b0082;
    font-size: 20px;
    display: flex;
}

    .discord-button:hover {
        background-color: #4b0082;
        color: black;
        border: 2px solid #4b0082;
    }

.footer-button {
    display: inline-block;
    padding: 10px 25px;
    margin: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.request-more-btn {
    background-color: #4b0082; /* Pink background color (adjust to match theme) */
    color: white; /* Text color */
    border: none; /* Remove default border */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Adjust font size */
    padding: 10px 20px; /* Space around text */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition on hover */
    margin-top: 20px; /* Add space between button and other elements */
    display: block; /* Ensure the button is on a new line */
    width: auto; /* Let the button size adjust based on text */
    text-align: center; /* Center text inside the button */
    max-width: 300px; /* Limit the width of the button */
    margin-left: auto; /* Center the button horizontally */
    margin-right: auto; /* Center the button horizontally */
}

    .request-more-btn:hover {
        background-color: #4b0082; /* Darker pink on hover */
        transform: translateY(-2px); /* Slight lift on hover */
    }

    .request-more-btn:focus {
        outline: none; /* Remove default outline */
        box-shadow: 0 0 0 2px rgba(255, 64, 129, 0.8); /* Add a glow effect on focus */
    }

    .request-more-btn:disabled {
        background-color: #d3d3d3; /* Light grey background */
        cursor: not-allowed; /* Change cursor to not-allowed */
    }

    .request-more-btn:active {
        transform: scale(0.98); /* Slight shrink effect when pressed */
    }

.back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px; /* Adjust for the space from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust positioning to perfectly center */
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 12px 30px; /* Make it a rectangle */
    border: 2px solid #800080; /* Purple outline */
    border-radius: 5px; /* Slight rounded corners */
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it's above other content */
}

/* ========================================================================== */
/* Image Strip */
/* ========================================================================== */

.image-strip-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 250px;
    border: 2px solid #4b0082;
}

.image-strip {
    display: flex;
    position: absolute;
    left: 0;
    animation: scroll var(--duration, 10s) linear infinite; /* Dynamic duration via JS */
}

    .image-strip img {
        height: 250px;
        margin-right: 5px;
        object-fit: cover;
        border: 1px solid #4b0082;
        flex-shrink: 0;
    }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ========================================================================== */
/* Counter */
/* ========================================================================== */

#counter {
    font-size: 22px;
    padding-top: 30px;
    color: white;
}

#count {
    font-weight: bold;
    color: #C8A000;
}

/* ========================================================================== */
/* Footer */
/* ========================================================================== */

.footer {
    background-color: #000; /* Black background for the footer */
    padding: 20px;
    text-align: center;
    color: #fff;
}

    .footer h2 {
        margin-bottom: 10px;
    }

    .footer form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

/* ========================================================================== */
/* Additional Components */
/* ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.page-button {
    background-color: #000;
    color: #fff;
    border: 2px solid #4b0082;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

    .page-button:hover:not(:disabled) {
        background-color: #4b0082;
        color: #fff;
    }

    .page-button.active {
        background-color: #4b0082;
        color: #fff;
        font-weight: bold;
    }

    .page-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.popup-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for better visibility */
    display: flex; /* Enable flexbox */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    padding-top: 50px; /* Add padding to the top to push it down */
}

.modal-content {
    background-color: black;
    margin: 10% auto; /* Adjusted margin to bring it higher */
    padding: 20px;
    border: 1px solid #4b0082;
    width: 60%; /* Increased width for better fit */
    max-width: 500px; /* Set a max-width for larger screens */
    height: auto; /* Height can be auto to accommodate content */
    text-align: center;
    border-radius: 10px; /* Rounded corners for a softer look */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
}

.popup-image {
    max-width: 100%; /* Make image responsive to modal width */
    height: auto; /* Keep aspect ratio */
    margin: 10px 0; /* Add some space around the image */
}

h2 {
    font-size: 24px; /* Adjust title font size for better visibility */
}

p {
    font-size: 16px; /* Adjust text size for readability */
}

/* ========================================================================== */
/* Media Queries */
/* ========================================================================== */

/* Small mobile screens (max-width: 480px) */
@media (max-width: 480px) {
    .announcement-bar {
        background-color: #4b0082; /* Purple background */
        color: white; /* White text */
        text-align: center; /* Center text */
        font-size: 16px; /* Adjust font size as needed */
        padding: 5px 0; /* Padding for spacing */
        position: sticky; /* Keep the bar stuck at the top */
        top: 50px; /* Position it below the top strip */
        width: 102%; /* Full width */
        z-index: 999; /* Ensure it stays on top */
    }

    .request-more-btn {
        font-size: 12px; /* Further decrease font size for very small screens */
        padding: 10px 15px; /* Further adjust padding */
        max-width: 200px; /* Further reduce max-width */
        width: 100%; /* Let the button take up the full width on very small screens */
    }
}

/* Tablets and smaller screens (max-width: 768px) */
@media (max-width: 768px) {
    .content-container {
        flex-direction: row;
    }

    .ad-container, .bookmark-message {
        display: none;
    }

    #counter {
        font-size: 18px;
    }

    .category {
        height: 40px;
        width: 100%;
        font-size: 20px;
        padding: 20px;
        border: 2px solid #4b0082;
    }

    .categories-container {
        gap: 30px;
        margin-top: 10px;
    }

    .discord-button {
        font-size: 10px;
    }

    .image-strip-container {
        height: 150px;
    }

    .image-strip img {
        height: 150px;
    }

    .top-strip h1 {
        font-size: 24px; /* Reduce font size for smaller screens */
    }

    .top-strip {
        padding: 10px 5px; /* Adjust padding for mobile */
    }

    .back-to-top {
        display: block; /* Show the button only on mobile */
    }

    .nav-button, .btn {
        padding: 10px 15px;
        font-size: 16px;
    }

    .thumbnail {
        width: 15vw; /* Adjust the width to make the image smaller */
        padding: 1vw;
    }

    .content h2 {
        font-size: 5vw;
    }

    .welcome-text {
        font-size: 3vw;
    }
}
