/* General Styles */
body {
    background-color: #2e2e2e;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: black url('images/background.png') no-repeat center center fixed;
    background-size: cover;
    color: white; /* Ensures text remains readable */
}

/* mobile background */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* stop zoom and crop */
    }
}

/* Header */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Logo Styling */
.logo img, .logo-title .logo-image img {
    height: auto;
}

.logo img {
    width: 100px; /* eBay button */
}

.logo-title .logo-image img {
    width: 400px; /* Pinball Vault logo */
}

/* Navigation Buttons (Hidden) */
.nav-buttons {
    display: none;
}

/* Ensure header uses flexbox for proper alignment */
.header {
    display: flex;
    align-items: center;
    justify-content: center; /* Center everything */
    position: relative;
    padding: 10px;
}

/* eBay logo aligned to the left */
.logo {
    position: absolute;
    left: 10px;
}

/* Pinball Vault logo centered */
.logo-title {
    flex-grow: 1; /* Allows it to take the available space */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hamburger menu icon */
.hamburger-menu {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

/* Each line of the hamburger */
.hamburger-menu div {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* When menu is active */
.hamburger-menu.active div:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active div:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active div:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


/* Hide the normal buttons (Contact Me & Info) */
.contact-button,
.info-button {
    display: none;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .logo img {
        width: 60px !important; /* Force the new size */
        height: auto !important;
    }

    /* Move eBay button further left */
    .logo {
        position: absolute;
        left: 0;
        margin-left: -20px;
    }
}
    /* Pinball Vault logo */
    .logo-title .logo-image img {
        width: 180px; /* Adjust size */
        transform: translateX(15px); /* Move right */
    }

    /* Move the logo left/right */
    .logo {
        transform: translateX(20px); /* Moves it right */
        /* transform: translateX(-20px);  Moves it left */
    }

.hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 30px;
    background-color: #333;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    top: 60px;
    right: 100px;
    padding: 10px;
    border-radius: 5px;
}

.dropdown-menu a:hover {
    background-color: #555;
}

.dropdown-menu.show {
    display: block;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .header button {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
}

/* Content */
.content {
    padding: 20px;
    margin-top: 80px;
}

/* Marquee Grid */
.marquee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Marquee Item */
.marquee-item {
    background-color: #424242;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marquee-item img {
    max-width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

/* Buttons */
.header button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 5px;
    font-size: 16px;
}

.header button:hover {
    background-color: #555;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Availability Styles */
.available {
    color: #00cc00;
    font-weight: bold;
}

.out-of-stock {
    color: #cc0000;
    font-weight: bold;
}

/* Title Styling */
.title {
    font-weight: bold;
    color: #d1d1d1;
    text-decoration: none;
}

.title:hover {
    color: #73b7ff;
}
.hamburger-menu {
    padding-right: 20px; /* Adjust the value as needed */
}
