* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
    overflow-x: hidden;
    text-align: center;
}

:root {
    --bg_h: #292831;
    --bg: #383743;
    --fg: #F5EEF8;
    --fg1: #EADCF0;
    --buttons--secondary: #571B84;
}

code {
    color: var(--fg1);
}

body {
    background-color: var(--bg);
    color: var(--fg);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
}

#the-baums-blog-heading {
    align-self: flex-start;
    text-align: left;
    margin-left: 8px;
    cursor: pointer;
}

button {
    border-radius: 5px;
    border: var(--buttons--secondary) solid 2px;
    background-color: var(--bg_h);
    color: var(--fg);
    padding: 5px 15px 5px 15px;
    margin: 5px;
}

#post-listing {
    list-style-type: none;
    padding: 0;
}

img {
    width: 100%;
    height: auto;
    max-width: calc(100vh * 0.8);
}

#post-container {
    position: relative;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
}

code {
    background-color: var(--bg_h);
    font-family: monospace;
    padding: 5px 15px 5px 15px;
    border-radius: 5px;
    padding-right: 2rem;
}

pre {
    text-align: left;
    width: 100%;
    background-color: var(--bg_h);
    font-family: monospace;
    padding: 10px 25px 10px 25px;
    border-radius: 5px;
}

hr {
    height: 1px;
    width: 100%;
}

pre>code {
    display: inline-block;
    width: 80%;
}

code::after {
    content: "copy";
    position: absolute;
    display: inline-block;
    font-size: 0.5rem;
    align-self: flex-end;
    margin-left: 0.25rem;
}

.copy-message {
    background-color: var(--bg_h);
    z-index: 1000;
    padding: 10px;
    position: fixed;
    bottom: 3vh;
    right: 3vh;
    border: var(--bg) solid 5px;
    border-radius: 10px;
    animation: fly-in-message 2500ms;
    transform: translateX(150%);
}

@media only screen and (min-width: 640px) {
    #post-container {
        width: 80%;
    }
}

@keyframes fly-in-message {
    0%,
    100% {
        transform: translateX(150%);
    }
    10%,
    90% {
        transform: translateX(0%);
    }
}
