@font-face {
    font-family:HMOSsans;
    src: url('/assets/HarmonyOS_Sans_SC_Medium.ttf');
}
*{
    margin: 0;
    padding: 0;
}
body{
    font-family:HMOSsans;
}
#wrapper{
    width: 100%;
    background-attachment: fixed;
    background-image: url('/assets/background.gif');
}
a{
    text-decoration: none;
    color: black;
}
nav{
    z-index: 9999;
    display: block;
    background-color: steelblue;
    top: 0;
    position: sticky;
    box-shadow: 0 0 5px 5px rgba(0,0,0,0.2);
}
#navbt{
    display: none;
        cursor: pointer;
    padding: 0.3em 0;
    color: white;
    font-size: 1.5em;
    border-bottom: solid white 0.15em;
    width: 100%;
    text-align: center;
    background-color: steelblue;
    
}
#sidebt{
    display: none;
    cursor: pointer;
    --r:0.7em;
    background-color: rgba(0,0,0,0.4);
    background-image: url("/assets/button.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    position: fixed;
    top: 0.3em;
    right: 0.3em;
    width: calc(var(--r)*2);
    height: calc(var(--r)*2);
    border-radius: var(--r);
    color: white;
}
#navli{
    height: auto;
    list-style: none;
    font-size: 1.5em;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
}
#navli>li{
    display: inline-block;
    margin: 0 0.2em;
}

a.navlink{
    display: block;
    padding: 0.3em 0.5em 0.15em;
    background-color: transparent;
    color: white;
    border-bottom: transparent solid 0.15em;
    transition: background-color,border-bottom 0.4s;
}
a.navlink:hover{
    color:aliceblue;
    border-bottom: aliceblue solid 0.15em;
    background-color: rgba(0,0,0,0.3);
}
footer{
    text-align: center;
    background-color: #333;
    color: white;
    font-size: 1.2em;
    padding: 1em;
    box-shadow: 0 0 5px 5px rgba(0,0,0,0.2);
}
#center{
    --mag: 3.5em;
    width: 80%;
    max-width: 1080px;
    height: auto;
    min-height: 75vh;
    margin:0 auto;
    padding: 0;
    background-color:rgba(0,0,0,0.3);
    /*box-shadow: 0 0 0.5em 0.5em rgba(0,0,0,0.3);*/
    display: flex;
}
#cleft{
    flex: 1;
    width: 100%;
}
#cright{
    width: 15em;
}
.lblock,#cright>aside{
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.2);
    overflow: hidden;
}
.lblock{
    margin: 2em 1em 2em var(--mag);
    width: calc(100%-1em-var(--mag));
    background-color:aliceblue;
    padding: 1.2em 1.5em;
}
article.lblock{
    border-left: solid 5px palevioletred;
}
#cright>aside{
    margin: 2em var(--mag) 2em 1em;
    width: calc(100%-1em-var(--mag));
    border-top: palevioletred 5px solid;
    background-color: aliceblue;
    position: sticky;
    top:4em;
    padding: 0.5em 0.8em;
}
article hr{
    margin: 0.4em 0 0.2em;
    border: solid dimgrey 1px;
}
.sidelist{
    list-style: none;
    padding: 0 4px;
}
.sidelist>dd{
    margin: 0 0.5em;
}
a.titlelink{
    color: black;
}
a.sidelink{
    color: dimgrey;
}
a.morelink{
    background-color: darkcyan;
    padding: 0.3em 0.4em;
    float: right;
    color: white;
    border-radius: 2px;
    display: block;
}
@media screen and (max-width: 800px){
    #navli>li{
        display: block;
        margin:0;
    }
    #center{
        display: block;
        width: 100%;
        background-color: rgba(0,0,0,0.1);
        padding: 0;
        margin: 0 auto;
        overflow: hidden;
    }
    #sidebt{
        display: block;
        transform: rotate(180deg);
        transition: transform 0.3s;
    }
    #sidebt.clicked{
        transform: rotate(0);
    }
    #navbt{
        display: block;
    }
    #navli{
        position: absolute;
        text-align: center;
        background-color: inherit;
        width:100%;
        transition: max-height 0.4s;
        max-height: 0;
        overflow: hidden;
    }
    #navli.show{
        max-height: 50vh;
    }
    #cleft{
        margin: 0;
    }
    #cleft>.lblock{
        margin: 1em auto;
        width: 81%;
    }
    #cright{
        position: fixed;
        top: 3.5em;
        width: 10em;
        right: -10em;
        transition: right 0.3s;
    }
    #cright.show{
        right: 0;
    }
    #cright>aside{
        position: static;
        margin:0;
    }
}
