:root {
    --primary-bg-color: rgb(29, 30, 32);
    --primary-color: rgb(218, 218, 219);
}

/** Fonts **/

/* Light */
@font-face {
    font-family: 'FiraCode Nerd';
    src: url('../../static/font/FiraCodeNerdFont-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Regular */
@font-face {
    font-family: 'FiraCode Nerd';
    src: url('../../static/font/FiraCodeNerdFont-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'FiraCode Nerd';
    src: url('../../static/font/FiraCodeNerdFont-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* SemiBold */
@font-face {
    font-family: 'FiraCode Nerd';
    src: url('../../static/font/FiraCodeNerdFont-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'FiraCode Nerd';
    src: url('../../static/font/FiraCodeNerdFont-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/** Basic Elements **/

body {
    display: flex;
    flex-direction: column;
    margin: auto;
    min-height: 100vh;

    color: var(--primary-color);
    max-width: 680px;
    font-family: 'FiraCode Nerd', system-ui, sans-serif;
    background-color: var(--primary-bg-color);
}

main {
    flex: 1;
}

footer i,
nav i {
    font-style: normal;
    font-size: 16px;
}

nav {
    padding: 16px 0px;
    text-decoration: none;
    box-shadow: 0 1px var(--primary-color);
    box-decoration-break: clone;
    color: var(--primary-color);
}

nav a,
nav a:hover,
a:visited,
a:active {
    box-shadow: none
}

footer {
    opacity: 50%;
    width: 100%;
    text-align: center;
    margin: 30px 0px;
}

a,
a:visited,
a:active,
a:hover {
    text-decoration: none;
    box-shadow: 0 1px var(--primary-color);
    box-decoration-break: clone;
    color: var(--primary-color);
}

p {
    text-align: justify;
    line-height: 1.25;
}

table,
td,
th {
    border: 1px solid var(--primary-color);
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
}

/** Index Page Elements **/

.about-me-container {
    display: flex;
    align-items: center;
}

.ascii-art {
    white-space: pre;
    font-family: 'FiraCode Nerd Mono', monospace;
}

.about-me-container .ascii-art {
    font-size: 4em;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

.about-me {
    margin-left: 20px;
}

.about-me p {
    text-align: left;
}

.about-me .socials {
    display: flex;
    flex-wrap: wrap;
}

.about-me a {
    padding: 16px;
}

.about-me i {
    font-style: normal;
    font-size: 24px;
    text-align: center;
}

.search-container {
    margin: 20px 0px;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding: 8px 0px;
    outline: none;
    background-color: transparent;
    border: none;
    box-shadow: 0 1px var(--primary-color);
    color: var(--primary-color);
    font-family: 'FiraCode Nerd Mono', monospace;
}

.post h1 {
    font-size: 32px;
    box-shadow: 0 1px var(--primary-color);
    box-decoration-break: clone;
}

.info {
    display: flex;
    flex-wrap: wrap;
}

.info span {
    font-size: small;
    margin-right: 10px;
}

.post p {
    text-align: left;
}

/** Easter Egg **/
@keyframes duckAnimation {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100vw);
    }
}

.ducklings {
    position: fixed;
    bottom: 50px;
    transform: translateX(100vw);
    display: flex;
    align-items: end;
}

.ducklings.animate {
    animation: duckAnimation 15s linear;
}

.ducklings #big-duck,
.ducklings #medium-duck,
.ducklings #small-duck {
    margin-right: 30px;
}

.ducklings #big-duck {
    font-size: 2em;
}

.ducklings #medium-duck {
    font-size: 1.5em;
}

.ducklings #small-duck {
    font-size: 1em;
}

@media (max-width: 640px) {
    .about-me-container .ascii-art {
        font-size: 2em;
        margin: auto;
    }

    .about-me-container {
        display: block;
    }

    .about-me {
        margin-left: 0px;
    }

    body {
        margin: 30px;
    }

    .ducklings.animate {
        animation-duration: 5s;
    }
}