@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Quicksand:wght@400;700&display=swap');

/* Reset box-sizing for all elements */
* {
    box-sizing: border-box;
}

/* Basic styles for the body */
body {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Styles for header and footer */
header, footer {
    background-color: #1b5e20;
    color: white;
    text-align: center;
    padding: 1em;
    position: relative;
}

p {
    animation: fadeIn 1s ease-in-out; /* Animation for paragraphs */
}

/* Styles for the logo and header text */
h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-in-out; /* Animation for header */
}

h1 img {
    width: 150px;
    margin-right: 10px;
}

/* Footer styles */
footer {
    bottom: 0;
    width: 100%;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Hamburger menu styles for smaller screens */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

/* Content styles */
.content {
    padding: 5px;
    max-width: 1300px;
    margin: auto;
}

/* Section styles with animation */
.section {
    margin-top: 20px;
    text-align: center;
    opacity: 1; /* Initially visible */
    transform: translateY(20px); /* Initially moved down */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out; /* Smooth transition */
}

/* List styles */
ul {
    list-style-type: none;
    padding: 0;
    animation: fadeIn 1s ease-in-out; /* Animation for lists */
}

ul li {
    margin: 10px 0;
}

/* Link styles */
a {
    color: #2e7d32;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Heading styles with animation */
h1, h2, h3 {
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    animation: slideIn 1s ease-in-out; /* Animation for headings */
}

/* Image styles with animation */
#about-img, #vision-img, #donations-img, #mission-img, #thisyear-img, .image-gallery img, .content img {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: zoomIn 1s ease-in-out; /* Animation for images */
    cursor: pointer; /* Pointer cursor for clickable images */
}

#about-img, #vision-img, #donations-img, #mission-img, #thisyear-img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* Styles for past events section */
#past-events {
    margin: auto;
    width: 50%;
    height: auto;
}

/* Image gallery styles */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-evenly;
    margin-bottom: 20px;
}

.image-gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

/* Event details and plans styles */
.event-details, .plans {
    margin: 20px auto;
}

/* Barcode image styles */
#barcode-img {
    width: 150px;
    height: auto;
    margin-right: 10px;
}

/* Contact section styles */
#contact {
    background-image: url(images/logo.png);
    background-position: center;
    background-size: cover;
    color: #013220;
    padding: 20px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Media queries for smaller screens */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(27, 94, 32, 0.5); /* Slightly transparent background */
        z-index: 1000;
    }

    nav a {
        display: block;
        margin: 10px 0;
        padding: 10px;
        border-bottom: 1px solid white;
    }

    .content {
        padding: 10px;
    }

    .image-gallery img {
        width: 100%;
        height: auto;
    }

    .event-details, .plans {
        text-align: center;
    }

    #barcode-img {
        float: none;
        display: block;
        margin: 0 auto 10px;
    }
}

@media (max-width: 480px) {
    header, footer {
        padding: 0.5em;
    }

    nav a {
        margin: 5px 0;
    }

    .content {
        padding: 10px;
    }

    .image-gallery img {
        width: 100%;
        height: auto;
    }

    #about-img, #vision-img, #donations-img, #mission-img, #thisyear-img {
        max-width: 100%;
    }

    h1 img {
        display: inline-block;
        vertical-align: middle;
    }

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