:root {
    --bg-white: #F8F8F8;
    --blog-white: #F9F9F9;
    --white-transparent: rgba(248, 248, 248, .98);
    --darkgrey: #323232;
    --lightgrey: #d8d8d8;
    --mediumgrey: #6E6E6E;
    --lightblue: #56CCFC;
    --iglouuublue: #4ab1d9;
    --mainblue: #0BB8FE;
    --textblack: #6E6E6E;
    --menu: rgb(244, 244, 244);
    --menutransparent: rgba(244, 244, 244, .98);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--textblack);
    font-family: 'Lexend', sans-serif;
    font-size: 16px;
    font-weight: 200;
}

/* ----------------------------------------------------------------------------
 * Normalize
 * ------------------------------------------------------------------------- */
b,
strong {
    font-weight: 360;
}

a {
    color: var(--textblack);
}

p {
    padding: 0;
    margin: 0;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 12px;
}

h6 {
    font-size: 10px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 4px;
    font-weight: 200;
}

nav {
    background: transparent;
    box-shadow: none;
    height: initial;
    line-height: initial;
}

nav * {
    color: var(--textblack);
}

nav a {
    color: var(--textblack);
}

nav ul a {
    color: var(--textblack);
}


/* ----------------------------------------------------------------------------
 * Main
 * ------------------------------------------------------------------------- */
#main {
    margin-top: 38px;
    min-height: calc(100vh - 300px);
}



/* ----------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------- */
.header {
    display: flex;
}

.row.header {
    margin-bottom: 0px;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

#navbar-link-wrapper {
    margin-left: 24px;
    display: flex;
    flex-direction: column;
}

.navbar-links {
    margin-top: 12px;
}

.navbar-links>li>a {
    padding: 10px;
}

.navbar-links>li>a:hover {
    border-radius: 4px;
}

.lang-active {
    font-weight: bold;
}

#logo-ling {
    font-size: 32px;
}

#logo {
    height: 128px;
    width: 128px;
}


@media screen and (min-width: 601px) {
    #main {
        margin-top: 68px;
    }

    #logo {
        height: 164px;
        width: 164px;
    }

}



/* ----------------------------------------------------------------------------
 * Mobile Menu
 * ------------------------------------------------------------------------- */
#menu-button {
    border-radius: 50%;
    top: 56px;
    cursor: pointer;
    height: 64px;
    position: absolute;
    right: 26px;
    width: 64px;
    z-index: 12;
}

#menu-lines {
    display: flex;
    flex-direction: column;
    height: 22px;
    justify-content: space-between;
    left: 17px;
    position: absolute;
    top: 20px;
    width: 30px;
}

#menu-lines .line {
    background: var(--darkgrey);
    border-radius: 2px;
    display: block;
    height: 2px;
    width: 100%;
}

#menu-lines .line1 {
    transform-origin: 0% 0%;
    transition: 0.4s ease-in-out;
}

#menu-lines .line2 {
    transition: transform 0.2s ease-in-out;
}

#menu-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
}

.menu-button-active .line1 {
    transform: rotate(45deg) translate(3px, -3px);
}

.menu-button-active .line2 {
    transform: scaleY(0);
}

.menu-button-active .line3 {
    transform: rotate(-45deg) translate(3px, 3px);
}

.mobile-menu {
    background: var(--menutransparent);
    mix-blend-mode: normal;
    opacity: 0.96;
    z-index: 6;
    background-color: var(--menu);
    height: 100vh;
    overflow-x: hidden;
    position: fixed;
    top: 0;
    transition: 0.4s ease-in-out;
    width: 0;
}

.mobile-menu-active {
    width: 100%;
}


/* ----------------------------------------------------------------------------
 * Mobile Menu Content
 * ------------------------------------------------------------------------- */
#mobile-navigation {
    display: grid;
    display: grid;
    grid-template-rows: auto 80px;
    justify-content: center;
}

#mobile-menu-links {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    font-size: 18px;
}

.menu-active {
    font-weight: 360;
}


/* ----------------------------------------------------------------------------
 * Posts
 * ------------------------------------------------------------------------- */
.post-datetime {
    font-size: 14px;
}

.post-title {
    color: var(--mainblue);
}

.post,
.highlight-images {
    margin-bottom: 42px;
    border-radius: 6px;
    padding: 12px;
    background-color: var(--blog-white);
    filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.2));
}

.divider {
    height: 1px;
    background-color: var(--lightgrey);
    margin-bottom: 24px;
}

.post-text {
    margin-bottom: 24px;
}

.post-thumbnail {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: -6px;
}

.post-images {
    display: grid;
    gap: 6px;
}

@media screen and (min-width: 601px) {
    .post-images {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}


.sorting-active {
    background: var(--lightblue);
    color: var(--menu);
}

#sorting-selector {
    border-radius: 4px;
    border: 1px solid var(--lightgrey);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
    align-items: center;
}

.sorting-selection {
    text-align: center;
    padding-top: 6px;
    padding-bottom: 6px;
    cursor: pointer;
}


/* ----------------------------------------------------------------------------
 * Highlight
 * ------------------------------------------------------------------------- */
.highlight-images-post {
    display: grid;
    gap: 6px;
}

@media screen and (min-width: 601px) {
    .highlight-images-post {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}


/* ----------------------------------------------------------------------------
 * Infinite scrolling
 * ------------------------------------------------------------------------- */
.htmx-request .loader {
    display: inline-block;
}

.htmx-request.loader {
    display: inline-block;
}

#loader-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 84px;
}

.loader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--lightgrey);
    box-shadow: 32px 0 var(--lightgrey), -32px 0 var(--lightgrey);
    position: relative;
    animation: flash 0.7s ease-out infinite alternate;
    display: none;
}

@keyframes flash {
    0% {
        background-color: var(--mediumgrey);
        box-shadow: 32px 0 var(--mediumgrey), -32px 0 var(--lightgrey);
    }

    50% {
        background-color: var(--lightgrey);
        box-shadow: 32px 0 var(--mediumgrey), -32px 0 var(--mediumgrey);
    }

    100% {
        background-color: var(--mediumgrey);
        box-shadow: 32px 0 var(--lightgrey), -32px 0 var(--mediumgrey);
    }
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: none;
}

.btn {
    background-color: var(--lightblue);
    text-transform: initial;
    font-weight: 200;
}

.btn:hover,
.btn:focus {
    background-color: var(--lightblue);
}

#back-to-top:hover {
    background-color: var(--mainblue);
}


/* ----------------------------------------------------------------------------
  * Legal
  * ------------------------------------------------------------------------- */
#footer {
    margin-top: 68px;
}

#legal-link {
    padding: 6px;
    font-size: 14px;
    text-decoration: underline;
}

.legal-section h2,
.legal-section h3 {
    margin-bottom: 4px;
}

.legal-section {
    margin-bottom: 38px;
}


/* unsorted */
.mb-2 {
    margin-bottom: 12px;
}

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

.stats-table {
    display: grid;
    grid-template-columns: 16ch auto;
    grid-template-rows: auto;
}

.row {
    margin-bottom: 42px;
}

.container {
    max-width: 660px;
}

.iglouuu {
    color: var(--iglouuublue);
}

.landing-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.img-btn {
    position: relative;
    top: -52px;
    left: 10px;
    color: var(--darkgrey);
    background-color: var(--bg-white);
}

.img-btn:hover,
.img-btn:focus {
    background-color: var(--bg-white);
}


.intro-text {
    margin-bottom: 42px;
}