:root {
    --primary-color: #9966cc;
    --title-color: #0E0114;
    --header-title-color: #0E0114;
    font-size: 110%;
    --secondary-background: #efebeb;
    --twitter-color: #1DA1F2;
    --secondary-text: #242324;
    --white: hsla(222, 24%, 94%, 1);
    --black: hsla(222, 60%, 6%, 1);
}

::selection {
    background-color: var(--primary-color);
    color: white;
}

h1 {
    font-size: 2rem;
    line-height: 1.1;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.3em;
}

h1, h2, h3, h4 {
    letter-spacing: 0.04rem;
}

body {
    font-family: -apple-system, Segoe UI, "Helvetica Neue", sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    min-height: 100vh;
    scroll-padding-top: 70px;
    overflow: auto;
}

small {
    font-size: 0.75rem;
}

.bullet-separator {
    margin-left: 5px;
    margin-right: 5px;
    color: darkgray;
}

nav {
    width: 100%;
    top: 0;
    background-color: var(--primary-color);
    position: sticky;
    z-index: 100;
    -webkit-box-shadow: 0 5px 8px -8px black;
    box-shadow: 0 5px 8px -8px black;
}

hr {
    color: darkgray;
    width: 100%;
    opacity: 0.4;
}

ul {
    padding-left: 20px;
}

.text-secondary {
    opacity: 0.8;
}

blockquote {
    font-size: 1.2rem;
    margin: 10px 0;
    padding: 5px 0 5px 40px;
    font-style: italic;
    position: relative;
    max-width: 50ch;
    color: var(--secondary-text);
}

blockquote a {
    color: var(--secondary-text);
}

blockquote::before {
    content: '\275D';
    font-size: 2.5rem;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
}

blockquote p {
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: opacity 0.2s;
}

footer {
    position: absolute;
    bottom: 0;
    display: flex;
    width: 100%;
    justify-content: center;
    padding-bottom: 5px;
    padding-top: 5px;
    background-color: rgba(153, 102, 204, 0.1);
}

.mb-md {
    margin-bottom: 10px;
}

.mb-sm {
    margin-bottom: 5px;
}

.mt-0 {
    margin-top: 0;
}

.mt-lg {
    margin-top: 30px;
}

.mt-xlg {
    margin-top: 45px;
}

.mt-sm {
    margin-top: 5px;
}

.nav-content {
    max-width: 1400px;
    min-height: 50px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-content a {
    color: whitesmoke;
    text-decoration: none;
    transition: 0.5s;
    font-weight: normal;
}

.nav-content a.icon {
    margin-top: 2px;
}

.nav-content a:hover {
    opacity: 0.7;
}

.nav-content #search-form {

}

.nav-content .icon-links {
    margin-left: auto;
    margin-top: 5px;
}

.container {
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 50px;
    max-width: 1400px;
}

.active {
    border-bottom: 2px solid white;
}

@media screen and (max-width: 1400px) {
    .container {
        width: 90%;
    }

    .nav-content {
        width: 90%;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        width: 95%;
    }

    .nav-content {
        width: 95%;
    }
}

.banner-container {
    margin-top: 15px;
    margin-bottom: 15px;
}

.banner-image {
    border-radius: 5px;
}

.badge {
    color: whitesmoke;
    background-color: black;
    padding: 5px 15px;
    border-radius: 4px;
}

.posts {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

@media screen and (max-width: 540px) {

    h1 {
        font-size: 1.4rem;
        line-height: 1;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1.05rem;
    }
}

.post-inner {
    height: 95%;
    min-height: 250px;
    position: relative;
    background-color: hsla(270, 63%, 96%, 1);
    padding: 5px 10px;
    border-radius: 8px;
    border-top: 5px solid var(--primary-color);
}

.post-inner .annotation {
    margin-bottom: 35px;
    overflow: hidden;
    font-size: 0.9em;
}

.post-inner .category-badge-container {
    position: absolute;
    bottom: 10px;
    left: 5px;
}

.post-inner .heading {
    margin-top: 5px;
    font-size: 1em;
    line-height: 1.15;
    hyphens: auto;
}

.post .heading a {
    color: var(--header-title-color) !important;
    text-decoration: none;
}

.page-detail {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}


.post .badge {
    -webkit-box-shadow: 2px 1px 3px 0 hsla(0, 0%, 2%, 0.2);
    -moz-box-shadow: 2px 1px 3px 0 hsla(0, 0%, 2%, 0.2);
    box-shadow: 2px 1px 3px 0 hsla(0, 0%, 2%, 0.2);
}

.page-detail img {

}

.content-divider {
    width: 25%;
    border-top: 3px solid var(--primary-color);
    margin-top: 10px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.social-icon {
    width: 25px;
    height: 25px;
    transition: 0.2s;
}

.large-icon {
    width: 100px;
    height: 100px;
}

.series-badge {
    background-color: #2F3239;
}

.series-header {
    max-width: 700px;
    margin-bottom: 20px;
}

.series-header > p {
    margin: 0;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-badge-container {
    margin-bottom: 10px;
}

.horizontal-flex {
    display: flex;
}

#search-input {
    height: 1.2rem;
    width: 80%;
    max-width: 350px;
}

#search-icon {
    fill: var(--primary-color);
    width: 50px;
    height: 50px;
}

#search-form {
    border: solid;
    float: left;
    border-width: 2px;
    border-color: var(--primary-color);
    border-radius: 4px;
}

#search-form > .textbox {
    outline: 0;
    height: 38px;
    width: 280px;
    line-height: 38px;
    padding: 0 8px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #212121;
    border: 0;
    float: left;
    -webkit-border-radius: 2px 0 0 2px;
    border-radius: 2px 0 0 2px;
    font-size: 16px;
}

#search-input {
    -webkit-appearance: none;
}

#search-form > .textbox:focus {
    outline: 0;
    background-color: #FFF;
}

#search-form > .button {
    outline: 0;
    padding: 0;
    background: none;
    background-color: rgba(38, 50, 56, 0.8);
    float: left;
    height: 38px;
    width: 38px;
    text-align: center;
    line-height: 38px;
    border: 0;
    color: #FFF;
    font-size: 18px;
    text-rendering: auto;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-transition: background-color .4s ease;
    transition: background-color .4s ease;
    cursor: pointer;
}


.gray-image {
    filter: grayscale(100%);
}

.badge-inline-icon {
    width: 20px;
    height: 20px;
}

.centered-container {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    text-align: center;
    margin-top: 10%;
}

.subtle-link {
    font-weight: normal;
    color: black;
    text-decoration: underline;
}

.nondecorated-link {
    text-decoration: none !important;
}

.nondecorated-link:hover {
    text-decoration: underline !important;
}

input[type="search"] {
    -webkit-appearance: none;
}

input[type="submit"] {
    -webkit-appearance: none;
}

.series-annotation {
    color: var(--primary-color);
    margin: 2px 0;
    font-weight: bolder;
    font-size: 0.75rem;
}

.pagination > li {
    display: inline-block;
    list-style: none;
    width: 30px;
    height: 30px;
}

.pagination > li > a {
    width: 30px;
    height: 30px;
    display: block;
    position: relative;
}

.projects {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-card {
    border-radius: 16px;
    background-color: var(--secondary-background);
    padding: 20px;
    position: relative;

    transition: all 0.2s ease-in-out;
    box-shadow: 0 5px 15px var(--faint-theme-color);
    border: 1px solid transparent;

    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
}

.project-card a {
    color: var(--title-color);
    text-underline-color: var(--theme-color);
    text-decoration-color: var(--theme-color);
    text-decoration: underline;
}

.project-card a:hover {
    color: var(--theme-color);
}

.project-card .header {
    font-weight: bolder;
    margin-bottom: 8px;
}

.project-card .cta-button {
    background-color: var(--theme-color);
    border-radius: 10000px;
    color: var(--secondary-background);
    padding: 5px 8px;
    font-weight: bolder;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-top: auto;
    text-decoration: none;

}


@media (hover: hover) {

    .project-card:hover {
        border: 1px solid var(--theme-color);
        box-shadow: 0 5px 15px var(--theme-color);
        opacity: 1;
    }

    .project-card .cta-button {
        opacity: 0.7;
    }

    .project-card .cta-button:hover {
        color: var(--secondary-background);
        opacity: 1;
        box-shadow: 0 2px 8px var(--theme-color);
    }
}

.project-card .project-icon {
    width: 50px;
    height: 50px;
    color: var(--theme-color);
    position: absolute;
    right: 10px;
    top: 10px;
}

.project-card p {
    margin: 0;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.switchbuddy {
    --theme-color: hsl(357, 100%, 45%, 1.0);
    --faint-theme-color: hsl(357, 100%, 45%, 0.2)
}

.gamingbuddy {
    --theme-color: hsl(249deg 100% 72%);
    --faint-theme-color: hsla(249deg, 100%, 72%, 0.2);
}

.impress-kit {
    --theme-color: hsla(330, 74%, 50%, 1);
    --faint-theme-color: hsla(330, 74%, 50%, 0.2);
}

.ios-feeds {
    --theme-color: hsla(16, 82%, 52%, 1);
    --faint-theme-color: hsla(12, 82%, 52%, 0.2);
}

.indie-apps-catalog {
    --theme-color: hsla(205, 98%, 35%, 1);
    --faint-theme-color: hsla(205, 98%, 25%, 0.2);
}

.django-blogs {
    --theme-color: hsla(165, 100%, 37%, 1);
    --faint-theme-color: hsla(165, 100%, 37%, 0.2);
}

.native-banner {
    --tint-color: var(--primary-color);
    padding: 20px;
    border-left: 8px solid var(--tint-color);
    border-radius: 5px;
    margin-top: 30px;
    margin-bottom: 40px;
    max-width: 60ch;
    background-color: var(--secondary-background);
    text-decoration: none;
    display: block;
    position: relative;
    color: var(--title-color);
}

.native-banner.inactive {
    --tint-color: darkgray;
}

.native-banner.inactive img {
    filter: grayscale(100%);
}

.native-banner.native-banner {
    text-decoration: none;
}

.native-banner.native-banner:hover {
    color: var(--title-color);
}

.native-banner .banner-content {
    display: flex;
    gap: 15px;
}

.native-banner .banner-content img {
    width: 120px;
    height: auto;
    border-radius: 5px;
    margin-top: 5px;

}

.native-banner .banner-content img.has-shadow {
    box-shadow: 0 5px 10px var(--tint-color);
}

.native-banner .body-text,
.native-banner .banner-title {
    margin: 0;
}

.native-banner .banner-title {
    font-size: 1.2rem;
    font-weight: bolder;
    margin-bottom: 5px;
}

.native-banner .body-text {
    font-size: 1rem;
}

.native-banner .cta {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background-color: var(--tint-color);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bolder;
    transition: transform 0.5s;
}

.native-banner .sponsored-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    opacity: 0.7;
}

.table-of-contents {
    margin-bottom: 15px;
}

@media (hover: hover) {
    .native-banner .cta:hover {
        transform: scale(1.1);
    }

    a:hover {
        text-decoration: underline;
    }

    .post-inner:hover {
        border-top: 5px solid var(--title-color);
        background-color: hsla(270, 63%, 89%, 1);
    }

    .badge:hover {
        opacity: 0.9;
    }

    .social-icon:hover {
        transform: scale(1.2);
    }

    #search-form > .button:hover {
        background-color: var(--primary-color);
    }

    .nav-content #search-form > .button:hover {
        background-color: rgba(153, 102, 204, 0.2);
    }

    .subtle-link:hover {
        text-decoration: none;
        opacity: 0.8;
    }

}

@media screen and (max-width: 500px) {
    .related-posts .heading {
        font-size: 3em;
    }

    .post-inner .heading {
        font-size: 1.4rem;
        line-height: 1;
        margin-bottom: 10px;
    }

    .post-inner .annotation {
        font-size: 1.2rem;
        margin-top: 10px;
    }

    .nav-content #search-form > .textbox {
        width: initial;
    }

    .nav-content #search-form {
        margin-bottom: 10px;
    }

    .native-banner {
        padding: 20px 10px 25px 10px;
    }

    .native-banner .cta {
        font-size: 0.8rem;
    }

    .native-banner .banner-content .body-text {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .native-banner .banner-content img {
        display: none;
    }
}