/* base */
*,
*:before,
*:after {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial,
        sans-serif;
    font-size: 14px;
    margin-top: 2.5rem;
    margin-bottom: 10rem;
}

a,
a:focus,
a:hover {
    text-decoration: none;
}

p {
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* Light mode & default */

body {
    color: #333;
    background-color: #fff;
}

a {
    color: #24c1ff;
    text-decoration: none;
}

a:focus,
a:hover {
    color: #24c1ff;
    text-decoration: underline;
}

main {
    background-color: #fff;
}

.post {
    background-color: #fafafa;
}

.lds-facebook div {
    background: #666;
}


/* Dark mode */

@media (prefers-color-scheme: dark) {
    body {
        color: #eee;
        background-color: #121212;
    }

    a {
        color: #24c1ff;
        text-decoration: none;
    }

    a:focus,
    a:hover {
        color: #24c1ff;
        text-decoration: underline;
    }

    main {
        background-color: #212121;
    }

    .post {
        background-color: #121212;
    }

    .lds-facebook div {
        background: #fff;
    }
}

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

main {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

main>section {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

main>section>h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    margin-top: 2rem;
}

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

.header-image>img {
    width: 40%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
}

body>h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.social-links>a>img {
    width: 3.3rem;
    height: 3.3rem;
    margin: 0.5rem;
}

.social-links>a:hover>img {
    transform: scale(1.1);
}

.about-me>p {
    font-size: 1rem;
    text-align: center;
}

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

.blog-posts>.lds-facebook {
    height: 450px;
}

#show-more-link {
    /* make it look like a link */
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #24c1ff;
    border-radius: 0.25rem;
    color: #24c1ff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

#show-more-link:hover {
    background-color: #24c1ff;
    color: #fff;
}

.post {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);

}

.projects>ul {
    /* hide list dots */
    list-style: none;
    padding: 0;
    margin: 0;
}

.projects>ul>li {
    /* add border */
    border-bottom: 1px solid #727272;
    padding: 0.5rem;
    margin: 0.5rem 0;

}

.project-logo {
    max-width: 128px;
}

/* CSS loader */

.lds-facebook {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-facebook div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.lds-facebook div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}

.lds-facebook div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}

.lds-facebook div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}

@keyframes lds-facebook {
    0% {
        top: 8px;
        height: 64px;
    }

    50%,
    100% {
        top: 24px;
        height: 32px;
    }
}
