*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:'Be Vietnam Pro', sans-serif;
}

a{

    color:#C75739;
}

#navbar{

    position:absolute;

    top:5px;
    left:0;

    width:100%;

    display:flex;

    justify-content:space-around;
    align-items:center;

    z-index:1000;
}

#navbar a{

    font-family:'Lost Vietnam';

    font-size:2rem;

    color:#C75739;

    text-decoration:none;
}

#navbar a:hover{

    text-decoration:underline;
}

#nav-middle{

    display:flex;

    justify-content:center;
    align-items:center;
}

#nav-logo{

    width:100px;

    height:auto;

    display:block;
}

#nav-home{

    display:none;
}

#navbar.scrolled{

    position:fixed;

    top:0;

    background:#C75739;

    padding:7px 0;
}

#navbar.scrolled a{

    color:white;
}

#navbar.scrolled #nav-logo{

    display:none;
}

#navbar.scrolled #nav-home{

    display:block;
}


.about-container{

    width:100%;
    padding-top:120px;
}

.about-section{

    max-width:1200px;

    margin:0 auto;

    min-height:auto;

    display:flex;

    align-items:center;
    justify-content:center;

    gap:50px;

    padding: 50px 30px;
}

.about-page{

    max-width:760px;

    margin:0 auto;

    padding:30px 30px;
}

.abtpage-content{

    font-size:calc(1.4rem * var(--font-scale));

    line-height:1.5;

    color:black;
}

.abtpage-content p{
    margin-bottom: 18px;
}

.abtpage-content a{
    color:#c75739;
}

.media{
    width:400px;
    height:400px;

    max-width:100%;

    flex:none;
}

.media img{

    width:100%;
    max-width:400px;

    display:block;
}

.content{

    flex:0 1 500px;

    font-size:calc(1.4rem * var(--font-scale));
    line-height:1.5;

    color:black;
}

.playwrite{

    font-family:'Playwrite VN';
}

.accent{

    color:#C75739;
}

.accent a{

    color:#C75739;
}

.highlight-green{

    background:#8c9f75;

    padding:2px 4px;
}

.highlight-red{

    background:#c75739;

    padding:2px 4px;
}

.highlight-yellow{

    background:#ffea14;

    padding:2px 4px;
}

.highlight-blue{

    background:#8da1ad;

    padding:2px 4px;
}


#logo-button{

    padding:10px 24px;

    background:white;

    border:1px solid #C75739;

    border-radius:999px;

    color:#C75739;

    font-family:'Be Vietnam Pro', sans-serif;

    cursor:pointer;

    display: block;

    margin: 25px auto 0;
}

.hidden{

    display:none;
}

/*accessibility*/
.toolbox{

    position:fixed;

    top:120px;
    left:30px;

    z-index:9999;

    display:flex;

    gap:12px;
}

.toolbox button{

    width:48px;
    height:48px;

    border:none;

    background:none;

    padding:0;

    cursor:pointer;
}

.toolbox img{

    width:100%;
    height:100%;

    display:block;
}

/*resize*/

:root{

    --font-scale:1;
}

body.font-big{ --font-scale:1.25; }
body.font-small{ --font-scale:.8; }

@media (max-width:1024px){

    .about-section{

        flex-direction:column;

        gap:30px;
    }

    .content{

        flex:none;

        width:100%;

        max-width:700px;
    }

    .media{

        width:350px;
        height:350px;
    }
}

@media (max-width:768px){

    #navbar a{

        font-size:1rem;
    }

    #nav-logo{

        width:55px;
    }

    .about-container{

        padding-top:80px;
    }

    .about-section,
    .about-page{

        padding:20px;
    }

    .media{

        width:250px;
        height:250px;
    }

    .content,
    .abtpage-content{

        font-size:calc(1.1rem * var(--font-scale));

        max-width:100%;
    }

    .toolbox{
        top:auto;
        bottom:20px;
        left:20px;
    }

}