html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

main {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-block: none;
}

/*
by 950px width, change orientation of top part to better display on mobile devices
*/

#top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-image: url(/assets/wallpaper.svg);
    background-size: cover;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    gap: 10vw;
}

#pfp {
    border: solid 2px black;
    border-radius: 50%;
    width: 15rem;
    height: 15rem;
    margin: 1.2rem;
}

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

.name {
    display: inline-block;
    width: 30rem;
    text-align: center;
}

#blog-link {
    font-size: 1.2rem;
    color: var(--favicon-blue);
    padding: 0 0.4rem;
    transition: color 0.2s;
}

#blog-link:hover {
    color: var(--secondary);
}

.platforms {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: min-content;
    margin: 1rem 0;
    gap: 1rem;
}

.platforms a {
    margin: 0;
    width: 2rem;
    height: 2rem;
    color: var(--secondary);
    transition: color 0.2s;
    background-color: var(--favicon-blue);
    padding: 0.4rem;
    border-radius: 20%;
}

.platforms a:hover {
    color: var(--primary);
}

.platforms a img {
    width: max-content;
    height: max-content;
}

#bg-source {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    color: #fff;
}

#projects {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: var(--favicon-blue);
    padding: 2rem 1rem;
    gap: 20vw;
}

#projects h2 {
    text-align: center;
    font-size: 3rem;
    padding: 0 1rem;
    color: #fff;
}

#projects .listing {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 50vw;
}

.project {
    display: inline-block;
    padding: 1rem;
    text-align: center;
    color: white;
    max-width: 40vw;
}

.project a {
    font-size: 1.4rem;
    color: white;
}

.project img {
    max-width: 30vw;
}

@media (max-width: 950px) {
    #top {
        flex-direction: column;
        gap: 0;
    }

    #projects {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .project {
        max-width: 60vw;
    }

    .project img {
        max-width: 60vw;
    }
}
