:root {
    --background: #02020A;
    --primary: rgb(66, 164, 230);
    --accent: rgb(36, 36, 36);
    --accent-dark: rgb(31, 31, 31);
    --text-color: lightgray;
    --text-color-dark: gray;
}

body {
    background-color: var(--background);
    color: white;
}
/* CSS For body in articles (to make content fit whole screen) */
.article-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-top: 0rem;
    margin-bottom: 0rem;
    justify-content: space-between;
}

.full-height {
    min-height: 100%;
}

/* OTHER */
p code, li code {
    padding: 0.1rem;
    background-color: var(--accent);
    border-radius: 1%;
}

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



main, .content{
    display: grid;
    grid-template-areas: "title posts";
    grid-template-columns: 2fr 1.5fr;
    grid-auto-rows: auto;
    grid-template-rows: 97vh auto;
}

.content {
    grid-template-areas: 
    "title post";
    grid-template-rows: auto auto;
    grid-template-columns: 0.5fr 2fr;
}

.title {
    grid-area: title;
    justify-self: center;
    align-self: center;
    color: var(--primary);
}
.content .title {
    align-self: flex-start;
    justify-self: center;
    margin-top: 4rem;
    margin-right: 0.2rem;
}

h1 {
    font-family: "Fira Code","Lucida Console",Monaco,monospace;
    font-weight: normal;
}

h2, h3, h4, h5, h6, p, th, tr, li {
    font-family: "Archivo","Fira Code",Monaco,monospace;
    font-weight: normal;
}

th {
    font-weight: bold;
}

p {
    text-align: justify;
}

.post > h1 {
    text-decoration: underline;
}
.title h1 {
    
    font-size: xx-large;
    margin: 0;
}

.social {
    display: flex;
    justify-content: flex-end;
}


.social a:not(:last-child) {
    margin-right: 1rem;
}

a svg {
    stroke: var(--primary);
}

.posts, .post {
    border-left: 1px solid var(--accent-dark);
    margin-top: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    overflow: auto;
}
.post {
    padding-left: 1rem;
}

hr.solid {
    border: 1px solid var(--accent-dark);
    background-color: var(--accent-dark);
    margin: 0 0.5rem 0.5rem;
    
}

.list_post {
    background-clip: content-box;
    margin: 0 1rem;
    background-color: var(--accent);
    border-radius: 2%;
    padding: 1rem;

}
.list_post h2 {
    padding: 1rem;
    margin: 0;
}
.list_post div {
    margin-left: 1rem;
    padding-bottom: 1rem;
    font-family: "Fira Code","Lucida Console",Monaco,monospace;
}

.list_post_link {
    text-decoration: none;
    color: white;
}

.summary, article p, .noarticles {
    color: var(--text-color);
    margin-right: 1rem;
}
article p {
    font-size: large;
}
.summary p {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post {
    margin: 2rem 0rem 2rem;
    grid-area: post;
}
.highlight pre {
    padding: 1rem;
}

.reading_time {
    margin-left: auto;
    margin-right: 1rem;
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
}

.post_footer {
    display: flex;
}
.post_footer p:not(.reading_time) {
    margin: 0;
}
.post_footer p:not(.reading_time):not(:last-child) {
    border-right: 1px solid var(--accent);
}

.anchor {
    margin-left: 0.5rem;
    text-decoration: none;
    color: black;
}

h2:hover .anchor {
    color: var(--primary);
}

.footer {
    text-align: center;
}


::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
}
.arrow {
    display: none;
}

table {
    margin: 1rem auto 1rem;
    width: 40%;
    background-color: var(--accent-dark);
    border-collapse: collapse;
}

th, td {
    padding: 15px;
}

tr:nth-child(even) {
    background-color: var(--accent);
}

thead tr {
    padding-bottom: 0.5rem;
    border-bottom: 4px solid var(--accent);
}
th:not(:first-child) {
    border-left: 2px solid var(--accent);
}

td:not(:first-child) {
    border-left: 2px solid var(--accent);
}
tr:not(:first-child):nth-child(even) td {
    border-left: 2px solid var(--accent-dark);
}

img {
    display: block;
    margin: 1rem auto 1rem;;
    width: 100%;
    max-width: 70vh;
    height: auto;
    
}

li {
    color: var(--text-color);
}

blockquote {
    background-color: var(--accent-dark);
    padding: 1rem;
    border-left: 4px solid var(--primary);
    margin: 1rem 0;
}
blockquote p {
    margin: 0.5rem 0;
    color: var(--text-color-dark);
}

/* Logic for smaller screens */
@media (max-width: 750px) {
    main {
        grid-template-columns: 1fr ;
        grid-template-areas: "title" "posts" ;
    }
    .content {
        grid-template-columns: 1fr ;
        grid-template-areas: "title" "post" ;
        margin-top: 2rem;
    }
    .post, .posts {
        border-left: none ;
        padding-right: 0 ;
    }
    .post {
        margin-left: 0 ;
    }
    .content .title {
        margin: 0;
        align-self: center;
        justify-self: center;
    }
    .arrow {
        display: block;
        position: absolute;
        text-align: center;
        justify-content: center;
        align-content: center;
        top: 95%;
        left: 48%;
        
    }
    .arrow svg {
        width: 2rem;
        height: 2rem;
    }
    .post {
        justify-content: center;
    }
    .list_post h2 {
        font-size: medium;
    }
    .list_post p {
        font-size: small;
    }
    
      
}