body, html {
    margin: 0;
    padding: 0;
    font-family: 'Teko', sans-serif;
    background-color: #000;
    color: #EB3A26;
    font-size: 18px;
    scroll-behavior: smooth;
    width: 100%; /* Ensure the full width is covered */
    margin: 0;
    padding: 0;
}

header {
    background-color: #000;
    color: #EB3A26;
    padding: 2px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#home, #about, #classes, #pricing, #contact {
    position: relative;
    padding: 50px 20px;
    color: white;
    text-align: center;
    scroll-margin-top: 65px; /* Add this line */
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#logo img {
    height: 180px;
    width: auto;
    display: block;
}

#navbar {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

#navbar li a {
    text-decoration: none;
    color: #EB3A26;
    font-size: 1.8em;
    padding: 0.5em 1em;
}

#navbar li a:hover, #navbar li a:focus {
    background-color: #EB3A26;
    color: #fff;
    border-radius: 3px;
}

#home, #about, #classes, #pricing, #contact {
    position: relative;
    padding: 50px 20px;
    color: white;
    text-align: center;
}

#home {
    min-height: 100vh;
    background: url('background.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#home h1 {
    font-size: 3em;
}

.home-text {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 20px;
    width: 60%;
    margin: 0 auto;
    font-size: 1.8em;
}

.cta-button {
    padding: 15px 30px;
    font-size: 1.8em;
    background-color: #EB3A26;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #fff;
    color: #000;
}

#about .about-container {
    display: flex;
    position: relative; /* Context for absolute positioning of children */
    min-height: 400px; /* Adjust to your preference */
}

#about .about-text {
    position: relative; /* Positioned relative to the container */
    z-index: 3; /* Higher z-index to ensure it's above the image */
    width: 50%; /* Takes up half of the container */
    padding: 20px;
    font-size: 1.8em;
    background-color: rgba(0, 0, 0, 0); /* Semi-transparent background */
    color: #fff;
}

#about .about-text h2, .classes-container h2 {
    font-weight: normal; /* Or whichever weight is preferred */
    font-size: 1.8em;
    font-weight: 400; /* Example: Adjust this to your desired weight */
}

#about .about-image {
    position: absolute; /* Absolute position to allow it to be placed behind the text */
    z-index: 1; /* Below the text layer */
    right: 0; /* Align to the right side of the container */
    top: 0;
    bottom: 0;
    width: 65%; /* Takes up more than half of the container to overlap */
    overflow: hidden; /* Hide any overflow */
}

#about .about-image img {
    height: 100%;
    width: 100%; /* This will cover the space allocated by .about-image */
    object-fit: cover; /* Cover the container without cropping */
    object-position: center; /* Center the image within the allocated space */
}
#about .semi-transparent-layer {
    position: absolute; /* Necessary to position it within the about-container */
    z-index: 2; /* Above the image but below the text */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    top: 0;
    bottom: 0;
    left: 0; /* It should start from the left edge of the container */
    right: 0; /* And span to the right edge, covering the entire container */
}

.classes-container {
    background-color: #000;
    color: #fff;
    padding: 50px 20px;
    width: 90%; /* Adjust the width as necessary */
    margin-left: auto;
    margin-right: 0;

}
.classes-container table {
    margin: 0 auto; /* Center the table horizontally */
    width: 90%;
    border-collapse: collapse;
    margin: 50px 0;
    font-size: 1em; /* Match the default size of the 'Our Story' body text */
}

.classes-container h2 {
    font-size: 3em; 
    margin-bottom: 0.5em;
    color: #fff;
}

.classes-container .timing-quote {
    font-size: 2.8em; /* This matches the base body text size */
    width: 90%;
    color: #fff;
}

.classes-container table {
    font-size: 1.5em; /* This matches the base body text size */
    color: #fff;
}
.classes-container th, 
.classes-container td {
    border: 1px solid #fff;
    padding: 25px;
    text-align: center;
}

.classes-container th {
    background-color: #222; /* Slightly lighter black for headers */
}

.classes-container td {
    background-color: #000; /* Black cells for time slots */
}

#pricing {
    background-color: #000; /* Black background for the section */
    text-align: center;
    padding: 50px 20px;
}

.pricing-container {
    display: inline-block;
    padding: 30px;
    width: 80%; /* Adjust the width as necessary */
    max-width: 400px; /* Adjust maximum width as necessary */
    margin: 0 auto; /* Center the box */
    background-color: #000; /* Black background for the container */
}

.membership-heading {
    background-color: #EB3A26; /* Red background for the heading */
    border-radius: 15px; /* Rounded corners for the heading */
    display: inline-block;
    width: 100%;
    margin-bottom: 20px; /* Space below the heading */
}

.pricing-container h2 {
    color: #ffffff; /* White text for the heading */
    padding: 10px 20px;
    margin: 0; /* Remove default margins */
    font-size: 2.5em;
}

.price-tag {
    background-color: #EB3A26; /* Red background for the price */
    color: #ffffff; /* White text for the price */
    border-radius: 15px; /* Rounded corners for the heading */
    font-size: 2.5em;
    padding: 10px 10px;
    margin-bottom: 20px; /* Space below the price */
}

.pricing-details {
    list-style: none;
    padding: 0;
    color: #ffffff; /* White text for the details */
    text-align: center;
    padding: 20px;
    font-size: 1.6em;
    margin-bottom: 30px; /* Space below the list */
}

.pricing-details li {
    margin-bottom: 10px; /* Space between list items */
    line-height: 1.6; /* Line height for list items */
    background-color: #000; /* Black background for list items */
    padding: 5px 0; /* Padding for list items */
}


#contact {
    background-color: #000; /* Black background for the section */
    color: #ffffff; /* White text for readability */
    text-align: center;
    padding: 50px 20px;
    font-size: 1.6em;
}

.contact-container {
    max-width: 800px; /* Maximum width of the container */
    margin: 0 auto; /* Center the container */
    padding: 30px;
    border-radius: 15px; /* Optional: if you want rounded corners */
}

.contact-container h2 {
    margin-bottom: 20px; /* Space below the heading */
    color: #ffffff; /* White text for the heading */
}

.contact-container iframe {
    width: 100%; /* Responsive width */
    height: 1043px; /* Adjust the height as needed */
    border: none; /* No border for iframe */
}

/* Hide the hamburger button on screens wider than 480px */
.hamburger-menu {
    display: none;
}



@media (max-width: 768px) {
    /* Adjustments for tablet sizing */
    #about .about-container {
        flex-direction: column;
    }
    
    #about .about-text, #about .about-image {
        width: 100%;
    }

    #about .about-text {
        order: 2;
    }

    #about .about-image {
        order: 1;
    }

    .pricing-container {
        width: 95%; /* Adjusted for tablet */
        padding: 20px;
    }

    .pricing-container h2, .classes-container h2 {
        font-size: 2em; /* Slightly smaller for readability */
    }

    .price-tag {
        font-size: 1.5em; /* Adjusted for tablet */
    }

    .pricing-details li {
        font-size: 1.2em; /* Adjusted for readability */
    }

    .contact-container iframe {
        height: auto; /* Adjust height for smaller devices */
    }
}

@media (max-width: 480px) {
    /* Navbar transformation into a hamburger menu */
    header {
        padding: 0.5px 0;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        background-color: #000; /* Match the background color to header */
    }

    .hamburger-menu {
        display: block; /* Show on mobile */
        position: fixed;
        top: 0;
        right: 0;
        background-color: transparent;
        border: none;
        color: #EB3A26; /* Adjust color to match design */
        font-size: 24px; /* Adjust size as needed */
        z-index: 2; /* Ensures it's above other content */
        padding: 1rem; /* Add some space around the button */
    }

    #navbar.hidden {
        display: none;
    }

    #navbar {
        flex-direction: column;
        align-items: center;
    }

    #navbar li {
        margin: 10px 0;
    }

    #logo img {
        height: 80px;
    }

    #navbar li a {
        display: block; /* Ensure links span the full width of the menu */
        padding: 10px; /* Increase padding for tap targets */
    }

    /* Adjustments for mobile text sizing */
    body, html, p, .about-text p, .home-text p, .timing-quote, .classes-container p, .pricing-details li, #home h1, .home-text, .home-text p, #about .about-text, #about .about-text h2, #about .about-text p, .timing-quote, .classes-container h2, .pricing-container h2, .price-tag, .pricing-details {
        font-size: calc(1em * 0.8); /* Additional 20% reduction across all text */
    }

    #home h1 {
        font-size: calc(3em * 0.75); /* 25% smaller for the heading */
    }

    /* Adjust text alignment and padding for mobile */
    .home-text, .about-text, .classes-container, .pricing-container, .contact-container {
        padding: 10px; /* Reduced padding */
        text-align: left; /* Align text to the left */
    }

    /* Adjust the widths and margins to spread text across the screen */
    #home p, #about p, .home-text p, #about .about-text p, .timing-quote, .classes-container p, .pricing-details li {
        max-width: 100%; /* Allow text to fill their containers */
        margin: 0; /* Remove margins to utilize available space */
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1.2em; /* Reduced size for the CTA button */
    }

    .pricing-container {
        width: 100%; /* Full width on mobile */
        padding: 15px;
        border-radius: 10px; /* Adjusted border-radius for mobile */
    }

    .pricing-container h2 {
        font-size: 1.8em; /* Adjusted title size for mobile */
    }

    .price-tag {
        font-size: 1.4em; /* Adjusted price tag size for mobile */
    }

    .pricing-details {
        padding: 15px; /* Adjusted padding inside the details list */
    }

    .pricing-details li {
        font-size: 1em; /* Adjusted list item font size for readability */
    }

    .contact-container iframe {
        height: auto; /* Adjusted iframe height for mobile devices */
    } 

    /* Hiding columns with no times in the classes table */
    .classes-container table th, .classes-container table td {
        display: none;
    }

    .classes-container table th:not(:empty),
    .classes-container table td:not(:empty) {
        display: table-cell;
    }
}

/* Hide hamburger menu on screens larger than 480px */
.hamburger-menu {
    display: none;
}
