.animate {
    transition: 0.2s all;
}
.frame {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
    list-style: none;
}
.frame li {
    display: inline-block;
    position: relative;
    cursor: pointer;
    animation: zoomIn 0.2s;
}
@keyframes zoomIn {
    from {
        transform: scale(0.1);
    }
    to {
        transform: scale(1);
    }
}
.frame div {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
}
.frame div:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.2s;
}
.frame div.highlight {
    z-index: 2;
}
.frame div.highlight:before {
    outline: 0;
}
.frame li:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
    transition: 0.1s all;
}
.frame li.highlight {
    position: relative;
}
.frame li.highlight:before {
    z-index: 2;
}
.frame div > img {
    display: block;
    z-index: -1;
    transition: all 0.2s;
}
.frame [data-inplace="true"] img {
    filter: grayscale(0);
}
.no-select {
    position: relative;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.full-img {
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
    background: #fff;
    outline: 2px solid #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
    transition: 0.5s opacity;
}
.btn-primary {
    background: #9a371f;
}
.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.jigsaw_puzzle_game {
    width: 75%;
    margin: 0;
    float: left;
}
.jigsaw_puzzle_game iframe {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: table;
}
.jigsaw_puzzle_game iframe canvas{
    top: 0px !important;
    left:0px !important;
}
.jigsaw_puzzle_options {
    width: 25%;
    float: right;
    background: #65a4d8;
    height: 760px;
    position: relative;
}
.puzzle_reference {
    margin: 10% 0 0 0;
    position: relative;
}
.puzzle_button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.puzzle_button {
    width: 60%;
    margin: 0 auto;
}
.puzzle_button li {
    background: #045c9d !important;
    margin-bottom: 10px;
    margin-top: inherit !important;
    width: 100%;
    display: inline-block;
}
.puzzle_button li:nth-child(2) {
    display: none;
}
.puzzle_button li:last-child {
    background: #000 !important;
}
.puzzle_button li:hover {
    background: #fff !important;
}
.puzzle-btn-active {
    opacity: 1 !important;
}
#puzzle-btn {
    opacity: 0.2;
    margin-top: 10px;
}
.popup_game_container {
    background: #e2f2ff;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999999;
    -moz-transition: all ease-in-out 0.5s;
    -webkit-transition: all ease-in-out 0.5s;
    -o-transition: all ease-in-out 0.5s;
    transition: all ease-in-out 0.5s;
    overflow: auto;
    opacity: 0;
    z-index: -9999;
}
.jigsaw_puzzle_popup_close {
    position: absolute;
    right: 4%;
    top: 4%;
}
.jigsaw_puzzle_popup_close span {
    font-size: 16px;
    color: #fff;
    background: #a41b1b;
    display: block;
    padding: 0 10px;
    border-radius: 30px;
    line-height: 30px;
    border: 2px dotted #a41b1b;
}
.jigsaw_puzzle_popup_close span:hover {
    cursor: pointer;
    color: #a41b1b;
    background: #fff;
}
#img-zoomer-box {
    width: 500px;
    height: auto;
    position: relative;
    margin-top: 10px;
}
#img1 {
    width: 100%;
    height: auto;
}
#img-zoomer-box:active,
#img-zoomer-box:hover {
    cursor: zoom-in;
    display: block;
}
#img-zoomer-box:active #img2,
#img-zoomer-box:hover #img2 {
    opacity: 1;
}
#img2 {
    width: 340px;
    height: 340px;
    background: url(../images/puzzle1.jpg) no-repeat #fff;
    box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    position: absolute;
    opacity: 0;
    border: 4px solid #f5f5f5;
    z-index: 99;
    border-radius: 100%;
    display: block;
    transition: opacity 0.2s;
}
.choose-pic a {
    position: relative;
}
.choose-pic a:hover p {
    opacity: 1;
}
.jigsaw-popup-overlay {
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    display: none;
}
@media only screen and (max-width: 1100px) {
    .jigsaw_puzzle_options {
        font-size: 0.8em;
    }
    .wordgame_userinput_form form input[type="text"] {
        width: 50%;
    }
}
@media only screen and (max-width: 1000px) {
    .choose-pic a p span {
        font-size: 0.8em;
    }
    .puzzle_button {
        width: 80%;
    }
    .puzzle_button li {
        padding: 10px !important;
    }
    .puzzle_reference {
        margin: 30% 0 0 0;
    }
}
@media only screen and (max-width: 800px) {
    .puzzle_button li {
        padding: 10px !important;
    }
    .size_of_img {
        width: 80%;
    }
    .tooltip .tooltiptext {
        width: 400px;
    }
    .tooltip .tooltiptext {
        bottom: 60px;
        right: 0;
        left: 0;
        top: inherit !important;
        width: 300px;
    }
}
@media only screen and (max-width: 650px) {
    .choose-pic a p span {
        font-size: 0.5em;
    }
    .size_of_img {
        width: 100px;
    }
    .wordgame_userinput_form form input[type="text"] {
        width: 60%;
    }
}
