html, body, div, ul, ol,
li, canvas, h1, h2, h3, h4, h5 {
    margin: 0; padding: 0;
}

#soup {
    margin: 0 auto;
}
@media (max-width:767px){
    #soup {
        width: auto !important;
    }
}
@media (max-width:499px){
    #soup {
        padding-top: 260px;
    }
}
@media (min-width:500px){
    #soup {
        padding-top: 150px;
    }
}
@media (min-width:968px){
    #soup {
        padding-top: 100px;
    }
}

/* Options bar */
div#game-options {
    z-index: 1;
    top: 0;
    left: 0;
    position: absolute;
    padding: 5px 0;
    width: 100%;
    transition: opacity .5s linear;
    text-align: center;
}
@media (max-width:499px){
    div#game-options {
        max-width: 300px;
        margin: 0 auto;
        right: 0;
    }
}
@media (min-width:500px){
    div#game-options {
        max-width: 470px;
        margin: 0 auto;
        right: 0;
    }
}
@media (min-width:968px){
    div#game-options {
        max-width: none;
    }
}

div#game-options ul {
    display: inline-block;
    zoom: 1;
    *display: inline;
    margin: 0 auto;
}

div#game-options ul li { 
    display: inline-block;
    zoom: 1;
    *display: inline;
    list-style: none;
    margin-left: -5px;
}

div#game-options ul li:before {
    content: none;
}

div#game-options ul li b {
    /*margin-right: 10px;*/
}

div#game-options ul li div.words {
    width: 110px;
}
div#game-options ul li div.words select {
    width: 130px;
}

div#game-options ul #download-button {
    display: none;
    position: absolute;
    right: 20px;
}

/* Clock */
#html5-wordsearch-timer {
    width: 120px;
}

#html5-wordsearch-score {
    width: 210px;
    display: block;
    text-align: center;
}

#modal-window #save-score-form .button { float: none; clear: both; }

#save-score-input {
    border: 1px solid #eee;
    -webkit-border-radius: 5px;
       -moz-border-radius: 5px;
            border-radius: 5px;
    -webkit-box-shadow: 1px 1px 4px #000 inset;
       -moz-box-shadow: 1px 1px 4px #000 inset;
            box-shadow: 1px 1px 4px #000 inset;
    outline: none;
    padding: 5px
       
}

html.lt-ie8 #soup { padding-top: 50px; }
html.lt-ie9 #html5-wordsearch { margin-top: 50px; }
html.lt-ie8 #font-size-down small { font-size: 12px; }
html.lt-ie7 #download-puzzle span { display: none; }
.loading .html5-wordsearch,
.loading div#game-options {
    visibility: hidden;
}

.wordsearch {
    position: relative;
}

.loading .wordsearch,
.loading.wordsearch {
    background-image: url(../images/loader.gif);
    background-repeat: no-repeat;
    background-position: center 30%;
}

body.hide-form #save-score-form {
    display: none;
}

.html5-wordsearch canvas,
.html5-wordsearch ul,
.html5-wordsearch div {
    font-size: 18px;
    margin: 0;
    padding: 0;
}

.html5-wordsearch {
    display: flex;
    position: relative;
    transition: opacity .5s linear;
}

.html5-wordsearch .row {
    width: 100%;
}

.hae-words__canvas {
    width: 90%;
    max-height: 300px !important;
    max-width: 300px !important;
}


@media (max-width:339px){
    .html5-wordsearch canvas {
        cursor: pointer;
        position: absolute;
        top: 0;
        right: 0;
        left: -10px;
    }
}
@media (min-width:340px){
    .html5-wordsearch canvas {
        border: 3px solid #f3f3f3;
        border-radius: 7px;
        cursor: pointer;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}
@media (min-width:768px){
    .html5-wordsearch canvas {
        border: 7px solid #f3f3f3;
        margin: 0;
    }
}

.html5-wordsearch canvas.grid {
    background: #fff;
}

/*@media (max-width:767px){*/
    /*.html5-wordsearch canvas {}*/
/*}*/
/*@media (min-width:768px){*/
    /*.html5-wordsearch canvas {}*/
/*}*/
/*@media (min-width:960px){*/
    /*.html5-wordsearch canvas {*/
        /*height: 460px !important;*/
        /*width: 460px !important;*/
    /*}*/
/*}*/
/*@media (min-width:1400px){*/
    /*.html5-wordsearch canvas {}*/
/*}*/

.html5-wordsearch div.description {
    position: absolute;
    font-weight: bold;
    margin: 0 10px;
    text-align: left;
}
@media (max-width:767px){
    .html5-wordsearch div.description {
        font-size: 9px;
    }
}
@media (min-width:768px){
    .html5-wordsearch div.description {
        font-size: 10px;
    }
}
@media (min-width:960px){
    .html5-wordsearch div.description {
        font-size: 12px;
    }
}
@media (min-width:1400px){
    .html5-wordsearch div.description {
        font-size: 13px;
    }
}

.html5-wordsearch .description span.word {
    background: #050;
    color: #fff;
    padding: 2px;
    -webkit-border-radius: 3px;
       -moz-border-radius: 3px;
            border-radius: 3px;
}


.html5-wordsearch .list {
    /*position: absolute;*/
    /*top: 0;*/
    /*right: 0;*/
    /*width: 260px;*/
    /*overflow: auto;*/
    min-width: 260px;
}

@media (max-width:767px){
    .html5-wordsearch .list {
        padding-top: 20px;
    }
}

.html5-wordsearch .list li {
    position: relative;
    padding: 6px 30px;
    color: #333;
    border-bottom: 1px solid #eee;
}

@media (max-width:767px){
    .html5-wordsearch .list li {
        font-size: 16px;
        line-height: 1.2em;
    }
}
@media (min-width:768px){
    .html5-wordsearch .list li {
        font-size: 18px;
        line-height: 1.2em;
    }
}
@media (min-width:960px){
    .html5-wordsearch .list li {
        font-size: 20px;
    }
}

.html5-wordsearch .list li:before {
    content: none;
}

.html5-wordsearch .list li a {
    outline: none;
    color: #676f7f;
    font-size: 13px;
    padding: 2px 8px;
    background: #f1f0f0;
    border-radius: 3px;
    text-decoration: none;
    -webkit-border-radius: 3px;
       -moz-border-radius: 3px;
         -o-border-radius: 3px;
        -ms-border-radius: 3px;
            border-radius: 3px;
    -webkit-text-shadow: 0 1px #fff;
       -moz-text-shadow: 0 1px #fff;
            text-shadow: 0 1px #fff;
}

.html5-wordsearch .list li.crossed a,
body.disable-hints .html5-wordsearch .list li a {
    visibility: hidden;
}

.html5-wordsearch .list li.crossed {
    background-repeat: no-repeat;
    background-position: 10px center;
}

.html5-wordsearch .list li.crossed.bad {
    background-image: url(../images/bad-icon.png);
    color: #d55;
;
}

.html5-wordsearch .list li.crossed.good {
    background: url(../images/check-icon.png) 10px 50% no-repeat;
    color: #83a345;
}

#download-puzzle {
    position: absolute;
    right: 20px;
    display: none;
}
 
#download-puzzle span {
    text-decoration: underline;
    font-weight: bold;
    -webkit-text-shadow: 0 -1px 0 #aaa;
       -moz-text-shadow: 0 -1px 0 #aaa;
        -ms-text-shadow: 0 -1px 0 #aaa;
            text-shadow: 0 -1px 0 #aaa;
}
/* icons */
.crossed {
    text-decoration: line-through;
}

/****************
 * HELP MESSAGE *
 ****************/
div#modal-window.help {
    top: 20% !important;
}
div#modal-window.help li {
    list-style: circle;
    margin: 10px;
}

div#modal-window.help #puzzle-description.hide { display: none; }

div#modal-window.help #puzzle-description {
    background: #efefef;
    color: #666666;
    font-size: 14px;
    font-weight: bold;
    text-align: justify;
    padding: 4px;
    -webkit-border-radius: 5px;
       -moz-border-radius: 5px;
            border-radius: 5px;
}
/* Google-styled buttons
* http://pixify.com/blog/use-google-plus-to-improve-your-ui/
*/
a.button, b.button {
    border-radius: 7px 7px 7px 7px;
}
b.button {
    color: #6e6e6e;
    font-size: 18px;
    display: inline-block;
    zoom: 1;
    *display: inline;
    background: #f3f3f3;
    border-color: #dcdcdc;
    line-height: 25px;
}

b.button:hover {
    color: #6e6e6e;
    background: #f3f3f3;
    border-color: #dcdcdc;
}

a.button {
    line-height: 24px;
    padding: 3px 0 6px;
}
a.button:active {
    color: #fff;
    border-color: #fc8d2b;
}

/*a.left {*/
    /*-webkit-border-top-right-radius: 0;*/
    /*-moz-border-radius-topright: 0;*/
    /*border-top-right-radius: 0;*/
    /*-webkit-border-bottom-right-radius: 0;*/
    /*-moz-border-radius-bottomright: 0;*/
    /*border-bottom-right-radius: 0;*/
    /*margin: 0 -5px 0 0;*/
    /*border-right: none;*/
/*}*/

a.middle {
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-left: solid 1px #f3f3f3;
    margin: 0;
    border-left: solid 1px rgba(255, 255, 255, 0);
}

a.middle:hover { border-left: solid 1px #fff }

a.right {
    /*-webkit-border-top-left-radius: 0;*/
    /*-moz-border-radius-topleft: 0;*/
    /*border-top-left-radius: 0;*/
    /*-webkit-border-bottom-left-radius: 0;*/
    /*-moz-border-radius-bottomleft: 0;*/
    /*border-bottom-left-radius: 0;*/
    /*border-left: solid 1px #fff;*/
    border-radius: 7px 7px 7px 7px;
    border-left: 7px solid #ff7b05;
}

a.help {
    /*background: url(../images/help.png) 10px 9px no-repeat;*/
}

#font-size-down {
    padding-bottom: 5px;
}

.hae-words__img {
    display: block;
}
@media (max-width:819px){
    .hae-words__img {
        max-width: 90%;
        margin: 3% auto 0;
    }
}
@media (min-width:820px){
    .hae-words__img {
        margin: 6% auto 0;
        width: auto;
    }
}
