/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;

}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Adjust the weight for readability */
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Sticky Header Styling */
header {
    position: sticky;
    top: 0;
    background-color: whitesmoke;
    color: #CA3F3F;
    z-index: 1000;
    width: 100%;
}

header .container {
    position: relative; /* Needed for absolute positioning of navlinks */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-family: 'Afacad Flux',serif;
    font-size: 4rem;
    margin: 10px 0;
    font-weight: 800;
}

header h1 a {
    color: #CA3F3F;
    text-decoration: none;
}

.navlinks {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navlinks li {
    margin-left: 20px;
}

.navlinks a {
    color: #CA3F3F;
    text-decoration: none;
    font-weight: bold;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100; /* Ensure it stays above navlinks */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #1E1E1E;
    margin: 4px 0;
    transition: all 0.4s ease;
}

/* Overlay */
#overlay {
    display: none; /* Hidden by default */
}

/* Main Content */
.headerp {
    text-align: center;
    margin: 2rem auto;
    width: 80%;
    max-width: 800px;
}

/* Collapsible Sections */
.collapsible {
    background-color: #1EA896;
    color: white;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    margin-top: 10px;
}

.collapsible.active, .collapsible:hover {
    background-color: #1EA896;
}

.collapsible::after {
    content: '\002B'; /* Plus sign */
    color: white;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.collapsible.active::after {
    content: "\2212"; /* Minus sign */
}

.content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: #f9f9f9;
    scroll-margin-top: 100px; /* Adjust this value to match the height of your header */
}

.content.show {
    max-height: none;
    overflow: visible;
}

.content p, .content ul, .content ol {
    margin: 15px 0;
}

.content h3 {
    font-size: 1.5rem;
    margin-top: 20px;
}

/* Table of Contents */
.toc {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin: 10px 0;
}

.toc a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1rem;
}

.toc a:hover {
    text-decoration: underline;
}

/* blurb section */
.main-content {
    background-color: #1E1E1E;
    padding: 30px 0;
}

.main-content p {
    font-family: 'Afacad Flux', serif;
    font-size: 2rem;
    color: whitesmoke;
}

/* Setup Section */
.setup-section {
    background-color: whitesmoke;
    padding: 30px 0;
    
}

.setup-section h2 {
    font-family: 'Afacad Flux', serif;
    font-size: 2.5rem;
    color: #1E1E1E;
}

.setup-section ul {
    list-style-type: disc;
    margin-left: 20px;
    font-size: 1.2rem;
}

.setup-section ul li {
    margin: 15px 0;
}

.setup-section ul li strong {
    color: #CA3F3F;
}

/* Rules Section */
.rules-section {
    background-color: #fff;
    padding: 30px 0;
}

.rules-section h2 {
    font-family: 'Afacad Flux', serif;
    font-size: 2.5rem;
    color: #1E1E1E;
}

.rules-section ul {
    list-style-type: square;
    margin-left: 20px;
    font-size: 1.2rem;
}

.rules-section ul li {
    margin: 15px 0;
}

.rules-section ul li strong {
    color: #1EA896;
}

/* Products Section */
.products-section {
    padding: 30px 0;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: calc(33.333% - 20px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: auto;
}

.product-card h3 {
    font-size: 1.5rem;
    margin: 15px;
}

.product-card p {
    margin: 0 15px 15px;
    flex-grow: 1;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 15px 15px;
}

.product-card .rating {
    margin: 0 15px 15px;
    color: #f1c40f;
}

.product-card .btn {
    background-color: #1EA896;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1rem;
    margin: auto 15px 15px;
    border-radius: 4px;
}

.product-card .btn:hover {
    background-color: whitesmoke;
}

.cta-link {
    background-color: #ffcc00; /* Yellow background for emphasis */
    color: #1E1E1E; /* Black text for readability */
    font-family: 'Afacad Flux', sans-serif; /* Use Afacad Flux to match your branding */
    font-weight: 800; /* Bold weight to make it stand out */
    text-align: center;
    padding: 10px 20px;
    display: inline-block;
    margin-top: 4rem;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.cta-link a {
    color: #1E1E1E; /* Make the link text black */
    text-decoration: none; /* Remove underline */
    font-weight: 800; /* Bold link text */
}

.cta-link a:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Footer */
footer {
    background-color: #CA3F3F;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust the height as needed */
    background-color: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: flex-start; /* Align items horizontally to the left */
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    margin-left: 5%; /* Adjust as needed */
    z-index: 3; /* Ensure it stays above the arc */
}

/* Arc Container */
#arc-container {
    position: absolute; /* Position absolutely within the .hero section */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Place it behind the hero content */
}

/* Circles */
.circle {
    position: absolute;
    border: 3px solid #CA3F3F;
    border-radius: 50%;
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Ping Pong Ball Image */
.pingpong-ball {
    position: absolute;
    width: 120px;
    height: 120px;
    left: 85%; /* Adjust as needed */
    top: 70%;  /* Adjust as needed */
    transform: translate(-50%, -50%);
    z-index: 2; /* Place it above the arc but possibly below hero content */
}

/* Hero Heading */
.hero h2 {
    color: #1E1E1E;
    font-family: 'Afacad Flux', serif;
    font-size: 6rem;
    text-align: left;
    max-width: 50%;
    line-height: 1.1;
    margin-bottom: 2rem;
    padding: 0;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between buttons */
    margin-top: 20px; /* Space between heading and buttons */
    margin-bottom: 3rem;
}

.cta-button {
    background-color: #1ea896;
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Afacad Flux', serif;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #17a589; /* Slightly darker on hover */
}

@media (max-width: 768px) {

    .cta-buttons {
        flex-direction: column;
        align-items: flex-start; /* Align buttons to the left */
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .product-card {
        width: calc(50% - 20px);
    }
    .hero {
        height: auto;
    }
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    header h1 {
        font-size: 3rem;
        margin-bottom: 0;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide navigation links */
    .navlinks {
        position: absolute;
        top: 100%; /* Position it just below the header */
        left: 0;
        flex-direction: column;
        background-color: whitesmoke; /* Same as header background */
        width: 100%;
        max-height: 0; /* Hide menu initially */
        overflow: hidden;
        align-items: center;
        transition: max-height 0.3s ease-in-out;
        z-index: 1000;
    }

    .navlinks li {
        margin: 0;
    }

    .navlinks a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #34495e;
    }

    /* When the menu is active */
    .navlinks.nav-active {
        max-height: 300px; /* Adjust based on content */
    }

    /* Transform hamburger to X */
    .hamburger.toggle .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Overlay */
    #overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 900;
    }

    /* Show overlay when menu is active */
    .overlay-active {
        display: block;
    }

    /* Products grid adjustments */
    .product-card {
        width: 100%;
    }

    .products-grid {
        gap: 20px;
    }

    /* Adjust header container */
    header .container {
        flex-wrap: nowrap;
    }

    /* Adjust leader images */
    .leader img {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }

    .setup-section h2,
    .rules-section h2,
    .leaders-section h2,
    .products-section h2 {
        font-size: 2rem;
    }

    .setup-section ul li,
    .rules-section ul li,
    .leader p,
    .product-card p {
        font-size: 1rem;
    }

    /* Adjust collapsible button font size */
    .collapsible {
        font-size: 1rem;
        padding: 12px;
    }

    .collapsible::after {
        font-size: 1.5rem;
    }

    .content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.5rem;
    }

    .navlinks a {
        padding: 12px 0;
    }

    .setup-section h2,
    .rules-section h2,
    .leaders-section h2,
    .products-section h2 {
        font-size: 1.5rem;
    }

    .setup-section ul li,
    .rules-section ul li,
    .leader p,
    .product-card p {
        font-size: 0.9rem;
    }

    /* Adjust collapsible button font size */
    .collapsible {
        font-size: 0.9rem;
        padding: 10px;
    }

    .collapsible::after {
        font-size: 1.2rem;
    }

    .content h3 {
        font-size: 1.1rem;
    }
}