* {
    outline: 0;
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}
:root {
    --bg: #fff;
    --text: #000;
    --primary: #004b6e;
    --nav-height: 80px;
}
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-optical-sizing: auto;
}
header {
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--nav-height);
    display: flex;
    transition: .3s;
}
.nav-desktop {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 10%;
    width: 100%;
}
nav > div {
    display: flex;
    gap: 2rem;
    align-items: center;
    color: #fff;
}
h1, h2, h3, h4, h5, h6, .toctitle {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 200;
    color: var(--text);
    text-transform: uppercase;
    line-height: 2rem;
}
h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
    line-height: 3rem;
    color: white;
    text-align: center;
    font-weight: 600;
    z-index: 1;
    font-size: 30px;
    text-align: center;
    width: 100%;
}

.about h2, .post h1 {
    font-weight: 200;
    font-size: 24px;
    color: var(--text);
    text-transform: uppercase;
}
.post p {
    margin-bottom: 2rem;
}
h2, .toctitle {
    font-size: 24px;
}
.toctitle {
    margin-bottom: 2rem;
}
h3 {
    font-size: 20px;
}
h4 {
    font-size: 16px;
}
.book-bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.nav-title a {
    font-size: 20px;
    text-transform: uppercase;
    font-family: "Josefin Sans", sans-serif;
    color: #fff;
    text-decoration: none;
    transition: .3s;
}
.nav-title a:hover {
    opacity: .7;
}
.nav-btn {
    font-size: 16px;
    padding: 10px 1rem;
    background: transparent;
    transition: .3s;
    border: 1px solid transparent;
    color: #fff;
    font-weight: 200;
    text-decoration: none;
    text-transform: uppercase;
}
.nav-btn:hover {
    border: 1px solid white;
}
.btns > a {
    flex: 1;
    text-wrap: nowrap;
    min-width: 145px;
}
.btn {
    background: transparent;
    text-decoration: none;
    border: 1px solid white;
    color: #fff;
    transition: .3s;
    width: fit-content;
    padding: 15px 1rem;
    font-size: 12px;
    text-transform: uppercase;
}
.bt {
    background-color: var(--text);
    text-decoration: none;
    border: 1px solid var(--text);
    text-wrap: nowrap;
    color: var(--bg);
    transition: .3s;
    width: fit-content;
    padding: 10px 1rem;
    margin: 1rem 0;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
}
.bt:hover {
    background-color: var(--primary);
    border: 1px solid var(--primary);
}
.secondary-btn {
    background-color: white;
    text-decoration: none;
    border: 1px solid white;
    color: #000;
    transition: .3s;
    width: fit-content;
    padding: 15px 1rem;
    font-size: 12px;
    text-transform: uppercase;
}
.btn i, .secondary-btn i {
    margin-right: 0.5rem;
}
.btn:hover {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
    background-color: rgba(255, 255, 255, 0.1);
}
.secondary-btn:hover {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 5vh));
    width: 90%;
}
.btns {
    text-align: center;
    display: flex;
    margin: 2rem auto;
    width: fit-content;
}
.hero-img, .hero-img-s {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: #000;
}
.hero-img img {
    object-fit: cover;
    opacity: .3;
    width: 100vw;
    height: 100vh;
}
.blogs {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 90%;
    margin: auto;
    margin-top: calc(2 * var(--nav-height));
    margin-bottom: 2rem;
}
.blog-articles {
    z-index: 2;
    text-align: center;
    background-color: var(--bg);
    min-height: 100vh;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
    overflow-y: scroll;
}
.articles {
    z-index: 2;
    text-align: center;
    background-color: var(--bg);
    min-height: 100vh;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
    transform: translateY(-5rem);
    width: 80%;
    margin: auto;
}
.sidebar {
    z-index: 2;
    text-align: center;
    background-color: var(--bg);
    min-height: 100vh;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
    min-width: 20vw;
    text-decoration: none;
    font-weight: 100;
}
.sidebar ul {
    text-decoration: none;
    list-style: none;
    text-align: left;
    margin: auto;
    margin-bottom: 2rem;
    width: 80%;
}
ul, ol {
    margin-bottom: 2rem;
}
.sidebar h2 {
    font-weight: 100;
    font-size: 20px;
    color: var(--text);
    text-transform: uppercase;
}
.main-content {
    margin: 0;
    margin-top: 95vh;
    min-height: 100vh;
    display: flex;
    flex-direction: r;
    position: relative;
    width: 100%;
    background-color: var(--bg);
}
.hr {
    width: 8rem;
    height: 1px;
    margin: 1rem auto;
    background-color: var(--text);
    opacity: .8;
}
article {
    width: 90%;
    margin: auto;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    font-size: 12px;
    line-height: 16px;
}
article h3 a, article h2 a {
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 300;
}
article h2, article h3 {
    margin-bottom: 1rem;
    margin-top: 2rem;
}
article h2 a:hover, article h3 a:hover {
    color: var(--primary);
}
h2 a, h3 a {
    text-decoration: none;
    color: var(--text);
    transition: 0.3s;
}
h2 a:hover, h3 a:hover {
    opacity: .6;
}
.article-content {
    overflow-y: hidden;
    margin-top: 2rem;
}
.article-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    width: fit-content;
}
.article-info span {
    font-size: 12px;
    color: var(--accent2);
}
.article-info span i {
    margin-right: 0.5rem;
}
.article-info span a {
    color: var(--accent2);
    text-decoration: none;
}
.article-info span a:hover {
    color: var(--primary);
}
.tags, .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tags a, .categories a {
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 300;
}
.tags a:hover, .categories a:hover {
    color: var(--text);
}
.tags a::before {
    content: "#";
}
.article-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    width: fit-content;
}
header.scrolled {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
footer {
    width: 100%;
    min-height: 60px;
    background-color: var(--text);
    position: relative;
    padding: 2rem 0;
}
footer h3, footer h4, footer h2 {
    text-align: left;
    width: 100%;
    padding: 0 10%;
    font-weight: 200;
    color: var(--bg);
}
footer h3 {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 200;
    text-transform: uppercase;
}
.footer-cont {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 80%;
    height: 100%;
    flex-direction: row;
    color: var(--bg);
    margin: 2rem auto;
}
.footer-cont > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    text-align: left;
    min-width: 10vw;
}
.recent-post, .footer-links a {
    transition: 0.3s;
    opacity: .7;
    font-weight: 100;
    list-style: none;
}
.recent-post {
    margin-bottom: 1rem;
}
.recent-post:hover, .footer-links a:hover {
    opacity: 1;
}
.recent-post::before {
    content: ">>";
}
.recent-posts {
    min-width: 50vw!important;
}
.recent-post a, .footer-links a {
    text-decoration: none;
    color: var(--bg);
}
.date {
    margin: 0 1rem
}
footer .hr {
    margin: 0;
    width: 100%;
}
.footer-info {
    text-align: center;
    color: var(--bg);
    font-size: 14px;
    font-weight: 100;
    padding: 0 10%;
    opacity: .7;
}
.desc {
    text-align: left;
}
.books li {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    gap: 1rem
}
.books {
    text-align: center;
}
.blogs .blog-articles {
    flex: 2;
}
.blogs .sidebar {
    flex: 1
}
.sidebar .books img {
    object-fit: contain;
}
.sidebar .books li {
    margin-bottom: 2rem;
}
.books li .cover a {
    display: block;
    margin: auto;
}
.book-info {
    text-align: center;
}
.cover-big img {
    float: left;
    width: 50%;
    margin: 1rem;
}
.fa-amazon {
    margin-right: 1rem;
}
.about {
    width: 80%;
    margin: auto;
}

.about p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 200;
}
.post > p {
    margin-bottom: 1rem;
}
p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 200;
}
.article-content li {
    font-size: 16px;
    font-weight: 200;
    line-height: 24px;
    margin-left: 2rem;
}
.article-content ul {
    list-style: bullet;
}
.article-content ol {
    list-style: decimal;
}
table {
    border: 2px solid black;
    margin: 2rem auto;
    border-collapse: collapse;
}
table td {
    padding: 1rem; 
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 200;
}
table thead {
    background-color: black;
    color: white;
}
thead th {
    padding: 1rem;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
}
table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-nav {
  display: none;
  width: 100%;
}

.nav-title img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

@media (max-width: 768px) {
.nav-title a {
    width: calc(100vw - 48px - 2rem);
}
.post .meta:before, .post .meta:after {
    display: none!important;
}
.cover-big img {
    width: 100%;
    margin: auto;
    margin-bottom: 1rem;
}
.mobile-nav {
display: flex !important;
}
.nav-desktop {
display: none !important;
}
.article-bottom {
flex-direction: column-reverse;
margin-top: 1rem;    
}
.footer-cont {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}
footer h3 {
    text-align: center;
}
.blogs {
    flex-direction: column;
    width: 100%;
}
.post .meta:before, .post .meta:after {
    display: none;
}
.books li {
    flex-direction: row!important;
}
.toc {
    width: 100%!important;
}

}

@media (max-width: 1000px) {
    .books li {
        flex-direction: column;
    }
}


.container {
    position: relative;
    margin: 3rem;
    padding: 3rem;
    height: 600px;
    text-align: center;
    border: 3px solid black;
    border-radius: 1em;
    background-color: beige;
}

.menu-items {
    display: none;
    text-align: center;
    position: absolute;
    padding: 3rem;
    width: 75vw;
    top: 0;
    left: 0;
    list-style: none;
    opacity: 0;
    font-size: 2rem;
    border: 4px solid black;
    background-color: black;
    border-radius: 0.25em;
    transform: translateX(-10%);
    transition: transform 100ms ease-in-out, opacity 200ms;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .5);
}

.menu-items li{
    color: white;
    padding: 0.5rem;
    text-align: right;
    font-weight: 200;
    font-size: 20px;
    text-transform: uppercase;
}

.menu-items li a{
    color: white;
    text-decoration: none;
}

.menu-items li a:hover{
    color: rgb(174, 174, 174);
}

.check {
    position: absolute;
    top: 1rem;
    left: 1rem;
    height: 3rem;
    width: 3rem;
    opacity: 0;
    z-index: 3;
    color: white;
}

.check:hover {
    cursor: pointer;
}

.check:checked~.menu-items {
    display: block;
    transform: translateX(0%);
    opacity: 1;
}

.ham-menu {
    height: 3rem;
    width: 3rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: transparent;
    border-radius: 0.25em;
}

.ham-menu .line {
    display: block;
    background-color: white;
    z-index: 10;
    border-radius: 1em;
    width: 2rem;
    height: 2px!important;
}

.ham-menu .line1 {
    transform-origin: 0% 0%;
    transition: transform 100ms ease-in-out;
}

.ham-menu .line3 {
    transform-origin: 0% 100%;
    transition: transform 100ms ease-in-out;
}

.check:checked~.ham-menu .line1 {
    display: block;
    transform: rotate(45deg);
}

.check:checked~.ham-menu .line2 {
    opacity: 0;
}

.check:checked~.ham-menu .line3 {
    display: block;
    transform: rotate(-45deg);
}
.mobile-nav .nav-title {
    font-size: 16px;
    margin-left: auto;
    text-align: right;
    margin-right: 1rem;
}
.post .meta {
    text-align: center;
    position: relative;

}

.post .meta::before {
    left: 0;
}
.post .meta::after {
    right: 0;
}
.post .meta:before, .post .meta:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    width: 10%;
    border-top: solid 1px;
    border-top-color: var(--primary);
}
.toc {
    width: 80%;
    margin: 3rem auto;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 2px ;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
    padding: 2rem;
}
.toc > ul {
    margin-top: 2rem;
}
.toc > ul > li > ul {
    display: none;
}
.toc > ul > li > a {
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 200;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}
.toc > ul > li {
    margin-bottom: 1rem;
    margin-left: 0;
    margin-top: 1rem;
    list-style-type: none;
}
.toc > ul > li > a:hover {
    color: var(--primary);
}
pre {
    overflow-y: scroll;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    margin: 2rem auto;
}
.fig {
    width: 100%;
    text-align: center;
}
.fig img {
    width: 100%;
}
.blog-articles h1 {
    color: black;
}