* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Big Shoulders Display", sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.kimage {
    width: 110%;
    height: 110%;
    position: absolute;
    animation: shake .1s infinite;
    background: url(../img/ks.png);
    background-repeat: none;
    background-position: center 40%;
    background-size: cover;
    /* background-repeat: no-repeat; */
    background-size: 50%;
}

.kimage.zoom {
    background-size: 300%;
    transition: background-size 60s, top .5s, left .5s, transform .5s;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    opacity: 1;
}

.overlay.faded {
    opacity: 0;
    transition: opacity 60s;
}

.kim-bot {
    width: 100%;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    opacity: 1;
    text-align: center;
    font-size: 6vw;
}

.kim-bot.hidden {
    opacity: 0;
    transition: opacity 1s;
}

.answer {
    /*font-family: "Marck Script", sans-serif;*/
    position: absolute;
    display: block;
    text-align: center;
    color: #fff;
    top: 50%;
    width: 100%;
    transform: translate(0, -50%);
    font-size: 1vw;
    opacity: 0;
}

.answer.given {
    top: 50%;
    opacity: 1;
    font-size: 5vw;
    transition: opacity 10s 5s, top 30s, font-size 10s 5s;
}

.question {
    width: 75%;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50px;
    background-color: #fff;
    opacity: 1;
}

.question input {
    width: calc(100% - 100px);
    height: 100%;
    margin-left: 50px;
    text-align: center;
    border: 0;
    font-size: 3.5vw;
    color: rgba(0, 0, 0, 1);
    outline: none;
}

.question.closed {
    width: 100px;
    border-radius: 0;
    opacity: 0;
    transition: width 1s, border-radius .75s, opacity 0s 1s;
}

.question.closed input {
    color: rgba(0, 0, 0, 0);
    transition: color 1s;
}

.loading {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    border-radius: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0);
}

.loading .reset {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    background: url(../img/refresh.svg) center center no-repeat;
    background-size: 70%;
}

.loading .reset.shown {
    opacity: 1;
    transition: opacity 1s;
    cursor: pointer;
}

.loading.active {
    top: 90%;
    opacity: 1;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 1);
    transition: top 2s, border-radius 2s 13s, background-color 2s 13s;
}

.loading.active .cube {
    animation: scale 1.3s 10 ease-in-out; 
}

.loading .cube {
    width: 33%;
    height: 33%;
    background-color: #fff;
    float: left;
}
.loading .cube:nth-child(1) { animation-delay: 0.2s; }
.loading .cube:nth-child(2) { animation-delay: 0.3s; }
.loading .cube:nth-child(3) { animation-delay: 0.4s; }
.loading .cube:nth-child(4) { animation-delay: 0.1s; }
.loading .cube:nth-child(5) { animation-delay: 0.2s; }
.loading .cube:nth-child(6) { animation-delay: 0.3s; }
.loading .cube:nth-child(7) { animation-delay: 0s; }
.loading .cube:nth-child(8) { animation-delay: 0.1s; }
.loading .cube:nth-child(9) { animation-delay: 0.2s; }

@keyframes shake {
    25%  {top:-6%;left:-6%;transform:scale(1.1, 1);}
    50%  {top:-4%;left:-6%;transform:scale(1.1, 1.1);}
    75%  {top:-4%;left:-4%;transform:scale(1, 1.1);}
    100% {top:-6%;left:-4%;transform:scale(1, 1);}
}

@keyframes scale {
    0%, 70%, 100% {
        transform: scale3D(1, 1, 1);
    } 35% {
        transform: scale3D(0, 0, 1);
    } 
}
