html, body {
    font-family: Helvetica, Arial, sans-serif;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /********************/
    /* board background */
    /********************/
    background: #256b82;
}
/*
#pub9 {
    width: 100%;
    max-height: 60px;
    position: absolute;
    z-index: 600;
    top: 1px;
    text-align: center;
}
*/
#pub9 {
    display: none;
}
#pub10 {
    width: 100%;
    height: 60px;
    position: absolute;
    z-index: 600;
    top: 1px;
    text-align: center;
}

html, body, div, ul, li, canvas {
    margin: 0;
    padding: 0;
}

.hide {
    display: none;
}

.clear {
    clear: both;
}

/*== Jigsaw puzzle ==*/

div#canvas-wrap {
    width: 100%;
    height: 100%;
}

canvas#canvas, canvas#buffer, canvas#image-preview {
    position: absolute;
    top: 124px;
    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: .5;
    z-index: 40;
}

/*== Options bar ==*/

div#game-options ul {
    margin: 0 auto;
}

div#game-options {
    z-index: 500;
    top: 92px;
    left: -20px;
    position: fixed;
    padding: 0px 10px 0px 30px;
    width: 100%;
    height: 32px;
    -moz-box-shadow: 0 0 5px #54c89e;
    -webkit-box-shadow: 0 0 5px #54c89e;
    box-shadow: 0 0 5px #54c89e;
    background: #114375;
}

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: 70px;
    display: block;
    text-align: center;
}

/*== Select ==*/

div#game-options div.styled-select select {
    outline: none;
    background: transparent;
    width: 100px;
    padding: 1px;
    font-size: 15px;
    border: none;
    height: 28px;
}

div#game-options div.styled-select {
    width: 80px;
    height: 28px;
    margin-right: 5px;
    overflow: hidden;
    background: url(../images/arrow.png) right no-repeat #B7D6C3;
    border: 1px solid #B7FFC3;
}

/*== 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 #B7D6C3;
    padding-left: 30px;
}

/*== Modal window ==*/

div#congrat {
    text-align: center;
}

div#help {
    font-size: 15px;
}

div#help ul {
    margin-left: 10px;
}

/*== mobile ==*/

@media screen and (max-width: 800px) and (orientation: portrait) {
    div#game-options {
        top: 105px;
    }
    canvas#canvas, canvas#buffer, canvas#image-preview {
        top: 137px;
    }
}

@media screen and (max-height: 595px) and (orientation: landscape) {
    div#game-options {
        top: 65px;
    }
    canvas#canvas, canvas#buffer, canvas#image-preview {
        top: 97px;
    }
    #pub10 {
        display: none
    }
}

@media screen and (max-width: 960px) {
    div#game-options {
        left: -30px;
    }
    #clock {
        width: 70px;
    }
    #SHOW_EDGE, #SHOW_MIDDLE, #SHOW_ALL, #SHOW_FILEPICKER {
        display: none;
    }
}

@media screen and (max-width: 495px) {
    #SHOW_HELP, #clock {
        display: none;
    }
    #SHOW_PREVIEW {
        margin-right: 1px;
    }
}