* {
    margin: 0;
    padding: 0;
    border: none;
}

body {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

input:focus {
    outline: none;
}

::-webkit-input-placeholder { /* WebKit browsers */
    color: #DF8B6B;
    font-weight: 100;
}

:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: #DF8B6B;
    font-weight: 100;
}

::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: #DF8B6B;
    font-weight: 100;
}

:-ms-input-placeholder { /* Internet Explorer 10+ */
    color: #DF8B6B;
    font-weight: 100;
}

.logo {
    position: absolute;
    left: -10000px;
}

#selectRoot {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url("img/bg_1.png");
    background-size: 100% 100%;
    bottom: 0;
}

#selectParent {
    position: absolute;
    left: 9%;
    right: 9%;
    bottom: 12%;
    background-color: rgba(0, 0, 0, .4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 25px 0 15px 0;
    box-sizing: border-box;
}

.input-root {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.input-root:first-child {
    margin-bottom: 15px;
}

.label-root {
    display: flex;
    flex-direction: column;
    align-content: center;
    text-align: center;
}

.label-root > p:first-child {
    line-height: 25px;
    font-size: 24px;
}

.label-root > p:nth-child(2) {
    font-size: 12px;
    -webkit-transform-origin: 50% 0 0;
    -webkit-transform: scale(0.80);
    opacity: 0.8;
}

.input {
    margin-left: 15px;
    height: 37px;
    width: 142px;
    background: #c42126;
    border-radius: 12px;
    border: white 4px solid;
    box-sizing: border-box;
    color: white;
    padding: 0 5px;
    text-align: center;
    font-size: 24px;
    margin-top: -5px;
}
.input-placeholder {
    color: #DF8B6B;
    font-weight: 100;
}

/*下一步*/
.btn-submit {
    border-radius: 100px;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5%;
    margin: 0 auto;
    width: 139px;
    background: white;
    padding: 2px;

    transform-origin: center;
    animation-name: shake;
    animation-duration: 500ms;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.btn-submit-text {
    width: 135px;
    color: #c42126;
    font-size: 20px;
    background: none;
    border: #c42126 1px solid;
    border-radius: 100px;
}

/*动画*/
@keyframes shake {
    0%{transform: rotate(0deg)}
    25%{transform: rotate(5deg)}
    50%{transform: rotate(0deg)}
    75%{transform: rotate(-5deg)}
    100%{transform: rotate(0deg)}
}


/**结果页*/
#resultRoot {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url("img/bg_2.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    bottom: -100%;
}
.a-root {
    padding: 4px;
    border: solid #c42126 1px;
    margin: 15px 0;
    font-size: 22px;
    font-weight: 700;
    border-radius: 100px;
    transform-origin: center;
    animation-name: scale;
    animation-duration: 500ms;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
#resultRoot a {
    color: white;
    background: #c42126;
    padding: 3px 6px;
    border-radius: 100px;
}

#resultRoot p {
    font-weight: 600;
    font-size: 17px;
    line-height: 1.2;
}

#result-img-root {
    margin-bottom: 3px;
}

/*页面切换动画时间*/
#selectRoot, #resultRoot {
    transition:bottom 250ms linear;
}

@keyframes scale {
    0% {transform: scale(1,1)}
    50% {transform: scale(1.05,1.05)}
    100% {transform: scale(1,1)}
}

