body {
    background-image: url("../img/villagevistabackground.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    opacity: 0;
    animation: moveUpAndFadeIn 5s linear forwards;
}

@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;
}

h2 {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    margin-top: 2%;
    color: whitesmoke;
    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;
}

.welcome-message {
    color: whitesmoke;
    text-align: center;
    margin-top: 10%;
    font-size: xx-large;
}

.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;
}

footer {
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    opacity: 0;
    animation: slideUpAndFadesIn 3s linear forwards;
}

footer p {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 0.9em;
    color: #cdc9c9;
}

@keyframes slideUpAndFadesIn {
    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;
    }

    h2 {
        font-size: 1.3em;
    }

    .quote {
        font-size: 0.9em;
    }

    .top-right-links a {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 70px;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.2em;
    }

    .quote {
        font-size: 0.8em;
    }

    .top-right-links a {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 60px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1em;
    }

    .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;
    }
}
