body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.main {
    background: linear-gradient(#4B74F4, #77A599, #EA7E46);
    height: 100vh;
    width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
}

nav {
    width: 100%;
    height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

ul:hover .card__img {
    opacity: 0.5;
    transition: 450ms;
}

li {
    display: inline-block;
}

.card {
    border: 2px solid transparent;
    position: relative;
    background-color: #ffffff41;
    width: 16rem;
    height: 17rem;
    border-radius: 20px;
    overflow: hidden;
    margin: 0rem 1.5rem;
    transition: 450ms;
    box-shadow: 0px 0px 0px transparent;
}

.card a {
    text-decoration: none;
    width: 16rem;
    height: 17rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card__img {
    width: 16rem;
    object-fit: cover;
    transition: 450ms;
}

.card:hover {
    transform: scale(1.2);
    border: 2px solid #ffffff;
    box-shadow: 0px 0px 10px #e2e2e28a;
}

.card:hover .card__img {
    opacity: 1;
}

@media only screen and (max-width: 600px) {
    nav {
        height: calc(100vh - 50px);
    }
    ul {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .card {
        width: 13rem;
        height: 14rem;
        margin: 0;
        margin-bottom: 1rem;
    }
    .card a {
        width: 13rem;
        height: 14rem;
    }
    .card__img {
        width: 13rem;
        object-fit: cover;
    }
    .card:hover {
        transform: scale(1);
    }
    ul:hover .card__img {
        opacity: 1;
    }
}
