@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;
    transition: background-color 0.5s ease-in 0.2s,
                color 0.5s ease-in 0.2s,
                font-size 1s ease;
}

nav a:hover {
    background-color: rgb(59, 130, 246);
    color: white;
    font-size: 1.2em;
    transition: background-color 0.5s ease-in 0.2s,
                color 0.5s ease-in 0.2s,
                font-size 1s ease;
}

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



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

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

ul {
    list-style-type: square;
}

.clear {
    clear: both;
}



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;
}



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

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



.family-table {
    width: 100%;
}

.family-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 2px solid rgb(11, 31, 51);
}

.family-table th,
.family-table td {
    border: 1px solid rgb(91, 91, 91);
    padding: 12px;
    text-align: left;
}

.family-table th {
    background-color: rgb(11, 31, 51);
    color: white;
    text-align: center;
}

.family-table tbody tr:nth-child(even) {
    background-color: rgb(235, 240, 245);
}

.family-table tbody tr:hover {
    background-color: rgb(220, 230, 240);
}

.family-table tfoot td {
    background-color: rgb(11, 31, 51);
    color: white;
    font-weight: bold;
    text-align: center;
}



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

fieldset {
    width: 90%;
    padding: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
}

legend {
    font-weight: bold;
    padding: 5px;
}

input,
select {
    display: block;
    position: relative;
    left: 30%;
    padding: 5px;
    height: auto;
    width: 60%;
    box-sizing: border-box;
}

label {
    display: block;
    position: absolute;
    padding: 5px;
    width: 30%;
    box-sizing: border-box;
}

textarea {
    display: block;
    position: relative;
    left: 30%;
    padding: 5px;
    width: 60%;
    box-sizing: border-box;
}

.recommend {
    padding: 10px 5px;
}

.recommend p {
    margin-bottom: 8px;
}

input[type="radio"] {
    display: inline;
    position: inherit;
    left: 0;
    width: auto;
}

label.radio {
    display: inline;
    position: inherit;
    width: auto;
}

input[type="submit"],
input[type="reset"] {
    display: block;
    float: left;
    left: 0;
    text-align: center;
    width: 40%;
    padding: 10px;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 10px;
}



input:focus,
select:focus,
textarea:focus {
    background-color: rgb(235, 240, 245);
}

input:focus:valid {
    background-color: rgb(220, 255, 220);
}

input:focus:invalid {
    background-color: rgb(255, 220, 220);
}



.video-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 20px auto;
}

.video-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}



@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: 1024px) and (min-width: 769px) {

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

}



@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: 70px;
    }

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



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

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



    .family-table {
        width: 100%;
        overflow: visible;
    }

    .family-table table,
    .family-table thead,
    .family-table tbody,
    .family-table tfoot,
    .family-table th,
    .family-table td,
    .family-table tr {
        display: block;
    }

    .family-table thead {
        position: absolute;
        left: -9999px;
        top: -9999px;
    }

    .family-table table {
        width: 100%;
        border: none;
        background-color: transparent;
    }

    .family-table tbody tr {
        margin-bottom: 20px;
        border: 2px solid rgb(11, 31, 51);
        background-color: white;
    }

    .family-table tbody td {
        position: relative;
        padding: 10px 10px 10px 45%;
        border: none;
        border-bottom: 1px solid rgb(91, 91, 91);
        min-height: 35px;
        text-align: left;
    }

    .family-table tbody td:last-child {
        border-bottom: none;
    }

    .family-table tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        width: 40%;
        padding-right: 10px;
        font-weight: bold;
        color: rgb(11, 31, 51);
    }

    .family-table tbody tr:nth-child(even) {
        background-color: rgb(235, 240, 245);
    }

    .family-table tfoot {
        display: block;
        margin-top: 10px;
    }

    .family-table tfoot tr,
    .family-table tfoot td {
        display: block;
        width: auto;
    }

    .family-table tfoot td {
        padding: 12px;
        background-color: rgb(11, 31, 51);
        color: white;
        font-weight: bold;
        text-align: center;
        border: none;
    }



    form {
        width: 100%;
        font-size: large;
    }

    fieldset {
        width: 100%;
        padding: 5px;
        margin: 0;
        box-sizing: border-box;
    }

    input,
    select {
        position: inherit;
        display: block;
        height: 50px;
        padding: 5px;
        width: 90%;
        left: 0;
    }

    label {
        position: inherit;
        display: block;
        height: 50px;
        width: 90%;
    }

    textarea {
        position: inherit;
        display: block;
        left: 0;
        width: 90%;
        padding: 5px;
    }

    input[type="radio"] {
        display: inline;
        position: inherit;
        left: 0;
        height: auto;
        width: auto;
    }

    label.radio {
        display: inline;
        position: inherit;
        height: auto;
        width: auto;
    }

    input[type="submit"],
    input[type="reset"] {
        float: none;
        width: 90%;
        margin: 10px;
        font-size: 1.2em;
    }

}
