@font-face {
    font-family: 'oldsansblackregular';
    src: url(https://mfz.ntnd.net/css/fonts/oldsansblack-webfont.eot);
    src: url(https://mfz.ntnd.net/css/fonts/oldsansblack-webfont.eot?#iefix) format('embedded-opentype'),
         url(https://mfz.ntnd.net/css/fonts/oldsansblack-webfont.woff) format('woff'),
         url(https://mfz.ntnd.net/css/fonts/oldsansblack-webfont.ttf) format('truetype'),
         url(https://mfz.ntnd.net/css/fonts/oldsansblack-webfont.svg#oldsansblackregular) format('svg');
    font-weight: normal;
    font-style: normal;
}

html,
body,
div,
section,
header,
ul,
li,
h1,
p,
form,
fieldset,
legend,
input,
button {
    margin: 0;
    padding: 0;
}

fieldset,
img {
    border: 0;
}

ul {
    list-style: none;
}

legend,
.visually-hidden,
.seo-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

html {
    width: 100%;
    min-height: 100%;
    background: #5a6450 url(/images/header-back.png) repeat-x;
}

body {
    min-width: 780px;
    min-height: 100%;
    overflow-y: scroll;
    font-family: 'oldsansblackregular', Arial, Helvetica, sans-serif;
    background: #5a6450;
}

a {
    color: inherit;
}

header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: 60px;
    padding: 0 5px;
    background: #5a6450 url(/images/header-back.png) repeat-x;
}

header .logo {
    float: left;
}

header .logo img {
    display: block;
}

header .fb {
    float: right;
    width: 80px;
    height: 20px;
    margin-top: 20px;
    overflow: hidden;
}

#languages {
    position: relative;
    float: right;
    margin-top: 15px;
    margin-left: 15px;
    margin-bottom: 15px;
}

#current-lang {
    display: block;
    width: 30px;
    height: 30px;
    padding: 0;
    overflow: hidden;
    border: 0;
    cursor: pointer;
    text-indent: -1000em;
    background-color: transparent;
}

#current-lang:hover,
#current-lang[aria-expanded="true"] {
    border: 1px solid #fff;
}

.language {
    display: block;
    width: 28px;
    height: 28px;
    border: 1px solid #994800;
    border-radius: 5px;
    background: url(/images/languages.png) no-repeat;
}

.DE { background-position: 0 0; }
.EN { background-position: 0 -78px; }
.ES { background-position: 0 -156px; }
.FR { background-position: 0 -234px; }
.ID { background-position: 0 -312px; }
.IT { background-position: 0 -390px; }
.JA { background-position: 0 -468px; }
.NL { background-position: 0 -546px; }
.PL { background-position: 0 -624px; }
.PT { background-position: 0 -702px; }
.RO { background-position: 0 -780px; }
.RU { background-position: 0 -858px; }
.SA { background-position: 0 -936px; }
.TH { background-position: 0 -1014px; }
.TR { background-position: 0 -1092px; }
.ZH { background-position: 0 -1170px; }

.dropdown {
    position: absolute;
    z-index: 100;
    display: none;
    padding: 3px;
    border-radius: 5px;
    background: #fff;
}

.dropdown.open {
    display: block;
}

.dropdown li {
    height: 35px;
    padding: 5px;
}

.dropdown li:hover {
    border-radius: 5px;
    background: #ffd400;
}

.dropdown a {
    display: table-row;
    color: #000;
    font-size: 14px;
    text-decoration: none;
}

#languages .dropdown {
    top: 45px;
    right: -48px;
    min-width: 126px;
}

#languages .dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 16px;
    height: 10px;
    margin-left: -8px;
    background: url(/images/category-arrow.png);
}

#languages a {
    line-height: 30px;
}

#languages li {
    height: 30px;
}

#languages li span {
    float: left;
    margin-right: 10px;
}

#search {
    position: relative;
    float: right;
    margin-top: 12px;
    margin-left: 15px;
}

#search label {
    position: absolute;
    left: -1000em;
}

#search form div {
    width: 210px;
    height: 35px;
    background: url(/images/search-back.png?05);
}

#search input {
    float: left;
    display: inline-block;
    width: 157px;
    height: 100%;
    margin: 0 10px;
    border: 0;
    outline: 0;
    color: #c8c8c8;
    background: transparent;
    font-size: 16px;
}

#search button {
    float: left;
    width: 30px;
    height: 30px;
    margin-top: 2px;
    margin-right: 2px;
    overflow: hidden;
    border: 0;
    outline: 0;
    cursor: pointer;
    text-indent: -1000em;
    background: url(/images/search-button.png);
}

#search-results.dropdown {
    top: 40px;
    width: 204px;
}

#search-results li {
    height: 35px;
}

#search-results .no-results {
    display: block;
    padding: 8px;
    color: #000;
    font: 14px Arial, Helvetica, sans-serif;
}

#search-results .search-thumb {
    float: left;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    border-radius: 5px;
    background-repeat: no-repeat;
}

#search-results .name {
    display: table-cell;
    max-width: 145px;
    height: 35px;
    overflow: hidden;
    vertical-align: middle;
    line-height: 17px;
}

#content {
    position: relative;
    top: 65px;
}

#games {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(auto-fill, var(--tile-size));
    grid-auto-rows: var(--tile-size);
    gap: var(--tile-gap);
    width: 100%;
    margin: 0 auto;
    padding: 5px 0 30px;
    overflow: visible;
    box-sizing: border-box;
    --tile-size: 120px;
    --tile-gap: 10px;
    --big-tile-size: 250px;
}

#games > li {
    position: relative;
    width: var(--tile-size);
    height: var(--tile-size);
    overflow: hidden;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-size: var(--tile-size) auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

#games > li.featured {
    grid-column: span 2;
    grid-row: span 2;
    width: var(--big-tile-size);
    height: var(--big-tile-size);
    background-size: var(--big-tile-size) auto;
}

#games > li.custom-tile {
    background-position: center;
    background-size: cover;
}

#games > li:hover,
#games > li:focus-within {
    z-index: 20;
}

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

#games a:focus {
    outline: 3px solid #ffd400;
    outline-offset: -3px;
}

.thumb-title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 5px 4px;
    opacity: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    font: 14px Arial, Helvetica, sans-serif;
    line-height: 1.2;
    text-align: center;
    text-indent: 0;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: opacity 150ms ease, transform 150ms ease;
}

#games a:hover .thumb-title,
#games a:focus .thumb-title {
    opacity: 1;
    transform: translateY(0);
}