body {
    font-family: 'Raleway', sans-serif;
    background-color: #f3d4ad; /* Tan */
    color: #000000; /* Black */
    line-height: 1.6;
    margin: 0;
    padding: 0; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;  
}

header {
    background-color: #ffffff;
    opacity: 70%;
    padding: .1rem;
    margin: .5rem auto;
    max-width: 65%;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content:center;
    align-items: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0.5rem 1rem;
}

nav ul li a {
    text-decoration: none;
    color: #8b4513;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #d2691e;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: .5rem;
    flex: 1;
}

.hero {
    background-color: #fffdd3; 
    text-align: center; 
    padding: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.hero img {
    max-width: 675px; 
    width: 90%; 
    height: auto; 
}

.cookie {
    background-color: #fffdd3;
    text-align: center; 
    max-width: 300px;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    border-radius: 8px;
    padding-block: 1rem;
}

h1, h2 {
    color: #8b4513; 
    text-align: center;
    word-wrap: break-word;
}

.cookie-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));  */
    gap: 1rem; 
    margin: 0 auto; 
    max-width: 90%;
}

.cookie-item {
    background-color: #ffffff; /* White background for contrast */
    padding: 1rem;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    text-align: center;
}

.cookie-item img {
    max-width: 100%;
    height: auto;
}

.cta-button {
    display: inline-block;
    background-color: #8b4513; 
    color: #ffffff; 
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

.rounded-image {
    border-radius: 300px;  
    max-width: 100%;  
    height: auto;  
}

#eventList {
    text-decoration: none;
    text-align: center;
}

.eventList a {
    text-decoration: none !important;  
    color: black;
}

footer {
    text-align: center;
    padding: 1rem;
    display: flex;
    justify-content:center;
    align-items: center;
}

footer a {
    color: #8b4513; 
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

.event {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 5px;
}

.event-date {
    font-weight: bold;
}

.event-name {
    font-size: 1.2em;
}

.event-location {
    color: #666;
}

.map-icon {
    color: #8b4513;
    text-decoration: none;
}
.contact-content {
    margin: 1rem auto;
    max-width: 600px; 
    border-radius: 8px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #8b4513; 
}

.contact-content i {
    color: #8b4513; 
    font-size: 1.4rem; 
    transition: color 0.3s ease;
}

.contact-content a {
    text-decoration: none;
    color: #8b4513; 
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: #d2691e; 
}

.image-carousel {
    background-color: #fffdd3;
    text-align: center;
    max-width: 300px; 
    padding: 1rem;  
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    box-sizing: border-box; 
    width: 100%; 
    border-radius: 8px;  
}


.carousel-item {
    display: none;
    position: relative;
    border-radius: 8px; 
}

.carousel-item img {
    width: 100%; /* Make images responsive within the carousel */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: match the rounded corners of the container */
}


.overlay-text {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(139, 69, 19, 0.7); /* Semi-transparent overlay */
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    width: 80%; /* Adjust this value as needed */
    text-align: center; /* Center the text within the bar */
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

.carousel-item {
    animation: fadeInOut 15s infinite;
}

.carousel-item:nth-child(2) {
    animation-delay: 5s;
}

.carousel-item:nth-child(3) {
    animation-delay: 10s;
}

.cookie-carousel-container {
    display: flex;
    justify-content: center;  
    align-items: center;  
    gap: 1rem;  
    margin: 2rem auto; 
    max-width: 700px;  
}

.cookie-carousel-container img.cookie {
    flex: 1;  
    max-width: 50%;  
    height: auto;  
    border-radius: 8px;  
}

header, footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0.5rem;
}

.about-wrapper {
    display: flex;   
    align-items: center;  
    gap: 1rem; 
}

.about-image {
    width: 40%; /* Keep image at 40% width */
    max-width: 400px; /* Prevent image from getting too large */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    margin-right: 1rem; /* Add some space between image and text */
    background-color: #fffdd3; 
    text-align: center; 
    padding: 1rem;  
}

.about-text {
    flex: 1 1 60%; 
}


@media screen and (max-width: 540px) {
    .hero {
        max-width: 90%; /* Full width on very small screens */
        padding: 1rem; /* Adjust padding if needed */
    }

    .cookie-grid {
        grid-template-columns: 1fr; /* Single column layout */
        max-width: 100%; /* Full width on small screens */
        padding: 0.5rem; 
        gap: 0.5rem;
    }

    h1, h2 {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
        text-align: center;
        word-wrap: break-word;
    }
}
@media screen and (min-width: 540px) and (max-width: 768px) {
    .cookie-grid {
        grid-template-columns: repeat(2, 1fr); 
        max-width: 100%;
    }
}
/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        max-width: 100%;
        padding: 0.5rem;
    }

    nav ul {
        flex-direction: row;
        justify-content: center;
    }

    nav ul li {
        margin: 0.25rem 0.5rem;
    }

    .hero {
        padding: 1rem 0;
    }

    h1 {
        font-size: 1.3rem;
        text-align: center;
        word-wrap: break-word;
    }

    h2 {
        font-size: 1.2rem;
    }

    .cookie-grid { 
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));  
        gap: 1rem;  
        margin: 0 auto;  
        max-width: 1200px;  
    }

    .event {
        padding: 5px;
    }

    .event-name {
        font-size: 1em;
    }
    .contact-content {
        padding: 0.75rem;
    }

    .contact-content h3 {
        font-size: 1rem;
    }
    .cookie-item {
        padding: 0.75rem;  
    }
    .cookie-carousel-container {
        flex-direction: column;  
        align-items: center;  
    }

    .cookie-carousel-container img.cookie,
    .image-carousel {
        max-width: 50%;  
    }
    .image-carousel {
        max-width: 50%;  
        padding: 1rem;  
        margin-bottom: 1.5rem;  
    }    
    .about-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        width: 60%; /* Slightly wider on mobile */
        margin-bottom: 1rem; /* Space below image */
        margin-right: 0; /* Remove right margin */
    }
}

/* Additional Media Query for very small screens */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header {
        border-radius: 25px;
    }

    nav ul li {
        margin: 0.25rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .hero img {
        max-width: 90%; 
    }

    footer a {
        font-size: 1.2rem;
    }
    .contact-content {
        padding: 0.5rem;
    }

    .contact-content h3 {
        font-size: 0.9rem;
    }
    .cookie-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }

    .cookie-item {
        padding: 0.5rem; /* Minimize padding for tight spaces */
    }
}
 