html,
body,
div,
ul,
li,
h1,
h2,
h3,
p,
form,
input,
button {
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background: #005f94 url("images/sky.png") repeat-x top left fixed;
}

body {
    min-width: 1000px;
    min-height: 100%;
    overflow-y: scroll;
    font: 14pt Arial, Helvetica, sans-serif;
}

#wrapper {
    float: left;
    width: 100%;
    min-height: 100vh;
    background: url("images/mountains.png") repeat-x bottom left fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

#header {
    position: fixed;
    z-index: 7;
    top: 0;
    left: 50%;
    width: 1000px;
    margin-left: -512px;
    font-size: 15pt;
}

h1 {
    float: left;
    margin-left: 5px;
}

h1 a {
    display: block;
    width: 300px;
    height: 93px;
    overflow: hidden;
    text-indent: -1000em;
    background: url("images/logo.png") no-repeat;
}

.dropdown,
#search {
    float: right;
    margin-top: 15px;
    margin-right: 5px;
}

.dropdown {
    position: relative;
    width: 169px;
    min-height: 44px;
    padding: 0 15px;
    background: url("images/dropdownSelected.png") no-repeat;
}

.dropdown span {
    position: relative;
    z-index: 2;
    display: block;
    height: 32px;
    margin-top: 5px;
}

.dropdown .current {
    line-height: 34px;
}

.dropdown .arrow {
    position: absolute;
    right: 15px;
    top: 13px;
    width: 15px;
    height: 8px;
    background: url("images/downArrow.png");
}

.dropdown.open .arrow {
    background: url("images/upArrow.png");
}

.dropdown ul {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    display: none;
    width: 199px;
    background: url("images/dropdown-top.png") no-repeat;
}

.dropdown.open ul {
    display: block;
}

.dropdown li {
    line-height: 33px;
    background: url("images/dropdown-middle.png");
}

.dropdown li:first-child {
    margin-top: 39px;
}

.dropdown li:last-child {
    padding-bottom: 5px;
    background: url("images/dropdown-bottom.png") left bottom no-repeat;
}

.dropdown a {
    display: block;
    margin: 0 4px 0 5px;
    padding: 0 15px;
    color: #000;
}

.dropdown a:hover {
    background: url("images/dropdownHover.png");
    text-decoration: none;
}

#languages {
    margin-left: 0;
}

#languages .current {
    margin-left: 5px;
}

#languages .current span,
#languages li span {
    display: block;
    height: 32px;
    margin-top: 0;
    padding-left: 45px;
    background: url("images/flags.png") no-repeat;
}

#languages li a {
    padding-top: 4px;
    padding-bottom: 4px;
}

#languages li a:hover {
    background: url("images/dropdownLangHover.png") no-repeat;
}

#languages .en span { background-position: 0 0; }
#languages .es span { background-position: 0 -32px; }
#languages .fr span { background-position: 0 -64px; }
#languages .it span { background-position: 0 -96px; }
#languages .pt span { background-position: 0 -128px; }
#languages .ja span { background-position: 0 -160px; }
#languages .id span { background-position: 0 -192px; }
#languages .ro span { background-position: 0 -224px; }
#languages .ru span { background-position: 0 -256px; }
#languages .tr span { background-position: 0 -288px; }
#languages .zh span { background-position: 0 -320px; }
#languages .pl span { background-position: 0 -352px; }
#languages .th span { background-position: 0 -384px; }
#languages .nl span { background-position: 0 -416px; }
#languages .de span { background-position: 0 -448px; }
#languages .ar span { background-position: 0 -480px; }

#search {
    position: relative;
    width: 229px;
    height: 34px;
    padding: 5px 15px;
    background: url("images/search.png");
}

#search input {
    position: relative;
    z-index: 20;
    float: left;
    width: 195px;
    border: 0;
    outline: 0;
    color: #000;
    background: transparent;
    font: inherit;
}

#search button {
    position: relative;
    z-index: 20;
    float: left;
    width: 24px;
    height: 31px;
    margin-top: 1px;
    overflow: hidden;
    border: 0;
    cursor: pointer;
    text-indent: -1000em;
    background: url("images/searchButton.png");
}

#searchResults {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    width: 259px;
    background: url("images/search-top.png") no-repeat;
}

#searchResults ul {
    margin-top: 36px;
}

#searchResults li {
    padding: 3px 0;
    background: url("images/search-middle.png");
}

#searchResults li:last-child {
    padding-bottom: 7px;
    background: url("images/search-bottom.png") bottom left no-repeat;
}

#searchResults a {
    display: block;
    min-height: 30px;
    margin: 0 5px 0 4px;
    padding: 3px 15px;
    color: #000;
    font-size: 12pt;
    line-height: 30px;
}

#searchResults a:hover {
    background: url("images/dropdownSearchHover.png");
    text-decoration: none;
}

#searchResults .container {
    display: block;
    float: left;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 4px;
    background-size: 30px auto;
}

#gamesPanel {
    position: relative;
    z-index: 4;
    display: block;
}

#games {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
    grid-auto-rows: 120px;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 88px 18px 80px;
    box-sizing: border-box;
}

#games > li {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-size: 120px auto;
    box-shadow: 0 2px 7px rgba(0, 41, 64, 0.28);
}

#games > li:hover,
#games > li.hovered {
    z-index: 30;
}

#games > li[hidden] {
    display: none;
}

#games > li a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    text-indent: -1000em;
}

#games > li.big-tile {
    grid-column: span 2;
    grid-row: span 2;
    background-position: center;
    background-size: cover;
}

#games > li a:hover,
#games > li a:focus {
    outline: 3px solid #ffa300;
    outline-offset: 2px;
    text-decoration: none;
}

#dimmer {
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 69px;
    background: url("images/dimmer.png");
}

#footer {
    position: fixed;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    height: 50px;
    padding: 0 10px;
    color: #fff;
    font-size: 10pt;
    background: url("images/grass.png") repeat-x bottom left;
}

#footer p,
#footer ul {
    position: relative;
    top: 27px;
    display: inline;
}

#footer li {
    display: inline;
}

#footer li::after {
    content: "|";
}

#footer a {
    padding: 0 5px;
    color: #ffa300;
}

.sheep {
    position: fixed;
    z-index: 6;
    bottom: 45px;
    display: block;
    height: 50px;
    background: url("images/sheep.png");
}

.sheep1 { left: 5px; width: 48px; background-position: -301px 0; }
.sheep2 { left: 180px; z-index: 3; width: 49px; background-position: -101px 0; }
.sheep3 { left: 30%; width: 50px; background-position: -50px 0; }
.sheep4 { right: 30%; width: 54px; background-position: -242px 0; }
.sheep5 { right: 5px; width: 91px; background-position: -150px 0; }

#flyout {
    position: absolute;
    z-index: 50;
    left: 50%;
    top: -92px;
    display: none;
    width: 320px;
    height: 75px;
    margin-left: -160px;
    padding: 10px 15px;
    box-sizing: border-box;
    color: #000;
    font-size: 11pt;
    background: linear-gradient(180deg, #ffd86b 0%, #ffc053 52%, #f39200 100%);
    border: 3px solid #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

#flyout h3 {
    margin: 0;
    color: #005180;
    font-size: 14pt;
    font-weight: normal;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
}

#flyout .categories {
    margin-top: 3px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
}

#flyout .categories span {
    padding: 0 5px;
}

#flyout .arrow {
    position: absolute;
    z-index: 20;
    top: auto;
    bottom: -14px;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -13px;
    border-right: 13px solid transparent;
    border-left: 13px solid transparent;
    border-top: 14px solid #fff;
}

#flyout .arrow::after {
    content: "";
    position: absolute;
    left: -8px;
    top: -14px;
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-top: 9px solid #f39200;
}

#games > li.flushLeft #flyout {
    left: -8px;
    margin-left: 0;
}

#games > li.flushLeft #flyout .arrow {
    left: 30px;
    margin-left: 0;
}

#games > li.flushRight #flyout {
    right: -8px;
    left: auto;
    margin-left: 0;
}

#games > li.flushRight #flyout .arrow {
    right: 30px;
    left: auto;
    margin-left: 0;
}

#games > li.inverted #flyout {
    top: 132px;
}

#games > li.inverted #flyout .arrow {
    top: -13px;
    bottom: auto;
    border-top: 0;
    border-bottom: 14px solid #fff;
}

#games > li.inverted #flyout .arrow::after {
    top: 5px;
    border-top: 0;
    border-bottom: 9px solid #ffd066;
}

#overlay {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.5;
}

#modal {
    position: fixed;
    z-index: 25;
    top: 50%;
    left: 50%;
    display: none;
    width: 800px;
    height: 452px;
    transform: translate(-50%, -50%);
    background: url("images/modalBackground.png") 0 0 repeat;
}

#modal-content {
    height: 382px;
    margin: 30px 40px 40px 30px;
    padding-right: 10px;
    overflow: auto;
    color: #000;
    font: 12pt Arial, Helvetica, sans-serif;
    line-height: 1.25;
}

#modal-content p {
    margin-bottom: 1em;
    font-size: 12pt;
}

#modal-content a {
    color: #005180;
    text-decoration: underline;
}

#modal-content input,
#modal-content textarea {
    color: #000;
    font: 12px Arial, Helvetica, sans-serif;
}

#close {
    position: absolute;
    top: -15px;
    right: -15px;
    display: block;
    width: 40px;
    height: 40px;
    overflow: hidden;
    text-indent: -9999px;
    background: url("images/buttonClose.png") 0 0 no-repeat;
}

#close:hover,
#close:focus {
    background: url("images/buttonClose-hover.png") 0 0 no-repeat;
}

.seo-copy {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}