*, *::after, *::before {
    box-sizing: border-box;
    font-family: "Unageo", serif;
}

@font-face {
    font-family: "Unageo";
    font-display: swap;
    src: local("Unageo Regular"),
    url("Unageo-Regular.woff2") format("woff2"),
    url("Unageo-Regular.woff") format("woff");
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;

    overflow: visible;
}

body {
    background-color: #0b090f;
    padding-top: 15px;
    padding-bottom: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo {
    width: 100%;
}

header {
    min-width: 200px;
    width: 20%;
    margin-top: 4%;
}

main {
    width: 100%;
    height: 97%;

    display: flex;
    flex-direction: column;
    align-items: center;

}

footer {
    height: 3%;
    width: 100%;
    color: rgba(255, 255, 255, 0.35);

    font-size: small;

    display: flex;
    flex-direction: row;
    justify-content: space-between;

    padding-left: 15px;
    padding-right: 15px;
    margin-top: 15px;

    a {
        text-decoration: none;
        color: rgba(255, 255, 255, 0.35);
    }
}

main {
    .items-wrapper {
        position: relative;
        width: 100%;
        height: 40%;
        min-height: 300px;
        overflow: hidden;

        display: flex;
        align-content: center;
        justify-content: center;
        margin-top: 20px;
    }

    .items-wrapper::before, .items-wrapper::after {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("cunny.webp");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        z-index: -1;
    }

    /*Edges fix*/
    .items-wrapper::before {
        z-index: -2;
    }

    @media (hover: hover) or (pointer: fine) {
        .items-wrapper::after {
            transition-delay: 0.5s;
        }

        .items-wrapper:hover::after {
            filter: blur(5px) brightness(95%);
            transition-delay: 0ms;
        }

        .items:hover {
            gap: 32px;

            .content {
                opacity: 100%;
            }

            transition: gap 0.5s 0s ease-in-out;
        }
    }


    .items {
        text-align: center;
        list-style: none;

        display: grid;

        grid-template-columns: repeat(3, 20%);
        grid-template-rows: repeat(2, 40%);

        align-content: center;
        justify-content: center;

        gap: 0;
        /*padding: 24px;*/

        /*width: 100%;*/
        /*height: 100%;*/

        overflow-y: auto;
        transition: gap 0.5s 0.5s ease-in-out;

        background-color: transparent;

        .wrapper, .content {
            border-radius: 5px;
        }

        a {
            text-decoration: none;
        }

        .content {
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            padding: 15px;
            backdrop-filter: blur(20px) brightness(90%);
            transition:
                    box-shadow 0.5s 0s ease-in-out,
                    scale 0.5s 0s ease-in-out,
                    transform 0.5s 0s ease-in-out,
                    opacity 0.5s 0.5s ease-in-out;

            height: 100%;
            width: 100%;
            /*min-height: 216px;*/

            hgroup, h1, p {
                padding: 0;
                margin: 0;
            }

            hgroup {
                h1 {
                    color: white;
                    font-size: x-large;
                    font-weight: bold;
                }
                p {
                    color: rgba(0, 0, 0, 0.35);
                    font-size: large;
                    line-height: 18px;
                }
            }
        }

        @media (hover: hover) or (pointer: fine) {
            .content:hover {
                transition: box-shadow 0.5s 0s ease-in-out,
                scale 0.5s 0s ease-in-out,
                transform 0.5s 0s ease-in-out,
                opacity 0.5s 0s ease-in-out;
                box-shadow: 0 0 7px 1px white;
                scale: 105%;
            }

            .wrapper:nth-child(1), .wrapper:nth-child(2), .wrapper:nth-child(3) {
                .content:hover {
                    transform: translateY(5px);
                }
            }

            .wrapper:nth-last-child(1), .wrapper:nth-last-child(2), .wrapper:nth-last-child(3) {
                .content:hover {
                    transform: translateY(-5px);
                }
            }
        }
    }
}

@media (hover: none) or (pointer: coarse) or (pointer: none) {
    .items {
        transition: none !important;
        gap: 32px !important;
        .content {
            opacity: 100% !important;
            transition: none !important;
        }

        .content:hover {
            transform: none !important;
        }
    }

    .items-wrapper::after {
        transition: none !important;
    }

    .items-wrapper::after {
        filter: blur(5px) brightness(95%) !important;
    }
}

@media (max-width: 1099px) {
    .items-wrapper {
        .items {
            grid-template-columns: repeat(3, 24%) !important;
        }

        .content {
            hgroup {
                h1 {
                    font-size: large !important;
                }
                p {
                    font-size: medium !important;
                }
            }
        }
    }
}

@media (max-width: 700px) {
    header {
        width: 25% !important;
    }

    .items-wrapper {
        height: 80% !important;
        overflow: hidden !important;
    }

    .items::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
    }

    .items {
        position: absolute !important;
        height: 100% !important;
        width: 100% !important;

        /*gap: 32px !important;*/
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        align-content: unset !important;
        justify-content: unset !important;

        padding: 15px 0 !important;

        -ms-oveflow-style: none !important;
        scrollbar-width: 0 !important;

        li:last-child {
            margin-bottom: 24px;
        }

        li {
            width: 70% !important;
        }
    }
}