:root {
    --hover-text-color: rgb(40, 40, 40);
    --font-size: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    background: black;
    font-family: 'Times New Roman', Times, serif;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    position: relative;
    width: 100%;
    font-size: var(--font-size);
    line-height: 1.2em;
    color: white;
    padding: 28px;
}

main {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
}

.project {
    position: relative;
    width: calc(100%/3);
    cursor: pointer;
}

.project:hover .project-name {
    display: block;
}

.project-name {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    font-size: 30px;
    color: white;
    text-align: center;
    z-index: 1;
    display: none;
}

.pattern {
    position: relative;
    width: 100%;
    height: 30vh;
}

svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

path {
    stroke: black;
    stroke-width: 0;
    fill: none;
}

text {
    font-size: var(--font-size);
    transition: fill 0.2s;
}

textPath {
    letter-spacing: 0;
}

@media screen and (max-width: 900px) {
    :root {
        --font-size: 18px;
    }

    .project {
        width: calc(100%/2);
    }

    .pattern {
        height: 25vh;
    }
}