html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #333;
    overflow: hidden;
}

.html5-puzzle {
    font-family: Helvetica, Arial, sans-serif;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /********************/
    /* board background */
    /********************/
    border: 1px solid #aaa;
}

.html5-puzzle div,
.html5-puzzle ul,
.html5-puzzle li,
.html5-puzzle canvas { margin: 0; padding: 0; }

.hide { display: none; }

.clear { clear: both; }

/*== Jigsaw puzzle ==*/
div#canvas-wrap {
    width: 100%;
    height: 100%;
    background: #EF3200;

    /* background-image: url("../images/puzzle/bg.jpg");
    background-repeat: no-repeat;
    background-size: cover; */
}

canvas#canvas, canvas#buffer, canvas#image-preview {
    position: absolute;
    //top: 45px;
    /* top: 80px; */
    left: 0;
}

canvas#canvas { z-index: 100; }

.loading  #canvas-wrap { background: url(../images/loader.gif) no-repeat center; }
.loading  canvas { visibility: hidden; }

canvas#buffer { z-index: 70; }

canvas#image-preview.show {
    left: 50%;
    opacity: 1;
    z-index: 1000;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/*== Options bar ==*/
div#game-options ul {
    margin: 0 auto;
}
div#game-options {
    background: #fff;
    z-index: 500;
    top: 0;
    left: -20px;
    position: absolute;
    border-bottom: 1px solid #000;
    padding: 5px 10px 5px 30px;
    width: 100%;
    height: 32px;
    -moz-box-shadow: 0 0 5px black;
    -webkit-box-shadow: 0 0 5px black;
    box-shadow: 0 0 5px black;
    display: none;
}

div#game-options ul li {
    float: left;
    list-style: none;
    line-height: 25px;
}

div#game-options ul li b {
    margin: 0 10px;
}

/*== Clock ==*/
#clock {
    width: 60px;
    display: block;
    text-align: center;
}

/*== Select ==*/
div#game-options div.styled-select select {
    outline: none;
    background: transparent;
    width: 125px;
    padding: 5px;
    font-size: 13px;
    border: none;
    height: 28px;
    -webkit-appearance: none;
}

div#game-options div.styled-select {
    width: 100px;
    height: 28px;
    margin-right: 10px;
    overflow: hidden;
    background: url(../images/arrow.png) right no-repeat #f3f3f3;
    border: 1px solid #333;
}

/*== Share buttons ==*/
#share-twitter, #share-facebook {
    text-indent: -10000px;
    width: 32px;
    height: 32px;
    display: block;
    cursor:pointer;
}

/*== Crear puzzle ==*/
#image-error { color: red; margin: 0 10px; display: none; }
#dnd { display: none }

#game-options #create {
    display: none;
    right: 25px;
    position: absolute;
}

#game-options #create .add {
    background: url(../images/plus.png)  10px 6px no-repeat #f3f3f3;
    padding-left: 30px;
}
/*== Modal window ==*/

div#congrat { text-align: center; }


div#congrat h1 {
    color: #fff;
    font-size: 28px;
}

div#congrat h2 {
    color: #fff;
    font-size: 16px;
    margin-top: 20px;
}

div#flipPrompt h2 {
    color: #fff;
    font-size: 24px;
    padding: 25px 60px;
}

div#help {
    font-size: 15px;
}

div#help ul { margin-left: 10px; }

/*== mobile ==*/


@media screen and (max-width: 479px) {
    #SHOW_HELP, #clock { display: none; }
    #JIGSAW_SHUFFLE { margin-left: 15px; }
}




#SHOW_PREVIEW {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
#logo {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 300px;
    z-index: 1000;
}
.btn {
    background-color: #fff;
    color: #EF3200;
    font-weight: bold;
    background-image: none;
    border-radius: 22px;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 7px 12px;
    box-shadow: none;
}
.modal-dialog {
    opacity: 0.9;
}
.modal-content {
    background: #EF3200;
    color: #fff;
}
.modal-footer {
    border: 0;
}
#instructionModal .modal-body {
    text-align: center;
}
#instructionModal img {
    width: 100%;
    max-width: 415px;
}
#instructions {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 1000;
}
.btn:hover, .btn.active.focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn:active:focus, .btn:focus {
    color: #EF3200;
    outline: none;
    box-shadow: none;
}

#previewImage {
    position: absolute;
    right: 40px;
    top: 100px;
    width: 200px;
    height: auto;
    z-index: 2000;
    -moz-box-shadow: 0 0 5px white;
    -webkit-box-shadow: 0 0 5px white;
    box-shadow: 0 0 5px white;
}

@media screen and (max-width: 1600px) {
    #logo {
        width: 250px;
    }
}

@media screen and (max-width: 960px) {
    div#game-options { left: -30px; }
    #clock { width: 50px; margin-left: }
    #SHOW_EDGE, #SHOW_MIDDLE, #SHOW_ALL,#SHOW_FILEPICKER { display: none; }


}

@media screen and (max-width: 767px) {
    #logo {
        left: 15px;
        width: 200px;
    }
    .btn {
        font-size: 12px;
        padding: 6px 8px;
    }
    #SHOW_PREVIEW {
        right: 15px;
    }
    #instructions {
        right: 85px;
    }
}
