@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

body {
    background-color: rgb(13, 190, 202);
    font-family: 'Roboto', sans-serif;
    font-size: larger;
}

body {
    background-image: url(tlapkose.png);
    background-repeat: repeat-y;
    background-position: 80% top;
    background-attachment: fixed;
}

h1 {
    font-family: 'Caveat', cursive;
    font-size: 2em;
    text-align: center;
}

p {
    text-align: justify;
}

nav a {
    background-color: cadetblue;
    color: black;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 8px;
    margin: 5px;
    text-decoration: none;
}

nav a:hover {
    color: white;
    background-color: teal;
    border: 1px tan;
}

nav {
    display: flex;
}

@media (max-width: 999px) {
    nav {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 1000px) {
    nav {
        position: relative;
        display: inline-flex;
        margin: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

section {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1000px) {
    section {
        flex-direction: row;
    }

    section article {
        margin: 15px;
    }

    section article img {
        object-fit: cover;
    }
}

article {
    padding: 5px;
    flex: 1;
}

img {
    height: 427px;
    min-width: 30%;
    max-width: max-content;
    border-radius: 5px;
}