/* Hide the <br> tag with id "Br" by default */
#Br {
    display: none;
}

/* Styling for the header section */
header {
    border-bottom: 4px double #e18b2a; /* Adds a double border to the bottom of the header */
    width: 100%; /* Makes the header full width */
    position: fixed; /* Keeps the header fixed at the top while scrolling */
    background-color: white; /* Sets background color to white */
    padding: 0.1rem 10%; /* Adds padding inside the header */
    display: flex; /* Enables flexbox layout for easy positioning */
    justify-content: space-between; /* Aligns children elements (logo and nav) with space between them */
    align-items: center; /* Vertically centers the elements */
    z-index: 777; /* Ensures the header appears on top of other elements */
}

/* Styles for the header logo image */
#header_logo_image {
    width: 9.5rem; /* Sets the width of the logo */
}

/* Styling for the navigation inside the header */
header nav {
    display: flex; /* Flex layout for the nav links */
    justify-content: space-between; /* Adds space between navigation elements */
    align-items: center; /* Vertically centers the navigation items */
    gap: 4.5rem; /* Adds spacing between the navigation links */
    margin-top: 1rem; /* Adds margin to the top */
}

/* Removes bullet points from the list of navigation links */
header nav ul {
    list-style: none;
}

/* Styling for individual navigation links (list items) */
header nav ul li {
    position: relative;
    display: inline-block;
    margin-right: 20px; /* Adds margin between list items */
    padding: 10px; /* Adds padding inside each list item */
}

/* Styles for the navigation links (anchors) */
header nav ul li a {
    text-decoration: none; /* Removes underline from the links */
    cursor: pointer;
    font-weight: bold; /* Makes the font bold */
    color: black; /* Sets the text color to black */
    font-family: "Barlow", sans-serif; /* Sets the font style */
    transition: color 0.1s; /* Adds a transition effect to the color change */
}

/* Creates an underline animation effect for nav items on hover */
header nav ul li::after {
    content: ''; /* Adds an empty content to display as the underline */
    background-color: #fff; /* Sets initial background color to white */
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0; /* Initially, the underline width is 0 */
    height: 2px; /* Thickness of the underline */
    transition: width 0.1s; /* Adds a transition effect to the underline width */
}

/* Changes the link color when hovered */
header nav ul li a:hover {
    color: #e18b2a; /* Sets the hover color */
}

/* Expands the underline when hovering over the list item */
header nav ul li:hover::after {
    width: 60%; /* Expands the underline width */
    background-color: #e18b2a; /* Changes the underline color */
}

/* Styles for the "Donate" button */
/*Donate btn*/

.donate_box {
    transform: translate( -50%);
    border-radius: 30px;
    padding:0.5rem 1rem;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    cursor: pointer;
    margin-right: -5rem;
    margin-top: -1rem;
    background-color: #4973ff;
    font-weight: bold;
    font-family: "Barlow", sans-serif;
    transition: 
    donate_box-shadow 0.4s ease, 
    background-color 0.4s ease, 
    color 0.4s ease;
    donate_box-shadow: 
    0 0 2px 0 rgba(73, 115, 255, .1), 
    0 0 4px 0 rgba(73, 115, 255, .2), 
    0 0 6px 0 rgba(73, 115, 255, .3), 
    0 0 8px 0 rgba(73, 115, 255, .4),
    0 0 12px 0 rgba(73, 115, 255, .5), 
    0 0 18px 0 rgba(73, 115, 255, .6);
}

.donate_box:hover{
    background-color: #ea3c;
    donate_box-shadow: 
    0 0 2px 0 rgba(238, 170, 51, 0.1), 
    0 0 4px 0 rgba(238, 170, 51, 0.2), 
    0 0 6px 0 rgba(238, 170, 51, 0.3), 
    0 0 8px 0 rgba(238, 170, 51, 0.4),
    0 0 12px 0 rgba(238, 170, 51, 0.5), 
    0 0 18px 0 rgba(238, 170, 51, 0.6),
    0 0 4px 0 rgba(238, 170, 51, 0.7);
}

.donate_box span {
    color: #fff;
    letter-spacing: 8px;
}

.donate_box i {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 200px;
    background-color: inherit;
    donate_box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    transition: 
    transform 0.4s linear, 
    top 1s linear;
    overflow: hidden;
}

.donate_box i:before,
.donate_box i:after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
}
.donate_box i:before {
    border-radius: 46%;
    background-color: rgba(20, 20, 20, 0.2);
    animation: animate 5s linear infinite;
}
.donate_box i:after {
    border-radius: 40%;
    background-color: rgba(20, 20, 20, 0.5);
    animation: animate 10s linear infinite;
}

@keyframes animate {
    0% {
        transform: 
        translate(-50%, -75%) 
        rotate(0deg);
    }
    100% {
        transform: 
        translate(-50%, -75%) 
        rotate(360deg);
    }
}

/* Hides the menu button initially */
#menu-btn {
    display: none;
    cursor: pointer; /* Changes cursor to pointer */
    font-size: 1.5rem; /* Font size of the menu icon */
    color: black; /* Color of the menu icon */
}

/* Media query for responsiveness */
@media only screen and (max-width: 992px) {
    #Br {
        display: block; /* Shows the <br> tag when screen width is less than 992px */
    }

    header {
        padding: 0.1rem 2%; /* Adjusts padding for smaller screens */
    }

    #menu-btn {
        display: inline-block; /* Displays the menu button for small screens */
    }

    header nav {
        background-color: white;
        position: absolute;
        right: 0;
        left: 0;
        top: 58px;
        width: 100%;
        height: 90vh; /* Full-screen height for the mobile menu */
        display: none; /* Hides the nav menu by default */
    }

    /* Shows the nav menu when header has the "active" class */
    header.active nav {
        display: block;
    }

    header nav ul li {
        display: block; /* Stack menu items vertically for small screens */
        margin: 1rem 0;
    }

    /* Adjusts the position of the donate button for small screens */
    .donate_box {
        margin-right: 0;
        margin-top: 0;
        margin-left: 10%;
    }
}