body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #ffefd5;
    color: #333;
}

header {
    background: #007bff;
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Remove border-radius for the blue header */
    border-radius: 0;
}


header h1 {
    margin: 0;
    font-size: 2.5em;
    text-align: center;
}

header nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    background: #ffc107;
    color: #333;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2em;
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
}

/* Carousel Styles */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel img {
    display: block;
    width: 100%; /* Ensure images scale proportionally */
    max-height: 400px; /* Set a maximum height */
    object-fit: contain; /* Ensures the full image is visible without cropping */
    background-color: #000; /* Adds a background color for non-filled areas */
    border-radius: 10px; /* Optional: Add rounded corners */
}



.carousel .caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.5em;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-btn:hover {
    background: #ffc107;
}

/* Active and Hidden Slides */
.carousel-slide {
    display: none;
    position: relative;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}


footer {
    text-align: center;
    background: #007bff;
    color: white;
    padding: 20px 0;
    /* Remove border-radius for the blue footer */
    border-radius: 0;
}

footer a {
    color: #ffc107;
    text-decoration: none;
}

button.vote-btn.modern-vote {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button.vote-btn.modern-vote:hover {
    background: linear-gradient(90deg, #ffc107, #e0a800);
    transform: scale(1.1);
}



.centered-content {
    text-align: center;
    margin: 20px auto;
}

.styled-list {
    list-style-type: disc;
    padding-left: 40px;
    text-align: left;
    margin: 0 auto;
    max-width: 600px;
}

.modern-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 20px auto;
}

.modern-form label {
    font-size: 1.1em;
}

.modern-form input,
.modern-form button {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.modern-form button {
    background: #007bff;
    color: white;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.modern-form button:hover {
    background: #0056b3;
}

textarea {
    resize: none;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1em;
    margin-bottom: 15px;
}

textarea::placeholder {
    color: #999;
}

.gallery-category {
    margin: 40px 0;
    text-align: center;
}

.gallery-category h3 {
    font-size: 1.8em;
    color: #007bff;
    margin-bottom: 10px;
}

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.photo-card {
    flex: 1 1 300px;
    max-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    background: white;
    padding: 10px;
}

.photo-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 10px;
}



/* Image Grid */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.photo-card img {
    width: 300px; /* Set uniform width */
    height: 200px; /* Set uniform height */
    object-fit: cover; /* Ensure proper image cropping */
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-card img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px;
    font-size: 2em;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1001;
    transition: background 0.3s ease;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: black;
}

.lightbox-btn.prev {
    left: 5%;
}

.lightbox-btn.next {
    right: 5%;
}

.lightbox-close {
    position: absolute;
    top: 5%;
    right: 5%;
    background: rgba(255, 255, 255, 0.8);
    color: black;
    border: none;
    padding: 10px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1001;
}

.lightbox-close:hover {
    background: rgba(255, 0, 0, 0.8);
    color: white;
}

/* General Mobile Adjustments */
body {
    font-size: 16px;
}

header h1 {
    font-size: 1.8em;
}

header nav ul {
    flex-wrap: wrap;
    gap: 10px;
}

header nav ul li a {
    font-size: 1em;
    padding: 8px 15px;
}

/* Main Content Adjustments */
main {
    padding: 15px;
}

/* Carousel Adjustments */
.carousel img {
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    max-height: 250px; /* Limit height for smaller screens */
}

.carousel-btn {
    padding: 10px;
    font-size: 1em;
}

/* Form Adjustments */
.modern-form input,
.modern-form button {
    font-size: 1em;
}

/* Footer Adjustments */
footer p {
    font-size: 0.9em;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

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

    h2 {
        font-size: 1.5em;
    }

    .photo-card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .photo-card {
        flex: 1 1 100%;
    }

    .modern-form input,
    .modern-form button {
        font-size: 0.9em;
    }
}


/* Adjustments for Submit Photos and Contact Pages */
.modern-form {
    padding: 10px;
    max-width: 95%;
    margin: 20px auto;
}

.modern-form label {
    font-size: 1em;
}

.modern-form input,
.modern-form textarea,
.modern-form button {
    width: 100%; /* Full width for mobile */
    font-size: 1em;
    margin-bottom: 15px;
}

textarea {
    height: 100px; /* Adjusted for mobile */
}

.modern-form button {
    padding: 10px;
    background: #007bff;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modern-form button:hover {
    background: #0056b3;
}

/* Responsive Adjustments for Smaller Screens */
@media (max-width: 768px) {
    .modern-form label {
        font-size: 0.9em;
    }

    .modern-form input,
    .modern-form textarea,
    .modern-form button {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .modern-form label {
        font-size: 0.8em;
    }

    .modern-form input,
    .modern-form textarea,
    .modern-form button {
        font-size: 0.8em;
    }
}


/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    background: #007bff;
    color: white;
    border: none;
    font-size: 1.5em;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
}

/* Default state: Hide nav links on mobile */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 250px;
        background: #007bff;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 60px;
    }

    .nav-links {
        flex-direction: column;
        align-items: start;
        gap: 10px;
        margin: 0;
        padding: 0 20px;
    }

    .nav-links a {
        font-size: 1.5em;
        width: 100%;
        padding: 10px 0;
    }

    nav.open {
        transform: translateX(0);
    }
}



/* Hamburger menu adjustments for mobile */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    header h1 {
        font-size: 1.4em; /* Reduce font size for smaller screens */
        line-height: 1.2;
    }

    nav ul {
        margin-top: 10px; /* Add spacing below the title */
    }
}


.a2a_kit {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.a2a_button_facebook,
.a2a_button_twitter,
.a2a_button_pinterest,
.a2a_button_email {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: transform 0.3s ease;
}

.a2a_button_facebook:hover,
.a2a_button_twitter:hover,
.a2a_button_pinterest:hover,
.a2a_button_email:hover {
    transform: scale(1.2);
}

.a2a_kit a {
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

.a2a_kit a.x-logo {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #000; /* Black for X branding */
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    font-size: 1.5em;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.a2a_kit a.x-logo:hover {
    transform: scale(1.2);
    background-color: #1da1f2; /* Light blue hover effect */
}

.a2a_kit a.x-logo .x-icon {
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    font-weight: bold;
}

.vote-btn.voted {
    background: linear-gradient(90deg, #e0a800, #ffc107); /* Highlighted vote color */
    color: black;
    font-weight: bold;
    transform: scale(1.05); /* Slightly enlarge button */
    transition: background 0.3s ease, transform 0.3s ease;
}





.past-winner {
    border: 2px solid gold;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.5); /* Golden glow */
    background-color: #fff8dc; /* Light gold background */
}

.past-winner img {
    border: 2px solid gold;
    transition: transform 0.3s ease;
}

.past-winner img:hover {
    transform: scale(1.05); /* Slight zoom effect */
}


/* Hide the default file input */
input[type="file"] {
    display: none;
}

/* Style the custom file label */
.custom-file-label {
    display: inline-block;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.custom-file-label:hover {
    background: linear-gradient(90deg, #ffc107, #e0a800);
    transform: scale(1.05);
}

/* Modern Submit Button */
button.modern-btn {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button.modern-btn:hover {
    background: linear-gradient(90deg, #ffc107, #e0a800);
    transform: scale(1.05);
}

/* Preview Container */
#preview-container {
    margin-top: 15px;
    text-align: center;
}

#preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* General styles for the preview container */
#preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
    gap: 15px;
}

/* Preview image styles */
#preview-container img {
    max-width: 100%; /* Scale image to fit the container */
    height: auto; /* Maintain aspect ratio */
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    #preview-container img {
        max-width: 90%; /* Slightly smaller width for phones */
    }

    #preview-container p {
        font-size: 0.9em; /* Adjust font size for smaller screens */
    }
}

/* Responsive styling for very small screens */
@media (max-width: 480px) {
    #preview-container img {
        max-width: 80%; /* Reduce width further for very small screens */
    }

    #preview-container p {
        font-size: 0.8em; /* Smaller text on small screens */
    }
}


.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    max-width: 100%; /* Ensure it adapts to smaller screen sizes */
}

.preview-container img {
    max-width: 90%; /* Adjusts the image size to fit within the container */
    max-height: 200px; /* Limits the height of the preview on mobile */
    object-fit: contain; /* Ensures the image is scaled proportionally */
    border-radius: 5px; /* Optional: Add some styling */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.preview-container p {
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 1em;
    margin-top: 10px;
}


footer.modern-footer {
    background-color: #f8f8f8;
    padding: 2em 1em;
    text-align: center;
    color: #333;
    border-top: 1px solid #ddd;
}

footer .modern-footer-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}

footer .modern-footer-nav ul li {
    margin: 0 1em;
}

footer .modern-footer-nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s;
}

footer .modern-footer-nav ul li a:hover {
    color: #00bcd4;
}

footer .a2a_kit a {
    margin: 0 0.5em;
    color: #ffffff;
    font-size: 1.5em;
    transition: color 0.3s;
}

footer .a2a_kit a:hover {
    color: #00bcd4;
}

footer p {
    margin: 1em 0 0;
    color: #555;
    font-size: 0.9em;
}


h3 {
    text-align: center;
}


.welcome-section {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    margin: 20px 0;
}

.welcome-section h2 {
    font-size: 2em;
    color: #333;
}

.welcome-section p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}


.sitemap-link {
    text-align: center;
    margin: 20px 0;
}

.sitemap-button {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff; /* Bright blue color */
    text-decoration: none;
    border: 2px solid #007bff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sitemap-button:hover {
    background-color: #007bff;
    color: #fff;
}


/* Sitemap Button Styling */
.sitemap-link {
    text-align: center;
    margin: 20px 0;
}

.sitemap-button {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff; /* Bright blue */
    text-decoration: none;
    border: 2px solid #007bff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sitemap-button:hover {
    background-color: #007bff;
    color: #fff;
}

/* Contact Us Link Styling */
.contact-link {
    color: #007bff; /* Bright blue */
    text-decoration: none;
    font-size: 1em;
    font-weight: normal;
    transition: color 0.3s ease;
}

.contact-link:hover {
    text-decoration: underline;
    color: #0056b3; /* Slightly darker blue on hover */
}



/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 5px solid white;
    border-radius: 10px;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    font-size: 2em;
    color: white;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    border: none;
    background: none;
    text-shadow: 0 0 5px black;
}

.lightbox .close {
    top: 10px;
    right: 10px;
}

.lightbox .prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}


/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 5px solid white;
    border-radius: 10px;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    font-size: 2em;
    color: white;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    background: none;
    border: none;
    text-shadow: 0 0 5px black;
}

.lightbox .close {
    top: 10px;
    right: 10px;
}

.lightbox .prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}


.vote-btn {
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    transition: background-color 0.3s;
}

.vote-btn:hover {
    background-color: #0056b3;
}

.vote-btn.voted {
    background-color: #28a745;
    color: white;
}


