@charset "utf-8";

body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: ivory;
}

header {
    text-align: center;
    padding: 20px;
}

header img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

h1, h2 {
    text-shadow: 4px 6px 5px gray;
}

h2 {
    font-size: 1.3em;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: block;
    width: 20%;
    float: left;
}

nav a {
    display: block;
    background-color: rgb(11, 31, 51);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: white;
}

nav a:hover {
    background-color: rgb(59, 130, 246);
    color: white;
}

nav::after {
    content: "";
    display: table;
    clear: both;
}

main {
    padding: 20px;
    margin-top: 35px;
}

main > img {
    width: 25%;
    padding: 25px;
    float: right;
}

body > footer {
    background-color: rgb(11, 31, 51);
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}

ul {
    list-style-type: square;
}



@media only screen and (min-width: 769px) {

    html {
        background-image: url(BR.image.jpg);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        background-attachment: fixed;
    }

    body {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

}



@media only screen and (max-width: 768px) {

    body {
        width: 100%;
        margin: 0;
    }

    header {
        padding: 10px;
    }

    header img {
        width: 100%;
        height: auto;
    }

    nav li {
        float: none;
        font-size: x-large;
        width: 100%;
    }

    nav a {
        border-bottom: 1px solid black;
    }

    main > img {
        width: 90%;
        float: none;
        padding: 5%;
    }

    main {
        padding: 15px;
        margin-top: 15px;
    }

    body > footer {
        line-height: 2em;
        padding: 10px;
    }

}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery img {
    width: calc(25% - 20px);
    height: 220px;
    object-fit: cover;
}



@media only screen and (max-width: 1024px) and (min-width: 769px) {

    .gallery img {
        width: calc(50% - 20px);
    }

}


@media only screen and (max-width: 768px) {

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

    .gallery img {
        width: 90%;
        height: auto;
    }

}