
/* =====================================================
 * default style  
 * =====================================================*/
@font-face {
    font-family: ModernDOS;
    src: url(../assets/fonts/ModernDOS8x14.ttf);
}

@font-face {
    font-family: Dico;
    src: url(../assets/fonts/Dico.ttf);
}

@font-face {
    font-family: PixelOperator;
    src: url(../assets/fonts/PixelOperator.ttf);
}

html {
    cursor: url("../assets/cursors/hanatopia_pointer.cur"), default;
    overflow-x: hidden;
}

:is(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    #topuhead,
    .burger-button,
    .about-me,
    .github,
    .education,
    .experience,
    .skills,
    .changelog,
    .sitebuild,
    .guestbook, 
    [role="button"],
    [onclick],
    .clickable
) {
    cursor: url("../assets/cursors/hanatopia_link.cur"), pointer;
}

:root{
    --background-img: url("../assets/media/angel/angelsky1.webp");
    background-image: var(--background-img);
    --text-color: black;
    --primary-color: #FFCDDB;
    --accent-color: #ff80A4;
    --header-color: #ff2674;
    --subheader-color: black;
}

/* adds the dimmed to the root background to make elements pop*/
body {
    min-height: 100px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0; /* covers whole viewport */
    background: rgba(0, 0, 0, 0.15);
    z-index: 0; /* makes sure it lays behind content */
    pointer-events: none; /* ignores all mouse input */

}

/* might need to comment out bc conflicting with modal BUT
need to prevent overlay bleeds to any elements with no position set 
*/
body > * {
    position: relative;
    z-index: 1;
}
/* =====================================================
 * glorp/dark mode style  
 * =====================================================*/
html.glorp-mode{
    cursor: url("../assets/cursors/glorptopia_pointer.cur"), default;
}

html.glorp-mode :is(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    #topuhead,
    .burger-button,
    .about-me,
    .github,
    .education,
    .experience,
    .skills,
    .changelog,
    .sitebuild,
    .guestbook, 
    [role="button"],
    [onclick],
    .clickable
) {
    cursor: url("../assets/cursors/glorptopia_link.cur"), pointer;
}

.glorp-mode{
    --background-img: url("../assets/media/glorp/glorpsky.webp");
    background-image: var(--background-img);
    --text-color: white;
    --primary-color: #007899;
    --accent-color: #BFFF3C;
    --header-color: #BFFF3C;
    --subheader-color: white;
}

/* =====================================================
 * changelog style
 * =====================================================*/
html.changelog {
    background: black;
    --text-color: white;
    --subheader-color: white;
}

/* =====================================================
 * grid layout (element positioning) 
 * =====================================================*/
/* to help with positioning 
 * {
outline: 1px solid red;
} 
 */



.container{
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    grid-template-rows: auto;
    align-items: start;

    width: 100%;
    width: fit-content;
    margin: 0 auto;
}

/* --- sidebar (left) --- */
.leftside{
    grid-area: 1 / 1 / 1 / 1;
    z-index: 1;

    margin-top: 45px;
    padding: 15px;
    box-sizing: border-box;
}

.nav{
    width: 100%;
    margin-bottom: 30px;
}

.guestbook-bubble{
    width: 100%;
    transform: translate(80px);
    width: 150px;
}

/* --- center --- */
.center{
    grid-area: 1 / 2 / 1 / 2;
    z-index: 1;
    position: relative;
}

#frame {
    width: 100%;
    display: block;
}

/* --- icon grid --- */
.icon-container{
    display: grid;
    grid-template-columns: 120px 120px 120px 120px;
    grid-template-rows: 120px 120px;
    gap: 32px;
    row-gap: 50px;
    align-items: center;
    justify-items: center;

    position: absolute;
    top: 230px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- dialogue --- */
.dialogue-box{
    position: relative;
    display: inline-block;
    transform: translateY(-130px);
    margin-left: 170px;
}

#dialoguebg{
    display: block;
}

#minihana{
    position: absolute;
    left: -155px;
    bottom: 0;
}

.dialogue-text{
    position: fixed;
    transform: translateY(-70px);
    margin-left: 190px;
}

/* --- sidebar (right) --- */
.rightside{
    grid-area: 1 / 3 / 1 / 3;
    z-index: 1;
    margin-top: 35px;
    padding: 30px;
    box-sizing: border-box;
}

/* =====================================================
 * general styling format
 * =====================================================*/
h1{
    font-family: Dico;
    font-weight: normal;
    font-size: 30px;
    color: var(--header-color);
}

h2{
    font-family: PixelOperator;
    font-weight: bold;
    font-size: 25px;
    color:var(--subheader-color);
}

p{
    font-family: PixelOperator;
    font-weight: normal;
    font-size: 20px;
    color: var(--text-color);
}

pre{
    font-family: PixelOperator;
    font-weight: bold;
    font-size: 20px;
    color: var(--text-color);
}
/* =====================================================
 * leftside styling format
 * =====================================================*/
 /* --- nav bar --- */
    .nav h1{
        text-align: center;
    }
    .nav{
        background-color: var(--primary-color);
        border: 5px solid var(--accent-color);
        box-shadow: 3px 3px 20px black;
        width: 250px;
        height: 480px;
        text-align: left;
    }
    .nav img{
        image-rendering: pixelated;
        width: 30px;
        padding-right: 15px;
        padding-left: 0px;
    }
    .nav a{
        font-family: PixelOperator;
        font-size: 30px;
        color: var(--text-color);
        line-height: 1.35;
    }
    .nav ul{
        list-style-type: none;
    }

/* --- guest bubble --- */
    #speechbubble{
        image-rendering: crisp-edges;
        width: 200px;
        filter: drop-shadow(1px 1px 3px black);
    }

/* --- theme switch toggle --- */
    #topuhead{
        image-rendering: crisp-edges;
        width: 120px;
        filter: drop-shadow(1px 1px 3px black);
    }

    .theme-switch h1{
        text-align: center;
        transform: translateY(-100px);
        margin-left: 150px;
    }

    .theme-switch
    {
        width: 100%;
        height: 120px;
        animation: shuffle 1s infinite;
        display: flex;
        flex-direction: column;
        align-items: left;
    }

    @keyframes shuffle{
        0%, 100%{
            transform: rotateZ(-5deg);
        }
        
        50%{
            transform: rotateZ(5deg);
    }
    }

/* =====================================================
 * center styling format
 * =====================================================*/
 /* --- center for pages with no data in right column --- */
.no-rightside-center {
    margin-left: 50px;
}
/* --- icons assets --- */ 
    .icon-size{
        image-rendering: pixelated;
        width: 90px;
    }

    .about-me,
    .github,
    .education,
    .experience,
    .skills,
    .changelog,
    .sitebuild,
    .guestbook {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
    }
    .about-me h2{
        transform: translateY(-20px);
    }
    #about-me-img{
        width: 120px;
        transform: translateY(-10px);
    }
    .github h2{
        transform: translateX(10px);
    }
    #github-img{
        width: 80px;
        transform: translateX(10px);
    }
    .education h2{
        transform: translateY(-5px);
    }
    .experience h2{
        transform: translateY(-5px);
    }

/* --- dialogue assets --- */ 
    .dialogue-box{
        z-index: 2;
    }
    #minihana{
        border: 5px solid var(--accent-color);
    }

/* --- dialogue text --- */
    .dialogue-text{
        position: absolute;
        margin-left: 190px;
        margin-top: -10px;
        z-index: 3;
        width: 600px;
    }
    
    #mobile-warning {
        display: none;
    }

    #welcome{
        font-size: 25px;
        float: left;
    }
    #scramble{
        font-size: 25px;
        float: left;
        transform: translateY(-150%);
    }
    #warning{
        float: right;
        margin-right: 10px;
    }

/* dialogue repositions when different modals are open */
    body.abt-modal-open .dialogue {
        position: absolute;
        transform: translateY(10%);
    }

    body.edu-modal-open .dialogue {
        position: absolute;
        transform: translateY(20%);
    }

    body.guestbook-modal-open .dialogue {
        position: absolute;
        transform: translateY(10%);
    }

/* =====================================================
 * rightside styling format
 * =====================================================*/
#hana{
    width: 288px;
    border: 5px solid var(--accent-color);
    box-shadow: 3px 3px 20px black;
    margin-bottom: 20px;
}

.info-box{
    background-color: var(--primary-color);
    border: 5px solid var(--accent-color);
    box-shadow: 3px 3px 20px black;
}
.info-box h1{
    padding-left: 10px;
    transform: translateY(-10px);
}
.info-box p{
    padding-left: 10px;
    transform: translateY(-30px);
}

#bio{
    width: 288px;
    height: 95px;
    margin-bottom: 20px;
}

#contact{
    width: 288px;
    height: 70px;
    margin-bottom: 20px;
}

#credits{
    width: 288px;
    height: 135px;
}

/* =====================================================
 * burger menu
 * =====================================================*/
.nav-bar, .burger-button {
    display: none;
}

.nav-wrapper {
    width: 100%;
    position: sticky;   
    top: 0;
    z-index: 300;
}

/* --- navigation bar --- */
.nav-bar {
    background: var(--primary-color);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    filter: drop-shadow(1px 1px 3px black);
}

#hanatopia-logo{
    font-family: Dico;
    font-size: 20px;
    color: var(--accent-color)
}

.burger-button {
    position: relative;
    margin-left: auto;
    height: 40px;
    width: 40px;
}

/* --- ham lines --- */
    .burger-button span {
        height: 5px;
        width: 90%;
        background-color: var(--header-color);
        border-radius: 25px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: .3s ease;
    }
    .burger-button span:nth-child(1) {
        top: 25%;
    }
    .burger-button span:nth-child(3) {
        top: 75%;
    }

/* --- close ham lines --- */
    .burger-button.active span:nth-child(1) {
        top: 50%;
        transform: translate(-50%, 50%) rotate(45deg);
    }

    .burger-button.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-button.active span:nth-child(3) {
        top: 50%;
        transform: translate(-50%, 50%) rotate(-45deg);
    }

/* --- off-screen menu --- */
    .burger-menu {
        background-color: var(--accent-color);
        height: 45vh;
        width: 200px;
        max-width: 250px;
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 200;
        pointer-events: none;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 3rem;
        transition: .5s ease;

        transform: translateX(100%);
        visibility: hidden;
    }

    .burger-menu.active {
        transform: translateX(0%);
        visibility: visible;
        right: 0px;
        pointer-events: all;
    }

    .burger-menu a:hover {
        background-color: var(--header-color);
    }

    .burger-menu img{
        image-rendering: pixelated;
        width: 20px;
        padding-right: 5px;
    }

    .burger-menu ul {
        list-style: none;
    }
    .burger-menu a {
        text-decoration: none;
        text-align: right;
        display: block;
        padding: 10px;
        font-family: PixelOperator;
        font-size: 20px;
        line-height: 0.5;
        color: black;
    }

/* =====================================================
 * modal formatting
 * =====================================================*/
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform:translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;

    border: 5px solid var(--accent-color);
    z-index: 9999;
    background-image: var(--background-img);
    width: 800px;
}

.modal.active {
    transform:translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid var(--accent-color);
    background-color: var(--accent-color);
}

.modal-title {
    font-family: Dico;
    font-size: 20px;
    color: var(--primary-color);
}

.close-butt {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.modal-body {
    padding: 10px 15px;
}

#overlay {
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: 200ms ease-in-out;
    pointer-events: none;
}
#overlay.active {
    pointer-events: all;
    opacity: 1;
}

/* =====================================================
 * modal windows
 * =====================================================*/
/* --- about me --- */
    .abt-brief {
        background-color: var(--primary-color);
        border: 5px solid var(--accent-color);

        margin: 20px;
        margin-bottom: 30px;
    }

    .abt-brief p {
        padding: 10px;
        text-align: center;
    }

    #door {
        margin-top: 20px;
        image-rendering: pixelated;
        width: 200px;
    }

    .hanasdoor a {
        font-family: PixelOperator;
        font-weight: bold;
        font-size: 25px;
        color:var(--subheader-color);
    }

    .hanasdoor {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 50px;
    }

/* --- education --- */
    #edu-modal {
        max-height: 500px;
        overflow-y: auto;
    }
    .edu-headers {
        font-family: Dico;
        font-size: 35px;
        color: var(--accent-color);
        -webkit-text-stroke: 10px var(--primary-color);
        paint-order: stroke fill;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .edu-box {
        background-color: var(--primary-color);
        border: 5px solid var(--accent-color);
        padding: 0px 20px 0px 20px;
    }

    .edu-achievements {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .school {
        font-family: Dico;
        color: var(--header-color);
        font-size: 20px;
        margin-bottom: 0;

    }

    .certif {
        margin-top: 10px;
    }

    .school-date {
        font-family: ModernDOS;
        font-weight: lighter;
        font-size: 20px;

        text-align: right;
    }

/* --- changelog --- */
    #changelog-modal .modal-body {
        padding: 0;
    }

    #embed-log {
        height: 400px;
    }
/* =====================================================
 * other pages
 * =====================================================*/
/* --- skills page --- */
.skills-header {
    font-family: ModernDOS; 
    color:var(--accent-color);
    font-size: 35px;
    text-align: center;
    transform: translateY(-40%);
}

.skills-subheader {
    font-family: Dico;
    color:var(--text-color);
    font-size: 25px;
    text-align: center;
}

.skills-box {
    background-color: var(--primary-color);
    border: 5px solid var(--accent-color);
    margin-top: 40px;
    margin-bottom: 30px;
    width: 1000px;
    height: 50px;
}

.tools-box {
    font-family: Dico;
    font-size: 25px;
    background-color: var(--accent-color);
    border: 5px solid var(--header-color);
    padding: 5px 50px 0px 50px;
    filter: drop-shadow(1px 1px 3px black);
}

.tools-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* --- sitebuild page --- */
#build-p p{
    padding: 5px 20px 5px 20px;
    text-align: left;
}

/* =====================================================
 * media queries
 * =====================================================*/
/* --- MOBILE VERSION --- */
@media only screen and (max-width: 600px) and (orientation: portrait) {

    /* --- NAVIGATION --- */
    .nav-wrapper {
        display: block;
    }

    .nav-bar {
        display: flex;
    }

    .burger-button {
        display: block;
    }

/* -----------------------------------------------------
 * SITEBUILD PAGE
 * -----------------------------------------------------*/
#build-p p{
    padding: 5px 10px 5px 10px;
    font-size: 14px;
}

/* -----------------------------------------------------
 * SKILLS PAGE
 * -----------------------------------------------------*/
    .skills-header {
        font-size: 25px;
        text-align: center;
    }

    .skills-subheader {
        font-size: 20px;
        margin-top: none;
        margin-bottom: 20px;
    }

    .skills-box {
        width: 80%;
        height: 40px;
        margin-top: 20px;
        margin-bottom: 30px;
        margin-left: 20px;
    }

    .tools-box {
        font-size: 15px;
        padding: 5px 20px 0px 20px;
    }

    .tools-container {
        width: 80%;
        margin-left: 20px;
        display: flex;
        flex-wrap: wrap;
    }
/* -----------------------------------------------------
 * EXPERIENCE PAGE
 * -----------------------------------------------------*/
    .no-rightside-center {
        margin-left: 40px;
    }

    .edu-headers {
        font-size: 35px;
        margin-right: 50px;
        text-align: center;
    }

    .edu-box {
        width: 80%;
        padding: 0px 10px 0px 10px;
    }

    .school {
        font-size: 15px;
    }

    .school-date {
        font-size: 20px;
    }

    .certif {
    font-size: 14px;
    }

/* -----------------------------------------------------
 * HOME PAGE
 * -----------------------------------------------------*/
/* ---- MODALS  ---- */
    .modal {
        position: fixed;
        top: -50%;
        left: 3.75%;
        transform: none;
        scale: 0;
        height: 0;
        overflow-y: auto;
        width: 90%;
    }

    .modal.active {
        scale: 1;
        height: auto;
        max-height: 70vh;
        overflow-y: auto;
        transform: none;
    }

    /* hiding the dialogue (sorry mobile viewers) */
    body.abt-modal-open .dialogue,
    body.edu-modal-open .dialogue,
    body.changelog-modal-open .dialogue,
    body.guestbook-modal-open .dialogue {
        display: none;
    }

    /* hides the bottom assets to make view cleaner 
    (and because it was causing overlapping issues) */
    body.abt-modal-open .rightside,
    body.edu-modal-open .rightside,
    body.changelog-modal-open .rightside,
    body.guestbook-modal-open .rightside {
        display: none;
    }

    /* resizes the container so that the whole modal fits */
    body.abt-modal-open .center,
    body.edu-modal-open .center,
    body.changelog-modal-open .center,
    body.guestbook-modal-open .center {
        height: 800px;
    }

    /* -----------------------------------------------------
    * About Me 
    * -----------------------------------------------------*/
    .abt-brief {
        margin: 10px;
        margin-bottom: 20px;
    }

    .abt-brief p {
        padding: 5px;
        text-align: center;
        font-size: 14px;
    }

    #door {
        margin-left: 0px;
        margin-top: 10px;
        image-rendering: pixelated;
        width: 200px;
    }

    .hanasdoor a {
        font-size: 15px;
        color:var(--subheader-color);
        text-align: center;
        margin: 0;
    }

    .hanasdoor {
        padding-bottom: 10px;
    }

    /* -----------------------------------------------------
    * Education
    * -----------------------------------------------------*/
    #edu-modal .modal-body {
        margin-left: 30px;
    }
    /* -----------------------------------------------------
    * Changelog
    * -----------------------------------------------------*/
    pre {
        white-space: pre-wrap;
        word-break: break-word;
        font-size: 14px;
    }

    /* --- grid: single column, full viewport width --- */
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* ---- LEFTSIDE (theme switch + guestbook bubble) ---- */
    .leftside {
        width: 100%;
        margin-top: 20px;
        margin-bottom: 50px;
        padding: 0 16px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav {
        display: none;
    }

    .theme-switch {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: row;
        margin-right: 100px;
    }

    .theme-switch h1 {
        transform: translateY(200%);
        margin-left: 20px;
        font-size: 18px;
    }

    #topuhead {
        width: 50px;
        transform: translateY(100%);
    }

    /* guestbook bubble: keep it right-aligned */
    .guestbook-bubble {
        transform: translateX(190%);
        width: 110px;
    }

    #speechbubble {
        width: 110px;
    }

    /* ---- CENTER ---- */
    .center {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 0px;
        box-sizing: border-box;

        position: relative;
    }

    .frame-wrapper {
        position: relative;
        width: 100%;
        height: 400px;
        overflow: hidden;
    }

    #frame {
        width: 100%;
        height: 100%;
        /* should prevent image warping when fitting into wrapper size*/
        object-fit: contain;
        display: block;
    }

    /* icon grid: flow inside the frame, no absolute positioning */
    .icon-container {
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: auto;
        align-items: start;
        align-self: start;
        margin-top: -110px;
        gap: 0;
    }

    .icon-size {
        width: 45px;
    }

    .about-me, .github, .education, .experience,
    .skills, .changelog, .sitebuild, .guestbook {
        height: 100%;
        justify-content: flex-start;
    }
    #about-me-img {
        width: 45px;
        transform: none;
    }

    #github-img {
        width: 45px;
        transform: none;
    }

    .icon-container h2 {
        font-size: 15px;
        text-align: center;
    }

    .about-me h2 {
        transform: translateY(-40%);
    }

    .github h2,
    .education h2,
    .experience h2 {
        transform: none;
    }

    /* ---- DIALOGUE BOX ---- */
    .dialogue {
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        z-index: 10000;
    }

    .dialogue-box {
        width: 80%;
        margin-left: 40px;
        transform: none;
        display: flex;
        align-items: center;
    }

    #dialoguebg {
        width: 100%;
        padding-left: 35px;
    }

    #minihana {
        left: -35px;
        bottom: 0;
        width: 60px;
    }

    .dialogue-text {
        position: absolute;
        margin-left: 90px;
        margin-top: 100px;
        width: 70%;
    }

    #mobile-warning {
        font-size: 12px;
        float: none;
        display: flex;
    }

    #welcome {
        display: none;
    }

    #scramble {
        display: none;
    }

    #warning {
        display: none;
    }

    /* ---- RIGHTSIDE ---- */
    .rightside {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
        margin-top: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #hana {
        width: 60%;
        max-width: 220px;
        float: none;
        display: block;
    }

    #bio,
    #contact,
    #credits {
        width: 100%;
        max-width: 380px;
        height: auto;
        margin-bottom: 16px;
        box-sizing: border-box;
    }

    .info-box h1 {
        transform: none;
        padding: 8px 10px 0;
    }

    .info-box p {
        transform: none;
        padding: 0 10px 8px;
    }
}

@media (min-width: 601px) {
    .nav-wrapper {
        display: none;
    }
}

/* --- TABLET VERSION (portrait) --- */
@media only screen and (min-width: 600px) and (orientation: portrait) {
        /* --- NAVIGATION --- */
    .nav-wrapper {
        display: block;
    }

    .nav-bar {
        display: flex;
    }

    .burger-button {
        display: block;
    }

/* -----------------------------------------------------
 * SITEBUILD PAGE
 * -----------------------------------------------------*/
#build-p p{
    padding: 5px 10px 5px 10px;
    font-size: 20px;
}

/* -----------------------------------------------------
 * SKILLS PAGE
 * -----------------------------------------------------*/
    .skills-header {
        font-size: 25px;
        text-align: center;
    }

    .skills-subheader {
        font-size: 20px;
        margin-top: none;
        margin-bottom: 20px;
        margin-right: 50px;
    }

    .skills-box {
        width: 100%;
        height: 40px;
        margin-top: 20px;
        margin-bottom: 30px;
        margin-left: -30px;
    }

    .tools-box {
        font-size: 25px;
        padding: 5px 20px 0px 20px;
    }

    .tools-container {
        width: 90%;
        margin-left: 0px;
        display: flex;
        flex-wrap: wrap;
    }
/* -----------------------------------------------------
 * EXPERIENCE PAGE
 * -----------------------------------------------------*/
    .no-rightside-center {
        margin-left: 50px;
    }

    .edu-headers {
        font-size: 35px;
        margin-right: 50px;
        text-align: center;
    }

    .edu-box {
        width: 90%;
        padding: 0px 10px 0px 10px;
    }

    .school {
        font-size: 20px;
    }

    .school-date {
        font-size: 20px;
    }

    .certif {
    font-size: 20px;
    }

/* -----------------------------------------------------
 * HOME PAGE
 * -----------------------------------------------------*/
/* ---- MODALS  ---- */
    .modal {
        position: fixed;
        top: -50%;
        left: -0.65%;
        transform: none;
        scale: 0;
        height: 0;
        overflow-y: auto;
        width: 100%;
    }

    .modal.active {
        scale: 1;
        height: auto;
        max-height: 100vh;
        overflow-y: auto;
        transform: none;
    }

    /* hiding the dialogue (sorry mobile viewers) */
    body.abt-modal-open .dialogue,
    body.edu-modal-open .dialogue,
    body.changelog-modal-open .dialogue,
    body.guestbook-modal-open .dialogue {
        display: none;
    }

    /* hides the bottom assets to make view cleaner 
    (and because it was causing overlapping issues) */
    body.abt-modal-open .rightside,
    body.edu-modal-open .rightside,
    body.changelog-modal-open .rightside,
    body.guestbook-modal-open .rightside {
        display: none;
    }

    /* resizes the container so that the whole modal fits */
    body.abt-modal-open .center,
    body.edu-modal-open .center,
    body.changelog-modal-open .center,
    body.guestbook-modal-open .center {
        height: 800px;
    }

    /* -----------------------------------------------------
    * About Me 
    * -----------------------------------------------------*/
    .abt-brief {
        margin: 10px;
        margin-bottom: 20px;
    }

    .abt-brief p {
        padding: 5px;
        text-align: center;
        font-size: 20px;
    }

    #door {
        margin-left: 0px;
        margin-top: 10px;
        image-rendering: pixelated;
        width: 200px;
    }

    .hanasdoor a {
        font-size: 20px;
        color:var(--subheader-color);
        text-align: center;
        margin: 0;
    }

    .hanasdoor {
        padding-bottom: 10px;
    }

    /* -----------------------------------------------------
    * Education
    * -----------------------------------------------------*/
    #edu-modal .modal-body {
        margin-left: 30px;
    }
    /* -----------------------------------------------------
    * Changelog
    * -----------------------------------------------------*/
    pre {
        white-space: pre-wrap;
        word-break: break-word;
        font-size: 14px;
    }

    /* --- grid: single column, full viewport width --- */
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* ---- LEFTSIDE (theme switch + guestbook bubble) ---- */
    .leftside {
        width: 100%;
        margin-top: 20px;
        margin-bottom: 100px;
        padding: 0 16px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav {
        display: none;
    }

    .theme-switch {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: row;
        margin-right: 300px;
    }

    .theme-switch h1 {
        transform: translateY(200%);
        margin-left: 20px;
        font-size: 18px;
    }

    #topuhead {
        width: 90px;
        transform: translateY(100%);
    }

    /* guestbook bubble: keep it right-aligned */
    .guestbook-bubble {
        transform: translateX(170%);
        width: 210px;
    }

    #speechbubble {
        width: 210px;
    }

    /* ---- CENTER ---- */
    .center {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 0px;
        box-sizing: border-box;

        position: relative;
    }

    .frame-wrapper {
        position: relative;
        width: 100%;
        height: 600px;
        overflow: hidden;
    }

    #frame {
        width: 100%;
        height: 100%;
        /* should prevent image warping when fitting into wrapper size*/
        object-fit: contain;
        display: block;
    }

    /* icon grid: flow inside the frame, no absolute positioning */
    .icon-container {
        width: 90%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: auto;
        align-items: start;
        align-self: start;
        margin-top: -50px;
        gap: 15px;
    }

    .icon-size {
        width: 70px;
    }

    .about-me, .github, .education, .experience,
    .skills, .changelog, .sitebuild, .guestbook {
        height: 100%;
        justify-content: flex-start;
    }
    #about-me-img {
        width: 80px;
        transform: none;
    }

    #github-img {
        width: 70px;
        transform: none;
    }

    .icon-container h2 {
        font-size: 25px;
        text-align: center;
    }

    .about-me h2 {
        transform: translateY(-40%);
    }

    .github h2,
    .education h2,
    .experience h2 {
        transform: none;
    }

    /* ---- DIALOGUE BOX ---- */
    .dialogue {
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-45%);
        width: 90%;
        z-index: 10000;
    }

    .dialogue-box {
        width: 80%;
        margin-left: 60px;
        transform: none;
        display: flex;
        align-items: center;
    }

    #dialoguebg {
        width: 100%;
        padding-left: 35px;
    }

    #minihana {
        left: -85px;
        bottom: 0;
        width: 110px;
    }

    .dialogue-text {
        position: absolute;
        margin-left: 120px;
        margin-top: 110px;
        width: 80%;
    }

    #welcome {
        font-size: 25px;
        float: none;
        display: flex;
    }

    #scramble {
        font-size: 25px;
        float: none;
        margin-top: 45px;
    }

    #warning {
        font-size: 15px;
        margin-right: 50px;
        transform: translateY(-500%);
    }

    /* ---- RIGHTSIDE ---- */
    .rightside {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #hana {
        width: 100%;
        max-width: 300px;
        float: none;
        display: block;
    }

    #bio,
    #contact,
    #credits {
        width: 100%;
        max-width: 500px;
        margin-bottom: 16px;
    }

}

/* --- DESKTOP VERSION (landscape) --- */
@media only screen and (min-width: 992px) and (orientation: landscape) {

    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .container {
        transform: scale(1.2);
        transform-origin: top center;
        margin: 200px auto;
    }

    #sitebuild-page .container {
        grid-template-columns: 280px minmax(0, 1000px) 280px;
        transform: scale(1.2);
        transform-origin: top center;
        margin: 200px auto 400px;
        width: auto;
    }

    .edu-box {
        width: 100%;
        box-sizing: border-box;
    }
}
