body {
    margin: 0;
    font-family: "Fustat";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23c9920e' fill-opacity='0.25' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

h1 {
    font-size: calc(20px + 4vw);
    font-weight: 900;
    text-align: center;
}

canvas {
    background: white;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: -1;
}

#projectsContainer {
    font-family: "Fustat";
    color: #333;
    max-width: 800px;
    padding: 20px 20px 25dvh;
    margin: auto;
}

.image {
    width: calc(100% - 4px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 25%;
    box-shadow: 0 0 2px 2px rgba(255, 255, 255, 0.25) inset;
    border: 2px solid rgba(0, 0, 0, 0.25);
    aspect-ratio: 1 / 1;
}

    .image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

        .image img.logo {
            width: 80%;
            height: 60%;
            object-fit: contain;
        }

    .image div {
        font-size: 16px;
        font-weight: 800;
        height: 80%;
        width: 80%;
        padding: 10%;
        color: #666;
        text-decoration: none;
    }

.project a, .project div[onclick] {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 25%;
    overflow: hidden;
    display: block;
    transition: 0.25s ease;
    box-sizing: border-box;
}

    .project:has(a):hover a, .project div[onclick]:hover {
        transform: translateY(-5px);
        cursor: pointer;
    }

.project {
    min-width: 0;
}

.title {
    font-size: calc(8px + 0.5vw);
    color: #333;
    font-weight: 500;
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .title h3 {
        margin-top: 1px;
        margin-bottom: 0;
        font-size: inherit;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .title h4 {
        margin: 0;
        font-size: inherit;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.projects {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: calc(20px + 1vw);
}

a {
    text-decoration: none;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.links {
    color: #666;
    display: flex;
    gap: 10px;
    align-items: center;
}

    .links a {
        color: #999;
        border-bottom: 1px solid #999;
    }

.category {
    font-size: calc(6px + 0.3vw);
}

.project-detail-header {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: calc(20px + 1vw);
    align-items: center;
    position: relative;
}

h2 {
    font-size: calc(14px + 3vw);
    margin: 0;
}

.project-detail-header .category {
    font-size: calc(8px + 0.5vw);
}

.project-detail-header a {
    padding: 1px 2px;
    color: #111;
    border-bottom: 1px solid #111;
}

.project-detail-header p {
    margin: 0;
}

button, .button {
    border: 1px solid #111;
    background: #111;
    outline: 0;
    padding: 8px 12px 4px;
    color: #fff;
    border-radius: 10px;
    border-bottom: 1px solid #111;
    font-family: "Fustat";
    font-size: 16px;
    margin: auto;
    font-weight: 600;
    transition: 0.25s ease;
}

a.button {
    color: #fff;
    padding: 8px 12px 4px;
    display: inline-block;
}

button:hover {
    background: #111;
    color: #eee;
}

button.close {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: transparent !important;
    color: #111 !important;
    cursor: pointer;
    border: 0;
}
