body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    background-color: #f5f2eb;
    color: #eadfd0;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    background-color: #32140b;
    color: #c6c8b2;
    padding: 20px 0;
    animation: fadeIn 0.5s ease-in;
}

h1 {
    margin: 0;
    font-size: 2.5em;
}

.introduction {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(39, 31, 28, 0.5); /* Transparent brown background */
    border-radius: 15px; /* Soft rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    font-size: 1.1em;
    text-align: center;
    animation: fadeIn 1s ease-in;
    backdrop-filter: blur(12px); /* Apply backdrop blur */
}

.introduction p {
    text-align: justify;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    animation: fadeIn 1.5s ease-in;
}

.image-link {
    position: relative;
    margin: 10px;
    width: 100%;
    max-width: 300px;
    height: 400px;
    overflow: hidden;
    border: 5px solid #483d35;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.image-link:hover img {
    transform: scale(1.1);
}

.image-link:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.overlay {
    position: absolute;
    bottom: 0;
    background: rgba(63, 47, 41, 0.7);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    transition: background 0.3s ease;
}

.image-link:hover .overlay {
    background: rgba(63, 47, 41, 0.9);
}

footer {
    background-color: #3e2723;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

button {
    background-color: #5c4033;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Lora', serif;
    font-size: 1em;
    margin: 20px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #3e2723;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .image-link {
        max-width: 100%;
        height: auto;
    }

    .image-container {
        flex-direction: column;
        align-items: center;
    }

    header, footer {
        text-align: center;
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

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

/* Ensure footer is always at the bottom */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
