*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    background: url(../image/bg.jpg) no-repeat; background-size: 100% 100%;
}

body {
    position: relative;
    margin: 0;
    font-size: 16px;
    font-family: Schoolbell, "Comic Sans", sans-serif;
    color: #fff;
}


p {
    margin: 0.75em 0;
}

p * {
    vertical-align: middle;
}

button,
input {
    font-family: inherit;
    /*font-size: inherit;*/
    color: inherit;
    vertical-align: middle;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

#control {
    text-align: center;
    width: 100%;
    position: fixed;
    bottom: 100px;
    height: 100px;
}

#control button {
    width: 150px;
    height: 60px;
    font-size: 22px;
    padding: 0;
    line-height: 20px;
}

#display {
    text-align: center;
    width: 100%;
    position: relative;
    height: 230px;
    overflow: hidden;
    top: 140px;
}
#setnums {
    width: 18%;
    padding: 0;
    margin: 7px 0;
    color: black;
    background: #83c886;
    box-sizing: border-box;
    border: 0;
    float: left;
}

#rollbox {
    display: inline-block;
    margin: 0;
    /*max-width: 640px;*/
    font-size: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#rollbox .welcome {
    font-size: 48px;
}

#title {
    margin: 100px auto 20px auto;
    font-size: 50px;
    padding: 0;
    letter-spacing: 5px;
    text-align: center;
}

.name {
    display: inline-block;
    /*width: 3.5em;*/
    margin: 3px;
    background-color: rgba(0, 0, 0, .2);
    color: #fff;
    border-radius: 5px;
    padding: 0.1em;
    text-align: center;
}
/*设置选项*/
#setbox {
    width: 300px;
    height: 300px;
    position: fixed;
    right: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0);
    border-radius: 10px;
    z-index: 10;
    transform-origin: 284px 284px;
    -webkit-transform-origin: 284px 284px;
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}

.rotatein {
    animation: rotatein .5s ease-in-out;
    animation-fill-mode: forwards;
}

.rotateout {
    animation: rotateout .5s ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes rotatein {
    from {
        transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        background: rgba(255, 255, 255, 0);
    }
    to {
        transform: rotate(0);
        -webkit-transform: rotate(0);
        background: rgba(255, 255, 255, 1);
    }
}

@-webkit-keyframes rotatein {
    from {
        transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        background: rgba(255, 255, 255, 0);
    }
    to {
        transform: rotate(0);
        -webkit-transform: rotate(0);
        background: rgba(255, 255, 255, 1);
    }
}

@keyframes rotateout {
    from {
        transform: rotate(0);
        -webkit-transform: rotate(0);
        background: rgba(255, 255, 255, 1);
    }
    to {
        transform: rotate(-180deg);
        -webkit-transform: rotate(-180deg);
        background: rgba(255, 255, 255, 0);
    }
}

@-webkit-keyframes rotateout {
    from {
        transform: rotate(0);
        -webkit-transform: rotate(0);
        background: rgba(255, 255, 255, 1);
    }
    to {
        transform: rotate(-180deg);
        -webkit-transform: rotate(-180deg);
        background: rgba(255, 255, 255, 0);
    }
}

#setbox #setbtn {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 2px;
    bottom: 2px;
    background: url(../image/setoffon.png) no-repeat;
    background-size: 200% 100%;
}

#setbox .seton {
    background-position: 0 0 !important;
}

#setbox .setoff {
    background-position: -30px 0 !important;
}

#setbox h5 {
    width: 100%;
    height: 30px;
    font-size: 22px;
    font-weight: bold;
    color: #4caf50;
    line-height: 30px;
    margin: 20px auto 10px auto;
    padding: 0;
    text-align: center;
    letter-spacing: 4px;
}
#setbox #setoptions {
    width: 280px;
    /*height: 260px;*/
    margin: 0 auto;
}

#setbox #setoptions .settitle {
    width: 100%;
    /*height: 40px;*/
    font-size: 18px;
    line-height: 40px;
    float: left;
}

#setbox #setoptions .settitle .labeltext {
    display: inline-block;
    text-align: left;
    font-weight: bold;
    float: left;
    letter-spacing: 4px;
    color: #4caf50;
}

#setbox #setoptions .settitle .inputtext {
    display: inline-block;
    box-sizing: border-box;
    margin-top: 5px;
    width: 81%;
    height: 30px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #000000;
    background-color: #4caf50b0;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    float: left;
}

#setbox #setoptions .settime {
    width: 100%;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
    color: #4caf50;
    float: left;
}

#setbox #setoptions .setdata {
    width: 100%;
    /*height: 40px;*/
    font-size: 18px;
    line-height: 40px;
    color: #4caf50;
    float: left;
}

#setbox #setoptions .setdata .labeltext {
    display: inline-block;
    text-align: left;
    font-weight: bold;
    float: left;
    letter-spacing: 4px;
}

#setbox #setoptions .settime .labeltext {
    display: inline-block;
    text-align: left;
    font-weight: bold;
    float: left;
    letter-spacing: 4px;
}

#setbox #setoptions .settime .inputnum {
    display: inline-block;
    box-sizing: border-box;
    margin-top: 5px;
    width: 30%;
    height: 30px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #000000;
    background-color: #4caf50b0;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    float: left;
}

button,
input[type="number"] {
    margin: 0 5px;
    border: 3px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .2);
    padding: 0 20px;
    line-height: 2;
    border-radius: 6px;
    color: inherit;
}

button:focus,
input[type="number"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, .8);
}

input[type="file"] {
    cursor: pointer;
}

input[type="file"]:focus {
    outline: none;
}

button:not([disabled]):hover,
input[type="number"]:not([disabled]):hover {
    border-color: rgba(255, 255, 255, .8);
}

button:active,
input[type="number"]:active {
    border-color: #fff;
}

input[type="number"],
input[type="file"] {
    /*width: 120px;*/
    box-shadow: none;
    color: black;
    float: left;
}

button {
    border: 4px solid rgba(255, 255, 255, .5);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

[v-show] {
    display: none;
}

input[type="file"] {
    margin: 0 5px;
}

input[type="file"]::-webkit-file-upload-button {
    margin: 0;
    width: 120px;
    border: 4px solid rgba(255, 255, 255, .5);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 0 20px;
    line-height: 2;
    border-radius: 6px;
    color: inherit;
}

input[type="file"]::-webkit-file-upload-button:focus {
    outline: none;
    border-color: rgba(255, 255, 255, .8);
}

input[type="file"]:not([disabled]):hover::-webkit-file-upload-button {
    border-color: rgba(255, 255, 255, .8);
}

input[type="file"]::-webkit-file-upload-button:active {
    border-color: #fff;
}

.layui-layer-content {
    color: black;
    border-radius: 5px;
    background: rgba(255,255,255,.6);
}
