* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-size: 62.5%;

    --color-base-white: #ffffff;
    --color-base-gray-100: #f5f5f5;
    --color-base-gray-300: #8d8d99;
    --color-base-gray-500: #3d3d3d;
    --color-base-gray-900: #202024;
}

html, body, input {
    font-family: "Mulish", sans-serif;

}

body {
    font-size: 1.6rem;
    background-color: var(--color-base-white);
    color: var(--color-base-gray-900);
}

#app {
    display: grid;
    grid-template-rows: max-content 1fr 6rem;
    height: 100vh;
}

.container {
    width: min(112rem, 100%);

    margin: 0 auto;
    padding: 1.6rem 3.2rem;

}

header, nav, nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7rem;
    font-weight: 700;
}

nav #logo {
    max-width: 10rem;
}

nav ul {
    list-style: none;
    font-size: 1.8rem;
    color: var(--color-base-gray-300);
}

ul li.active {
    color: var(--color-base-gray-900);
}

header form {
    flex: 1;
}

.avatar {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    object-fit: cover;
}

main {
    background-color: var(--color-base-gray-100);
    overflow-y: scroll;
}

form .input-wrapper label {
    width: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
}

.input-wrapper input {
    width: 100%;
    padding: 1.6rem;
    background-color: var(--color-base-gray-100);
    
    border: 0;
    border-radius: 0.6rem;

    font-size: 1.6rem;
    font-weight: 600;
}

.input-wrapper input::placeholder {
    opacity: 0.56;
    color: var(--color-base-gray-500);
}

main h1 {
    padding-top: 1.6rem;
    font-size: 2.4rem;
}

.gallery {
    margin-top: 3.2rem;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    row-gap: 4rem;
    margin-bottom: 6rem;
}

.item { 
    background-color: var(--color-base-white);
    border-radius: 0.8rem;
    overflow: hidden;

    transition: 1s;
    transition-timing-function: ease-out;
}

.item:hover {
    transform: scale(1.1);
    position: relative;
    z-index: 1;
}

.item > img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.details {
    padding: 2rem;
}

.details h2 {
    font-size: 1.8rem;
}

.details p {
    margin-top: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-base-gray-600);
}

button {
    padding-top: 1.2rem;

    width: 4rem;
    height: 4rem;

    border: none;
    cursor: pointer;
    background-color: transparent;

}

button img {
    width: 100%;
    border-radius: 50%;
}

footer {
    text-align: center;
}

footer img {
    width: 4rem;
}

/* Animation =============== */
header {
    --startY: -100%;
    animation: move 2s;
}

footer {
    --startY: 100%;
    animation: move 2s;
}

@keyframes move {
    from {
        transform: translateY(var(--startY));
    }
}

.item {
    --delay: 0.4s;
    animation: appear 1s var(--delay) backwards;
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }

    100% {
        transform: scale(1.1);
    }
}


/* Responsivo ============= */
@media (max-width: 768px) {
    header{
        height: 9rem;
    }
    main {
        overflow-y: visible;
    }

    .gallery { 
        grid-template-columns: repeat(1, 1fr);
        column-gap: 0;
        row-gap: 6rem;
    }
}