html,
button,
input,
select,
textarea {
    color: #000;
}


/*--Stops firefox from moving the grid a pixel when clicking in a square in the first column--*/

@-moz-document url-prefix() {
    table {
        border-collapse: separate;
    }
}

body {
    -webkit-touch-callout: none !important;
}

a {
    -webkit-user-select: none !important;
}

[draggable] {
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    /* Required to make elements draggable in old WebKit */
    -khtml-user-drag: element;
    -webkit-user-drag: element;
}

.no-js-message {
    position: relative;
    z-index: 100001;
    padding: 10px;
    text-align: center;
}


/* ==========================================================================
   WordSearch Styles
   ========================================================================== */

.title,
.timer,
.draggable-letter,
table .text-cell-default {
    font-family: 'Roboto', sans-serif;
}

html {
    font-size: 62.5%;
}

html,
body {
    font-family: 'Roboto', sans-serif;
    min-width: 300px;
    height: 100%;
    overflow: hidden;
}

body {
    padding: 0 0 15px;
    background: #0e3155;
}

* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
    color: #000;
    outline: none !important;
    border-bottom: none;
}

form * {
    -webkit-appearance: none;
}

li {
    font-size: 12px;
}

.playable-area {
    position: absolute;
}


/* ==========================================================================
   Generic
   ========================================================================== */

::selection {
    background: transparent;
    /* Safari */
}

::-moz-selection {
    background: transparent;
    /* Firefox */
}

.site-header {
    padding: 1.5rem 1rem 0;
    text-align: center;
    margin: 0;
    position: relative;
}


/*--
Puzzle Title
--*/

.game-instruction {
    font-size: 1.6rem;
    text-align: center;
    font-weight: 400;
    color: #fff
}


/*.logo { display: block; background: url(../img/sun-puzzles.png) no-repeat; width: 81px; height: 35px; background-size: 81px 35px; }*/

@media only screen and (min-width: 768px) {
    .game-instruction {
        margin-top: 1rem;
    }
}


/*--
Timer
--*/

.timer {
    color: #fff;
    text-align: right;
    font-size: 16px;
    position: absolute;
    width: auto;
    padding: 0;
    bottom: -1px;
    height: 38px;
    line-height: 40px;
    z-index: 2;
}


/*--
Action Buttons
--*/

.action-buttons {
    padding: 0;
    list-style: none;
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
    margin: 0;
    background: rgba(0, 0, 0, .3);
    height: 38px;
    border-top: 1px solid #fff;
    text-align: right;
}

.action-buttons a {
    transition: opacity 100ms;
}

.action-buttons a:focus,
.action-buttons a:active {
    opacity: .45;
}

.action-buttons li {
    display: inline-block;
    margin: 0 0 0 19px;
}

.action-buttons li a {
    height: 38px;
    line-height: 36px;
    display: block;
    padding: 0;
    text-align: center;
    font-weight: normal;
    font-size: 16px;
    text-decoration: none;
    position: relative;
    color: #fff;
}

.icon {
    display: none;
}


/*--
Overlays
--*/

.overlay-bg,
.menu-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2499;
    display: none;
}

.menu-bg {
    background: rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

.overlay {
    position: absolute;
    background: #fff;
    left: 50%;
    top: 50%;
    height: 150px;
    width: 240px;
    margin: -75px 0 0 -120px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    padding: 0;
    z-index: 2500;
    display: none;
}

.overlay h1 {
    padding: 30px 0 0;
}

.close-overlay {
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: 15px;
    display: block;
    text-indent: -9999px;
    border-radius: 50%;
    position: absolute;
    top: -15px;
    right: -15px;
    border: none;
    z-index: 2;
    background-position: center center;
    background-color: #0e3155;
}

.overlay h1 {
    text-align: center;
    font-size: 15px;
    margin: 0 0 25px;
    font-weight: 700;
    color: #0e3155;
}

@media only screen and (min-width: 1024px) {
    .close-overlay {
        background-color: #0e3155;
    }
}


/*--
Unsuccessful
--*/

.overlay.incorrect {
    padding-top: 10px;
}

.overlay.incorrect,
.overlay.complete {
    width: 90%;
    max-width: 300px;
    margin: 0;
    height: auto;
    transform: translate(-50%, -50%);
}

.overlay.incorrect h1 {
    font-size: 40px;
    margin: 0 0 5px;
    height: auto;
}

.overlay.incorrect p {
    font-size: 15px;
    text-align: center;
    line-height: 20px;
    color: #314047;
    width: 190px;
    margin: 0 auto 15px;
    text-transform: -1px;
}

.game-over-option {
    list-style: none;
    margin: 0 auto;
    padding: 20px 20px 10px;
    width: auto;
    clear: both
}

.game-over-option li {
    margin: 0 0 10px;
}

.game-over-option a {
    height: 35px;
    line-height: 35px;
    display: block;
    text-align: center;
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
    font-size: 20px;
    letter-spacing: -1px;
}

.btn-more-puzzles a {
    background: #314047;
}


/*--
Successful
--*/

.overlay.complete {
    padding-top: 20px;
}

.overlay.complete h1 {
    font-size: 40px;
    line-height: 35px;
    margin: 0 auto 20px;
    height: auto;
    padding: 0;
    width: 190px;
}

.overlay.complete p {
    font-size: 15px;
    text-align: center;
    line-height: 20px;
    color: #314047;
    width: 190px;
    margin: 0 auto 15px;
    text-transform: -1px;
}

.overlay.complete p.complete-time {
    font-weight: 700;
}

@-webkit-keyframes successfade {
    0% {
        opacity: 1;
        left: 0;
    }
    80% {
        opacity: 1;
        left: 0;
    }
    100% {
        opacity: 0;
        left: 0;
    }
}

@keyframes successfade {
    0% {
        opacity: 1;
        left: 0;
    }
    80% {
        opacity: 1;
        left: 0;
    }
    100% {
        opacity: 0;
        left: 0;
    }
}


/*--
Choice Buttons
--*/

.incorrect .yesno a {
    font-size: 18px;
}

.yesno {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
    text-align: center;
    height: 35px;
}

.yesno li {
    margin: 0 6px;
    padding: 0;
    display: inline-block;
}

.yesno a {
    border: none;
    display: block;
    text-align: center;
    width: 100%;
    height: 35px;
    line-height: 35px;
    font-size: 20px;
    text-decoration: none;
    color: #fff !important;
    width: 85px;
    background: #0e3155;
    border-radius: 7px;
    font-weight: 400;
    letter-spacing: -1px;
}

.yesno .btn-no a {
    background: #324148;
}

.yesno a:active {
    background-color: #d5d6d8;
}

.kindle .puzzle {
    overflow: visible;
}


/*--Puzzle--*/

.puzzle {
    display: inline-block;
    -webkit-transform-origin: left top;
    -webkit-transition: -webkit-transform 250ms ease-in;
    transform-origin: left top;
    transition: transform 250ms ease-in;
}

.puzzle table {
    position: relative;
    margin: 0;
}

td {
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: 20px;
    overflow: hidden;
    color: #0e3155;
    line-height: 1;
}

td span {
    display: block;
    height: 30px;
    width: 30px;
    line-height: 30px;
    font-size: 22px;
    font-weight: 700;
}

.table-holder {
    padding: 10px 5px 4px;
    display: inline-block;
    position: relative;
}

.table-holder:before {
    background: #fff;
    border-radius: 3px;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -10000;
    content: '';
}

#dragger {
    position: absolute;
    width: 400px;
    height: 200px;
    background: rgba(255, 128, 0, 0);
    top: 9px;
    left: 5px;
    cursor: pointer !important;
}

.viewer {
    position: absolute;
    width: 0;
    height: 0;
    background: #0e3155;
    opacity: .3;
    top: 0;
    left: 0;
    z-index: -200 !important;
}

.viewer.done {
    z-index: -200 !important;
}

.viewer.done.right {
    z-index: -200 !important;
    background: #c8d9ca;
    opacity: 1;
}

.viewer.done.wrong {
    z-index: -200 !important;
    background: #f3bfb9;
    opacity: 1;
}

.words {
    margin: 0 0 0 -2px;
    padding: 2px 0 0;
    list-style: none;
}

.words:after {
    clear: both;
    content: '';
}

.words li {
    float: left;
    width: 33.3%;
    font-size: 12px;
    padding: 0 2px 4px;
}

.words li span {
    background: #fff;
    border-radius: 3px;
    display: block;
    text-align: center;
    padding: 0;
    height: 20px;
    line-height: 20px;
}

.words li.got span {
    background: #0e3155;
    font-weight: 700;
    color: rgba(255, 255, 255, .5);
}

@media only screen and (max-width: 767px) {
    .words li {
        font-size: 16px;
    }
}

.selected-boxes {
    border: 1px solid #9e9e9e;
    position: absolute;
    top: 119px;
    left: 35px;
    width: 200px;
    padding: 0 0 0 10px;
    background: #f4f4f4;
    height: 45px;
    line-height: 45px;
    color: #626261;
}

.selected-boxes span {
    position: absolute;
    top: 0;
    right: 0;
    height: 43px;
    line-height: 43px;
    background: #fff;
    width: 55px;
    border-left: 1px solid #9e9e9e;
    text-align: center;
    font-size: 20px;
}

.btn-relaunch {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 32px 32px;
    display: block;
    width: 42px;
    height: 42px;
    right: 30px;
    top: 10px;
    position: absolute;
    text-indent: -9999em;
    z-index: 1000;
}

.onboarding-overlay {
    background: #fff;
    z-index: 3000;
    width: 530px;
    height: 530px;
    position: fixed;
    top: 50%;
    left: 50%;
    margin: -265px 0 0 -265px;
    display: none;
    overflow: hidden;
}

.onboarding-overlay-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2999;
    display: none;
}

.close-onboarding-overlay {
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    display: block;
    text-indent: -9999px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    z-index: 2;
    background-position: center center;
}

.slide-content {
    height: 496px;
}

.viewer {
    border-radius: 30px;
}

.viewer.done {
    border-radius: 30px;
}

.touch .viewer {
    margin-top: -3px;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

.hide {
    display: none;
}

@media only screen and (max-height: 500px) {
    .title {
        display: none;
        height: 0;
        overflow: hidden;
        padding: 20px 0 0;
    }
}

@media only screen and (min-width: 540px) {
    /* ==========================================================================
Game Layout
========================================================================== */
    /*--
Puzzle Title
--*/
    /*--
Timer
--*/
}


/*-----
ROTATE TO VIEW
-------*/

.page-wrap {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.rotate-warning {
    display: none;
}

@media only screen and (orientation:landscape) and (max-height: 499px) {
    .page-wrap {
        display: none;
    }
    .rotate-warning {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
    }
    .rotate-text {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        margin: -65px 0 0 0;
        font-size: 1em;
        color: #000;
        background: url(../img/rotate-icon.png) no-repeat center top;
        background-size: 40px auto;
        padding: 50px 0 0;
        text-align: center;
        text-transform: uppercase;
        line-height: 1.05;
        font-style: normal;
        font-weight: normal;
    }
}

@media only screen and (orientation:landscape) and (min-height: 500px) {
    .rotate-warning {
        display: none;
    }
    .page-wrap {
        display: block;
    }
}


/* TODO */

#triggerUndo.disabled {
    opacity: 0.25;
}

#triggerUndo.disabled a {
    cursor: default;
}

#triggerRedo.disabled {
    opacity: 0.25;
}

#triggerRedo.disabled a {
    cursor: default;
}

.puzzle-cross-sell-holder {
    padding: 0;
    border-top: 1px solid #babdc1;
    border-radius: 0 0 10px 10px;
}

.puzzle-cross-sell {
    width: 50%;
    float: left;
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid #babdc1;
    background: #f7eee4;
}

.show-two-puzzles .puzzle-cross-sell,
.puzzle-cross-sell-links-1 .puzzle-cross-sell {
    width: 100%;
    text-align: center;
}

.show-two-puzzles .puzzle-cross-sell li {
    float: left;
    width: 50%;
}

.puzzle-cross-sell h2 {
    font-size: 12px;
    color: #314047;
    font-weight: 700;
}

.puzzle-cross-sell a {
    display: block;
    text-decoration: none;
    color: #314047;
}

.puzzle-cross-sell a img {
    height: 50px;
    width: auto;
    margin: 0 auto 5px;
    display: table;
}

.puzzle-cross-sell ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.puzzle-cross-sell__yesterday {
    border-right: 1px solid #babdc1;
}

.icon-button-close,
.close-overlay,
.close-onboarding-overlay,
.crossword .close-overlay {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE1LjAuMiwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyNi4xNjdweCIgaGVpZ2h0PSIyNnB4IiB2aWV3Qm94PSIwIDAgMjYuMTY3IDI2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNi4xNjcgMjYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxwYXRoIGZpbGw9IiNmZmZmZmYiIGQ9Ik0xNi42MSwxMy4xNjdsOS4wMTMtOS4wMTNjMC45MDUtMC45MDUsMC45MDUtMi4zNzEsMC0zLjI3NmMtMC45MDQtMC45MDYtMi4zNzItMC45MDYtMy4yNzcsMGwtOS4wMTMsOS4wMTIKCQlMNC4zMjEsMC44NzhjLTAuOTA2LTAuOTA2LTIuMzcyLTAuOTA2LTMuMjc3LDBjLTAuOTA2LDAuOTA1LTAuOTA2LDIuMzcxLDAsMy4yNzZsOS4wMTIsOS4wMTNsLTkuMDEsOS4wMTEKCQljLTAuOTA2LDAuOTA1LTAuOTA2LDIuMzcxLDAsMy4yNzZjMC40NTMsMC40NTMsMS4wNDUsMC42NzksMS42MzcsMC42NzljMC41OTQsMCwxLjE4Ny0wLjIyNiwxLjY0LTAuNjc5bDkuMDEtOS4wMTFsOS4wMTEsOS4wMTEKCQljMC40NTMsMC40NTMsMS4wNDUsMC42NzksMS42MzksMC42NzljMC41OTMsMCwxLjE4Ni0wLjIyNiwxLjYzOC0wLjY3OWMwLjkwNi0wLjkwNSwwLjkwNi0yLjM3MSwwLTMuMjc2TDE2LjYxLDEzLjE2N3oiLz4KPC9nPgo8L3N2Zz4=);
}