html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: system-ui;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

#content-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background-color: #f4f4f4;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
}

h1 {
    font-size: 2.5em;
    margin: 0;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #4CAF50;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav a.active::after {
    transform: scaleX(1);
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.profile-image {
    width: 200px;
    /* Reduced from 250px */
    height: 200px;
    /* Reduced from 250px */
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    /* Center the image */
    margin-bottom: 20px;
    margin-top: 50px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #0066cc;
    text-decoration: none;
}

.bio {
    max-width: 600px;
    /* Adjust this value as needed */
    margin: 0 auto 20px auto;
    padding: 0 20px;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-entry {
    cursor: pointer;
    padding: 10px;
    position: relative;
    transition: background-color 0.3s ease;
}

.blog-entry::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #4CAF50;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.blog-entry:hover::after {
    transform: scaleX(1);
}

.blog-entry:hover {
    background-color: #f5f5f5;
}

h2 {
    font-size: 1.8em;
    margin-top: 30px;
}

code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 4px;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    position: relative;
    transition: background-color 0.3s ease;
}

.item-entry::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #4CAF50;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.item-entry:hover::after {
    transform: scaleX(1);
}

.item-entry:hover {
    background-color: #f5f5f5;
}

.item-entry h3 {
    margin: 0 0 5px 0;
}

.item-entry p {
    margin: 0;
    color: #666;
}

.item-content {
    flex: 1;
}

.item-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-left: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.social-icons a {
    color: #333;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
    transition: color 0.3s ease;
}

.social-icons a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4CAF50;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.social-icons a:hover::after {
    transform: scaleX(1);
}

pre {
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin-bottom: 40px;
}

code {
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    padding: 0.2em 0.4em;
    margin: 0;
    border-radius: 3px;
}

pre code {
    font-size: inherit;
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: 0;
}

.hljs {
    display: block;
    overflow-x: auto;
    padding: 0.5em;
    color: #24292e;
    background: #f6f8fa;
}

.hljs-comment,
.hljs-quote {
    color: #6a737d;
    font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
    color: #d73a49;
}

.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
    color: #005cc5;
}

.hljs-string,
.hljs-doctag {
    color: #032f62;
}

.hljs-title,
.hljs-section,
.hljs-selector-id {
    color: #6f42c1;
    font-weight: bold;
}

.hljs-subst {
    font-weight: normal;
}

.hljs-type,
.hljs-class .hljs-title {
    color: #458;
    font-weight: bold;
}

.hljs-tag,
.hljs-name,
.hljs-attribute {
    color: #000080;
    font-weight: normal;
}

.hljs-regexp,
.hljs-link {
    color: #009926;
}

.hljs-symbol,
.hljs-bullet {
    color: #990073;
}

.hljs-built_in,
.hljs-builtin-name {
    color: #0086b3;
}

.hljs-meta {
    color: #999;
    font-weight: bold;
}

.hljs-deletion {
    background: #fdd;
}

.hljs-addition {
    background: #dfd;
}

.hljs-emphasis {
    font-style: italic;
}

.hljs-strong {
    font-weight: bold;
}

.sub-title {
    margin-top: 30px;
    padding: 10px;
}