@font-face {
    font-family: "Overflow";
    src: url("fonts/OverflowVF.ttf") format("truetype");
    font-weight: 100 900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "Overflow", sans-serif;
}


.desktop {
    width: 100vw;
    min-height: 100vh;

    background-image: url("images/desktop.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 40px;
}

/* grid!! */
.folder-grid {
    display: grid;

    grid-template-columns: repeat(4, 100px);
    grid-template-rows: repeat(4, 100px);

    gap: 20px;
    width: max-content;
}

/* flex!! */
.folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}


.folder img {
    width: 100px;
    height: auto;
}


.folder span {
    font-size: 9px;
    color: white;
    text-align: center;
}

.folder:hover {
    opacity: 0.7;
    animation: wiggle 0.4s ease-in-out infinite;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.folder {
    text-decoration: none;
}

.article-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90vw;
    background: white;
    border: 1px solid black;
}

.article-window:target {
    display: block;
}

.window-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgb(233, 233, 233);
}

.close-btn {
    color: black;
    text-decoration: none;
    font-size: 30px;
    line-height: 1;
}

.window-content {
    padding: 20px;
    font-size: 10px;
    line-height: 2.5;
}

.window-content p {
    margin-bottom: 20px;
    font-family: "Overflow";
    font-size: 10px;
    line-height: 2.5;
    font-variation-settings: "FLOW" 50;
    animation: morph 3s ease-in-out infinite alternate;
}

@keyframes morph {
    0% {
        font-variation-settings: "FLOW" 50;
    }

    100% {
        font-variation-settings: "FLOW" 300;
    }
}

@media (max-width: 600px) {
    .article-window:target {
        display: block;
        width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
    }

    .window-content {
        padding: 15px;
        font-size: 12px;
        line-height: 2;
    }
}

* {
    cursor: url("images/cursor.png") 0 0, crosshair !important;
}