* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scrollbar-gutter: stable; /* Don't shift the view when scrollbar appears */
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #d4d4d4;
    background-color: #222;
}

.container {
    max-width: 580px;
    margin: auto auto;
    padding: 1rem 1rem;
}

.container > div {
    margin-bottom: 2rem;
}

/* Header */

.header {
    display: flex;
    font-weight: 500;
}

.header {
    justify-content: center;
    border-bottom: 2px dashed rgb(46, 49, 46);
}

.header .title {
    margin-bottom: 0.5rem;
}

.header li {
    list-style: none;
}

.header a {
    color: #b1b1b1;
    text-decoration: none;
}

/* Footer */

.footer {
    font-weight: 500;
    border-top: 2px dashed rgb(46, 49, 46);
    margin-top: 4rem;
    padding-top: 1rem;
}

.footer > div {
    display: flex;
    justify-content: space-around;
}

.license {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #b1b1b1;
}

/* Profile */

.profile-pic {
    margin-bottom: 1rem;
}

.profile-pic img {
    border-radius: 50%;
}

.name {
    color: #7c7;
    font-size: 2rem;
    font-weight: 500;
}

.social-icons {
    margin: 1rem;
}

.social-icons img {
    width: 30px;
    height: auto;
    transition: 0.2s;
}

.social-icons img:hover {
    transform: scale(1.08);
}

.social-icons a {
    margin: 0 .25rem;
}

.cards {
    margin-bottom: 2rem;
}

.card {
    background-color: rgb(46, 49, 46);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0px 2px 8px #111;
    margin: 1.2rem 0rem;
    font-weight: 500;
    transition: 0.1s;
}

.cards a {
    color: #d4d4d4;
    text-decoration: none;
}

.card:hover {
    transform: scale(1.0111);
}

.youtube-video iframe {
    margin-top: 1rem;
    max-width: 100%;
}

/* Posts box on homepage */

.posts-box-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid rgb(46, 49, 46);
    margin-bottom: 0.3rem;
}

.posts-box-title h2 {
    margin-bottom: 0;
}

/* Posts */

.posts-box li {
    list-style: none;
}

.posts-box time {
    font-family: 'Courier New', Courier, monospace;
}

/* Blog post styling */

.blog-post h1,
.blog-post h2,
.blog-post h3,
.blog-post h4,
.blog-post h5,
.blog-post h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post h1,
.blog-post h2,
.blog-post h3 {
    width: 100%;
    border-bottom: 2px solid rgb(46, 49, 46);
}

.blog-post p {
    margin-bottom: 0.8rem;
}

.blog-post a {
    text-decoration: underline;
}

.explanations {
    margin-top: 4rem;
    border-top: 6px dotted rgb(46, 49, 46);
    padding-top: 1rem;
}

.explanation {
    color: #d4d4d4;
}

.img-text {
    font-size: 0.9rem;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
}

.blog-post img {
    max-width: 100%;
    margin: auto;
    display: block;
}

.post-image-box {
    margin: 1.8rem auto;
}

.post-image-box p {
    margin-top: 0;
}

.post-details {
    color: #b1b1b1;
    font-family: 'Courier New', Courier, monospace;
}

/* Elements */

a {
    color: #7c7;
    text-decoration: none;
}

a:hover {
    color: #8e8;
}

p {
    margin: 0.4rem 0;
}