@font-face {
    font-family: "Coriand";
    src: url("TS2018VariableGX.ttf") format("truetype");
}

html {
    padding: 0 !important;
    margin: 0 !important;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", "Arial", "PingFang SC", "思源黑体", "思源黑体 CN", "Source Han Sans CN", "Source Han Sans SC", "Hiragino Sans GB", "Microsoft Yahei", "Microsoft JhengHei", sans-serif;
    font-weight: 400;
    line-height: 1.7;
    font-style: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    padding-top: 10vh;
    padding-bottom: 10vh;
    margin: 0 !important;
    justify-content: space-around;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

.input-pad span {
    padding: 5px 8px;
    min-width: 35px;
    display: inline-block;
    border-radius: 2px;
    margin-right: 7px;
    margin-bottom: 13px;
    border: 1px solid #333;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
}

.ua-Pointer .input-pad span:hover,
.input-pad span:active {
    color: #fff;
    background-color: #333;
    cursor: pointer;
}

.input-pad span.backspace {
    font-weight: 600;
    border: 0;
    font-size: 120%;
    padding-bottom: 0;
    padding-top: 3px;
}

.input-pad {
    width: 70vw;
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
}

.slider-title {
    margin-bottom: 0px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 13px;
    text-transform: uppercase
}

.contrast-title {
    margin-top: 20px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    background: #333;
    border-radius: 20px;
    outline: none;
    width: 15vw;
}

.slider::-ms-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 23px;
    width: 13px;
    background: #fff;
    border: 1.5px solid #333;
    cursor: pointer;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 23px;
    width: 13px;
    background: #fff;
    border: 1.5px solid #333;
    cursor: pointer;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.ua-Pointer .slider::-ms-thumb:hover,
.slider::-ms-thumb:active {
    background: #333;
    cursor: pointer;
}

.ua-Pointer .slider::-webkit-slider-thumb:hover,
.slider::-webkit-slider-thumb:active {
    background: #333;
    cursor: pointer;
}

.display-area {
    font-family: "Coriand", BlinkMacSystemFont, -apple-system, "Helvetica Neue", "Roboto", "Arial", "PingFang SC", "思源黑体", "思源黑体 CN", "Source Han Sans CN", "Source Han Sans SC", "Hiragino Sans GB", "Microsoft Yahei", "Microsoft JhengHei", sans-serif;
    width: 90vw;
    max-width: 1200px;
    -webkit-appearance: none;
    border: none;
    text-align: center;
    font-size: 13vw;
    padding-top: 35px;
    font-variation-settings: 'wght' 85, 'CNTR' 100;
}

.info {
    width: 20px;
    position: absolute;
    right: 5vw;
    bottom: 5vw;
}

.block {
    display: block;
    position: absolute;
    height: 15vh;
    width: 15px;
    background: #333;
    bottom: 12.5vh;
    right: 0;
    transition: all 0.2s ease;
}

.ua-Pointer .block:hover,
.block:active {
    cursor: pointer;
    width: 25px;
}

.notice,
.description {
    position: absolute;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.89);
    padding: 5vw 50vw 5vw 10vw;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .notice, 
    .description {
        background-color: rgba(0, 0, 0, 0.8) !important;
        -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
        backdrop-filter: saturate(180%) blur(20px) !important;
    }
}

.notice.show,
.description.show {
    visibility: visible;
    opacity: 1;
}

.notice p,
.description p {
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
}

.notice p.notice-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    text-transform: uppercase;
}

.notice p.notice-title.en {
    margin-bottom: 6px;
}

.notice p.notice-title.zh {
    margin-top: 0;
}

.notice p.lang,
.description p.lang {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 12px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    display: inline-block;
    margin-bottom: 0;
}

.toggle {
    display: none;
}

.logo-box {
    margin-top: 50px;
    opacity: 0.8;
    transition: all 0.2s ease;
    width: 103px;
}

.logo-box a {
    text-decoration: none !important;
    display: flex;
    align-items: center;
}

.ua-Pointer .logo-box:hover,
.logo-box:active {
    cursor: pointer;
    opacity: 1;
}

.threetype {
    height: 39px;
    padding-right: 10px;
    border-right: 1px solid #fff;
}

.typeschool {
    height: 35px;
    margin-left: 10px;
}

.continue,
.close {
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid #fff;
    opacity: 0.8;
    border-radius: 2px;
    color: #fff;
    display: inline-block;
    position: absolute;
    bottom: 10vw;
    right: 10vw;
    transition: all 0.2s ease;
}

.download {
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid #fff;
    opacity: 0.8;
    border-radius: 2px;
    color: #fff;
    text-decoration: none !important;
    display: inline-block;
    position: absolute;
    bottom: 10vw;
    left: 10vw;
    transition: all 0.2s ease;
}

.ua-Pointer .continue:hover,
.continue:active {
    cursor: pointer;
    background-color: #fff;
    color: #333;
}

.ua-Pointer .download:hover,
.download:active {
    cursor: pointer;
    background-color: #fff;
    color: #333;
}

.ua-Pointer .close:hover,
.close:active {
    cursor: pointer;
    background-color: #fff;
    color: #333;
}


@media only screen and (max-width: 800px) {
    body {
        padding-top: 5vh;
        padding-bottom: 5vh;
    }

    .input-pad {
        width: 80vw;
        padding-left: 7px;
        margin-top: -20px;
    }

    .input-pad span {
        margin-bottom: 13px;
        margin-right: 7px;
    }

    .slider {
        width: 50vw;
    }

    .display-area {
        margin-top: -20vw;
        margin-bottom: -12vw;
        font-size: 14vw;
        padding-top: 0;
    }

    .notice,
    .description {
        padding: 5vw 10vw;
    }

    .block {
        width: 10px;
    }
    
    .ua-Pointer .block:hover,
    .block:active {
        width: 15px;
    }

    .description p.hide {
        display: none;
    }

    .lang {
        display: none !important;
    }

    .toggle {
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        font-size: 12px;
        padding-bottom: 3px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.8);
        color: #fff;
        opacity: 0.8;
        display: inline-block;
        margin-bottom: 9px;
        transition: all 0.2s ease;
    }
    
    .toggle.zh {
        margin-left: 15px;
    }
    
    .toggle.hide {
        opacity: 0.4;
    }

    .ua-Pointer .toggle.hide:hover,
    .toggle.hide:active {
        cursor: pointer;
        opacity: 0.8;
    }
}