@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;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f0f0f0;
}

nav {
  background-color: #000;
  padding: 10px 40px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.menu li {
  position: relative;
}

.menu a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 17px;
  display: block;
  transition: color 0.3s ease;
}

.menu a.active {
  color: #ffcc33;
}

.menu a:hover {
  color: #ffcc33;
}

.dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid #fff;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  padding: 0; 
  margin: 0;  
  overflow: hidden; 
}

.dropdown:hover .submenu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.submenu li a {
  color: #333;
  padding: 12px 20px;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 0;
}

.submenu li a:hover {
  background-color: #f6c23e;
  color: #000;
  font-weight: 500;
}

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;
    }
}