@font-face {
    font-family: "departure-mono";
    src:
        url("../font/departure-mono.woff2") format("woff2"),
        url("../font/departure-mono.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

body,
h1,
p {
    font-family: "departure-mono", sans-serif;
    color: #3c4e28;
}

body {
    font-size: 11px;
    background-color: #c3d59b;
}

h1 {
    font-size: 33px;
    align-items: center;
    display: flex;
    height: 45px;
}

p,
a {
    font-size: 22px;
}

a {
    color: #01ae81;
    text-decoration: none;
}

.letter {
    display: inline-block;
    transition: transform 1s ease-in-out;
    transform-origin: center;
    will-change: transform;
    backface-visibility: hidden;
}

#animated-name {
    white-space: nowrap;
}

header,
main,
footer,
.content {
    display: flex;
}

header,
footer {
    align-items: center;
}

header {
    padding: 20px 50px 0 50px;
    flex-wrap: wrap;
}

header .links-container {
    margin-left: auto;
    font-size: 22px;
}

#logo-link {
    display: flex;
}

main {
    margin-bottom: 70px;
}

#me {
    display: block;
    margin: 0 auto 100px auto;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: solid 3px #3c4e28;
}

.about {
    text-align: left;
}

#about-4 {
    min-height: 4em;
}

footer {
    position: relative;
    bottom: 0;
    padding: 20px 0;
    z-index: 10;
    width: 100%;
    height: 150px;
    justify-content: center;
}

footer p,
.content {
    text-align: center;
}

.highlight {
    color: #01ae81;
}

.no-decorate {
    color: inherit;
    text-decoration: none;
}

.logo {
    height: 6.5em;
    font-size: 11px;
    padding-top: 10px;
    margin-right: 20px;
}

.logo-footer {
    height: 6.5em;
}

.icon {
    height: 1em;
}

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

.text-content {
    padding: 0 20%;
}

#timeline-intro {
    padding: 0 50px;
}

.text-content,
.timeline-block {
    margin: 100px 0;
}

.timeline-content {
    width: 70%;
    margin: auto;
}

.timeline-item .date {
    font-weight: bold;
    font-size: 20px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background: #3c4e28;
}

.timeline-block {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.timeline-block:nth-child(odd) .timeline-item {
    align-self: flex-start;
    text-align: left;
    padding-right: 50px;
}

.timeline-block:nth-child(even) .timeline-item {
    align-self: flex-end;
    text-align: left;
    padding-left: 50px;
}

.timeline-item {
    width: 40%;
    padding: 20px 40px;
    clear: both;
    text-align: left;
}

#bits,
#posts,
#post {
    margin: 100px 300px;
    padding: 0 50px;
    text-align: left;
}

.bit {
    padding: 15px;
    border: dotted 4px slategrey;
    border-radius: 15px;
    width: 768px;
    background-color: #a3e3f1;
    margin: 20px 0;
}

.post-item {
    padding: 15px;
    width: 1000px;
    margin: 20px 0;
}

.post-title {
    font-size: 30px;
    margin-top: 50px;
    padding-bottom: 10px;
}

.bit-signature {
    font-size: 17px;
    color: gray;
    margin-bottom: 15px;
}

.post-signature {
    font-size: 17px;
    color: #666;
    margin-bottom: 15px;
}

#post {
    width: 75%;
}

.post-body {
    margin-top: 50px;
}

.bit-author-name {
    font-size: 19px;
    color: slategray;
}

#photos {
    margin: 100px;
}

.photo {
    width: 400px;
    height: 400px;
    margin: 10px;
    border-radius: 5%;
}

.error-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 60vh;
    width: 100vw;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header .links-container {
        margin: 70px 0;
        width: 100%;
    }

    header .links-container a {
        display: block;
        margin: 5px 0;
    }

    header .links-container span {
        display: none;
    }

    #me {
        width: 300px;
        height: 300px;
    }

    #photos {
        margin: 50px;
    }

    .photo {
        width: 300px;
        height: 300px;
        margin: 10px;
    }
}

@media (max-width: 1300px) {
    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 85%;
        padding: 20px;
    }

    .timeline-block,
    .timeline-block .timeline-item {
        text-align: left;
        align-self: center;
    }

    #bits,
    #posts {
        margin: 50px 10px;
        padding: 0 20px;
        text-align: left;
    }

    .bit {
        width: 90%;
    }

    .post-item {
        width: 100%;
    }

    #post {
        margin: 10px;
        padding: 10px;
        width: 90%;
    }
}
