/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 1.5rem;
}

main {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Upload Section */
#upload-section {
    margin-bottom: 30px;
    text-align: center;
}

.custom-file-upload {
    font-size: 3rem;
    color: #4CAF50;
    cursor: pointer;
    transition: color 0.3s;
    display: inline-block;
}

.custom-file-upload:hover {
    color: #45a049;
}

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

/* Gallery Section */
#gallery-section {
    margin-top: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.photo {
    text-align: center;
    background-color: white;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo img {
    width: 150px;
    height: 150px;
    object-fit: cover; /* Ensures all thumbnails are uniform in size */
    border-radius: 5px;
    border: 2px solid #ccc;
    transition: border-color 0.3s;
}

.photo img:hover {
    border-color: #4CAF50;
}

.photo a {
    text-decoration: none;
    color: inherit;
}

/* Delete Button */
.delete-form {
    margin-top: 10px;
}

.delete-button {
    padding: 5px 10px;
    font-size: 0.9rem;
    color: white;
    background-color: #f44336;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-button:hover {
    background-color: #d32f2f;
}
/* Additional styles for login page */
#login-section {
    text-align: center;
    margin-top: 50px;
}

#login-section input[type="password"] {
    padding: 10px;
    font-size: 1rem;
    width: 250px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#login-section button {
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background-color: #4CAF50;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#login-section button:hover {
    background-color: #45a049;
}

.error {
    color: red;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
