@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,
h2,
p,
form,
fieldset,
legend,
input,
button {
    margin: 0;
    padding: 0;
}

fieldset,
img {
    border: 0;
}

ul {
    list-style: none;
}

legend {
    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(https://mfz.ntnd.net/images/header-back.png) repeat-x;
}

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

a {
    color: inherit;
}

object,
embed,
iframe,
ruffle-player {
    display: block;
    margin: 0;
    padding: 0;
}

header {
    height: 60px;
    padding: 0 5px;
}

header .logo {
    float: left;
}

header .logo img {
    display: block;
}

#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(https://mfz.ntnd.net/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(https://mfz.ntnd.net/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(https://mfz.ntnd.net/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(https://mfz.ntnd.net/images/search-button.png);
}

#content {
    position: relative;
    text-align: center;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px dashed rgba(255, 212, 0, 0.45);
    border-radius: 5px;
    background: rgba(46, 51, 40, 0.9);
}

.leaderboard-placeholder {
    width: 970px;
    height: 90px;
    max-width: calc(100vw - 40px);
    margin: 0 auto;
}

.skyscraper-placeholder {
    width: 160px;
    height: 600px;
}

.rectangle-placeholder {
    width: 300px;
    height: 250px;
}

#ad-banner {
    width: 970px;
    height: 90px;
    margin: 20px auto;
}

#main {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    text-align: left;
}

#main .header {
    min-height: 45px;
    border-radius: 5px 5px 0 0;
    color: #fff;
    background: url(https://mfz.ntnd.net/images/column-back.png);
    font-size: 16pt;
    font-weight: bold;
    line-height: 45px;
    text-align: center;
}

#main .content {
    box-sizing: border-box;
    border-radius: 0 0 5px 5px;
    background: #2e3328;
}

#ad-sidebar {
    flex: 0 0 160px;
    margin-left: 15px;
    align-self: flex-start;
}

#game-area {
    flex: 0 0 auto;
    margin-left: 15px;
    margin-bottom: 40px;
}

#game-area .header {
    position: relative;
    overflow: hidden;
    text-align: left;
}

#game-area .back {
    float: left;
    width: 35px;
    height: 35px;
    margin: 5px 15px;
    overflow: hidden;
    text-indent: -1000em;
    background: url(https://mfz.ntnd.net/images/game-back.png);
}

#game-area .back:hover {
    background-position: 0 -35px;
}

#game-area .header h2 {
    display: block;
    min-width: 180px;
    margin-right: 260px;
    overflow: hidden;
    color: #fff;
    font-size: 16pt;
    line-height: 45px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#game-area .actions {
    position: absolute;
    top: 0;
    right: 0;
    height: 45px;
}

.zoom-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 45px;
    padding-right: 9px;
}

.zoom-label {
    color: #fff;
    font: 700 15px/34px Arial, Helvetica, sans-serif;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
    white-space: nowrap;
}

.zoom-button {
    box-sizing: border-box;
    min-width: 35px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid #1f251a;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(#7d8b70, #45513c);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    cursor: pointer;
    font: 700 19px/28px Arial, Helvetica, sans-serif;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
}

.zoom-button.reset,
.zoom-button.max {
    font-size: 14px;
}

.zoom-button:hover {
    background: linear-gradient(#9aa987, #5f6e53);
}

.zoom-button:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.zoom-button:disabled {
    cursor: default;
    opacity: 0.45;
    transform: none;
}

#game-area .content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

#game {
    position: relative;
    box-sizing: content-box;
    margin: 0 auto;
    background: #000;
}

.game-player-mount {
    width: 100%;
    height: 100%;
    background: #000;
}

.game-player-mount ruffle-player {
    width: 100%;
    height: 100%;
}

.game-loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ebeff5;
    background: #000;
    font: 15px Arial, Helvetica, sans-serif;
}

#sidebar {
    flex: 0 0 300px;
    width: 300px;
    margin: 0 15px;
}

#related-games {
    margin-bottom: 10px;
}

#related-games .header h2 {
    color: #fff;
    font-size: 16pt;
    line-height: 45px;
    text-align: center;
}

#related-games .content {
    display: block;
    padding: 10px;
    overflow: hidden;
}

#related-games ul {
    display: grid;
    grid-template-columns: repeat(2, 120px);
    gap: 10px;
    justify-content: center;
}

.thumb {
    width: 120px;
    height: 120px;
}

.thumb a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    text-indent: -1000em;
    text-decoration: none;
    background: #000;
}

.thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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/1.2 Arial, Helvetica, sans-serif;
    text-align: center;
    text-indent: 0;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: opacity 150ms ease, transform 150ms ease;
}

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

#sidebar-corner-ad {
    width: 300px;
    height: 250px;
}

.game-description {
    box-sizing: border-box;
    width: min(100% - 40px, 900px);
    margin: 0 auto 40px;
    padding: 15px 20px;
    border-radius: 5px;
    color: #e9efe4;
    background: #2e3328;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}

.game-description h1 {
    margin-bottom: 8px;
    color: #ffd400;
    font-family: 'oldsansblackregular', Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.2;
}

.game-tags {
    margin-top: 10px;
    color: #c9d6bd;
}

@media (max-width: 1180px) {
    #ad-sidebar {
        display: none;
    }
}
