:root {
    --background-color: #fbfbfb;
    --code-background-color: #eaeaea;
    --link-color: #444;
    --primary-font-color: #333;
    --secondary-font-color: #9f9f9f;
    --horizontal-color: #ef3066;
    --subtitle-color: #666;
    --blockquote-background: #f9f9f9;
    --tag-background: #eee;


}

[data-theme="dark"] {
    --background-color: #212121;
    --code-background-color: #303030;
    --link-color: white;
    --primary-font-color: white;
    --horizontal-color: #e94560;
    --subtitle-color: #ccc;
    --blockquote-background: #777;
    --tag-background: #444;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--primary-font-color);
}

a,
a:active,
a:visited {
    color: var(--link-color);
}

h1,
h2,
h3,
h4,
h5 {
    padding-bottom: 10px;
}

p,
h2,
h3,
h4,
h5 {
    margin: 4px;
    letter-spacing: 0.3px;
}

p {
    line-height: 2rem;
}

.header {
    grid-area: header;
}

.menu {
    grid-area: menu;
}

.main {
    grid-area: main;
}

.left {
    grid-area: left;
}

.right {
    grid-area: right;
}

.footer {
    grid-area: footer;
}

.grid-container {
    display: grid;
    grid-template-areas:
        'left header header header header header header right'
        'left main main main main main main right'
        'footer footer footer footer footer footer footer footer';
    grid-gap: 5px;
    padding: 5px;
}

.flex {
    display: flex;
}

.page-title {
    padding-bottom: 20px;
}

.project-image {
    max-width: 200px;
    border: 1px solid #efefef;
    margin-bottom: 20px;
    margin-left: 20px;
    float: right;
}

.header {
    margin-bottom: 30px;
}

.footer {
    margin-top: 20px;
    font-size: 15px;
    text-align: center;
}

.footer-text {
    color: var(--primary-font-color);
    padding-top: 8px;
    padding-bottom: 10px;
}

.article-title {
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 0;
}

.article-title>a {
    text-decoration: none;
}

.article-page-title {
    font-weight: 700;
    font-size: 32px;
}

.article-info {
    color: var(--secondary-font-color);
    font-size: 17px;
    margin-top: -16px;
    padding-bottom: 20px;
}

.article-tag {
    color: var(--secondary-font-color);
    font-size: 18px;
    padding-bottom: 20px;
}

.article-divider {
    margin: 20px 0;
    color: #eee;
    font-size: 25px;
    text-align: center;
    font-family: monospace;
    display: block;
}

img {
    border-radius: 1rem;
}

.image-container>img {
    max-width: 100%;
    width: auto;
}

.image-container>figcaption {
    text-align: center;
}

.image-right {
    float: right;
}

.image-right>img {
    max-width: 252px;
}

.article-content>h2 {
    font-weight: 700;
    font-size: 28px;
    padding-bottom: 10px;
}

.article-content>p {
    padding-bottom: 8px;
    font-size: 18px;
    font-family: 'Open Sans', serif;
}

code {
    font-family: monospace;
    font-size: inherit;
}

/* Code in text */
p>code,
li>code,
dd>code,
td>code {
    background-color: var(--code-background-color);
    word-wrap: break-word;
    box-decoration-break: clone;
    padding: .1rem .3rem .2rem;
    border-radius: .2rem;
}

.tags {
    margin-top: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
}

.tag {
    background: var(--tag-background);
    border-radius: 3px;
    padding: 4px 6px;
    margin: 5px;
    -webkit-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.75);
}

.tag>a {
    color: var(--link-color);
    text-decoration: none;
}

.table {
    background-color: var(--code-background-color);
    margin: 20px 0;
}

.everything-width {
    max-width: 700px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 auto;
}

.title {
    font-size: 70px;
    font-weight: bold;
    font-family: 'Poiret One';
    margin: 0;
}

.title-link {
    text-decoration: none;
}

.domain {
    font-size: 20px;
}

.subtitle {
    color: var(--subtitle-color);
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.link-font {
    padding-top: 3px;
}

.link-font>a {
    text-decoration: none;
    color: var(--horizontal-color);
    font-size: 25px;
}

@media screen and (max-width: 600px) {
    .link-font>a {
        font-size: 18px;
    }
}

.link-font>a:hover {
    text-decoration: underline;
}

.hr-top {
    height: 10px;
    background-color: var(--horizontal-color);
    padding: 0;
    margin: 0 auto;
    margin-bottom: 20px;
    border: 0;
}

.hr-middle {
    height: 3px;
    background-color: var(--horizontal-color);
    margin: 0 auto;
    margin-top: 20px;
    border: 0;
}

.hr-long2 {
    height: 3px;
    background-color: var(--horizontal-color);
    padding: 0;
    margin: 0 auto;
    margin-bottom: 3px !important;
    border: 0;
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    border-radius: 4px;
}

td,
th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

.table-scroll {
    width: 95vw;
    overflow-y: auto;
    max-width: 700px;
}

::selection {
    background: #fee1e8;
}

::-moz-selection {
    background: #fee1e8;
}

/* Taken from CSS tricks https://css-tricks.com/snippets/css/simple-and-nice-blockquote-styling/ */
blockquote {
    background: var(--blockquote-background);
    border-left: 10px solid #ccc;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    quotes: "\201C" "\201D" "\2018" "\2019";
    -webkit-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.75);
}

blockquote:before {
    color: #ccc;
    content: open-quote;
    font-size: 4em;
    line-height: 0.1em;
    margin-right: 0.25em;
    vertical-align: -0.4em;
}

blockquote p {
    display: inline;
}

.fa-external-link-alt {
    font-size: 15px;
    padding-left: 5px;
    padding-bottom: 2px;
}

@media screen and (max-width: 640px) {
    .everything-width {
        padding: 0 5px;
    }

    .title {
        font-size: 50px;
        margin-bottom: 10px;
        margin-left: 3px;
    }

    .project-image {
        max-width: 100%;
        margin: 10px auto;
    }

    .article-title {
        font-size: 20px;
    }

    .link-font {
        width: fit-content
    }

    .link-font>a {
        font-size: 1.5rem;
    }

    .image-right {
        float: none;
    }

    .image-right>img {
        max-width: 100%;
    }
}

.floating-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background-color: var(--primary-font-color);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.theme-switch-icon path {
    fill: var(--background-color);
}