/*Section for background*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background-color: #972fff;
    background-size: cover;
    background-position: center;
}

/*nav bar section*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, .1);
    backdrop-filter: blur(50px);
    z-index: -1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: .5s;
}

.header:hover::after {
    left: 100%;
}

.logo img {
    width: 350px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
}

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    flex-grow: 1;
}

.navbar a {
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 2.5rem;
    white-space: nowrap; /* Prevent wrapping */
}

#check {
    display: none;
}

.icons {
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

/* Breakpoints */
@media (max-width: 992px) {
    .header {
        padding: 1.3rem 5%;
    }
}

@media (max-width: 914px) {
    .icons {
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon {
        display: none;
    }

    .icons #close-icon {
        display: none;
    }

    #check:checked~.icons #close-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, .1);
        backdrop-filter: blur(50px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        overflow: hidden;
        transition: height .3s ease;
        flex-direction: column; /* Stack items vertically */
        height: auto; /* Allow the height to adjust based on content */
        max-height: 0; /* Initially collapse the menu */
    }

    #check:checked~.navbar {
        max-height: 100vh; /* Expand the menu when checked */
    }

    .navbar a {
        display: block;
        font-size: 1.15rem; /* Ensure font size matches the original */
        margin: 1.5rem 0;
        text-align: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: transform .3s ease, opacity .3s ease;
    }

    #check:checked~.navbar a {
        transform: translateY(0);
        opacity: 1;
        transition-delay: calc(.15s * var(--i));
    }
}

.navbar a:hover {
    color: #cccccc98; /* Adjust the color for hover effect */
}

.navbar a:active {
    color: #9999991f; /* Adjust the color for clicked effect */
}

/* Section for main home page content */

.homepage_content {
    margin-left: 20px;
    margin-top: 40px;
    margin-right: 20px;
}

.main_page_heading_container {
    background-color: #8f1eff;
    box-shadow: 10px 10px 20px #860eff;
    text-align: left;
    padding: 20px;
    margin: 0;
    width: fit-content; /* Make the width fit the content */
}

.main_page_heading1 {
    font-size: clamp(20px, 3vw, 32px);
    white-space: nowrap;
    padding: 20px;
    margin: 0; /* Remove default margins */
}

/* Adjust readability for smaller screens */
@media (max-width: 800px) {
    .main_page_heading1 {
        font-size: clamp(16px, 3vw, 28px);
        line-height: 1.2; /* Increase line height for better readability */
        letter-spacing: 0.5px; /* Add slight letter spacing */
    }
}

@media (max-width: 600px) {
    .main_page_heading1 {
        font-size: clamp(15px, 2.5vw, 24px);
        line-height: 1.3; /* Further increase line height */
        letter-spacing: 0.75px; /* Further adjust letter spacing */
    }
}

@media (max-width: 400px) {
    .main_page_heading1 {
        font-size: clamp(10px, 2vw, 20px);
        line-height: 1.4; /* Further increase line height */
        letter-spacing: 1px; /* Further adjust letter spacing */
    }
}

.book_button_container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: -40px; /* Adjust this value to control vertical spacing */
    margin-left: auto; /* Push the button to the right */
    padding-bottom: 20px;
    margin-right: 0; /* Ensure the button is at the right edge */
}

.book_button {
    background-color: #00ff01;
    font-size: 25px;
    border-radius: 5px;
    letter-spacing: 0.1em;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 30px;
    transition: 0.5s;
}

.book_button:hover {
    letter-spacing: 0.25em;
    background: var(--clr);
    box-shadow: 0 0 35px var(--clr);
}

/* Adjusting layout on smaller screens */
@media (max-width: 1145px) {
    .main_page_heading_container {
        display: flex;
        flex-direction: column; /* Stack heading and button */
        align-items: center; /* Center align the container */
        width: 100%; /* Make the container full width */
    }

    .book_button_container {
        justify-content: center; /* Center align the button */
        margin-top: 10px; /* Add some space above the button */
        margin-left: 0; /* Reset left margin */
        margin-right: 0; /* Ensure it's centered */
        width: 100%; /* Make the container full width */
    }

    .book_button {
        width: auto; /* Reset width to auto */
    }
}

/* Adjust vertical position for the button when to the right */
.book_button_container {
    position: relative;
    top: -152px; /* Adjust this value to move the button up when next to the heading */
}

/* Adjust vertical position for the button when below */
@media (max-width: 1145px) {
    .book_button_container {
        top: 40px; /* Adjust this value to move the button down when below the heading */
        align-items: center; /* Center align the button */
    }
}

.content_wrapper {
    display: flex;
    align-items: flex-start; /* Align items to the start of the container vertically */
    gap: 10px; /* Optional: Add some space between the table and the video */
    margin-top: 40px;
}

@media (max-width: 756px) {
    .content_wrapper {
        flex-direction: column; /* Stack table and video vertically */
        align-items: center; /* Center align the container */
    }

    .events_table, .video_section {
        width: 100%; /* Make both elements full width */
    }

    .video_section {
        order: -1; /* Move the video section above the table */
        min-width: 300px;
    }

    .events_table {
        width: 80%; /* Set the table width to 80% of the viewport width */
        max-width: 80vw; /* Ensure it doesn't exceed 80% of the viewport width */
        margin-top: 20px; /* Add some margin above the table */
    }
}

/* Additional CSS for fixing the events_table width */
@media (max-width: 736px) {
    .events_table {
        min-width: 300px;
    }
}

.events_table {
    width: 40%;
    background-color: #8f1eff;
    -webkit-box-shadow: 0 0 10px #fff;
    box-shadow: 0 0 10px #fff;
    margin: 20px 10px; /* Add some vertical margin for spacing */
}

.events_table_header {
    text-align: left;
}

.events_table_row:nth-child(even) {
    background-color: rgb(143, 51, 235);
}

.events_table_header, .events_table_data {
    padding: 10px;
}

.events_table, .events_table_header, .events_table_data {
    border: 1px solid black;
    border-collapse: collapse;
}

.video_section {
    width: 60%; /* Adjust as needed to ensure proper layout */
    margin: 20px 10px; /* Add some vertical margin for spacing */

    border: 10px solid #922cf8;
    border-radius: 50px;
    -webkit-box-shadow: 0 0 10px #fff;
        box-shadow: 0 0 10px #fff;
    box-sizing: border-box; /* prevents extra width from being added */
}

.video_player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 40px;
}
  
  /* aspect ratio and positioning for responsive video */
  .embed-responsive-video-border {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 56.25%;
  }
  
  .embed-responsive-video-border iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

/*Section for bottom bar*/

.bottom_bar_container {
    color: white;
    background-color: #860eff;
    background-image: linear-gradient(#5d0cad, #860eff);
    width: 100%;
    height: 100px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 40px;
    box-shadow: 0px 10px 5px #888, 0px -10px 5px #5d0cad;
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
}

.social-media-icons-positioning {
    display: flex;
    justify-content: space-around; /* Evenly space the icons */
    align-items: center;
    width: 100%; /* Ensure it takes the full width */
    max-width: 750px;
}

.social-media-icons-green a {
    color: #00ff01;
    font-size: 1.5rem;
}
