body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to bottom, #f9f1e7, #ffffff);
}

header {
    background: linear-gradient(to right, #ffecd2, #fcb69f);
    text-align: center;
    padding: 2rem 0;
    color: #4a4a4a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1, header h2 {
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    flex-grow: 1;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333333;
}

label, select {
    display: block;
    margin-bottom: 1rem;
    color: #555555;
}

select {
    padding: 0.5rem;
    border: 1px solid var(--gray-400);
    border-radius: 0.25rem;
    width: 100%;
    margin-bottom: 2rem; /* Add padding between the select row and the first image */
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-item {
    background-color: var(--gray-100);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(50% - 1rem); /* Two columns */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.image-container {
    padding: 1rem; /* Add padding around the image */
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    width: auto;
    max-width: 350px; /* Set max width for images */
    height: 100%; /* Ensure height is 100% */
    object-fit: cover;
    border-radius: 4px;
}

/* Single column on smaller screens */
@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(100% - 1rem);
    }
    .gallery-item img {
        width: auto;
        max-width: 100%; /* Ensure image fits container width on mobile */
        height: auto; /* Full size on mobile */
    }
}

.gallery-item-content {
    padding: 1rem;
}

.gallery-item h3 {
    margin: 0 0 0.5rem;
    color: #333333;
}

.gallery-item p {
    margin: 0 0 1rem;
    color: #555555;
}

.gallery-item a {
    display: block;
    margin-bottom: 0.5rem;
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s;
}

.gallery-item a:hover {
    color: #ff8a65;
    text-decoration: underline;
}

footer {
    padding: 1rem;
    background: var(--gray-200);
    text-align: center;
    margin-top: auto; /* Ensure footer sticks to the bottom of the page */
    background: linear-gradient(to right, #ffecd2, #fcb69f);
    color: #4a4a4a;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* Background word styling */
.background-word {
    position: absolute;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    pointer-events: none;
    animation: fade 10s infinite;
}

@keyframes fade {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

