* {
    margin: 0;
    padding: 0;
}

:root {
    --main-font: 'Roboto', sans-serif;
    --secondary-font: 'Kumbh Sans', sans-serif;
}

body {
    background-color: #1f1f1f;
    font-family: var(--secondary-font);
}

main {
    margin: 8rem 4rem 2rem 4rem;
}

h1 {
    font-family: var(--main-font);
    color: #FFF;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.subtitle {
    font-family: var(--secondary-font);
    font-size: 1.5rem;
    color: #FFF;
    text-align: center;
    margin-bottom: 4rem;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    justify-content: center;
}

.project-container {
    width: 400px;
    height: fit-content;
    border-radius: 15px;
    background: #f6f6f6;
    padding: 2rem;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: 300ms;
}

.project-container:hover {
    width: 450px;
    transition: 300ms;
}

h2 {
    font-family: var(--main-font);
    font-weight: 1000;
    font-size: 1.3rem;
    text-align: center;
    margin: .5rem;
}

img {
    width: 100%;
    border-radius: 8px;
}

.source {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1rem;
}

.code-button,
.page-button {
    font-family: var(--main-font);
    font-weight: 700;
    text-decoration: none;
    color: #f6f6f6;
    padding: .6rem;
    width: 30%;
    border-radius: 8px;
    text-align: center;
}

.page-button {
    background: #8CD04B;
}

.page-button:hover {
    background: #87c74a;
}

.code-button {
    background: #48A6CC;
}

.code-button:hover {
    background: #50b8e1;
}

.tags-container {
    display: flex;
    align-items: center;
    gap: .7rem 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #D9D9D9;
    padding: .3rem .8rem;
    border-radius: 5rem;
    font-size: .9rem;
}

.frontend {
    background-color: #48A6CC;
    color: #fff;
}

.design {
    background-color: #b566d6;
    color: #fff;
}

.backend {
    background-color: #e2ce1b;
    color: #fff;
}

footer {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
}

footer a {
    color: #fff;
    text-decoration: underline .5px;
    text-underline-offset: .3rem;
    transition: 300ms;
}

footer a:hover {
    text-underline-offset: .5rem;
    transition: 300ms;
}

@media (max-width: 620px) {
    main {
        margin: 5rem 2rem 2rem 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .code-button,
    .page-button {
        width: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}