@font-face {
    font-family: 'Dragalia Lost';
    src: url('./dragalialosten.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Dragalia Lost', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    color: white;
    min-width: 100vw;
    min-height: 100vh;

    ul {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 3vw;
        padding: 0;

        li {
            display: block;
            flex-basis: 30%;
            height: 100%;
        }

        .project {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            text-decoration: none;
            border: solid 1px white;
            border-radius: 5px;
            padding: 10px;
            transition: background-color 0.5s, color 0.5s;
            box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
            min-width: 150px;

            &:hover, &:active {
                background-color: white;
                &, * {
                    color: black;
                }
            }

            &:visited {
                color: white;
            }
        }
    }

    .project-img {
        border-radius: 5px;
        box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.5);
        object-fit: cover;
        object-position: center;
        width: 60px;
        height: 60px;
        margin: min(5vh, 30px);
    }

    .white-img {
        background-color: white;
    }

    h4, p {
        margin: 0;
    }
}

* {
    text-align: center;
}

@media (max-width: 800px) {
    body {
        ul {
            justify-content: center;
            align-items: center;
        }
    }
}