* {
    margin: 0;
    padding: 0;
}

body {
    text-align: center;
    color: white;
    background-color: rgb(0, 0, 0);
    min-height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body a {
    text-decoration: none;
    color: cadetblue;
}

.div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar.sticky {
    background-color: black;
    position: sticky;
    top: 0;
    z-index: 3;
}

.navbar ul {
    display: flex;
    list-style-type: none;
    justify-content: flex-end;
    align-items: center;
}

.navbar .topNavbar .navbaritems{
    display: none;
    flex-direction: row;
}

.navbar li {
    height: 50px;
}

.navbar a {
    text-decoration: none;
    color: white;
    height: 100%;
    padding-right: 20px;
    padding-left: 20px;
    display: flex;
    align-items: center;

}

.navbar a:hover {
    color: cadetblue;
}

.navbar li:first-child {
    margin-right: auto;
}

.navbar .sidebar {
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgb(134, 134, 134, 0.2);
    box-shadow: black;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
}


img {
    max-width: 100%;
}


footer {
    text-align: center;
    line-height: normal;
    margin-top: 30px;
    padding-top: 30px;
    ;
    clear: left;
    background-color: rgb(74, 74, 74);
}

.heroBanner {
    height: 65vh;
    position: relative;
}

.heroBanner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* This creates a black overlay with 40% opacity */
    background: rgba(0, 0, 0, 0.4); 
    /* Ensures the overlay is above the image but below the text */
    z-index: 1; 
}

.heroBanner img {
    display: inline-block;
    color: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image to fit without stretching or gaps */
    position: static;
}

.heroBanner h1 {
    font-size: clamp(1.5rem, 12vw, 6rem);
    margin: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #ffffff;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.aboutUsWrapper {
    display: flex;
    flex-direction: row;
    justify-content: left;
    text-align: left;
    margin-right: 10%;
    padding-top: 50px;
    padding-left: min(1.5rem, 8%);
    font-size: clamp(1rem, 18px, 52px);
}

.whyJoinSection {
    max-width: 100%;
    padding-top: 50px;
    font-size: clamp(1rem, 18px, 24px);
}

.whyJoinSection h1 {
    padding-bottom: 20px;
}

.whyJoinWrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-right: 10%;
    margin-left: 10%;
}

.joinBox {
    padding: 20px;
    border: 1px solid cadetblue;
    border-radius: 5px;
    max-width: 350px;
    max-height: 250px;
    flex: 0 0 auto;
}

.registration {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.registration .joinButton {
    background-color: hwb(0 25% 11%);
    border-radius: 15px; 
    max-width: 350px;
    padding: 5px;
}
.registration .joinButton a {
    color:#ffffff;
}


.registration img {
    border-radius: 15px; 
}

.coLeadersSection {
    padding-top: 50px;
}

.coLeadersWrapper {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    margin-right: 20%;
    margin-left: 20%;
    gap: 50px;
}

.coLeadersWrapper img {
    max-width: 100%;
    width: clamp(10rem, 5vw, 30rem);
    border-radius: 15px; 
}



.contactWrapper {
    margin-left: auto;
    margin-right: auto;
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; /* Center the content horizontally */
    gap: 20px;
    flex-wrap: wrap;
    max-width: 100%; /* Ensure it doesn't exceed the screen width */
}

.contactInfo {
    max-width: 400px; /* Limit the width of each contactInfo block */
    flex: 1 1 300px; /* Allow it to grow and shrink, with a minimum width of 300px */
    text-align: center; /* Optional: Center text inside contactInfo */
}





/* Desktop */
@media (min-width: 1440px) {}

/* Tablet */
@media (min-width: 1024px) {
    /*this is for showing navbar items if device resolution is greater than 1024px*/
    .navbar .topNavbar .navbaritems.showOnTablet {
        display: flex !important;
    }

    .hideBurger {
        display: none;
    }

    .whyJoinWrapper {
        flex-direction: row;
    }

    .aboutUsWrapper {
        max-width: 1024px;
        margin: auto;
        text-align: center;
    }
}

/*Devices bigger than phones*/
@media (min-width: 600px) {
    .whyJoinWrapper {
        display: flex;
        /*add it so each block is its own container with borders and edges*/
    }

    .contactInfo {
        max-width: 400px;
    }

    .coLeadersWrapper {
        flex-direction: row;
        margin-right: 20%;
        margin-left: 20%;
        padding-top: 100px;
        gap: 50px;
    }
}

/* BASE LAYOUT is Phone */