@keyframes backgroundAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: 'Georgia', serif;
    background: url('background-image.jpg') repeat;
    margin: 0;
    padding: 0;
    line-height: 1.6; /* Ensures better readability */
    animation: backgroundAnimation 80s infinite; /* Applies background animation to body */
}

.classical-header {
    background: #f4f4f9;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-family: 'Georgia', serif;
    line-height: 1.6; /* Ensures consistent line height with other text */
}

.classical-header h1 {
    color: #555;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: capitalize;
    margin: 0;
    font-size: 2.4em; /* Sets larger font size */
}

h2 {
    color: #333;
    margin-bottom: 10px;
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    font-size: 2em; /* Sets larger font size */
    line-height: 1.6; /* Ensures consistent line height */
}

section {
    margin: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6); /* Sets background with increased translucency */
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    font-size: 1.2em; /* Sets increased font size */
    line-height: 1.6; /* Ensures consistent line height */
}

.forest-box {
    margin-bottom: 20px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.6); /* Sets background with increased translucency */
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    line-height: 1.6; /* Ensures consistent line height */
}

.forest-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    line-height: 1.6; /* Ensures consistent line height */
}

.inline-image-left, .inline-image-right {
    width: 508px;
    height: 338px;
    border-radius: 8px;
    margin-right: 40px;
}

.inline-image-right {
    margin-left: 40px; /* Ensures increased spacing between image and text */
    order: 2;
}

.registry-button {
    display: inline-block;
    padding: 15px 25px;
    background-color: #80b5a5; /* Sets button color */
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.4em; /* Sets larger font size */
    margin: 20px 0;
    transition: background-color 0.3s;
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    line-height: 1.6; /* Ensures consistent line height */
}

.registry-button:hover {
    background-color: #6fa094; /* Sets color for hover state */
}

.registry-button:active {
    background-color: #5e8b83; /* Sets color for active (pressed) state */
}

#guestbook-form {
    display: flex;
    flex-direction: column;
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    font-size: 1.2em; /* Sets larger font size */
    line-height: 1.6; /* Ensures consistent line height */
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    font-size: 1.1em;  /* Sets larger font size */
    line-height: 1.6; /* Ensures consistent line height */
}

input, textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    font-size: 1em;  /* Sets larger font size */
    line-height: 1.6; /* Ensures consistent line height */
}

input:focus, textarea:focus {
    border-color: #228b22;
    outline: none;
}

button {
    padding: 10px;
    background-color: #228b22;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    font-size: 1.2em;  /* Sets larger font size */
    line-height: 1.6; /* Ensures consistent line height */
}

button:hover {
    background-color: #2e8b57;
}

.message {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    font-size: 1.1em;  /* Sets larger font size */
    line-height: 1.6; /* Ensures consistent line height */
}

.message h3 {
    font-size: 1.7em;
    font-weight: bold;
    font-family: 'Georgia', serif; /* Ensures consistent font family */
    line-height: 1.6; /* Ensures consistent line height */
}

@media (max-width: 768px) {
    .forest-box {
        flex-direction: column;
        text-align: center;
    }

    .inline-image-left, .inline-image-right {
        width: 100%;
        margin: 0 0 20px 0;
        height: auto;
    }
}
