@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: #E9EAED;
    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,
.sentence-place-holder,
.sentence-place > .sentence,
.bar {
    -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;
    min-width: 980px;
    max-width: 1600px;
    overflow-y: hidden;
}


.clear {
    clear: both;
}

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

.stage {
    width: 95%;
    margin: 0 auto;
    padding-top: 2%;
    position: relative;
}

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

.sentence-place-wrp {
}

.sentence-place-holder {
    width: 80%;
    height: 70px;
    margin: 0 auto;
    font-size: 32px;
}

.sentence-place-holder.left .sentence-place,
.sentence-place-holder.left .avatar{
    float: left;
    margin-left: 20px;
}

.sentence-place-holder.right .sentence-place,
.sentence-place-holder.right .avatar {
    float: right;
    margin-right: 20px;
}

.avatar {
    display: block;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ccc url("../images/user.png") center no-repeat;
    background-size: contain;
}

.sentence-place {
    display: block;
    width: 790px;
    height: 50px;
    border: 2px solid #425F9C;
    border-radius: 6px;
    background-color: #fff;
    text-align: center;
}


.sentence-place-holder.left .sentence-place,
.sentence-place-holder.right .sentence-place {
    position: relative;
}

.sentence-place-holder.left .sentence-place:before {
    border-color: transparent #425f9c;
    border-style: solid;
    border-width: 14px 15px 14px 0;
    bottom: auto;
    content: "";
    display: block;
    left: -15px;
    position: absolute;
    top: 10px;
    width: 0;
}

.sentence-place-holder.left .sentence-place:after {
    border-color: transparent #fff;
    border-style: solid;
    border-width: 12px 12px 12px 0;
    bottom: auto;
    content: "";
    display: block;
    left: -12px;
    position: absolute;
    top: 12px;
    width: 0;
}

.sentence-place-holder.right .sentence-place:before {
    border-color: transparent #425f9c;
    border-style: solid;
    border-width: 14px 0 14px 15px;
    bottom: auto;
    content: "";
    display: block;
    left: auto;
    position: absolute;
    right: -15px;
    top: 10px;
    width: 0;
}

.sentence-place-holder.right .sentence-place:after {
    border-color: transparent #fff;
    border-style: solid;
    border-width: 12px 0 12px 12px;
    bottom: auto;
    content: "";
    display: block;
    left: auto;
    position: absolute;
    right: -12px;
    top: 12px;
    width: 0;
}


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

.sentence-box {
    position: relative;
    padding: 20px;
}

.draggables {
    width: 100%;
    min-height: 130px;
    text-align: center;
}

.sentence {
    display: inline-block;
    border: 3px solid #56445D;
    border-radius: 6px;
    background-color: #fff;
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    font-size: 32px;
    line-height: 32px;
    cursor: move;
    z-index: 1;
    color: #2E3532;
}

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

.sentence-place > .sentence {
    margin-right: 0;
    margin-bottom: 0;
    width: 100% !important;
    height: 50px !important;
    padding: 0 0 0 20px !important;
    line-height: 48px;
    text-align: left;
    border: 2px solid transparent;
    z-index: 1;
}

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

.check {
    display: none;
    position: absolute;
    border: 3px solid #fff;
    border-radius: 5px;
    background-color: #E17C72;
    padding: 10px 30px;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    right: 10px;
    bottom: 10px;
    z-index: 2;
}

.check.btm {
    bottom: 40px;
}

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

.bar {
    width: 100%;
    height: 70px;
    padding-top: 15px;
    background-color: #425F9C;
}

.bar.footer {
    position: fixed;
    left: 0;
    bottom: 0;
}

.icon {
    display: inline-block;
    margin-right: 20px;
    width: 40px;
    height: 40px;
}

.icon > img {
    display: block;
    max-width: 100%;
}

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

#jp_container_1,
#jp_container_2 {
    display: none;
    position: relative;
    z-index: 10;
}

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

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

#next-stage-popup {
    display: none;
}

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

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

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

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

.button:hover {
    background-color: rgba(86, 68, 93, 0.5);
    color: #ffffff;
}


.showanswers {
    font-size: 30px;
    color: #56445D;
    margin-top: 15px;
}

#counter {
    font-size: 120px;
    color: #56445D;
    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 #56445D;
    border-radius: 30px;
    font-size: 48px;
    color: #56445D;
    text-align: center;
    line-height: 120%;
    position: relative;
}

.popup-box p {
    position: absolute;
    bottom: 13%;
    left: 0;
    width: 100%;
    text-align: center;
}


.refresh {
    position: absolute;
    display: block;
    width: 50px;
    height: 50px;
    text-indent: -9999px;
    z-index: 2;
}

.refresh:hover {
    opacity: 0.8;
}

.refresh.inner {
    right: 10px;
    top: 0;
    background: url("../images/refresh-2.png") center no-repeat;
    background-size: contain;
}

.refresh.outer {
    right: 30px;
    top: 20px;
    background: url("../images/refresh.png") center no-repeat;
    background-size: contain;
}


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

    .sentence-place-holder {
        width: 90%;
    }
}

@media only screen and (max-width: 1100px) {
    .stage {
        width: 100%;
    }
}

@media only screen and (max-width: 1100px), (max-height: 800px) {
    .stage {
        padding-top: 0;
    }

    .sentence-place-holder {
        padding-left: 0;
        width: 100%;
    }

    .sentence-box {
        padding: 0;
    }

    .sentence {
        padding: 0 10px;
        font-size: 24px;
    }

    .bar {
        height: 45px;
        padding-top: 12px;
    }

    .icon {
        width: 25px;
    }

    .refresh.inner {
        top: -13px;
        width: 30px;
    }

    .sentence-place-wrp {
        padding-top: 10px;
    }

    .draggables {
        min-height: 100px;
    }

    .check {
        bottom: 0;
    }
}
