body {
    background-image: url("../img/villagevistabackground.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    opacity: 0;
    animation: moveUpAndFadeIn 5s linear forwards;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

@keyframes moveUpAndFadeIn {
    0% {
        background-position: 0 100%;
        opacity: 0;
    }
    100% {
        background-position: 0 0;
        opacity: 1;
    }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap;
    border-radius: 8px;
}

.logo-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    margin-right: 20px;
    width: 100px;
}

h1 {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 700;
    color: black;
    font-size: 2em;
    margin: 0;
    text-align: center;
}

.quote {
    font-family: 'Book Antiqua', Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Georgia', serif;
    font-size: 1em;
    color: #555;
    font-style: italic;
    margin: 5px 0 0 0;
    text-align: center;
}

.top-right-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.top-right-links a {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.top-right-links a:hover {
    background-color: #ffffffac;
    color: #3f4fcf;
    border-color: #3070b5ac;
    text-decoration: none;
}

.welcome-message {
    font-family: 'Times New Roman', Times, serif;
    font-style: oblique;
    font-size: 1.2em;
    color: #ccc7c7;
    margin: 42px auto;
    margin-top: 8%;
    text-align: center;
    width: 80%;
    line-height: 2.4;
    opacity: 0;
    animation: slideUpAndFadeIn 1s forwards;
    animation-delay: 2s;
}

footer {
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    margin-bottom: 1%;
    opacity: 0;
    animation: slideUpAndFadeIn 2s forwards;
    animation-delay: 2s;
}

footer p {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    font-style: oblique;
    font-size: 0.9em;
    color: white;
}

@keyframes slideUpAndFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .logo {
        width: 80px;
    }

    h1 {
        font-size: 1.8em;
    }

    .quote {
        font-size: 0.9em;
    }

    .top-right-links a {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .welcome-message {
        font-size: 1em;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 60px;
    }

    h1 {
        font-size: 1.5em;
    }

    .quote {
        font-size: 0.8em;
    }

    .top-right-links {
        flex-direction: column;
        align-items: center;
    }

    .top-right-links a {
        padding: 8px 10px;
        font-size: 0.8em;
    }

    .welcome-message {
        font-size: 0.9em;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 50px;
    }

    h1 {
        font-size: 1.2em;
    }

    .quote {
        font-size: 0.7em;
    }

    .top-right-links {
        flex-direction: column;
        align-items: center;
    }

    .top-right-links a {
        padding: 6px 8px;
        font-size: 0.7em;
    }

    .welcome-message {
        font-size: 0.8em;
        width: 100%;
        padding: 0 10px;
    }

    .top-bar {
        padding: 10px;
    }
}
