* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100%;
    font-family: Arial, serif;
}

header {
    height: 100%;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #aaa;
}

a {
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    text-decoration: underline;
}

.wrapper {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
}

.nav_a {
    padding: 8px 16px;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid #4CAF50;
}

.nav_a:hover {
    background-color: #4CAF50;
    border: 1px solid #4CAF50;
    color: white;
}

.container {
    width: 100%;
    margin-top: 48px;
    padding: 8px 16px;
    max-width: 1140px;
}

.content div {
    margin-bottom: 16px;
}

.content h3 {
    border-bottom: 1px solid #aaa;
    margin-bottom: 8px;
}

img {
    max-width: 100%;
    aspect-ratio: 16 / 9;
}

.title {
    font-size: 4rem;
    font-weight: bold;
    text-decoration: underline coral;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

nav a {
    padding: 8px 16px;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid #aaa;
}

nav a:nth-child(2) {
    border: 1px solid red;
}

nav a:nth-child(2):hover {
    background-color: rgba(255, 0, 0, 0.5);
    color: white;
}

nav a:hover {
    background-color: rgba(170, 170, 170, 0.5);
}

form {
    margin: 16px 0;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

form input {
    padding: 8px 0;
    margin-bottom: 8px;
    outline: none;
    border: none;
    border-bottom: 2px solid #aaa;
}

form button {
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
    outline: none;
    background-color: transparent;
}

form textarea {
    outline: none;
    max-width: 100%;
    min-width: 100%;
}

#searchBar {
    flex-direction: row;
    width: 50%;
}

#searchBar input {
    padding: 8px 16px;
    margin-bottom: 0;
    flex: 1;
}

.listContent ul {
    width: 100%;
    height: 100%;

    list-style: none;

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 16px;
    row-gap: 16px;
}

.listContent li {
    padding: 16px;
    border: 1px solid transparent;
    border-bottom: 1px solid #ddd;

    display: flex;
    flex-direction: column;
}

.listContent li:hover {
    border: 1px solid #ddd;
}

.listContent li img {
    margin-bottom: 8px;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.listContent li:nth-child(1) {
    grid-column: 1/-1;
}

button[type="submit"] {
    border: 1px solid coral;
}

button:hover {
    background-color: rgba(255, 127, 80, 0.5);
}

@media (max-width: 1139px) {
    .listContent ul {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 750px) {
    .btn-label {
        display: none;
    }

    .listContent ul {
        grid-template-columns: 1fr;
    }

    #searchBar {
        width: 100%;
    }
}