body{
    --page-bgcolor: #f6f6f6;
    --header-bgcolor: #f9fbfb;
    --selection-bgcolor: rgba(139, 139, 139, 0.63);
    --visible-color: rgb(92, 92, 92);
    --header-buttoncolor: #393939;
    --header-buttoncolor-hover: #3f3f3f23;
    --header-shadow: #96969654 0rem -5rem 15rem;
    --header-title: #3f3f3f;
    --header-little: rgb(128, 128, 128);
    --scroller-grey: #c8c8c854;
    --contextmenu-bgcolor: #fefefe;
    --contextmenu-hover-bgcolor: #f2f2f2;
    --contextmenu: #000;
    --contextmenu-line: rgb(224, 224, 224);
    --contextmenu-shadow: #5151510f 1rem 1rem 8rem;
    --middle-line: #d1d1d18c;
    --cover: #00000050;
    --alert-bgcolor: rgb(255, 255, 255);
    --alert-button-hover-bgcolor: rgb(235, 235, 235);
    --alert-button: rgb(247, 247, 247);
    --alert-border: rgb(223, 223, 223);
    --alert: #000;
    --animation-box-shadow-0: #51515152 -2rem 0rem 11rem;
    --animation-box-shadow-1: #51515141 -2rem 0rem 11rem;
    --msgBox: #000;
    --msgBox-bgcolor: rgb(255 255 255);
    --msgBox-shadow: #e3e3e366 0rem 0rem 2rem;
}
body[theme=dark]{
    --page-bgcolor: rgb(1,1,1);
    --header-bgcolor: #292929;
    --selection-bgcolor: rgba(131, 131, 131, 0.795);
    --header-buttoncolor: #dddddd;
    --header-buttoncolor-hover: #7979799d;
    --header-shadow: #252525 0rem -5rem 14rem;
    --header-title: #fcfcfc;
    --header-little: rgb(131, 131, 131);
    --scroller-grey: #616161a1;
    --contextmenu-bgcolor: #2d2d2d;
    --contextmenu-hover-bgcolor: #3e3e3e;
    --contextmenu: rgb(255, 255, 255);
    --contextmenu-line: rgb(87, 87, 87);
    --contextmenu-shadow: #0202021a 1rem 1rem 9rem;
    --middle-line: #5c5c5c79;
    --cover: #00000050;
    --alert-bgcolor: rgb(61, 61, 61);
    --alert-button-hover-bgcolor: rgb(71, 71, 71);
    --alert-button: rgb(65, 65, 65);
    --alert-border: rgb(151, 151, 151);
    --alert: rgb(255, 255, 255);
    --animation-box-shadow-0: #51515152 -2rem 0rem 11rem;
    --animation-box-shadow-1: #51515141 -2rem 0rem 11rem;
    --msgBox: rgb(255, 255, 255);
    --msgBox-bgcolor: rgb(56 56 56);
    --msgBox-shadow: #0000002b 0rem 0rem 1rem;
}
body{
    --outline: 3rem solid rgb(250 187 0 / 60%);
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
*{
    margin: 0;
    padding: 0;
    border: none;
    word-break: break-word;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
    scrollbar-width: thin;
    font-family: PingFang SC,Microsoft Yahei,HanHei SC,Arial;
}
*{
    scroll-behavior: smooth;
}
a{
    color: inherit;
    text-decoration: none;
}
body[transitioncolor], body[transitioncolor] *{
    transition: color 0.5s cubic-bezier(0, 1, 0.25, 1), background-color 0.5s, border 0.5s, box-shadow 0.5s!important;
}
*::selection{
    background-color: var(--selection-bgcolor);
}
:focus-visible{
    outline: var(--outline);
    outline-offset: 1rem;
}
*[noselect]{
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
button{
    cursor: pointer;
}
html{
    font-size: var(--fontSize);
    width: 100%;
    min-height: 100%;
    height: 100%;
    max-height: 100%;
}
body{
    background-color: var(--page-bgcolor);
    overflow: hidden;
    width: 100%;
    min-height: 100%;
    height: 100%;
    max-height: 100%;
}
body[select=false] *{
    -webkit-user-select: none!important;
    -moz-user-select: none!important;
    user-select: none!important;
}
.commonCover{
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
}
#bodyHover{
    z-index: 0;
}
.coverWithColor{
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    background-color: var(--cover);
    transition: all 0.25s;
}
.coverWithColor[open]{
    visibility: visible;
    opacity: 1;
    animation: coverWithColorCome 0.3s;
}
@keyframes coverWithColorCome {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
.coverWithColor.pop{
    z-index: 900;
}
header{
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    height: 45rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 7rem;
    background-color: var(--header-bgcolor);
    box-shadow: var(--header-shadow);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
header[nobg]{
    background: none;
    box-shadow: none;
}
header .left{
    flex-grow: 1;
    flex-shrink: 1;
    display: flex;
    flex-direction: row;
    /* overflow: hidden; */
}
header .right{
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: right;
    margin-left: 10rem;
}
header button{
    width: 35rem;
    height: 35rem;
    padding: 7rem;
    border: none;
    background-color: rgba(0,0,0,0);
    border-radius: 99rem;
}
header button.loading{
    background-image: url(/src/img/loading.gif);
    background-size: 15rem;
    background-position: center center;
    background-repeat: no-repeat;
}
header .right button{
    margin-left: 0rem;
}
header button:hover, header button:focus-visible{
    background-color: var(--header-buttoncolor-hover);
}
header button i{
    color: var(--header-buttoncolor);
    font-size: 21rem;
}
header .nameDiv{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 0rem;
    overflow: hidden;
    max-width: calc(100% - 200rem);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
header .nameDiv *{
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
    word-break: break-all;
    flex-shrink: 1;
}
header .nameDiv .title{
    font-size: 15rem;
    color: var(--header-title);
}
header .nameDiv .little{
    font-size: 9rem;
    color: var(--header-little);
}
.contextMenu{
    position: fixed;
    z-index: 1600;
    width: 200rem;
    max-height: 50vh;
    padding: 4rem 0;
    background: var(--contextmenu-bgcolor);
    box-shadow: var(--contextmenu-shadow);
    border-radius: 4.4rem;
    overflow-y: auto;
}
.contextMenu button{
    display: block;
    width: 100%;
    border: none;
    outline: none;
    color: var(--contextmenu);
    background: none;
    padding: 6rem 12rem;
    font-size: 14rem;
    text-align: left;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
.contextMenu .line{
    display: block;
    height: 0;
    margin: 0 8rem 0 8rem;
    border: 1rem solid var(--contextmenu-line);
    border-width: 1rem 0 0 0;
    border-radius: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
.contextMenu button i{
    display: none;
    visibility: hidden;
}
.contextMenu[icon=true] button i{
    display: inline-block;
    visibility: visible;
    width: 18rem;
    height: 0;
    font-size: 16rem;
    line-height: 0;
    margin: 0 3rem 0rem -5rem;
    position: relative;
    opacity: 0.8;
    top: 3rem;
}
.contextMenu[die=true]{
    opacity: 0;
    visibility: hidden;
    animation: contextMenu-die 0.2s;
}
.contextMenu button:hover, .contextMenu button:focus-visible{
    background-color: var(--contextmenu-hover-bgcolor);
}
.alertBox{
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999999999999;
    width: min(80vw, 400rem);
    max-height: min(60vh, 500rem);
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: translate(-50%, -50%);
    background-color: var(--alert-bgcolor);
    color: var(--alert);
    text-align: center;
    border-radius: 4rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    animation: comeon 0.15s;
    overflow: hidden;
}
.alertBox[die=true], .coverWithColor[die=true]{
    animation: comeout 0.1s;
    visibility: hidden;
}
.alertBox .title{
    font-size: 16rem;
    font-weight: bold;
    margin: 12rem 20rem 0 20rem;
}
.alertBox .msg{
    font-size: 14rem;
    overflow: overlay;
    padding: 9rem 20rem 11rem 20rem;
}
.alertBox .buttons{
    min-height: 35rem;
    display: flex;
    margin-top: 10rem;
    justify-content: space-between;
    margin: 0 -0.4rem;
    background-color: var(--alert-border);
}
.alertBox .buttons button{
    margin: .6rem 0.4rem 0 0.3rem;
    padding: 8rem;outline: none;
    width: 50%;
    flex-grow: 1;
    border-radius: 0;
    font-size: 14rem;
    color: var(--alert);
    background-color: var(--alert-bgcolor);
}
.alertBox .buttons button:hover,.alertBox .buttons button:focus-visible{
    background-color: var(--alert-button-hover-bgcolor);
}
.msgBox{
    position: fixed;
    z-index: 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999;
    top: 45rem;
    left: 50%;
    transform: translate(-50%, 0);
    width: 70%;
    max-width: 400rem;
    max-height: 70%;
    padding: 10rem 17rem;
    background-color: var(--msgBox-bgcolor);
    color: var(--msgBox);
    line-height: 1.6;
    font-size: 14rem;
    visibility: hidden;
    border-radius: 4rem;
    box-shadow: var(--msgBox-shadow);
    pointer-events: none;
    animation: msgBox 5s;
    opacity: .97;
    overflow: overlay;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
.material-icons{
    font-family: 'Material Icons';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    font-style: normal;
}
.material-icons svg{
    width: 16rem;
    height: 22rem;
    fill: var(--header-buttoncolor);
    transition: color 0.5s;
}
@font-face{
    font-weight: 400;
    font-family: 'Material Icons';
    font-style: normal;
    src: url(../fonts/MaterialIcons-Regular.woff2) format('woff2');
}
::-webkit-scrollbar{
    width: 7rem;
    height: 7rem; 
}
::-webkit-scrollbar:hover{
    width: 7rem;
    height: 7rem; 
}
::-webkit-scrollbar-thumb{
    border-radius: 10rem;
    background: var(--scroller-grey);
}
*:not(:hover):not(:focus):not(:active)::-webkit-scrollbar-thumb{
    background-color: #00000000;
    transition: all 1s;
}
body *[scroll=hidden]::-webkit-scrollbar-thumb{
    background: none;
}
::-webkit-scrollbar-track{
    border-radius: 10rem;
    width: 0;
    opacity: 0;
}
.skeleton{
    color: rgba(0,0,0,0)!important;
    background-image: linear-gradient(270deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1))!important;
    background-size: 400% 100%!important;
    animation: skeleton-loading 6s ease-in-out infinite!important;
    transform: scaleY(0.76)!important;
    user-select: none!important;
    cursor: progress!important;
}
body[theme=dark] .skeleton{
    filter: invert(1);
}
.skeleton.sentence{
    margin-bottom: 4rem;
}
.skeleton.noscale{
    transform: none!important;
}
@keyframes skeleton-loading{
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
@keyframes contextMenu{
    0%{
        opacity: 0;
        width: 0;
        max-height: 0vh;
        overflow: hidden;
    }
    46%{
        opacity: 1;
    }
    99%{
        overflow: hidden;
    }
    100%{
        opacity: 1;
        width: 200rem;
        max-height: 40vh;
        overflow: overlay;
    }
}

@keyframes contextMenu-die{
    0%{
        opacity: 1;
        visibility: visible;
    }
    99%{
        visibility: visible;
    }
    100%{
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes comeon {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

@keyframes comeout {
    0%{
        opacity: 1;
        visibility: visible;
    }
    99%{
        visibility: visible;
    }
    100%{
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes msgBox {
    0%{
        top: calc(-100% + 50rem);
        visibility: visible;
    }
    10%{
        top: 45rem;
    }
    90%{
        top: 45rem;
    }
    100%{
        top: calc(-100% + 50rem);
        visibility: hidden;
    }
}