body {
    background: url(/static/img/bg.png) top left repeat #ebeef2;
    font-family: Helvetica, Tahoma, Arial, STXihei, 华文细黑, microsoft yahei, 微软雅黑, SimSun, 宋体, Heiti, 黑体, sans-serif;
    font-size: 15px
}

textarea {
    font-family: Helvetica,Tahoma,Arial,STXihei,华文细黑,microsoft yahei,微软雅黑,SimSun,宋体,Heiti,黑体,sans-serif;
    font-size: 15px;
    line-height: 1.15;
    margin: 0
}

.stack {
    position: fixed;
    left: 1em;
    top: 1em;
    right: 1em;
    bottom: 1.8em
}

.layer {
    position: absolute;
    left: -3px;
    right: -3px;
    top: -3px;
    bottom: 1px;
    background-color: #fff;
    border-radius: 3.456789px;
    border: 1px solid #ddd;
    box-shadow: 0 0 5px 0 #e4e4e4
}

.flag {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1em;
    height: .8em;
    text-align: center;
    color: #aaa;
    font-size: 14px
}

a:link,
a:visited,
a:active {
    color: #aaa;
    text-decoration: none;
    word-break: break-all;
    -webkit-tap-highlight-color: transparent
}

*:focus {
    outline: none
}

.content {
    width: 100%;
    height: 100%;
    min-height: 100%;
    resize: none;
    overflow-y: auto;
    border-radius: 3px;
    box-sizing: border-box;
    border: none;
    padding: .7em .8em;
    color: #333;
    font-size: 1.1em
}

.print {
    display: none
}

img {
    vertical-align: middle;
    max-width: 100%;
}

input[type="text"] {
    appearance: none;
    border: unset;
    border-radius: 1000px;
    background-color: rgba(85, 86, 88, 0.15);
    height: 23px;
    width: 160px;
    padding: 0 10px;
}
input[type="button"] {
    appearance: none;
    border: unset;
    border-radius: 1000px;
    background-color: rgba(85, 86, 88, 0.2);
    height: 23px;
}
input[type="text"]:hover {
    filter: contrast(3);
}
input[type="button"]:hover {
    filter: contrast(3);
}
input[type="button"]:active {
    filter: contrast(2);
}

@media (pointer: fine) {
    ::-webkit-scrollbar {
        width: 7px;
    }
    ::-webkit-scrollbar-thumb {
        background: #cecece;
    }

}

@media print {

    .container,
    .stack,
    .layer,
    .flag {
        display: none
    }

    .print {
        display: block
    }

}

@media (prefers-color-scheme: dark) {
    body {
        background: url(/static/img/bg-dark.png) top left repeat #1e1e1e;
    }
    .layer {
        background-color: #2a2a3a;
        border: 1px solid #484848;
        box-shadow: 0 0 5px 0 #0f0f14;
    }
    .content {
        background-color: #2a2a3a;
        color: #ddd;
    }
    .flag {
        color: #888;
    }
    a:link, a:visited, a:active {
        color: #888;
    }
    hr {
        border-color: #aaa;
    }
    input[type="button"], input[type="text"] {
        background-color: rgba(225, 225, 225, 0.25);
        color: #ddd;
    }
    @media (pointer: fine) {
        ::-webkit-scrollbar {
            background: #3b3b47;
        }

        ::-webkit-scrollbar-thumb {
            background: #505059;
        }

        ::-webkit-scrollbar:hover {
            background: #3f3f4b;
        }
    }

}

