html, body {
    font-family: Helvetica, Arial, sans-serif;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

* {
  box-sizing: border-box;
}

*:focus {
  outline: 0;
}

body.tabbed button:not(:focus),
body.tabbed a:not(:focus) {
  filter: saturate(0.2);
}

body.tabbed *:focus:not([tabindex="-1"]),
body.tabbed *:focus-visible:not([tabindex="-1"]) {
  box-shadow:
    0 0 1px 3px orange,
    0 0 3px 5px darkblue,
    0 0 6px 10px rgba(0, 0, 0, 0.4) !important;
  }
}

body.no-animation * {
  animation: none !important;
  transition: none !important;
}

html, body, div, ul, ol,
li, canvas, h1, h2, h3, h4, h5 {
    margin: 0; padding: 0;
}

#soup {
    width: 100% !important;
    padding-top: 25px;
}

@media (min-width: 1024px) {
  #soup {
    height: 540px;
    width: 943px !important;
    margin: 0 auto;
    padding-top: 50px;
  }
}

@media (min-width: 1200px) {
  #soup {
    width: 1144px !important;
    height: 643px;
  }
}

#game-options {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 612px;
  margin: 0 auto;
  padding: 26px 16px 0;
}

#html5-wordsearch-timer,
#html5-wordsearch-score {
  font: bold 18px/35px "Source Sans Pro", sans-serif;
  color: #333;
}

#html5-wordsearch-timer {
  position: relative;
  display: inline-block;
  padding-left: 26px;
  margin-right: 20px;
}

#html5-wordsearch-timer::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 18px;
  height: 18px;
  background: url(../images/timer-icon.svg) no-repeat;
  background-size: contain;
}

@media (max-width: 359px) {
  #html5-wordsearch-timer {
    margin-right: 12px;
  }

  #html5-wordsearch-timer,
  #html5-wordsearch-score {
    font-size: 16px;
  }
}

@media (min-width: 400px) {
  #html5-wordsearch-timer {
    margin-right: 42px;
  }
}

@media (min-width: 1024px) {
  #game-options {
    width: 943px;
    max-width: 100%;
    padding-top: 36px;
    padding-left: 0;
    padding-right: 0;
  }

  #html5-wordsearch-timer,
  #html5-wordsearch-score {
    font-size: 20px;
    line-height: 50px;
  }

  #html5-wordsearch-timer {
    padding-left: 29px;
  }

  #html5-wordsearch-timer::after {
    top: 15px;
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 1200px) {
  #html5-wordsearch-timer {
    padding-left: 35px;
    margin-right: 50px;
  }

  #html5-wordsearch-timer,
  #html5-wordsearch-score {
    font-size: 24px;
  }

  #html5-wordsearch-timer::after {
    top: 13px;
    width: 24px;
    height: 24px;
  }

  #game-options {
    width: 1144px;
    padding-top: 46px;
  }
}

#restart {
  position: relative;
  display: inline-block;
  padding: 9px 37px 9px 12px;
  font: 14px/18px "Source Sans Pro", sans-serif;
  color: rgb(200,0,0);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 5px;
}

#restart::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 5px;
  width: 26px;
  height: 26px;
  background: url(../images/restart-icon.svg) no-repeat;
  background-size: contain;
}

@media (min-width: 1024px) {
  #restart {
    padding: 15px 56px 15px 15px;
    font-size: 16px;
    line-height: 20px;
  }

  #restart::after {
    top: 9px;
    right: 11px;
    width: 32px;
    height: 32px;
  }
}

footer {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 612px;
  margin: 0 auto;
  padding: 24px 16px 24px;
}

#show-help {
  display: inline-block;
  position: relative;
  padding-right: 30px;
  font: bold 15px/19px "Source Sans Pro", sans-serif;
  color: white;
  text-decoration: none;
}

#show-help::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: 19px;
  height: 19px;
  border: 2px solid white;
  border-radius: 50%;
  background: url(../images/help-icon.svg) no-repeat 8px center;
  background-size: 4px 14px;
}

@media (min-width: 1024px) {
  footer {
    width: 943px;
    max-width: 100%;
    padding-top: 30px;
    padding-left: 0;
    padding-right: 0;
  }

  #show-help {
    padding-right: 40px;
    font-size: 20px;
    line-height: 24px;
  }

  #show-help::after {
    top: -1px;
    width: 26px;
    height: 26px;
    background-position: 11px center;
    background-size: 5px 19px;
  }
}

@media (min-width: 1200px) {
  footer {
    width: 1144px;
    padding-top: 37px;
  }

  #show-help {
    padding-right: 49px;
    font-size: 24px;
    line-height: 30px;
  }

  #show-help::after {
    top: -2px;
    width: 32px;
    height: 32px;
    background-position: 13px center;
    background-size: 6px 23px;
  }
}

#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;
    padding: 5px

}

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;
}

html {
  background: linear-gradient( 0deg, rgba(0,100,170,0.8) 0%, rgb(132,201,240) 100% );
  background-attachment: fixed;
}

.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-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 13px;
    margin: 0;
    padding: 0;
}

.html5-wordsearch {
    position: relative;
    transition: opacity .5s linear;
}

.html5-wordsearch .canvases {
  position: relative;
  width: calc(100% - 10px);
  height: 0;
  padding-top: calc(100% - 10px);
  margin-left: 5px;
  margin-bottom: 40px;
}

.html5-wordsearch canvas {
    border: 1px solid black;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (min-width: 640px) {
  .html5-wordsearch .canvases {
    width: 570px;
    height: 570px;
    padding-top: 0;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .html5-wordsearch .canvases {
    position: static;
    height: auto;
    margin: 0;
  }

  .html5-wordsearch canvas {
      left: 20px;
      width: 468px;
      height: 468px;
  }
}

@media (min-width: 1200px) {
  .html5-wordsearch canvas {
    width: 571px;
    height: 571px;
  }
}

.html5-wordsearch canvas.grid {
    background: #fff;
    outline: 5px solid white;
    filter: drop-shadow(0px 0px 30px rgba(0, 0, 0, 0.25));
}

.html5-wordsearch div.description {
    position: absolute;
    font-size: 13px;
    font-weight: bold;
    margin: 0 10px;
}

.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 {
    width: calc(100% - 32px);
    max-width: 580px;
    margin: 0 auto;
    padding: 5px 16px;
    list-style: none;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    pointer-events: none;
}

.html5-wordsearch .list li {
    position: relative;
    padding: 12px 5px;
    font: 15px/19px "Source Sans Pro", sans-serif;
    color: black;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.html5-wordsearch .list li:last-child {
    border-bottom: 0;
}

.html5-wordsearch .list li a {
    display: inline-block;
    float: right;
    padding-left: 34px;
    text-decoration: none;
    font-size: 11px;
    color: #894F9D;
    background: url(../images/eye-icon.svg) no-repeat 0 center;
    background-size: 20px 20px;
    pointer-events: all;
}

@media (min-width: 1024px) {
  .html5-wordsearch canvas.grid {
      outline-width: 20px;
  }

  .html5-wordsearch .list {
      position: absolute;
      top: -20px;
      right: 0;
      width: 386px;
      height: 508px;
      max-width: 100%;
      margin: 0;
      padding: 14px 25px;
  }

  .html5-wordsearch .list li {
    font-size: 18px;
    line-height: 23px;
  }

  .html5-wordsearch .list li a {
    font-size: 13px;
  }
}

@media (min-width: 1200px) {
  .html5-wordsearch .list {
    width: 471px;
    height: 611px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .html5-wordsearch .list li {
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 22px;
    line-height: 28px;
  }

  .html5-wordsearch .list li a {
    font-size: 16px;
    background-size: 24px 24px;
  }
}

.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);
}

.html5-wordsearch .list li.crossed.good {
    background-image: url(../images/check-icon.png);
}

#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 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 {
    color: #6e6e6e;
    font: bold 12px Helvetica, Arial, sans-serif;
    text-decoration: none;
    padding: 7px 12px;
    position: relative;
    display: inline-block;
    zoom: 1;
    *display: inline;
    text-shadow: 0 1px 0 #fff;
    -webkit-transition: border-color .218s;
    -moz-transition: border .218s;
    -o-transition: border-color .218s;
    transition: border-color .218s;
    background: #f3f3f3;
    background: -webkit-gradient(linear,0% 40%,0% 70%,from(#F5F5F5),to(#F1F1F1));
    background: -moz-linear-gradient(linear,0% 40%,0% 70%,from(#F5F5F5),to(#F1F1F1));
    border: solid 1px #dcdcdc;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    margin-right: 10px;
}

a.button:active {
    color: #000;
}

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;
}

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, a.right:hover { border-left: solid 1px #999 }

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 #f3f3f3;
    border-left: solid 1px rgba(255, 255, 255, 0);
}

a.help {
    background: url(../images/help.png) 10px 6px no-repeat #f3f3f3;
    padding-left: 30px;
}
