@font-face {
    font-family: 'amor_sans_proregular';
    src: url('fonts/amorsanspro-webfont.eot');
    src: url('fonts/amorsanspro-webfont.eot?#iefix') format('embedded-opentype'),
    url('fonts/amorsanspro-webfont.woff') format('woff'),
    url('fonts/amorsanspro-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
html {
    height: 100%;
}
body {
    background: #9bcb41 url("../images/bg.png") top left repeat;
    font-family: "amor_sans_proregular";
    font-size: 16px;
    height: 100%;
    width: 100%;
    position: relative;
    -webkit-touch-callout: none;
    -moz-touch-callout: none;
    -ms-touch-callout: none;
    -o-touch-callout: none;
    touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.container,
.start-info,
.sentence-box,
.caption-box,
.sentence-caption,
.sentence-caption > .caption {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.container {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 1%;
    min-width: 980px;
    max-width: 1600px;
    height: 100%;
}

.clear {
    clear: both;
}

/* ========================= */

.sentence-box {
    width: 90%;
    margin: 0 auto;
    margin-bottom: 1%;
}

.row {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    margin-bottom: 20px;
}

.sentence-holder {
    margin: 0 auto;
    margin-bottom: 10px;
    max-width: 960px;
}

.sentence-holder > span {
    float: left;
    display: block;
    line-height: 56px;
    font-size: 24px;
}


.sentence-caption {
    float: left;
    width: 120px;
    height: 56px;
    border: 3px solid #086375;
    border-radius: 6px;
    background-color: #C3DFE0;
    text-align: center;
    margin-right: 5px;
    margin-left: 5px;
}


/* ========================= */

.caption-box {
    width: 90%;
    position: relative;
    padding: 20px;
    text-align: center;
}

.draggables {
    width: 100%;
    min-height: 100px;
}

.draggables > .caption {
    width: auto !important;
    height: 32px !important;
}

.caption {
    display: inline-block;
    border: 3px solid #086375;
    border-radius: 6px;
    background-color: #fff;
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    font-size: 28px;
    line-height: 27px;
    cursor: move;
    z-index: 1;
    color: #30292F;
}

.sentence-caption > .caption {
    margin-right: 0;
    margin-bottom: 0;
    width: 100% !important;
    height: 56px !important;
    padding: 0 !important;
    line-height: 50px;
    font-size: 24px;
    z-index: 1;
}

.sentence-caption.ui-state-active {
    border-color: transparent !important;
}

.sentence-caption.haselement {
    border: none !important;
}

#jp_container_1 {
    margin-bottom: 10px !important;
}


/* =============== */

.notapproved {
    background-color: #ff4758;
    border: 3px solid #ff0000;
}

.approved {
    background-color: #c3e7c3;
    border: 3px solid green;
}

.ui-state-active {
    background-color: #ffff00;
}

/* =============== */

.start-info {
    padding: 80px 30px 30px 30px;
    border: 3px solid #086375;
    border-radius: 20px;
    background-color: #ffffff;
    text-align: center;
}

.start-info p {
    font-size: 36px;
    color: #07020D;
    text-align: center;
    margin-bottom: 55px;
}

.start-info p span {
    font-size: 38px;
}

#start-game,
#finish-game {
    width: 200px;
    font-size: 30px;
    border: 3px solid #086375;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #07020D;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 70px;
    padding: 20px;
    margin: 0 auto;
}

#start-game:hover,
#finish-game:hover {
    background-color: #b5ffe1;
}

#counter {
    font-size: 120px;
    color: #07020D;
    position: relative;
    top: 85px
}

.start-popup,
.end-popup {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.85);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
}
.end-popup {
    display: none;
}

.start-info,
.popup-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 694px;
    height: 469px;
    margin-left: -347px;
    margin-top: -234px;
}

.popup-box {
    background: url("../images/pop-up.png") top left no-repeat;
    border: 6px solid #086375;
    border-radius: 30px;
    font-size: 48px;
    color: #07020D;
    text-align: center;
    line-height: 120%;
    position: relative;
}

.popup-box p {
    margin-bottom: 250px;
    margin-top: 14px;
    text-align: center;
    width: 100%;
}

.refresh {
    position: fixed;
    display: block;
    width: 100px;
    height: 100px;
    background: url("../images/refresh.png") center no-repeat;
    background-size: contain;
    text-indent: -9999px;
}

.refresh:hover {
    opacity: 0.8;
}
.refresh.inner {
    right: 25px;
    bottom: 3%;
    border: 3px solid #086375;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5);

}
.refresh.outer {
    position: absolute;
    right: 30px;
    top: 20px;
}


@media only screen and (max-width: 1280px) {
    .container {
        overflow-x: hidden;
    }

    .refresh.inner {
        width: 60px;
        height: 60px;
    }
}

@media only screen and (max-height: 800px) {

    .sentence-box {
        width: 95%;
        padding-top: 0;
        margin-bottom: 0;

    }

    .sentence-holder {
        margin-bottom: 2px;
    }

    .row {
        margin-bottom: 5px;
    }

    .caption {
        font-size: 24px;
        padding: 5px 10px;
        line-height: 30px;
    }

}
