[data-theme="light"] {
    --text-color-normal: #1a171c;
    --text-color-light: #f0f1f7;
    --text-color-link: #5A5AE1;
    --bkg-normal: #f0f1f7;
    --accent: #d1d9e6;
    --shadow-light: #ffffff;
    --shadow-dark: #d1d9e6;
}

[data-theme="dark"] {
    --text-color-normal: #d1d9e6;
    --text-color-light: #1a171c;
    --text-color-link: #8575FF;
    --bkg-normal: #212027;
    --accent: #2b2541;
    --shadow-light: #2c2b34;
    --shadow-dark: #121013;
}

body {
    scroll-behavior: smooth;
    scrollbar-color: #1a171c;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    color: var(--text-color-normal);
    background-color: var(--bkg-normal);
    padding: 1rem;
    transition: all 0.5s;
    word-wrap: break-word;
}

#header {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    column-gap: 1em;
    margin-right: 75px;
    filter: drop-shadow(3px 3px 4px var(--shadow-dark));
    transition: all 0.5s;
}

header h1 {
    margin: unset;
    text-shadow: 3px 3px 4px var(--shadow-dark);
    transition: all 0.5s;
    font-size: 28px;
}

#themeToggle {
    position: absolute;
    right: 2em;
    top: 3.1em;
}

.checkbox {
    opacity: 0;
    position: absolute;
}

#checkbox-label {
    /* background-color: var(--text-color-normal); */
    color: var(--text-color-normal);
    width: 60px;
    height: 24px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

#checkbox-label #ball {
    background-color: var(--text-color-light);
    width: 30px;
    height: 30px;
    position: absolute;
    left: 3px;
    top: 2px;
    border-radius: 50%;
}

.checkbox:checked+#checkbox-label #ball {
    transform: translateX(35px);
}

.logo-effect {
    height: 3.5em;
    padding: 5px;
    transition: all 0.3s;
    border-radius: 100%;
    background: radial-gradient(farthest-corner at center, snow 5%, var(--text-color-link));
    background-size: 200% 200%;
}

.logo-effect:hover {
    filter: drop-shadow(0 0 2em var(--text-color-link, mediumslateblue));
}

@keyframes colour {
    0% {
        background-position: 0% 50%;
    }

    12.5% {
        background-position: 15% 15%;
    }

    25% {
        background-position: 50% 0%;
    }

    37.5% {
        background-position: 85% 15%;
    }

    50% {
        background-position: 100% 50%;
    }

    62.5% {
        background-position: 85% 85%;
    }

    75% {
        background-position: 50% 100%;
    }

    87.5% {
        background-position: 15% 85%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .logo-effect {
        animation: colour infinite 5s linear;
    }
}

img:active {
    pointer-events: none;
}

a {
    color: var(--text-color-link, mediumslateblue);
    text-decoration: none;
    transition: all 0.2s ease-out;
}

a:hover {
    color: blueviolet;
}

ul {
    padding: 0.5rem 1rem;
}

.soft-shadow {
    box-shadow:
        -8px -6px 10px var(--shadow-light),
        8px 4px 12px var(--shadow-dark);
    transition: all 0.5s;
}

.inner-shadow,
.tags>* {
    box-shadow:
        -4px -4px 6px var(--shadow-light) inset,
        4px 4px 6px var(--shadow-dark) inset;
    transition: all 0.3s;
}

.raised-shadow {
    box-shadow:
        -8px -4px 8px var(--shadow-light),
        8px 6px 12px var(--shadow-dark),
        -4px -4px 6px var(--shadow-light) inset,
        4px 4px 6px var(--shadow-dark) inset;
    transition: all 0.5s;
}

.flex-container {
    margin: 1.5rem auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

.flex-clm {
    width: 100%;
    padding: 1rem;
    background-color: var(--bkg-normal);
    /* border: solid 1px var(--shadow-light); */
    border-radius: 5px;
    /* text-align: center; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 14px;
}

ul.clm {
    /* padding: 0px; */
    /* list-style-type: '- '; */
    -webkit-columns: 2;
    -moz-columns: 2;
    columns: 2;
}

.previewImg {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    object-position: top;
    transition: all 0.5s ease-out;
    border: solid 1px var(--accent);
    border-radius: 3px;
}

.previewImg:hover {
    object-position: bottom;
    transition: all 2s ease-in;
    animation: webScroll 2s 1 alternate forwards;
}

@keyframes webScroll {
    0% {
        opacity: 100%;
    }

    90% {
        opacity: 100%;
    }

    100% {
        opacity: 70%;
    }
}

.fancyboxImg img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border: gray 1px solid;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.title {
    color: var(--text-color-normal);
    margin: 0.5em;
    font-size: 1.25em;
}

.desc,
.site-link {
    margin: 0.6em;
    font-size: 16px;
}

.copy {
    margin-top: auto;
    font-size: 12px;
}

.tags {
    margin-top: 1em;
}

.tags>* {
    cursor: default;
    display: inline-flex;
    margin: 4px;
    color: var(--text-color-normal);
    font-size: 14px;
    border-radius: 50px;
    padding: 0.5em 1em;
    /* background-color: var(--accent); */
    /* box-shadow:
        -4px -4px 6px var(--shadow-light) inset,
        4px 4px 6px var(--shadow-dark) inset; */
    transition: all 0.5s;
}

@media (min-width:1024px) {
    .flex-clm {
        width: 35%;
    }
}

@media (min-width:1280px) {
    .flex-clm {
        width: 25%;
    }
}