@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: black;
    padding: 10px 7% 0px 7%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.active {
    color: yellow;
}


nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
}

header img {
    width: 100%;
    border: 10px solid silver;
    height: 80vh;
    position: relative;
    top: 35px;
}

header h1 {
    margin: 10px 0px;
    font-family: Arial, Helvetica, sans-serif;
}

main {
    padding: 20px 7%;
}

section {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

article {
    padding: 10px 20px;
    align-items: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.icon {
    max-width: 30px;
    max-height: 30px;
}

.flex_2 {
    flex: 2;
}

article p {
    text-align: justify;
}

article img {
    width: 100%;
    max-width: max-content;
}

article ul {
    text-align: left;
}


table {
    margin: 40px auto 20px auto;
    border-collapse: collapse;

}

th,
td {
    padding: 5px 20px;
    border: 1px solid #C0C0C0;
}

th:first-child,
td:first-child {
    text-align: left;
}

th:last-child,
td:last-child {
    text-align: right;
}

th:nth-child(2),
td:nth-child(2) {
    text-align: left;
}

tr {
    border-bottom: 1px solid #C0C0C0;
}

tr:nth-child(odd) {
    background-color: #E0E0E0;
}

footer {
    background-color: black;
    text-align: center;
    color: lightgray;
    padding: 10px 0;
}

article img {
    width: 100%;
    max-width: 640px;
    height: auto;
}

.foto {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.foto article {
    flex: 1 0 25%;
    box-sizing: border-box;
}

form {
    max-width: 500px;
    margin: auto;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    box-sizing: border-box;
}

.gender {
    display: flex;
    gap: 20px;
    margin: 8px 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

button {
    background-color: #f4c542;
    border: none;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #d9ad34;
}

.column {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1000px) {
    .header-container {
        flex-direction: column;
        align-items: start;
    }

    nav {
        display: flex;
        flex-direction: column;
    }

    header img {
        display: none;
    }

    section {
        flex-direction: column;
        align-items: center;
    }

    .left {
        align-items: start;
    }

    tr {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none !important;
        margin-top: 20px;
    }

    tr:first-child {
        margin: 0;
    }

    td,
    th {
        border: none !important;
    }

    .foto article {
        flex: 1 0 320px !important;
    }
}

@media (min-width: 800px) {
    .order_2 {
        order: 2;
    }
}