body {
    margin: 0;
    min-height: 100vh;
    font-family: sans-serif;
    font-weight: 400;
}

@font-face {
    font-family: 'Abel';
    src: url(../fonts/abel.ttf);
}

*, body, input, textarea, button, select, h1, h2, h3, h4, h5, h6 {
    font-family: 'Abel',Arial;
}

::selection {
    background-color: var(--major-color);
    color: #fff;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:active, a:hover {
    outline: none;
    text-decoration: none;
}

@keyframes ajaxLoading {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

#ajax-loader {
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    width: 60px;
    height: 60px;
    z-index: 1050;
    background-color: rgba(255, 255, 255, .8);
    border-color: #f60 transparent transparent transparent;
    border-radius: 10px;
    display: none;
}

#ajax-loader div {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 35px;
    height: 35px;
    border: 4px solid;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -moz-animation: ajaxLoading 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
    -webkit-animation: ajaxLoading 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
    -o-animation: ajaxLoading 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
    animation: ajaxLoading 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
    /*
    取 theme 主色调
    border-color: #000 transparent transparent transparent;
    */
}

#ajax-loader div:nth-child(1) {
    -moz-animation-delay: -0.45s;
    -webkit-animation-delay: -0.45s;
    -o-animation-delay: -0.45s;
    animation-delay: -0.45s
}

#ajax-loader div:nth-child(2) {
    -moz-animation-delay: -0.3s;
    -webkit-animation-delay: -0.3s;
    -o-animation-delay: -0.3s;
    animation-delay: -0.3s
}

#ajax-loader div:nth-child(3) {
    -moz-animation-delay: -0.15s;
    -webkit-animation-delay: -0.15s;
    -o-animation-delay: -0.15s;
    animation-delay: -0.15s
}

#overlay {
    position: fixed;
    background-color: rgba(35, 35, 35, .8);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1000;
    display: none;
}

#goto-top {
    display: none;
    background-color: var(--major-color);
    color: #fff;
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    z-index: 999;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#goto-top:hover {
    background-color: var(--major-color3);
}


/* --------------------------------- validator --------------------------------- */

form .be-input.error,
form .be-select.error,
form .be-textarea.error {
    border-color: #f30;
    box-shadow: 0 0 0 1px #f30;
}

form label.error {
    color: #f30;
    margin-top: 5px;
    display: inline-block;
}
