html, 
body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
}

html {
    background-color: #202020;
}

body {
    background-color: #FFFFFF;
}

/* ########## NAVBAR ########## */
nav {
    justify-content: space-between;
    align-items: last baseline;
    padding: .5rem 1.25rem;
}

.navbar-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    align-items: center;
}

.navbar-title img {
    margin-right: .25rem;
    width: 1.75em;
}

.navbar-container ul {
    list-style: none;
    gap: 2em;
}

.navbar li a {
    color: #090909;
    font-size: .8rem;
    font-weight: bold;
    text-decoration: none;
}

/* ########## DROP MENU ########## */
.drop-menu {
    display: none;
    margin: 1rem;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* keep it off screen */
    width: 100px;
    height: 100vh;
    background-color: #FFFFFF;
    transition: right 0.3s ease; /* animation effect */
    z-index: 1000; /* to keep it above other content */
    padding: 1rem 0;
    flex-direction: column;
    margin-top: 0;
}

.sidebar-links-container {
    margin: auto;
}

.sidebar li a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
}

.sidebar li a:hover {
    background-color: #f5f5f5;
}

.sidebar button {
    border-radius: 50%;
    height: 1.25rem;
    width: 1.25rem;
    margin-left: auto;
    margin-right: 20px;
    font-size: .75rem;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* just below the sidebar */
    display: none; /* hidden by default */
}

/* ########## HOME PAGE ########## */
.about-me-display {
    background-image: url('../images/about-me-background-2.png');
    background-size: cover;
    background-position: center;
    color: #FFF;
    height: 293px;
    padding: 1.25rem;
    align-items: end;
}

.about-me-display h1 {
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 108.2%;
    margin: .5rem 0rem
}

.about-me-display h4 {
    margin-top: .5rem;
}

.about-me-display h5 {
    font-size: .75rem;
    margin-bottom: .5rem;
}

/* ########## AOBUT PAGE ########## */
.page-content {
    margin: 2rem 1.25rem;
}

.page-content p {
    font-size: 1rem;
}

.header-content h1 {
    font-size: 2.17rem;
}

.header-content img {
    width: 11rem;
    height: 100%;
    margin-right: 2rem;
}

.recent-posts {
    text-align: center;
    font-weight: bold;
}

/* ########## ARTICLES ########## */
.article-card {
    padding: 1.25rem;
    margin-bottom: 0px;
    margin-top: 0px
}

.article-card img {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 0px;
}

.article-card h5 {
    font-size: 1.1rem;
    margin: .8rem 0rem;
}

.article-card h2 {
    margin: .8rem 0rem;
}

.article-card p {
    margin-top: .8rem;
}

/* ########## FOOTER ########## */
footer {
    background: #202020;
    text-align: center ;
    padding: 2rem;
}

footer h5 {
    color: #ECECEC;
    margin: 0;
    font-size: .75rem;
}

footer h6 {
    color: #D7D7D7;
    margin: 0;
    font-size: .75rem;
    font-weight: 400;
}

/* ########## GROUPS ########## */
nav,
.navbar-container ul,
.navbar-title,
.about-me-display,
.sidebar {
    display: flex;
}

.about-me-display h5,
.about-me-display h4,
.article-card h5 {
    font-weight: 400;
}

/* MEDIA QUERIES */
@media(max-width: 500px) { 
    .navbar li {
        display: none;
    }
    .drop-menu {
        display: block;
    }
}

@media(min-width: 500px) {
    .about-me-display {
        background-image: url('../images/about-me-background-2.png');
        background-size: cover;
        background-position: center;
        color: #FFF;
        height: 293px;
        padding: 1.25rem;
        align-items: end;
    }
    .blog-display {
        display: grid;
        grid-template: 400px / repeat(2, 1fr);
        grid-auto-rows: minmax(100px, 500px);
    }
}

@media(min-width: 900px) {
    body {
        max-width: 1080px;
        margin: auto;
    }
    .blog-display {
        display: grid;
        grid-template: 400px / repeat(3, 1fr);
        grid-auto-rows: minmax(100px, 400);
    }
    .about-me-display{
        background-image: url('../images/about-me-background-1.png');
        background-size: cover;
        height: 488px;
    }
}

@media(min-width: 600px) {
    .header-content {
        display: flex;
        flex-direction: row;
    }
}

@media(min-width: 880px) {
    .about-me-info {
        max-width: 850px;
        margin: auto;
    }
}