/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

/* Header Styles */
.header {
    background-image: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    text-align: center;
    padding: 3em 1em;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 0.3em;
}

.header p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

.header nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s;
}

.header nav a:hover {
    color: #ffd700;
}

/* Container Styling */
.container {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}
/* Blog Upload Form */
.blog-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.form-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5em;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: Arial, sans-serif;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.image-container {
    position: relative;
    width: 200px;
    text-align: center;
}

.vote-icons {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    gap: 10px;
}

.vote-icons span {
    cursor: pointer;
    font-size: 20px;
}

img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.picture-of-the-month {
    text-align: center;
    margin-top: 50px;
}

.featured-image {
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.image-details {
    font-size: 18px;
    color: #555;
}

.votes {
    margin-top: 5px;
    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

/* Button Group Styling */
.button-group {
    display: flex;
    gap: 1em;
    justify-content: center;
}

.btn-submit {
    background-color: #2575fc;
    color: #fff;
    padding: 0.7em 1.5em;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn-submit:hover {
    background-color: #1a5dc2;
}

.btn-clear {
    background-color: #f44336;
    color: #fff;
    padding: 0.7em 1.5em;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn-clear:hover {
    background-color: #d32f2f;
}

/* Full Blog Styling */
.blog-full {
    margin: 2em 0;
    padding: 1.5em;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.blog-full-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 1em;
}

.blog-content {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1em;
}

.back-link {
    display: inline-block;
    margin-top: 1em;
    color: #2575fc;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 2em auto;
    padding: 1em;
}

/* Gallery Section */
#gallery {
    margin-bottom: 3em;
}

#gallery h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 1em;
    color: #333;
}

/* Gallery Images Container */
.gallery-images {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Each Image Container with Fixed Height */
.gallery-images .image-container {
    width: 30%; /* Each container takes 1/3 of the row */
    max-width: 300px;
    height: 250px; /* Set a fixed height for uniformity */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Image Styling to Fit the Container */
.gallery-images img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container */
    transition: transform 0.3s;
    border-radius: 10px;
}

.gallery-images img:hover {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}


/* Blog Section */
#latest-blogs {
    margin-top: 3em;
    background-color: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#latest-blogs h2 {
    font-size: 2em;
    text-align: center;
    color: #333;
    margin-bottom: 1em;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

/* Blog Post Container */
.blog-post {
    padding: 1.5em;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    text-align: center; /* Center-align text */
}

.blog-post:hover {
    background-color: #eef6ff;
}

/* Centered Blog Image Container */
.blog-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1em;
}

/* Blog Image Styling */
.blog-image {
    width: 100%;
    max-width: 300px; /* Max width for large screens */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Blog Post Title */
.blog-post h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #2575fc;
}

/* Blog Post Content */
.blog-post p {
    font-size: 1em;
    color: #666;
    margin-bottom: 0.5em;
}

/* Blog Post Author and Date */
.blog-post small {
    font-size: 0.9em;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-image {
        max-width: 90%; /* Adjust image size for tablets and small screens */
    }
}

@media (max-width: 500px) {
    .blog-post {
        padding: 1em;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .gallery-images .image-container {
        width: 45%; /* Two columns on smaller screens */
    }
}

@media (max-width: 500px) {
    .gallery-images .image-container {
        width: 100%; /* Single column on very small screens */
    }
}
    

/* Container Styles */
.container {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form Heading */
.container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5em;
}

/* Blog Upload Form */
.blog-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* Form Group (Label and Input Alignment) */
.form-group {
    display: flex;
    align-items: center;
    gap: 1em;
}

/* Form Labels */
.form-group label {
    flex: 0 0 100px;
    font-weight: bold;
    color: #333;
}

/* Text Input and File Upload Styling */
.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea {
    flex: 1;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: Arial, sans-serif;
}

/* Textarea Styling */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

/* Form Styling Adjustments */
.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    text-align: left;
    margin-bottom: 0.5em; /* Reduce space between form groups */
}

.form-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.2em; /* Tight space between label and input */
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 0.4em; /* Smaller padding for compact input fields */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: Arial, sans-serif;
}

textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

/* Button Group Styling */
.button-group {
    display: flex;
    gap: 0.5em; /* Smaller gap between buttons */
    justify-content: center;
    margin-top: 1em; /* Space above buttons */
}

.btn-submit, .btn-clear {
    background-color: #2575fc;
    color: #fff;
    padding: 0.6em 1.2em; /* Consistent padding */
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    height: 45px; /* Ensure uniform height */
    width: 100px; /* Ensure uniform width */
    text-align: center;
}

.btn-clear {
    background-color: #f44336;
}

.btn-submit:hover {
    background-color: #1a5dc2;
}

.btn-clear:hover {
    background-color: #d32f2f;
}

/* Submit and Reset Buttons Inline */
.blog-upload-form .btn-submit,
.blog-upload-form .btn-reset {
    display: inline-block;
    margin-top: 1em;
    padding: 0.7em 1.5em;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit {
    background-color: #2575fc;
    color: #fff;
    margin-right: 10px;
}

.btn-submit:hover {
    background-color: #1a5dc2;
}

.btn-reset {
    background-color: #f44336;
    color: #fff;
}

.btn-reset:hover {
    background-color: #d32f2f;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        flex: none;
    }

    .btn-submit, .btn-reset {
        width: 100%;
        margin: 0.5em 0;
    }
}
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

/* Header Styles */
.header {
    background-image: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    text-align: center;
    padding: 3em 1em;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 0.3em;
}

.header p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

.header nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s;
}

.header nav a:hover {
    color: #ffd700;
}

/* Container for Content */
.container {
    max-width: 1200px;
    margin: 2em auto;
    padding: 1em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
#gallery h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 1em;
    color: #333;
}

/* Gallery Grid Layout */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery-item {
    width: 30%;
    min-width: 200px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Gallery Image Styling */
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-item {
        width: 45%;
    }
}

@media (max-width: 500px) {
    .gallery-item {
        width: 100%;
    }
}
/* Container for Content */
.container {
    max-width: 1200px;
    margin: 2em auto;
    padding: 1em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Upload Form Styling */
#upload-photo {
    text-align: center;
    margin-bottom: 2em;
}

.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.upload-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-form label {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5em;
}

.upload-form input[type="file"] {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

/* Styled Button to Match Blog Page */
.btn-submit {
    background-color: #2575fc;
    color: #fff;
    padding: 0.7em 1.5em;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn-submit:hover {
    background-color: #1a5dc2;
}


/* Gallery Grid Layout */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery-item {
    width: 30%;
    min-width: 200px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* Responsive Design */
@media (max-width: 768px) {
    .gallery-item {
        width: 45%;
    }
}

@media (max-width: 500px) {
    .gallery-item {
        width: 100%;
    }
}