<style>
    @import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Hedvig+Letters+Serif:opsz@12..24&display=swap');
    @import url('https://fonts.googleapis.com/css2?family=Actor&display=swap');
    body {
        position: relative;
        background-color: #fffcf5;
        padding: 100;
        font-feature-settings: "liga" 0;
    }
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #333;
        color: white;
        padding: 10px 0;
        text-align: center;
        z-index: 1000;
    }
    .header nav {
        display: flex;
        justify-content: left;
        gap: 20px;
    }
    .header a {
        color: white;
        text-decoration: none;
        font-weight: bold;
        font-family: 'Gowun Dodum', sans-serif;
        margin-left: 18;
        padding: 5;
    }
    .header a:hover {
        text-decoration: underline;
    }
    .content {
        margin-top: 60px;
        padding: 20px;
    }
    .top-image {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        text-align: center;
        z-index: 1;
    }
    img {
        position: relative;
        z-index: 1;
        width: 1000px;
        height: 500px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        border-radius: 100px;
        object-fit: cover;
    }
    h1 {
        /*font-family: 'Actor', sans-serif;*/
        font-family: 'Hedvig Letters Serif', serif;
        font-size: 48;
        text-align: center;
        font-weight: 100;
    }
    h2 {
        /*font-family: 'Actor', sans-serif;*/
        font-family: 'Hedvig Letters Serif', serif;
        font-size: 20;
        text-align: justify;
        font-weight: 100;
        margin: 0 auto;
        max-width: 600px;
        padding-left: 40px;
        line-height: 1.5;
    }
    h3 {
        /*font-family: 'Actor', sans-serif;*/
        font-family: 'Hedvig Letters Serif', serif;
        font-size: 20;
        text-align: right;
        font-weight: 100;
        margin: 0 auto;
        max-width: 600px;
        padding-left: 40px;
        line-height: 1.5;
        font-style: italic;
    }
    h4 {
        /*font-family: 'Actor', sans-serif;*/
        font-family: 'Hedvig Letters Serif', serif;
        font-size: 24;
        text-align: center;
        font-weight: 100;
        margin-top: 0;
        margin-bottom: 5px;
    }
    p {
        /*font-family: 'Actor', sans-serif;*/
        font-family: 'Hedvig Letters Serif', serif;
        font-size: 18;
        text-align: left;
        font-weight: 100;
        margin: 0 auto;
        max-width: 600px;
        padding-left: 40px;
        line-height: 1.25;
    }
    @media screen and (max-width: 768px) {
        .code-block {
            max-width: 90%;
            padding: 15px;
            font-size: 14px;
        }
    }
    }
    .fade-in-up {
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 1s ease-out, transform 1s ease-out;
    }
    
    .fade-in-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .container {
        display: flex;
        justify-content: space-around;
        padding: 20px;
    }
    .square {
        width: 300px;
        height: 300px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .image-container {
        height: 40%;
        overflow: hidden;
    }
    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0; /* Remove border-radius from the image */
        margin: 0; /* Remove any margins */
        display: block; /* Ensure proper block display */
    }
    .text-container {
        height: 60%;
        padding: 10px; /* Reduced padding */
        background-color: #f0f0f0;
    }
    .actor-font {
    font-family: 'Actor', sans-serif;
    }
    @media screen and (max-width: 768px) { /* Changed to standard mobile breakpoint */
        .header nav {
            flex-wrap: wrap; /* Prevent overflow */
            gap: 4px !important;
            padding-left: 10px;
        }
        
        .top-image img {
            margin-top: 200px; /* Added space before image */
            border-radius: 60px !important; /* Reduced roundness */
            width: 100% !important;
            height: auto !important;
            max-width: 100vw !important; /* Prevent overflow */
            margin: 0 !important;
        }

        body {
            padding: 10px !important; /* More aggressive reduction */
        }

        /* Text container adjustments */
        h1, h2, h3, p {
            font-size: 20;
            padding-left: 10px !important;
            padding-right: 10px !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
        h1 {
            font-size: 40;
        }
        /* Vertical stacking for squares */
        .container {
            flex-direction: column !important;
            align-items: center !important;
            gap: 25px !important; /* Space between stacked squares */
            padding: 10px 0 !important;
        }
    
        .square {
            width: 90% !important;
            height: auto !important; /* Make height flexible */
            min-height: 300px; /* Minimum height */
            margin-bottom: 0 !important;
        }

        /* Force override of image dimensions */
        img:not(.top-image img) {
            width: 100% !important;
            height: auto !important;
        }
        
    }
        /* Add this after the last closing bracket of your @media query section */
    .code-block {
        background-color: #232323;
        color: #f8f8f2;
        border-radius: 8px;
        padding: 20px;
        margin: 30px auto;
        max-width: 680px;
        overflow-x: auto;
        font-family: 'Fira Code', 'Consolas', monospace;
        font-size: 16px;
        line-height: 1.6;
        border-left: 4px solid #66d9ef;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        white-space: pre;
        display: block;
        tab-size: 4;
        text-align: left;
    }
    
    .code-block .keyword {
        color: #ff79c6;
    }
    
    .code-block .string {
        color: #f1fa8c;
    }
    
    .code-block .comment {
        color: #6272a4;
        font-style: italic;
    }
    
    .code-block .function {
        color: #8be9fd;
    }
</style>