*, *:before, *:after {
    box-sizing: inherit;
}

body {
    max-width: 136.6rem;
    min-height: 150vh;
    margin-left: auto;
    margin-right: auto;
}

footer {
    padding: 1rem;
    background-color: #D1FEB8;
    font-size: 1.6rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: sans-serif;
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 4.8rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 1.872rem;
}

h5 {
    font-size: 1.6rem;
}

h6 {
    font-size: 1.328rem;
}

header {
    position: relative;
    width: 100%;
    aspect-ratio: 1366 / 256;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover; /* Resize the background image to cover the entire container */
    background-image: url('/img/banner_image.webp');
}

header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    background: rgba(90, 90, 90, 0.6);
    color: whitesmoke;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
}

main {
    background-color: rgba(224, 207, 239, 1);
}

main h1, main h2 {
    display: inline-block;
    margin: 1.5rem 0.5rem 1rem;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    background-color: #D1FEB8;
    box-shadow: rgba(0, 0, 0, 0.4) 0 3px 8px;
}

nav ul {
    float: right;
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0;
    float: right;
}

nav ul li a {
    display: block;
    padding: 1rem 1rem;
    font-size: 1.6rem;
    text-decoration: none;
    color: black;
    background-color: #D1FEB8;
}

nav ul li a:hover {
    background-color: #e0cfef;
}

.nav-toggle {
    float: right;
    display: none;
}

#heart {
    color: red;
}

#main-index {
    border-radius: 5px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

#nav-images {
    margin-top: 1rem;
}

.block {
    display: block;
}

.bold {
    font-weight: bold;
}

.construction-image {
    display: inline-block;
    width: 2.4rem;
    height: 2.4rem;
    margin-left: 1rem;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
}

.flex-horizontal {
    flex-direction: row;
}

.flex-vertical {
    flex-direction: column;
}

.flex-item {
    flex: 0 1 40rem;
    min-width: 40rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.font-16 {
    font-size: 1.6rem;
}

.font-20 {
    font-size: 2rem;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.inline-block {
    display: inline-block;
}

.mb-10 {
    margin-bottom: 1rem;
}

.nav-buttons {
    width: 15rem;
    height: 3rem;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1.6rem;
    font-weight: bold;
    background-color: beige;
}

.nav-buttons:hover {
    cursor: pointer;
    background-color: yellow;
}

.nav-image {
    border-radius: 50%;
    margin: 0 1rem 0 0;
}

.nav-image:hover {
    transform: scale(1.2);
}

.project, .tool {
    display: inline-block;
    margin: 0 0.5rem 2rem;
    border: 1px solid #d2b48c;
    border-radius: 5px;
    padding: 0.5rem 1rem 1rem;
    background-color: bisque;
    box-shadow: rgba(0, 0, 0, 0.2) 0 3px 8px;
}

.project img {
    max-width: 100%;
    height: auto;
}

/**************************************/
/*        BLOG PUBLIC STYLING         */
/**************************************/
blockquote {
    font-style: italic;
    font-size: 2.4rem;
    font-weight: bold;
}

u {
    color: rgb(140, 53, 216);
}

/* BUTTON DEFAULT */
.btn {
    color: white;
    background: #4E6166;
    text-align: center;
    border: none;
    border-radius: 0.5rem;
    display: block;
    letter-spacing: .01rem;
    margin: 1rem 0;
    padding: 1.3rem 2rem;
    text-decoration: none;
}

.container {
    margin: 0 auto;
}

.content .flex-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    margin-left: 1rem;
}

/* CONTENT */
.content {
    margin: 0 auto;
    padding-bottom: 1rem;
    border-radius: 5px;
    min-height: 400px;
}

.content:after {
    content: "";
    display: block;
    clear: both;
}

.content .post {
    display: inline-block;
    width: 33%;
    margin-top: 9px;
    min-height: 320px;
    background-color: rgba(224, 207, 239, 1);
    border-radius: 2px;
    border: 1px solid #b3b3b3;
    position: relative;
}

.content .post a {
    text-decoration: none;
}

.content .post .category {
    margin-top: 0;
    padding: 3px 8px;
    color: #374447;
    background: white;
    display: inline-block;
    border-radius: 2px;
    border: 1px solid #374447;
    box-shadow: 3px 2px 2px;
    position: absolute;
    left: 5px; top: 5px;
    z-index: 3;
}

.content .post .category:hover {
    box-shadow: 3px 2px 2px;
    color: white;
    background: #374447;
    transition: .4s;
    opacity: 1;
}

.post_image {
    height: auto;
    width: 100%;
    background-size: 100%;
}

.content .post .post_image {
    width: 100%;
    height: 260px;
}

.content .post .post_info {
    height: 100%;
    padding: 0 5px;
    font-weight: 200;
    font-family: 'Noto Serif', serif;
}

.content .post .post_info {
    color: #222;
}

.content .post .post_info span {
    color: grey;
    font-style: italic;
}

.content .post .post_info span.read_more {
    position: absolute;
    right: 5px; bottom: 5px;
}




/* * * * * * * * *
* SINGLE PAGE
* * * * * * * * */
.content .post-wrapper {
    width: 70%;
    float: left;
    min-height: 250px;
}

.full-post-div {
    min-height: 300px;
    padding: 20px;
    background-color: rgba(224, 207, 239, 1);
    border: 1px solid #e4e1e1;
    border-radius: 2px;
}

.full-post-div h1.post-title {
    font-family: "Oxanium", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;

    display: inline-block;
    margin: 10px auto 20px;

    border-radius: 5px;
    padding: 0.5rem 1rem;
    background-color: #D1FEB8;
    box-shadow: rgba(0, 0, 0, 0.4) 0 3px 8px;
}

.post-body-div {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;

    font-size: 1.6em;
}

.post-body-div h2, .post-body-div h3 {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    font-family: "Oxanium", sans-serif;
    font-size: 3.2rem;
    font-weight: 600;
    background-color: #D1FEB8;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.4) 0 3px 8px;
}

.post-body-div div[style*="background:#eeeeee"], .post-body-div div[style*="background: #eeeeee"] {
    font-family: monospace !important;
    font-size: 1.8rem;
}

.post-body-div p {
    margin:20px 0;
}

.post-sidebar {
    width: 24%;
    float: left;
    margin-left: 5px;
    box-shadow: rgba(0, 0, 0, 0.4) 0 3px 8px;
}

.content .post-comments {
    margin-top: 25px;
    border-radius: 2px;
    border-top: 1px solid #e4e1e1;
    padding: 10px;
}

.post-sidebar .card {
    width: 95%;
    margin: 10px auto;
    border: 1px solid #e4e1e1;
    border-radius: 10px 10px 0 0;
}

.post-sidebar .card .card-header {
    padding: 10px;
    text-align: center;
    border-radius: 3px 3px 0 0;
    background: #D1FEB8;
}

.post-sidebar .card .card-header h2 {
    color: white;
}

.post-sidebar .card .card-content {
    background-color: rgba(224, 207, 239, 1);
}

.post-sidebar .card .card-content a {
    display: block;
    box-sizing: border-box;
    padding: 8px 10px;
    border-bottom: 1px solid #e4e1e1;
    color: black;
    font-size: 1.6rem;
}

.post-sidebar .card .card-content a:hover {
    padding-left: 20px;
    background: #F9F9F9;
    transition: 0.1s;
}


/**************************************/
/*        MEDIA QUERIES               */
/**************************************/

/* Large screens: 1200px              */
@media screen and (max-width: 1200px ) {
    body {
        margin: 0 2rem 2rem;
    }
}
/* Tablet Landscape: 992px              */

@media screen and (width <= 992px ) {
    .navbar ul li a {
        font-size: 2.1rem;
        padding: 1.5rem 1.5rem;
    }
}

/* Tablet Portrait: 768px              */
@media screen and (max-width: 768px ) {
    .navbar {
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 6rem;
        right: 0;
        width: auto;
        background-color: #D1FEB8;
        z-index: 5;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-toggle {
        display: block;
        font-size: 3rem;
        padding: 1rem;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        background-color: #D1FEB8;
    }

    nav ul li {
        text-align: center;
        padding: 1rem 0.5rem;
        background-color: #D1FEB8;
    }

    nav ul li a {
        font-size: 1.8rem;
        font-weight: bold;
    }

    hr {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    div.post-sidebar {
        display: none;
    }

    .content .post-wrapper {
        width: 100%;
    }

    .flex-item {
        flex: 0 1 48%;
        min-width: 48%;
    }
}

/* Large Phone: 600px              */
@media screen and (max-width: 600px ) {
    body {
        margin: 0 1rem 1rem;
    }

    nav ul li a {
        padding: 0.5rem 1rem;
    }

    div.post-sidebar {
        display: none;
    }

    .flex-item {
        flex: 0 1 98%;
        min-width: 98%;
        height: auto;
    }
}

/* Small Phone: 480px              */
@media screen and (max-width: 480px ) {
    body {
        margin: 0 0 1rem;
    }

    main {
        padding: 0 1.5rem;
    }

    h1.post-title {
        font-size: 4.8rem;
    }

    h2.content-title {
        display: block;
        text-align: center !important;
    }

    div.post-sidebar {
        display: none;
    }
}

/* 390px (Iphone 12) */
@media screen and (max-width: 390px) {
    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 3.8rem;
    }

    body {
        width: 100vw;
    }

    main {
        padding: 0;
    }

    .index-page {
        margin: 0 0.5rem;
    }

    .project {
        display: block;
    }

}

/* TEST CODE */