:root {
    --background: #ede8d0;
    --black: #0E0F19;
    --dark-grey: #252741;
    --off-white: #F8F8F8;
    --light-grey: #C2C2C2;
    --primary: #29937c;
    --hover: #176554;
    --title-font-size: 14rem;
    --large-font-size: 1.4rem;
    --section-header-font-size: 3rem;
    --small-font-size: 1rem;
}

* {
    /* font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
    scroll-margin-top: 10vh;
}

html {
    font-family: Verdana, sans-serif;
    background-color: var(--background);
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

button {
    cursor: pointer;
}

.back-button {
    font-weight: bold;
    color: var(--primary);
    top: 50%;
    left: .5rem;
    transform: translate(0%, -50%);
    -ms-transform: translate(0%, -50%);
    position: fixed;
    font-size: var(--large-font-size);
    text-decoration: none;
}

.back-button:hover {
    color: var(--hover);
}

#section-header {
    text-align: center;
    font-size: var(--section-header-font-size);
    color: var(--primary);
}

.spacer {
    height: 10vh;
}

.filter-label {
    color: var(--primary);
    text-align: center;
}

#tag-menu {
    display: flex;
    gap: .75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag-menu-item {
    color: var(--primary);
    cursor: pointer;
    border-radius: 1rem;
    padding: .1rem;
    padding-left: .75rem;
    padding-right: .75rem;
    margin: 0;
    border: 1px solid;
    transition: all .25s;
}

.tag-menu-item:hover {
    background-color: var(--primary);
    color: var(--background);
    border: 1px solid var(--primary);
}

.selected-tag {
    background-color: var(--primary);
    color: var(--background);
    border: 1px solid var(--primary);
}

#remove-filter {
    color: var(--primary);
    margin: 0;
}

/* 
TODO: 
    Override 404 page (also in main site)
*/

#blog-list {
    color: var(--background);
    list-style-type: none;
    padding: 0;
    margin-left: 15%;
    margin-right: 15%;
}

#blog-list > li {
    margin-bottom: 1rem;
}

.hidden-post {
    display: none;
}

#blog-list > li > a {
    text-decoration: none;
    color: var(--primary);
    display: block;
}

#blog-list-item {
    display: flex;
    /* border-radius: 1rem; */
    border: .4rem solid var(--primary);
    box-sizing: border-box;
    border-radius: 1rem;
    background-color: var(--background);
    cursor: pointer;
    padding: 1rem;
    width: calc(100%-2rem);
    margin: 0;
    box-shadow: inset 0 0 0 0 var(--primary);
    transition: all .25s;
}

#blog-list-item:hover {
    box-shadow: inset 70vw 0 0 0 var(--primary);
    color: var(--background);
}

#blog-list-item-text {
    margin-right: auto;
}

#blog-list-item-text > h1 {
    font-size: var(--large-font-size);
}

#blog-list-tags {
    display: flex;
    gap: 1rem;
}

#post-tag {
    border: 1px solid;
    border-radius: 1rem;
    padding: .1rem;
    padding-left: .75rem;
    padding-right: .75rem;
    margin: 0;
}

#blog-list-image {
    width: 20rem;
    border-radius: 1rem;
}

.footer-space {
    height: 10vh;
}

@media (max-width: 480px) {
    html {
        font-size: 10px;
    }

    .back-button {
        top: .5rem;
        left: 50%;
        transform: translate(-50%, 0%);
        -ms-transform: translate(-50%, 0%);
    }

    #blog-list-item {
        width: calc(25rem - 2rem);
        display: block;
    }

    #blog-list-image {
        width: 100%;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 12px;
    }

    .sidebar {
        display: flex;
        left: 50%;
        transform: translate(-50%, 0%);
        -ms-transform: translate(-50%, 0%);
        gap: .5rem;
        top: .5rem;
    }

    .home-link {
        margin-top: .5rem !important;
    }
}