html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    overscroll-behavior: contain;
}
html, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}
ol, ul {
    list-style: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

select {
    display: inline-block;
    height: 28px;
    line-height: 28px;
    border: 1px solid #aaa;
    padding: 4px;
    color: #555;
    font-family: Tahoma, Arial, sans-serif;
}

#btn_print i {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: url('/img/printer.png') no-repeat 0 0;
    margin-right: 12px;
}

#play_container {
    display: block;
}
#print_container {
    display: none;
    margin: 0.75cm 0;
}

#print_title {
    text-align: center;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    padding-bottom: 0.8cm;
}
#print_word_grid {
    margin-bottom: 1cm;
}
#print_word_grid table {
    table-layout: fixed;
    margin: 0 auto;
}
#print_word_grid td {
    overflow: hidden;
    width: 32px;
    height: 32px;
    font-size: 22px;
    color: #000;
    text-align: center;
}
#print_word_list {
    margin: 0 0.7cm;
}
#print_word_list li {
    font-size: 16px;
    color: #000;
    display: block;
    width: 25%;
    float: left;
    text-align: center;
}
#print_generated_by {
    clear: both;
    display: none;
    text-align: center;
    padding-top: 0.7cm;
    font-size: 14px;
}

@media print {
    @page { margin: 0; }
    #play_container { display: none; }
    #print_container { display: block; }
    body { background: none; }
}

@media (max-width: 600px) {
    #words_header { width: 125px; }
    #word_list li {
        font-size: 16px;
    }
}
@media (min-width: 600px) {
    #word_list li {
        font-size: 18px;
    }
}
@media (min-width: 600px) and (max-width: 1000px) {
    #words_header { width: 150px; }
}

@media (max-width: 1000px) {
    body {
        background: white;
    }
    #outer_container {
        padding: 0;
        width: 100%;
        height: 100%;
    }
    #social_bar {
        padding: 25px;
        position: relative;
        /*width: 100%;*/
        left: 0;
    }
    #panel_info {
        padding: 12px;
        position: relative;
        /*width: 100%;*/
        left: 0;
    }
    #ui_lang {
        width: 150px;
    }

    .boxed {
        border-radius: 0;
    }
    #word_list_container {
        border-radius: 0;
    }

    #main_container { width: 100%; }
    #top_bar { border-radius: 0 }
}

@media (min-width: 1000px) {
    #outer_container {
        padding: 20px 0;
    }
    #social_bar {
        padding: 25px 0;
        position: relative;
        width: 100%;
    }
    #panel_info {
        padding: 10px 0;
        position: relative;
        width: 840px;
        left: 240px;
    }
    #ui_lang {
        width: 170px;
    }

    .boxed {
        background: #FFF;
        border-radius: 5px;
        box-shadow: 0 0 12px rgba(58, 51, 46, 0.26);
    }
    #word_list_container {
        border-radius: 0 0 0 5px;
    }

    #main_container { width: 100%; }
    #words_header { width: 190px; }
    #grid_header { width: 640px;}
    #top_bar { border-radius: 5px 5px 0 0; }
}

@media (min-width: 1000px) and (max-width: 1080px) {
    #outer_container {
        width: 1000px;
    }
    #social_bar {
        left: 180px;
    }
}

@media (min-width: 1080px) {
    #outer_container {
        width: 1080px;
    }
    #social_bar {
        left: 260px;
    }
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    font-family: "Alegreya Sans", Calibri, Arial, sans-serif;
    color: #8e8071;
    background: #AAA;
    -webkit-font-smoothing: subpixel-antialiased;
    overflow-x: hidden;
    background: url(/img/bg.png)
}

    .fb-like {
        position: relative;
        top: -6px;
        padding-right: 20px;
    }

#body_wrapper {
    width: 100%;
    height: 100%;
}
#outer_container {
    margin: 0 auto;
}
#ad_container_left {
    float: left;
}
#panel_info {
    color: #555;
}
#main_container {
    float: left;
    color: #FFF;
    background: #FFF;
}

#top_bar {
    background: #195f9a;
}

#words_header {
    text-align: center;
    vertical-align: middle;
    background: #257bc3;
}
    #words_header h4 {
        font-size: 22px;
    }

#word_list_container {
    background: #f5f5f5;
}
    #word_list {
        overflow-x: hidden;
        overflow-y: hidden;
        vertical-align: top;
        color: #000;
    }

#grid_header {
    padding: 0;
    position: relative;
    vertical-align: middle;
    background: #257bc3;
    height: 38px;
}
    #grid_header .left {
    }
    #grid_header h4 {
        font-size: 22px;
        display: inline;
    }
    #grid_menu_bar {
        position: absolute;
        right: 0;
    }
        #grid_menu_bar li {
            float: right;
            display: block;
            text-align: center;
            border-left: 1px solid rgba(255, 255, 255, 0.60);
        }
            #grid_menu_bar li a {
                display: block;
                cursor: pointer;
                color: #fff;
                font-size: 22px;
                padding-left: 3px;
                width: 46px;
            }
                #grid_menu_bar li a:hover {
                    background: rgba(255, 255, 255, 0.40);
                }

#canvas_container {
}
    #generating_puzzle {
        margin: auto;
        text-align: center;
    }
        #generating_puzzle h4 {
            font-size: 26px;
            margin-bottom: 16px;
        }

#word_found_div {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    top: 0;
    left: 0;
}

#word_found {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}


#overlay_dimmer {
    width: 100%;
    height: 100%;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

#finished_popup {
    width: 500px;
    color: #777;
    overflow: hidden;
    top: 0;
    left: 0;
    font-size: 18px;
    text-align: center;
}
    #finished_popup h2, #finished_popup h3, #finished_score_history {
        margin-bottom: 10px;
    }

#popover {
    font-family: Verdana, Arial, sans-serif;
    color: #000;
    font-size: 14px;
}
#popover_button_bar {
    text-align: center;
    padding: 8px;
}
    #popover_button_bar button {
        min-width: 90px;
    }
        #popover_button_bar button:not(:last-child) {
            margin-right: 8px;
        }

.content {
    padding: 8px;
}

.centered_over {
    left: 0;
    width: 100%;
    text-align: center;
    position: absolute;
    pointer-events: none;
}


.tooltip {
    position: absolute;
    z-index: 1030;
    display: block;
    font-size: 12px;
    line-height: 1.4;
    left: 0;
    top: 0;
}
    .tooltip.top {
        padding: 5px 0;
        margin-top: -3px;
    }

    .tooltip.right {
        padding: 0 5px;
        margin-left: 3px;
    }

    .tooltip.bottom {
        padding: 5px 0;
        margin-top: 3px;
    }

    .tooltip.left {
        padding: 0 5px;
        margin-left: -3px;
    }

.tooltip-inner {
    max-width: 200px;
    padding: 8px;
    color: #FFF;
    text-align: center;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}

.tooltip.top .tooltip-arrow {
    bottom: 0;
    left: 50%;
    margin-left: -5px;
    border-top-color: rgba(0, 0, 0, 0.6);
    border-width: 5px 5px 0;
}

.tooltip.right .tooltip-arrow {
    top: 50%;
    left: 0;
    margin-top: -5px;
    border-right-color: rgba(0, 0, 0, 0.6);
    border-width: 5px 5px 5px 0;
}

.tooltip.left .tooltip-arrow {
    top: 50%;
    right: 0;
    margin-top: -5px;
    border-left-color: rgba(0, 0, 0, 0.6);
    border-width: 5px 0 5px 5px;
}

.tooltip.bottom .tooltip-arrow {
    top: 0;
    left: 50%;
    margin-left: -5px;
    border-bottom-color: rgba(0, 0, 0, 0.6);
    border-width: 0 5px 5px;
}

.popup {
    background-color: white;
    position: fixed;
    padding: 16px;
    z-index: 1001;
    border-radius: 4px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.6);
}

.popover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1010;
    max-width: 276px;
    padding: 1px;
    text-align: left;
    white-space: normal;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
}

    .popover.top {
        margin-top: -10px;
    }

    .popover.right {
        margin-left: 10px;
    }

    .popover.bottom {
        margin-top: 10px;
    }

    .popover.left {
        margin-left: -10px;
    }

.popover_title {
    padding: 8px 14px;
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 18px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #ebebeb;
    -webkit-border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0;
}

    .popover_title:empty {
        display: none;
    }

.popover_content {
    padding: 9px 14px;
}

.popover .arrow,
.popover .arrow:after {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}

.popover .arrow {
    border-width: 11px;
}

    .popover .arrow:after {
        border-width: 10px;
        content: "";
    }

.popover.top .arrow {
    bottom: -11px;
    left: 50%;
    margin-left: -11px;
    border-top-color: #999;
    border-top-color: rgba(0, 0, 0, 0.25);
    border-bottom-width: 0;
}

    .popover.top .arrow:after {
        bottom: 1px;
        margin-left: -10px;
        border-top-color: #ffffff;
        border-bottom-width: 0;
    }

.popover.right .arrow {
    top: 50%;
    left: -11px;
    margin-top: -11px;
    border-right-color: #999;
    border-right-color: rgba(0, 0, 0, 0.25);
    border-left-width: 0;
}

    .popover.right .arrow:after {
        bottom: -10px;
        left: 1px;
        border-right-color: #ffffff;
        border-left-width: 0;
    }

.popover.bottom .arrow {
    top: -11px;
    left: 50%;
    margin-left: -11px;
    border-bottom-color: #999;
    border-bottom-color: rgba(0, 0, 0, 0.25);
    border-top-width: 0;
}

    .popover.bottom .arrow:after {
        top: 1px;
        margin-left: -10px;
        border-bottom-color: #ffffff;
        border-top-width: 0;
    }

.popover.left .arrow {
    top: 50%;
    right: -11px;
    margin-top: -11px;
    border-left-color: #999;
    border-left-color: rgba(0, 0, 0, 0.25);
    border-right-width: 0;
}

    .popover.left .arrow:after {
        right: 1px;
        bottom: -10px;
        border-left-color: #ffffff;
        border-right-width: 0;
    }

.btn2 {
  background: #536270;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 6px 20px;
  border-radius: 5px;
  border-bottom: 2px solid #4c5762;
}
.btn2:hover {
  background: #4c5762;
}

.btn2-blue {
  background: #60b3d8;
  border-color: #368cb2;
}
.btn2-blue:hover {
  background: #368cb2;
}

.btn2-green {
  background: #85b26a;
  border-color: #659249;
}
.btn2-green:hover {
  background: #659249;
}

.btn2-red {
  background: #d27e7e;
  border-color: #b05555;
}
.btn2-red:hover {
  background: #b05555;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}
.btn:focus,
.btn:active:focus,
.btn.active:focus {
    outline: thin dotted;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}
.btn:hover,
.btn:focus {
    color: #333;
    text-decoration: none;
}
.btn:active,
.btn.active {
    background-image: none;
    outline: 0;
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
.btn-default {
     color: #333;
     background-color: #fff;
     border-color: #ccc;
 }
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    background-image: none;
}
.btn-success {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
    color: #fff;
    background-color: #449d44;
    border-color: #398439;
}
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
    background-image: none;
}

.btn-default,
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
}
.btn-default:active,
.btn-primary:active,
.btn-success:active,
.btn-info:active,
.btn-warning:active,
.btn-danger:active,
.btn-default.active,
.btn-primary.active,
.btn-success.active,
.btn-info.active,
.btn-warning.active,
.btn-danger.active {
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
.btn:active,
.btn.active {
    background-image: none;
}
.btn-default {
    text-shadow: 0 1px 0 #fff;
    background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);
    background-image:      -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0));
    background-image:         linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
    background-repeat: repeat-x;
    border-color: #dbdbdb;
    border-color: #ccc;
}
.btn-default:hover,
.btn-default:focus {
    background-color: #e0e0e0;
    background-position: 0 -15px;
}
.btn-default:active,
.btn-default.active {
    background-color: #e0e0e0;
    border-color: #dbdbdb;
}
.btn-default:disabled,
.btn-default[disabled] {
    background-color: #e0e0e0;
    background-image: none;
}
