@font-face {
    font-family: 'Azeret Mono';
    src: url('/assets/fonts/AzeretMono.ttf') format('truetype');
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    font-family: 'Azeret Mono', monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate3d(0, 0, 0);
    text-wrap-style: pretty;
    word-wrap: break-word;
}

/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 13px;
    height: 13px;
}

/* Track (the background of the scrollbar) */
::-webkit-scrollbar-track {
    background: #0000;
    border-radius: 0px;
}

::-webkit-scrollbar-corner {
    background: #0000;
}

/* Handle (the moving part) */
::-webkit-scrollbar-thumb {
    background: #FFCA28;
    border: 2px solid #000;
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

::-webkit-scrollbar-thumb:active {
    background: #000;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

.sidebar {
    flex: 2;
    padding: 1rem;
    padding-top: 3rem;
    border-right: 4px solid #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 16rem;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1;
    /* Background image actual source: https://www.lummi.ai/illustration/serene-landscape-at-sunset-zvzqt */
    background-image: url('/assets/images/sunset.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.sidebar.slide {
    transform: translateX(-100%);
    overflow: hidden;
}

.profile-pic {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    border: 2px solid #000;
    margin-bottom: 10px;
}

.sidebar h2 {
    font-size: 1.5rem;
    margin: 10px 0;
    font-weight: 700;
}

.sidebar p {
    text-align: center;
    font-weight: 600;
    line-height: 1.8rem;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.sidebar nav ul {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar nav ul li {
    margin: 20px 0;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #000;
    background-color: #fff3;
    font-weight: 600;
    font-size: 1.3rem;
    border: 2px solid #000;
    border-radius: 2px;
    padding: 0.5rem 2rem;
    transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
}

.sidebar nav ul li a:hover {
    background-color: #000;
    color: #fff;
}

.social-links {
    margin-top: auto;
}

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

.content {
    display: flex;
    flex-direction: column;
    flex: 9;
    background-color: #ebe9e1;
    overflow-y: auto;
    min-height: 100vh;
    margin-left: 18rem;
    transition: margin-left 0.3s ease-in-out;
}

.content.slide {
    margin-left: 0;
}

.header {
    background-color: #FFCA28;
    border-bottom: 2px solid #000;
    display: flex;
    align-items: center;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.4rem;
}

.burger-btn {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    margin-right: 15px;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.burger-btn.active {
    transform: rotate(-90deg);
}

.main-content {
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    flex: 1;
    overflow-y: auto;
    font-size: 20px;
    font-weight: 450;
}

#main-page-heading {
    font-size: 3.2rem;
    margin: 0;
    margin-bottom: -0.7rem;
}

#posts-list {
    margin-top: 0;
    flex: 1;
    padding: 0;
    font-size: 20px;
}

.posts-list-item {
    margin: 2rem 0 3rem 0;
    list-style: none;
    padding: 1rem;
    border: 2px solid #000;
    border-radius: 2px;
    box-shadow: 0.4rem 0.4rem #000;
}

.posts-list-item a {
    font-size: 1.7rem;
    font-weight: 600;
    text-decoration: none;
    color: #000;
}

.posts-list-item span {
    font-size: 1.3rem;
    font-weight: 500;
    margin-left: -0.2rem;
}

#post-content {
    flex: 1;
    font-weight: 500;
}

#post-date {
    padding-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0.1rem;
}

#post-heading {
    font-size: 2.2rem;
    margin: 0;
    font-weight: bold;
}

#post-heading-secondary {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1rem 0 0.8rem 0;
}

#blog-text {
    margin-bottom: 2rem;
}

#blog-text img {
    max-width: 90%;
}

#blog-text p {
    line-height: 2rem;
}

#blog-text li {
    line-height: 2rem;
}

#blog-text th, td {
    padding: 1rem;
    border: 2px solid #000;
}

#blog-text p code, li code {
    background-color: #0002;
    padding: 0.2rem;
    border-radius: 3px;
}

#blog-text pre {
    background-color: #0002;
    border-radius: 3px;
    padding: 0.1rem;
}

#blog-text pre code {
    border-radius: 3px;
}

#blog-text pre code th, 
#blog-text pre code td {
    border: none;
}

#blog-text pre code tr {
    display: flex;
    align-items: baseline;
}

#blog-text pre code td .hljs-ln-n {
    padding: 0.2rem 1rem 0.2rem 0;
    color: #888;
}

#blog-text blockquote {
    background-color: #0001;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    border-left: 4px solid #000;
}

.aboutme-text {
    font-size: 1.2rem;
    line-height: 1.6rem;
}

.aboutme-blogmeme {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap:1rem;
    margin: 3rem 0;
}

.aboutme-blogmeme img {
    width: 50%;
}

.general-btn {
    padding: 0.2rem 1rem;
    font-size: 18px;
    background: #0000;
    color: #000;
    font-weight: 600;
    border: 2px solid #000;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
}

.general-btn:hover {
    background-color: #000;
    color: #fff;
}

footer {
    color: #141414;
    margin-top: 2rem;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

footer span {
    font-size: 18px;
}

/* styles for mobile*/

@media screen and (max-width: 768px) {
    /* Width of the scrollbar */
    ::-webkit-scrollbar {
        width: 11px;
        height: 11px;
    }

    .container {
        flex-direction: column;
        background-color: #ebe9e1;
        overflow: hidden;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 3px solid #000;
        transform: translateY(-4rem);
        right: 0;
        width: auto;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: transform 0.4s ease-in-out, max-height 0.4s ease-in-out;
    }
    
    .sidebar.slide {
        transform: translateY(0);
        max-height: 34rem;
    }   
    
    .sidebar p {
        font-size: 1.2rem;
    }
    
    .sidebar nav ul {
        margin-top: 1rem;
    }
        
    .sidebar nav ul li a {
        font-weight: 500;
        font-size: 1.4rem;
        transition: none;
    }
    
    .sidebar nav ul li a:active {
        background-color: #000;
        color: #fff;
    }        
    
    .content {
        margin-left: 0;
        transform: translateY(0);
        transition: transform 0.4s ease-in-out;
    }
    
    .content.slide {
        transform: translateY(38rem);
    }
    
    .header {
        font-size: 1.2rem;
    }
    
    .burger-btn {
        transform: rotate(0deg);
        transition: transform 0.4s ease-in-out;
    }

    .burger-btn.active {
        transform: rotate(90deg);
    }
    
    .main-content {
        padding: 1rem;
    }

    #main-page-heading {
        font-size: 2.8rem;
        margin-bottom: -1.5rem;
    }
        
    .posts-list-item {
        margin: 2.5rem 0 0 0;
    }
    
    .posts-list-item a {
        font-size: 1.3rem;
    }
    
    .posts-list-item span {
        font-size: 0.8rem;
        font-weight: 600;
    }

    #post-date {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    #post-heading {
        font-size: 1.5rem;
        text-align: left;
    }

    #post-heading-secondary {
        font-size: 1rem;
    }
        
    #blog-text {
        overflow: hidden;
        margin-top: -2rem;
        word-spacing: -0.2rem;
        letter-spacing: 0rem;
    }

    #blog-text p {
        font-size: 1.1rem;
    }

    #blog-text li {
        font-size: 1.1rem;
    }

    #blog-text h2 {
        font-size: 1.5rem;
    }

    #blog-text h3 {
        font-size: 1.3rem;
    }

    #blog-text h4 {
        font-size: 1.1rem;
    }

    #blog-text h5 {
        font-size: 0.9rem;
    }
    
    #blog-text img {
        max-width: 100%;
    }
    
    #blog-text ul {
        padding-left: 1.5rem;
    }
    
    .aboutme-text {
        font-size: 1.1rem;
    }


    .aboutme-blogmeme {
        margin: 2rem 0;
    }

    .aboutme-blogmeme img {
        width: 100%;
    }

    .general-btn {
        transition: none;
    }
    
    .general-btn:active {
        background-color: #000;
        color: #fff;
    }
    
    footer {
        font-size: 0.7rem;
    }
    
    footer span {
        font-size: 0.9rem;
    }
}
