body {
    font-family: "Source Code Pro", "Hack", "Courier New", Courier, monospace;
    margin: 0;
    padding: calc(8vh + 10px);
    background-color: #fff;
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 36px;
    margin-bottom: -18px;
    font-family: Arial, Helvetica, sans-serif;
}

blockquote {
    color: #333;
    border-left: 2px solid #333;
    padding-left: 20px;
    margin: 36px 20px;
}

hr {
    background: #000;
    color: #000;
    height: 3px;
}

/* Left panel for main content */
.left-panel {
    flex: 2;
    max-width: 800px;
    min-width: 300px;
    /* Ensure the left panel has a minimum width */
}

.left-panel .section {
    margin-bottom: 60px;
    width: 100%;
}

.content-inner {
    margin: 0 auto;
    max-width: 600px;
    padding: 0 20px;
}

/* Right panel for logo, navigation and recent posts */
.right-panel {
    flex: 0 0 350px;
    /* Ensures the sidebar does not shrink */
    min-width: 350px;
    /* Ensures the sidebar has a minimum width */
    text-align: center;
    max-width: 350px;
    margin-top: 20px;
    /* Add some top margin to align with the content */
}

.right-panel img {
    width: 100%;
    max-width: 320px;
    height: 180px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav a {
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 1.2em;
    transform: translate(-6px, -6px) rotate(7deg);
    transition: transform 0.3s;
}

.nav a:nth-child(2) {
    transform: rotate(0deg);
}

.nav a:nth-child(3) {
    transform: translate(5px, -5px) rotate(-6deg);
}

.nav a:hover {
    color: red;
}

/* Post styles */
.post-title {
    font-size: 28px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-content {
    font-size: 20px;
    line-height: 1.6;
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* About section */
.about {
    text-align: center;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-and-intro {
    display: flex;
    align-items: flex-start;
    gap: 0px;
}

.profile-picture {
    flex: 0 0 150px;
}

.profile-picture img {
    margin-left: -77px;
    margin-top: 100px;
    width: 200px;
    border: 5px solid #000;
    /* Ensure the picture is not rounded */
}

.intro-text {
    flex: 1;
    padding-right: 100px;
}

/* Recent posts sidebar */
.recent-posts {
    margin-top: 40px;
    padding: 10px 20px;
}

.sidebar-links h3 {
    margin-bottom: 10px;
}

.sidebar-links ul {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 8px;
}

/* Responsive styles */

@media (max-width: 1008px) {
    body {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .left-panel,
    .right-panel {
        max-width: 100%;
        flex: unset;
        width: 100%;
    }

    .content-inner {
        max-width: 600px;
        padding: 0 10px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-and-intro {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .profile-picture img {
        margin-left: 0;
        margin-top: 0;
    }

    .intro-text {
        padding-right: 0;
        margin-left: 0;
    }
}