body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: black;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 100%;
}

nav {
    background-color: black;
    height: 100px;
    padding: 20px;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

nav img {
    height: 100%;  /* This matches the inline style we're using */
    width: auto;
    box-sizing: border-box;
    object-fit: contain;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
    padding: 0.5rem 1rem;
    color: white;
}

nav ul li:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -1rem;
    color: #666;
}

nav ul li a, nav ul li.selected {
    text-decoration: none;
    color: inherit;
    font-size: 1.4rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    position: relative;
    display: inline-block;
}

nav ul li a::after, nav ul li.selected::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.2s ease;
}

nav ul li a:hover, nav ul li.selected {
    color: #ffd700;
}

nav ul li a:hover::after, nav ul li.selected::after {
    width: 100%;
}

@media (max-width: 768px) {
    nav {
        padding: 10px;
        height: 80px;  /* Fixed height for better control */
        min-height: 60px;
        flex-wrap: wrap;
    }

    nav img {
        height: 100%;  /* Keep consistent with desktop */
    }

    nav ul {
        width: 100%;
        justify-content: center;
        padding: 10px 0;
        gap: 10px;
        flex-wrap: wrap;
    }

    nav ul li {
        padding: 5px 10px;
    }

    nav ul li:not(:last-child)::after {
        display: none;  /* Remove dots on mobile */
    }

    nav ul li a {
        font-size: 1.1rem;
        white-space: nowrap;
    }
}

@media (max-width: 500px) {
    nav {
        padding: 8px;
        height: 60px;  /* Fixed height for better control */
    }

    nav ul {
        padding: 8px 0;
        gap: 6px;
    }

    nav ul li {
        padding: 3px 6px;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 2px 4px;
    }
}

@media (max-width: 360px) {
    nav {
        height: 50px;  /* Fixed height for better control */
    }

    nav ul {
        gap: 4px;
    }

    nav ul li {
        padding: 2px 4px;
    }

    nav ul li a {
        font-size: 0.85rem;
    }
}

.grid-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.category-row {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    background-color: white;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
    background-color: #f8f8f8;
    height: 150px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.thumbnail {
    width: 150px;
    height: 150px;
    margin: 0;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.category-title {
    flex: 1;
    margin: 0;
    font-size: 1.6rem;
    color: #333;
    padding-left: 1.5rem;
}

.expand-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 1.5rem 3rem;
    color: #666;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
}

.category-content p {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: #333;
    font-size: 1.2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 calc(150px + 4.5rem);
    box-sizing: border-box;
}

/* Specific style for arcade section */
.category-row:has(.thumbnail img[src*="skeeball"]) .category-content p {
    max-width: 1400px;
    padding: 0 2rem;
}

/* Specific style for baseball section */
.baseball-dropdown .content-wrapper p {
    max-width: 1400px;
    padding: 0 2rem;
}

.learn-more {
    display: block;
    margin: 0 calc(200px + 6rem); /* Match paragraph padding */
    padding-bottom: 2rem;
    text-decoration: none;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.learn-more h3 {
    color: #0066cc;
    border: 2px solid #0066cc;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: inline-block;
}

.learn-more h3:hover {
    background-color: #0066cc;
    color: white;
}

@media (max-width: 768px) {
    .category-header {
        height: 120px;
    }

    .thumbnail {
        width: 120px;
        height: 120px;
    }

    .category-title {
        font-size: 1.4rem;
        padding-left: 1rem;
    }

    .expand-btn {
        padding: 1rem 2rem;
        margin-right: 1rem;
        font-size: 1.6rem;
    }

    .category-content p {
        padding: 0 1.5rem;
        font-size: 1.1rem;
        margin: 1rem 0;
    }
}

.grid-container>div {
    padding: 20px;
}

.grid-container img {
    width: 100%;
    height: auto;
    border: solid rgb(95, 95, 95) 0.2rem;
}

.parallax {
    background-image: url('media/bowling/bowlingwide.webp');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Optimize background attachment for mobile */
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
        height: 300px;
    }
}

/* Add will-change for smoother parallax scrolling */
@media (min-width: 769px) {
    .parallax,
    .parallax-bowling,
    .baseball-parallax,
    .pickleball-parallax,
    .bumpercar-parallax,
    .arcade-parallax,
    .food-parallax {
        will-change: transform;
    }
}

.parallax-title {
    color: white;
    font-size: 5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.parallax-button {
    text-align: center;

    padding: 50px;
    border: solid black;
    margin: 0;
}

.parallax-bowling {
    background-image: url('media/bowling/bowling-rack.webp');
    height: 100px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* margin-left: 5%;
    margin-right: 5%; */
}

.bowling-prices-box {
    width: 100%;
    margin: 0;
    margin-top: 50px;
    text-align: center;
    height: auto;
}

.bowling-prices-box img {
    max-width: 100%;
    height: auto;
    width: auto;

}

.header {
    display: flex;
    background-image: url('media/bowling/bowling-lane-background.webp');
    text-align: center;
    height: 100px;
    align-items: center;
    justify-content: center;
    border: solid rgb(122, 94, 16) 5px;
    margin: 0;
    font-family: coolfont;
}

.specials-images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    width: 100%;
    box-sizing: border-box;

    padding: 50px;

    align-items: center;
    justify-items: center;


}

.specials-images img {
    width: auto;
    height: auto;

    max-height: 741px;
    max-width: 100%;

    border: solid rgb(29, 29, 29);
    
    /* max-height: px; */
    /* max-width: auto; */

}




.baseball-parallax {
    background-image: url('media/baseball/sebastian.webp');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.baseball-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: white;
    align-items: center;
    
}

.baseball-container img {
    width: 100%;
}

.baseball-container > div:first-child {
    justify-self: start; 
}

.baseball-container > div:last-child {
    justify-self: end;
}

#menus > h2 {
    text-align: center;
    color: white;
    padding: 1rem;
    background-color: rgb(149, 6, 6);
}

#menus {
    position: relative;
}

.hamburger-menu {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger-menu.active span:first-child {
    transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:last-child {
    transform: rotate(-45deg);
}

#menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    transition: all 0.3s ease-in-out;
    max-height: 2000px;
    overflow: hidden;
}

.menu-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.menu-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: scale(1.02);
}

.menu-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.menu-item p {
    text-align: center;
    margin-top: 10px;
    color: white;
    font-size: 1.2em;
}

/* 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.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

#menu-container.menu-collapsed {
    max-height: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .menu-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-item {
        min-width: 90%;
        max-width: 90%;
    }
}

.partypackages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100vw;
    height: 100%;
    margin: 0;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 2rem;
    overflow: hidden;
}

.partypackages-container div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.partypackages-container img {
    width: auto;
    height: auto;
    max-width: min(800px, 90%);
    max-height: calc(100vh - 140px); /* Account for nav + padding */
    object-fit: contain;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    margin: 0;
    box-sizing: border-box;
}

#party-packages {
    width: 100vw;
    height: calc(100vh - 100px); /* Account for nav height */
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: transparent;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#party-packages::before,
#party-packages::after {
    content: '';
    position: absolute;
    bottom: -50%;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    animation: colorPulse 4s infinite;
    filter: blur(100px);
    pointer-events: none;
}

#party-packages::before {
    left: -50%;
    transform: rotate(35deg);
}

#party-packages::after {
    right: -50%;
    transform: rotate(-35deg);
}

@keyframes colorPulse {
    0% {
        background: rgb(255, 0, 0);
        transform: translateY(0) rotate(var(--rotation));
    }
    25% {
        background: rgb(0, 255, 0);
        transform: translateY(-20px) rotate(var(--rotation));
    }
    50% {
        background: rgb(0, 0, 255);
        transform: translateY(0) rotate(var(--rotation));
    }
    75% {
        background: rgb(255, 0, 255);
        transform: translateY(-20px) rotate(var(--rotation));
    }
    100% {
        background: rgb(255, 0, 0);
        transform: translateY(0) rotate(var(--rotation));
    }
}

#party-packages::before {
    --rotation: 35deg;
}

#party-packages::after {
    --rotation: -35deg;
}

.partypackages-container {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

#party-packages  h2 {
    text-align: center;
    color: white(194, 15, 15);
    padding: 1rem;
    background-color: rgb(14, 88, 14);
    border: solid rgb(21, 125, 9);
    margin: 0;
}

.descriptor > div {
    background-color: black;
    color: white;
    padding: 10px;
}


.pickleball-parallax {
    background-image: url('media/pickleball/pickleball-sun.webp');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.bumpercar-parallax {
    background-image: url('media/bumpercars/kid.webp');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}




.bumpercar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: white;
}

.bumpercar-container img {
    width: 100%;
}





.arcade-parallax {
    background-image: url('media/arcade/arcade-background.webp');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.arcade-container {
    /* margin-top: 30px; */
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;
}

.arcade-container img {
    width: 100%;
}


.food-parallax {
    background-image: url('media/food/food-background.webp');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.food-container {

    display: grid;
    grid-template-columns: 1fr 1fr;

    color: white;

    align-items: center;
}

.advert-left {
    padding-left: 10px;
}

.advert-right {
    padding-right: 10px;
}

.section-heading {
    color: white;
    height: 100%;
    margin-top: 0;
}
.section-heading h2 {
    margin-top: 0;
    text-align: center;
    padding-top: 15px;
}


#fundraising {
    background-color: #cfc04d;
}
.fundraising-container {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: auto;
    max-height: 100vh;
    max-width: 100%;
}
.fundraising-container div {
    text-align: center;
}
.fundraising-container img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
}


#end-advertisements-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    align-items: center;
    text-align: center;
    justify-content: center;
    justify-items: center;
}


@media (max-width: 900px) {
    .parallax {
        background-attachment: scroll;
        height: 300px;
    }
    .parallax-bowling {
        background-attachment: scroll;
        height: 100px;
    }
    .baseball-parallax {
        background-attachment: scroll;
        height: 400px;
    }
    .pickleball-parallax {
        background-attachment: scroll;
        height: 400px;
    }
    .bumpercar-parallax {
        background-attachment: scroll;
        height: 400px;
    }
    .arcade-parallax {
        background-attachment: scroll;
        height: 400px;
    }
}

/* #bumpercars {
    margin: 5%;
}
#baseball  {
    margin: 5%;
}
#arcade {
    width: 100%;
} */

.custom-font {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


.pickleball-announcement {
    background-color: #425b82;
    color: white;
    width: 100%;
    text-align: center;
    border-top: #3d5070 5px solid;
    border-bottom: #3d5070 5px solid;
    padding: 1rem;
    max-width: 100%;
}
.pickleball-announcement a {
    color: orange;
}
.pickleball-announcement img{
    width: auto;
    border-radius: 10px;
    max-width: 100%;
}

.bowling-specials-container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: black;
    color: white;
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
}

.left-column {
    flex: 1.5;
    min-width: 600px;
    max-width: 900px;
    height: 100%;
    display: flex;
    align-items: center;
}

.left-column img {
    width: 100%;
    height: auto;
    max-height: 120%;
    object-fit: contain;
    display: block;
}

.right-column {
    flex: 1;
    min-width: 500px;
    max-width: 700px;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.specials-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    height: 100%;
    width: 100%;
    flex: 1;
}

.special-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
}

.special-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .bowling-specials-container {
        flex-direction: column;
        padding: 1rem;
    }

    .left-column,
    .right-column {
        width: 100%;
        max-width: none;
        min-width: unset;
    }

    .specials-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.2s;
}

.clickable-image:hover {
    transform: scale(1.02);
}

.bowling-dropdown {
    background-image: url('media/bowling/bowling-rack.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bowling-dropdown p {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem 4rem;
    margin: 2rem auto;
    border-radius: 8px;
    max-width: 800px;
    text-align: center;
}

@media (max-width: 768px) {
    .bowling-dropdown p {
        padding: 1.5rem 2rem;
        margin: 1rem;
        max-width: 90%;
    }
}

.baseball-dropdown {
    background-image: url('media/baseball/sebastian.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.baseball-dropdown .content-wrapper {
    background-color: rgba(128, 0, 0, 0.7);
    padding: 3rem 4rem;
    margin: 2rem auto;
    border-radius: 8px;
    max-width: 1400px;
    text-align: center;
}

.baseball-dropdown p {
    margin: 0 0 2.5rem 0;
    line-height: 1.8;
    color: white;
    font-size: 1.4rem;
}

.baseball-dropdown .learn-more {
    display: inline-block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.baseball-dropdown .learn-more h3 {
    color: white;
    border: 2px solid white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.baseball-dropdown .learn-more h3:hover {
    background-color: white;
    color: rgb(128, 0, 0);
}

@media (max-width: 768px) {
    .baseball-dropdown .content-wrapper {
        padding: 2rem;
        margin: 1rem;
        max-width: 98%;
    }
    
    .baseball-dropdown p {
        margin-bottom: 2rem;
    }
}

.bumpercar-dropdown {
    width: 100%;
    box-sizing: border-box;
}

.bumpercar-dropdown .content-wrapper {
    background-color: #4b0082;
    background-image: 
        radial-gradient(
            circle at 30% 50%,
            rgba(255, 255, 0, 0.3) 0%,
            transparent 60%
        ),
        conic-gradient(
            from 220deg at 30% 50%,
            transparent 0deg,
            transparent 30deg,
            rgba(255, 255, 0, 0.2) 30deg,
            rgba(255, 255, 0, 0.2) 60deg,
            transparent 60deg,
            transparent 90deg,
            rgba(255, 255, 0, 0.2) 90deg,
            rgba(255, 255, 0, 0.2) 120deg,
            transparent 120deg,
            transparent 150deg,
            rgba(255, 255, 0, 0.2) 150deg,
            rgba(255, 255, 0, 0.2) 180deg,
            transparent 180deg
        );
    background-size: 400px 400px;
    padding: 3rem 4rem;
    margin: 2rem auto;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.bumpercar-dropdown .content-wrapper:hover {
    background-position: 20px 0;
}

.bumpercar-dropdown .content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        conic-gradient(
            from 130deg at 50% 50%,
            transparent 0deg,
            transparent 30deg,
            rgba(255, 255, 0, 0.15) 30deg,
            rgba(255, 255, 0, 0.15) 60deg,
            transparent 60deg,
            transparent 90deg,
            rgba(255, 255, 0, 0.15) 90deg,
            rgba(255, 255, 0, 0.15) 120deg,
            transparent 120deg,
            transparent 150deg,
            rgba(255, 255, 0, 0.15) 150deg,
            rgba(255, 255, 0, 0.15) 180deg,
            transparent 180deg
        );
    background-size: 300px 300px;
    border-radius: 0;
    z-index: 0;
    transition: all 0.3s ease;
}

.bumpercar-dropdown .content-wrapper:hover::before {
    background-position: -10px 0;
    background-size: 310px 310px;
}

.bumpercar-dropdown p {
    max-width: 1400px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.8;
    color: white;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
    padding: 2rem;
    background-color: rgba(75, 0, 130, 0.95);  /* Solid purple background */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.bumpercar-dropdown .learn-more {
    display: inline-block;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.bumpercar-dropdown .learn-more h3 {
    color: yellow;
    border: 2px solid yellow;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.bumpercar-dropdown .learn-more h3:hover {
    background-color: yellow;
    color: #4b0082;
}

@media (max-width: 768px) {
    .pickleball-dropdown .content-wrapper,
    .bumpercar-dropdown .content-wrapper {
        padding: 1rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .pickleball-dropdown p,
    .bumpercar-dropdown p {
        padding: 1rem;
        margin: 0;
        font-size: 1.1rem;
        width: 100%;
        max-width: 100%;
    }

    .category-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
}

.pickleball-dropdown {
    width: 100%;
}

.pickleball-dropdown .content-wrapper {
    background-image: url('media/pickleball/pickleball-sun.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 3rem 4rem;
    margin: 2rem auto;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.pickleball-dropdown p {
    background-color: rgba(25, 55, 125, 0.7);
    max-width: 1400px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.8;
    color: white;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
    padding: 2rem;
    border-radius: 8px;
    box-sizing: border-box;
}

.pickleball-dropdown .learn-more {
    display: inline-block;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.pickleball-dropdown .learn-more h3 {
    color: #333;
    background-color: rgba(173, 255, 47, 0.7);
    border: 2px solid #333;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.pickleball-dropdown .learn-more h3:hover {
    background-color: rgba(173, 255, 47, 0.9);
    color: #333;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .pickleball-dropdown .content-wrapper {
        padding: 2rem;
        margin: 1rem;
        max-width: 98%;
    }
    
    .pickleball-dropdown p {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
}

/* Pickleball Page Styles */
.navtwo {
    background-color: #333;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navtwo ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navtwo ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.navtwo ul li a:hover {
    background-color: #ffd700;
    color: #333;
}

.membership-box {
    background-color: #f5f5f5;
    padding: 2rem;
    text-align: center;
}

#membership-message {
    margin-bottom: 2rem;
}

#membership-message h3 {
    color: #333;
    font-size: 1.8rem;
}

#membership-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.app-download-box {
    background-color: white;
    padding: 3rem 1rem;
}

.app-download-box .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.app-download-box .grid-container div {
    text-align: center;
}

.app-download-box img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.button a {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button a:hover {
    background-color: #45a049;
}

.instructions-box {
    background-color: #f9f9f9;
    padding: 3rem 1rem;
}

.instructions {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.instructions h2 {
    color: #333;
    margin-bottom: 2rem;
}

.instructions h3 {
    color: #666;
    margin: 1.5rem 0 0.5rem;
}

.instructions p {
    color: #777;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.schedule {
    padding: 3rem 1rem;
    text-align: center;
    background-color: white;
}

.schedule h1 {
    color: #333;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .navtwo ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .app-download-box .grid-container {
        grid-template-columns: 1fr;
    }

    #membership-message h3 {
        font-size: 1.4rem;
    }
}

.pickleball-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pickleball-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pickleball-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pickleball-card h2 {
    color: #333;
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ffd700;
}

.pickleball-card img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    transform: translateZ(0);  /* Force GPU acceleration */
}

/* Add specific style for membership image */
.pickleball-card img[src*="thirtydollarmembership"] {
    max-width: 400px;
    width: 100%;
    display: block;
    margin: 1rem auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pickleball-card img[src*="thirtydollarmembership"]:hover {
    transform: scale(1.02);
}

/* Modal styles for membership image */
.membership-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.membership-modal img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.membership-modal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.membership-modal .close:hover {
    color: #bbb;
}

@media (max-width: 768px) {
    .pickleball-bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .pickleball-grid {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
        height: 300px;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 100vw;
    }

    .parallax-title {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
        padding: 0 1rem;
        text-align: center;
        width: 100%;
    }
}

/* Add loading="lazy" to images via CSS where possible */
img:not([loading]) {
    loading: lazy;
}

/* Exclude above-the-fold images from lazy loading */
.parallax img,
nav img {
    loading: eager !important;
}

/* Featured Sections Styles */
.featured-section {
    padding: 3rem 0;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.featured-section:nth-child(odd) {
    background-color: #f8f8f8;
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-image {
    flex: 0 0 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-image img:hover {
    transform: scale(1.05);
}

.featured-text {
    flex: 1;
    padding: 1rem;
}

.featured-text h3 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.featured-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ffd700;
}

.featured-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.featured-text .learn-more {
    display: inline-block;
    text-decoration: none;
}

.featured-text .learn-more h3 {
    font-size: 1.2rem;
    color: #0066cc;
    border: 2px solid #0066cc;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0;
}

.featured-text .learn-more h3:hover {
    background-color: #0066cc;
    color: white;
}

/* Section-specific styles */
.bowling-section .featured-text h3::after {
    background-color: #ff6b6b;
}

.pickleball-section .featured-text h3::after {
    background-color: #4CAF50;
}

.padel-section .featured-text h3::after {
    background-color: #00bcd4;
}

.arcade-section .featured-text h3::after {
    background-color: #9c27b0;
}

.bumpercar-section .featured-text h3::after {
    background-color: #2196F3;
}

@media (max-width: 1024px) {
    .featured-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .featured-image {
        flex: 0 0 300px;
        width: 100%;
        max-width: 500px;
    }

    .featured-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .featured-section {
        padding: 2rem 0;
    }

    .featured-content {
        padding: 0 1rem;
    }

    .featured-image {
        height: 250px;
        border-radius: 4px;  /* Smaller border radius on mobile */
    }

    .featured-text h3 {
        font-size: 2rem;
        margin-bottom: 1rem;  /* Reduced margin */
    }

    .featured-text p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;  /* Reduced margin */
    }

    /* Make learn more button more touch-friendly */
    .featured-text .learn-more h3 {
        padding: 1rem 2rem;  /* Larger touch target */
        font-size: 1.1rem;
        display: inline-block;
        min-width: 140px;  /* Ensure minimum width for touch */
    }

    /* Optimize image loading for mobile */
    .featured-image img {
        loading: lazy;  /* Lazy load images on mobile */
    }
}

/* Add specific optimizations for very small screens */
@media (max-width: 480px) {
    .featured-section {
        padding: 1.5rem 0;
    }

    .featured-image {
        height: 200px;  /* Even smaller images for very small screens */
    }

    .featured-text h3 {
        font-size: 1.8rem;
    }

    .featured-text p {
        font-size: 1rem;
        line-height: 1.6;  /* Slightly reduced line height */
    }

    .featured-content {
        gap: 1.5rem;  /* Reduced gap between elements */
    }
}

/* Ensure smooth scrolling on mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;  /* Smooth scrolling on iOS */
}

/* Optimize touch targets */
.featured-text .learn-more {
    margin-top: 1rem;
    display: inline-block;
    min-height: 44px;  /* Minimum touch target size */
    min-width: 44px;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 188, 212, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.coming-soon-overlay span {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.8rem 1.5rem;
    border: 3px solid white;
    border-radius: 8px;
    transform: rotate(-15deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulseScale 2s infinite;
}

@keyframes pulseScale {
    0% {
        transform: rotate(-15deg) scale(1);
    }
    50% {
        transform: rotate(-15deg) scale(1.1);
    }
    100% {
        transform: rotate(-15deg) scale(1);
    }
}

@media (max-width: 768px) {
    .coming-soon-overlay span {
        font-size: 1.5rem;
        padding: 0.6rem 1.2rem;
    }
}


