@font-face {
    font-family: "Abel";
    src: url("abel-v18-latin-regular.woff2") format("woff2");
    font-display: swap;
}

* {
    font-family: "Abel";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: rgb(23, 87, 87);
    min-height: 100vh;
    max-width: 90%;
    margin: 0 auto;
    color: aliceblue;
    height: 100%;
    overflow-x: hidden;
    /* remove scroll horizontal */
}

body {
    padding-bottom: 4rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: .3rem .2rem;
    background-color: rgb(23, 87, 87);
    z-index: 1;
}

h1 {
    text-align: center;
    padding-left: 1rem;
    font-size: 2.3rem;
}

main {
    padding-top: 5.3rem;
    transition: all .9s ease;
}

li img {
    width: 100%;
    height: auto;
    border-radius: 12px;

    &:hover {
        border: 2px solid aliceblue;
    }
}

ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    list-style: none;
    text-align: center;
}

li {
    transition: all .5s ease-in-out;
}

li:hover {
    transform: translateY(-6px) scale(1.04);
}

a {
    text-decoration: none;
    color: aliceblue;
}

p {
    padding-top: .6rem;
    font-size: 1.1rem;
}

.btn-top {
    position: fixed;
    bottom: 3.2rem;
    right: 1.5rem;
    width: 2.7rem;
    visibility: hidden;
    cursor: pointer;
    transition: all .5s;

    &:hover {
        transform: translateY(-.8rem) scale(1.1);
    }
}

.btn-top.ativo {
    visibility: visible;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0rem .3rem .5rem .3rem;
    background-color: rgb(23, 87, 87);
    z-index: 1;
}

footer p {
    text-align: center;
    font-size: 1.3rem;
}

@media (max-width: 441px) {

    main {
        padding-top: 4.5rem;
    }

    li:hover {
        transform: translateY(-3px) scale(1.02);
    }

    footer p {
        text-align: center;
        font-size: 1rem;
    }

}