        @font-face {
            font-family: 'Franklin Gothic Medium';
            src: url('fonts/framd.ttf') format('opentype');
            font-weight: normal;
            font-style: normal;
        }

        @font-face {
            font-family: 'Timeless';
            src: url('fonts/Timeless-Bold.ttf') format('opentype');
            font-weight: normal;
            font-style: normal;
        }
        
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Timeless', 'Times New Roman', serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow: hidden; /* this disables page scroll */
        }

        .site-wrapper {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .side-wrapper {
            display: flex;
            align-items: center;
        }

        .left-wrapper {
            align-self: flex-end;
        }

        .right-wrapper {
            align-self: center;
        }

        .left-side {
            background-image: url(images/bagaoun.png);
            background-size: cover;
            background-position: center;
            position: relative;
            width: 500px;
            height: 680px;
            border: 1px solid black;
            overflow: hidden;
        }

        .banner {
            position: absolute;
            top: 30px;
            left: 0;
            width: 100%;
            height: 118px;
            z-index: 0;
            overflow: hidden;
            pointer-events: none;
            display:flex
        }

        .banner-wrapper {
            display: flex;
            width: 4000px;
            animation: scrollBanner 10.5s linear infinite;
        }

        .banner img {
            width: 2000px;
            height: 100%;
        }

        @keyframes scrollBanner {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-100%);
            }
        }

        .banner img:last-child {
            position: absolute;
            left: 100%;
        }

        .overlay-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .webring-box {
            position: absolute;
            top: 160px;
            left: 40px;
            width: 230px;
            height: 230px;
            background-color: rgba(255,255,255,0.7);
            padding: 20px;
            font-size: 18px;
            color: #535353;
            line-height: 1.5;
            z-index: 1;
        }

        .webring-title {
            margin-bottom: 10px;
            color: black;
            text-align: center;
        }

        .button-container a {
            display: inline-block;
            margin: 2px;
        }

        .button-container img {
            width: 88px;
            height: 31px;
            image-rendering: pixelated;
        }

        .nav-links {
            position: absolute;
            bottom: 20px;
            left: 30px;
            font-size: 16px;
            color: black;
            z-index: 1;
        }

        .nav-links a {
            color: black;
            text-decoration: none;
            margin-right: 10px;
        }

        .nav-links a:hover {
            text-decoration: underline;
        }

        .nav-links a.active-link {
            color: #6290ad;
            font-weight: bold;
            text-decoration: underline;
        }

        .right-side {
            width: 550px;
            height: 640px;
            display: flex;
            flex-direction: column;
            background-color: #fff;
            border: 1px solid black;
            padding: 20px;
        }

        .page-title {
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            font-size: 20px;
            font-weight: bold;
            margin: 0 -20px 15px -20px;
            background-color: #535353;
            color: #bebebe;
            padding: 10px 15px;
            box-sizing: border-box;
            width: calc(100% + 40px);
        }

        .page-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 0;
        }

        #about-me {
            flex: 1;
            overflow-y: auto;
            padding-right: 10px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .about-box {
            flex: 1;
            overflow-y: auto;
            padding-right: 10px;
            padding: 20px;
            border: 2px dashed black;
            border-radius: 10px;
        }

        .about-box h2 {
            font-size: 20px;
            color: black;
            margin-bottom: 10px;
            text-decoration: underline;
            text-align: center;
        }

        .about-box p {
            font-size: 16px;
            line-height: 1.6;
            color: black;
        }

        .about-img {
            display: block;
            max-width: 250px;
            height: auto;
            margin: 20px auto;
            border-radius: 8px;
            border: 2px solid black;
        }

        .about-list {
            margin-top: 20px;
            padding: 20px;
            border: 2px dashed black;
            border-radius: 10px;
        }

        .about-list h2 {
            font-size: 20px;
            color: black;
            margin-bottom: 10px;
            text-decoration: underline;
            text-align: center;
        }

        .about-list ul {
            list-style-type: disc;
            padding-left: 20px;
            font-size: 16px;
            color: black;
            line-height: 1.5;
        }

        #about iframe {
            border-radius: 8px;
            overflow: hidden;
        }

        .blog-box {
            flex: 1;
            overflow-y: auto;
            padding-right: 10px;
        }

        .blog-post {
            margin-bottom: 25px;
        }

        .blog-post h2 {
            font-size: 16px;
            margin-bottom: 5px;
        }

        .blog-post p {
            font-size: 14px;
            line-height: 1.4;
        }
        
        .blog-iframe {
            width: 100%;
            height: 80vh;
            border: none;
        }

        .social-buttons {
            display: grid;
            grid-template-columns: repeat(2, 200px);
            grid-template-rows: repeat(2, 80px);
            gap: 20px;
            justify-items: center;
            align-items: center;
            margin-top: 10px;
            justify-content: center;
        }

        .social-buttons a {
            display: block;
        }

        .social-buttons img {
            width: 200px;
            height: 80px;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .social-buttons img:hover {
            transform: scale(1.05);
            transition: transform 0.2s ease;
        }

        .social-label {
            grid-column: span 2;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 110px; /* this matches the image height */
        }

        .social-label img {
            width: 400px;
            height: 110px;
            object-fit: contain;
            pointer-events: none;
            user-select: none;
        }

        .social-button-box {
            display: flex;
            justify-content: center;
            align-items: center;
            border: 2px solid black;
            padding: 15px;
            margin-top: 30px;
            background-color: #bebebe;
            gap: 20px;
            flex-wrap: wrap;
            border-radius: 6px;
        }

        .social-button-box p {
            margin: 0;
            font-size: 16px;
            text-align: center;
        }

        .button-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            line-height: 1.4;
        }

        .button-info img {
            margin-top: 15px;
        }

        .my-site-button {
            image-rendering: pixelated;
            width: 88px;
            height: 31px;
        }

        .button-code textarea {
            width: 180px;
            height: 130px;
            font-family: monospace;
            background-color: #f4f4f4;
            color: black;
            border: 1px solid black;
            padding: 5px;
            resize: none;
            overflow: auto;
        }

        .work-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            padding: 10px 0;
        }

        .work-buttons img {
            width: 400px;
            height: 110px;
            object-fit: contain;
        }

        #work p {
            margin-bottom: 1rem;
        }

        #work a {
            display: inline-block;
            margin: 0.5rem;
        }

        .hover-button:hover {
            transform: scale(1.05);
            transition: transform 0.2s ease;
        }

        #work .hover-button {
            transition: transform 0.2s ease;
        }

        #work .hover-button:hover {
            transform: scale(1.05);
        }

        .site-footer{
            position: absolute;
            bottom: 10px;
            width: 100%;
            text-align: center;
            font-size: 10px;
            color: #888;
            font-family: serif;
            pointer-events: none; /* this is so it won't block clicks */
        }

        #sound-toggle {
            position: fixed;
            top: 10px;
            right: 10px;
            z-index: 10;
            cursor: pointer;
        }

        #sound-toggle img {
            width: 50px;
            height: 50px;
        }

        /* portfolio page stuff */

        body.portfolio-page {
            display: block;         /* to undo flex + centering from main body */
            min-height: auto;
            overflow: auto;         /* lets you scroll on this page */
            background-color: #f4f4f4; /* same background color */
            padding: 20px 15px 40px 15px;
            font-family: 'Timeless', 'Times New Roman', serif;
            color: #333;
        }

        .back-button {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 5;
            cursor: pointer;
            padding: 6px;
        }

        .back-button a img {
            display: block;
            height: auto;
            width: 200px;
        }

        h1.portfolio-title {
            text-align: center;
            margin-top: 30px;
            margin-bottom: 30px;
            font-size: 3rem;
            font-weight: 700;
            color: #222;
            user-select: none;
            font-family: 'Timeless', serif;
        }

        .portfolio-subtitle {
            text-align: center;
            font-size: 1.2em;
            color: #222;
            user-select: none;
            margin-top: -30px;
            margin-bottom: 30px;
            font-family: 'Timeless', serif;
        }

        #image-gallery {
            column-count: 4;
            column-gap: 1rem;
            max-width: 100vw;
            margin: 0 1rem 50px 1rem;
            padding: 0 auto;
        }

        @media (max-width: 1024px) {
            #image-gallery {
                column-count: 3;
            }
        }

        @media (max-width: 700px) {
            #image-gallery {
                column-count: 2;
            }
        }

        @media (max-width: 450px) {
            #image-gallery {
                column-count: 1;
            }
        }

        #image-gallery img.galleryimg {
            width: 100%;
            margin-bottom: 1rem;
            box-shadow: 0 8px 14px rgba(0,0,0,0.18);
            display: inline-block;
            cursor: pointer;
        }

        /* zoom modal bullpoop */
        #zoom-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0,0,0,0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            padding: 60px 20px 40px 20px;
            box-sizing: border-box;
            overflow: auto;
        }

        #zoom-modal.hidden {
            display: none;
        }

        .zoom-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            text-align: center;
            color: #fff;
            overflow: visible;
            display: inline-block;
            margin: 0 auto;
        }

        #zoomed-img {
            max-width: 100%;
            max-height: 70vh;
            margin-bottom: 20px;
            border: 2px solid white;
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
        }

        #zoom-info h2 {
            margin: 0;
            font-size: 1.8rem;
        }

        #zoom-info p {
            font-size: 1rem;
            margin-top: 0.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.4;
        }

        #zoom-close {
            position: absolute;
            top: -18px;
            right: -40px;
            font-size: 2.5rem;
            color: white;
            cursor: pointer;
            z-index: 10;
            background: transparent;
            border: none;
            padding: 4px 8px;
            line-height: 1;
            user-select: none;
            transition: color 0.2s ease;
        }

        #zoom-close:hover {
            color: #ffaaaa;
        }

        .fun-box {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            min-height: 0;
        }

        .fun-box h2 {
            text-align: center;
        }

        #fun-gallery {
            display: flex;
            flex-wrap: wrap;
            flex-shrink: 0;
            justify-content: center;
            gap: 10px;
            padding: 20px;
        }

        .fun-img {
            max-width: 100%;
            max-height: 100px;
            object-fit: contain;
            image-rendering: auto;
            padding: 4px;
        }

        .fun-tabs {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 10px;
            padding: 10px 0;
        }

        .fun-tabs a {
            display: inline-block;
            margin: 0.5rem;
        }

        .fun-tab-img {
            width: 400px;
            height: 110px;
            object-fit: contain;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .fun-tab-img:hover {
            transform: scale(1.05);
        }

        #fun-back-button a img {
            width: 100px;
            height: auto;
        }

        .fun-content-wrapper {
            display: flex;
            flex: 1;
            min-height: 0;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
        }

        .fun-panel-container {
            flex: 1;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .fun-back-button {
            position: sticky;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            padding: 10px 0;
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2;
        }

        .fun-back-button.show {
            display: flex;
        }

        .fun-back-button img {
            width: 100px;
            height: auto;
            max-width: 100%;
            object-fit: contain;
        }

        .fun-layout {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        #fun-tab-title {
            text-align: center;
            margin-bottom: 10px;
        }

        .fun-tab-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            width: 100%;
            overflow-y: auto;
            min-height: 0;
        }

        /* stuff for the click areas in blorbo part to work */

        #blorbo {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            min-height: 0;
            overflow: hidden;
        }

        .image-container {
            position: relative;
            width: 100%;
            max-width: 960px;
            margin: 0 auto;
        }

        .shrine-img {
            width: 100%;
            height: auto;
            object-fit: contain;
            display: block;
        }

        .click-area {
            position: absolute;
            display: block;
            z-index: 2;
        }

        .area-references {
            left: 4.2%;
            bottom: 5%;
            width: 21.5%;
            height: 31.5%;
        }

        .area-blehh {
            left: 28%;
            bottom: 5%;
            width: 21.5%;
            height: 31.5%;
        }

        .click-area:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }