* {
    box-sizing: border-box;
}

:root {
    --pureWhite: rgba(255, 255, 255, 0.98);
    --gopRed: #e9141d;
    --lightBackground: #ffece9;
    --shadeVariation: #130000;
    --shadeVariatio2: #ffd9d3;
    --shadeVariation3: #fc8a7d;
    --shadeVariation4: #ff545f;
    --flagBlue: #002147;
    --tintVariation: #ec242d;
    --textPrimary: #030000;
    --textSecondary: #ffece9;

    /* Carousel frosted Background */
    --carouselFWO: rgba(255, 255, 2555, 0.3);

}

html, body {
    font-family: Libre franklin;
    color: var(--textPrimary);
    scroll-behavior: smooth;
    background: rgba(245, 245, 245, 1);
}

body {
    margin: 0;
    padding: 0;
}

main {
    min-height: 50vh;
}

#titleHead {
    margin-top: 50px;
}

h1, h2, h3, h4, h5, h6, p {
    margin-block-start: 0;
    margin-block-end: 0;
}

#navBar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    height: 50px;
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--pureWhite);
    opacity: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

#navMenu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}

#menuToggle {
    display: none; /* Hide by default */
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

#navBar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

#navBar img {
    height: 40px;
    width: auto;
    margin-left: 20px;
    padding: 2px;
    align-items: center;
}

#navBar li:first-child {
    margin-left: auto;
}

#navBar li {
    margin-left: 20px;
    padding: 10px 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;;
}

#navBar li a {
    font-family: Libre Franklin;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 115%;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--textPrimary);
}

@media (max-width: 768px) { /* Adjust the breakpoint as needed */
    #navMenu {
        width: 100vw; /* Full viewport width */
    }

    #navMenu li {
        width: 100%; /* Full width of the viewport */
        padding: 0;
        margin: 0;
    }

    #navMenu li a {
        display: block; /* Makes the anchor element a block element */
        width: 100%; /* Full width of the parent list item */
        padding: 2rem; /* Adjust padding as desired */
        text-align: center;
        font-size: 18px;
        cursor: pointer;
    }

    #navMenu li a:hover {
        background: var(--shadeVariation4);
    }
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    /* Basic styling for the menu container */
    #menuToggle {
        display: flex;
        align-items: center; /* Center vertically */
        cursor: pointer; /* Change cursor to a pointer when hovering */
    }

    /* Styling for the hamburger icon */
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px; /* Width of the hamburger icon */
        height: 30px; /* Height of the hamburger icon */
        margin-right: 10px; /* Space between the icon and the text */
    }

    /* Styling for the bars */
    .hamburger-icon span {
        width: 100%;
        height: 2px; /* Thickness of each bar */
        background: var(--textPrimary); /* Color of the bars */
        border-radius: 2px; /* Optional: rounded edges */
        transition: all 0.3s; /* Smooth transition for animations */
    }

    /* Styling for the MENU text */
    .menu-text {
        font-family: Libre Franklin;
        font-size: 13.5px;
        font-style: normal;
        font-weight: 600;
        line-height: 115%;
        letter-spacing: 1px;
        text-decoration: none;
        color: var(--textPrimary);
        margin-right: 5px;
    }

    .menu-text:hover {
        font-size: 14px;
    }

    /* Animation for the active state */
    #menuToggle.active .hamburger-icon span:nth-child(1) {
        transform: rotate(45deg) translateY(3px);
        position: relative;
        top: 8px;
    }

    #menuToggle.active .hamburger-icon span:nth-child(2) {
        opacity: 0; /* Hide the middle bar */
    }

    #menuToggle.active .hamburger-icon span:nth-child(3) {
        transform: rotate(-45deg) translateY(-3px);
        position: relative;
        top: -8px;
    }

    #navMenu {
        position: absolute;
        top: 50px; /* Place below the fixed nav bar */
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--lightBackground);
        flex-direction: column;
        transition: max-height 0.3s ease-in-out;
    }

    #navMenu.active {
        max-height: 75vh; /* Adjust as needed */
        opacity: 90% !important;
        overflow: visible;
    }

    #navMenu li {
        width: 100%;
        text-align: right !important;
        border-bottom: 1px solid var(--textPrimary);
    }

    #navBar li:first-child {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .title {
        height: 20vh;
        font-size: 40px !important;
    }
}

footer {
    height: auto;
    background-color: rgba(39, 39, 39, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    color: var(--textSecondary);
    padding: 1rem;
}

.footerBreak {
    width: calc(100% - 75%);
    height: 1px;
    border-radius: 100%;
    background-color: white;
}

.footer-links, .socials-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto; 
    margin-bottom: 0;
}
.footerLinks  {
    margin-bottom: 1rem;
}

.footer-links h4 {
    font-family: Libre Franklin;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 115%;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}
.footer-links a {
    font-family: Libre Franklin;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.social-media {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

.social-media span {
    display: none;
}

.social-media a {
    margin: 0 10px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; 
    list-style: none; 
    margin: 1rem auto;
}

.footer-links li {
    margin: 0 10px;
}

.footer-links a, .social-media a, .x-link {
    color: var(--textSecondary);
    text-decoration: none;
}

.footer-links a:hover, .social-media a:hover {
    color: var(--textPrimary);
}
.copyright {
    text-align: center;
    margin-top: 1rem;
    height: auto;
}

.title {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    height: 15vh;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 400;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    -webkit-text-stroke: 1px white;
    text-transform: uppercase;

    background-image: 
        linear-gradient(to right, rgba(0, 33, 71, 1), rgba(0, 33, 71, 1) 65%, rgba(0, 33, 71, 0.9) 75%, rgba(0, 33, 71, 0) 100%), 
        url('./../assets/volunteer001.jpg');
    background-size: cover, auto 250%;
    background-position: right, calc(100% + 50px) top; 
    background-repeat: no-repeat;
    border-bottom-left-radius: 100px;
}

.club-volunteers {
    height: auto;
}

.vol-needed {
    height: auto;
    background-color: white;
    border-radius: 5px;
    border: 2px solid black;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
}

.vol-not-needed {
    height: 25vh;
    background-color: white;
    display: flex;
    justify-content: center; /* Centers text horizontally */
    align-items: center;     /* Centers text vertically */
    text-align: center;
    border-radius: 10px;
    border: 2px solid black;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
    
}

.vol-not-needed h2, .vol-needed h2 {
    font-size: 30px;
    line-height: 115%;
    font-weight: 400;
    font-family: Libre Franklin;
}

.vol-needed, .vol-needed p {
    font-size: 16px;
    line-height: 115%;
    font-weight: 400;
    font-family: Libre Franklin;
}

.vol-needed p {
    color: #666;
}

.vol-needed button {
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.vol-needed button:hover {
    transform: translateY(1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.vol-needed button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media screen and (min-width: 768px) {
    .vol-not-needed h2, .vol-needed h2 {
        font-size: 40px;
    }

    .vol-needed, .vol-needed p {
        font-size: 24px;
    }

    .other-vol-container p {
        font-size: 22px;
        }
}

.other-vol-container p {
    font-size: 18px;
    font-family: Libre Franklin;
    line-height: 115%;
}

.other-vol-container {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center;    /* Center horizontally */
}

.other-vol {
    display: flex;
    flex-direction: column; /* Ensure children stack vertically */
    justify-content: center; /* Center content vertically within each other-vol */
    align-items: center;     /* Center content horizontally */
    text-align: center;      /* Center text inside child elements */
    width: 100%;             /* Take full width */
    padding: 20px;          /* Add padding for appearance */
    margin: 10px 0;         /* Add vertical margin for spacing between each volunteer section */
    position: relative;
}

.vol-img {
    max-height: 25vh;
    max-width: 500px;
    object-position: center;
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
}

.break {
    border-bottom: 1px solid rgba(19, 0, 0, .1);;
    align-self: flex-end;
    width: calc(100% - 32px);
    margin: 0 auto;
    margin: 1rem;
}

.contact-break{
    align-self: flex-end;
    width: calc(100% - 32px);
    margin: 0 auto;
    margin: 1rem;
}

.other-label {
    font-size: 24px;
    line-height: 115%;
    font-weight: 400;
    font-family: Libre Franklin;
}

/* Share button container */
.share-container {
    position: absolute;
    bottom: 5px;
    right: 0px;
}

/* Share button */
.share-button {
    background: none;
    color: white;
    border: none;
    padding: 10px 0px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    position: absolute;
    bottom: 5px;
    right: 0px;
}

/* Dropdown menu */
.share-dropdown {
    display: none;
    position: absolute;
    bottom: 50px; /* Adjust to place above the button */
    right: -20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9;
    padding: 5px;
    text-align: center;
}

/* SVG links */
.share-dropdown a {
    display: inline-block;
    margin: 5px;
    width: 40px;
    height: 40px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
}

.share-dropdown a:first-of-type {
    background: #316FF6;
}

.share-dropdown a:last-of-type {
    background: black;
}

.share-dropdown a:hover svg {
    opacity: 0.8;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Show dropdown when active */
.share-container.active .share-dropdown {
    display: block;
}