@font-face {
    font-family: 'Burbin Casual NC';
    src: url(https://mad.ntnd.net/css/fonts/burbin_casual_nc-webfont.woff?2) format('woff');
    font-weight: 400;
    font-style: normal;
}

html,
body {
    min-height: 100%;
}

html {
    background: #005f94 url(https://mad.ntnd.net/images/sky.png) repeat-x top left fixed;
}

body {
    margin: 0;
    min-width: 1000px;
    overflow: auto;
    color: #fff;
    font: 14pt 'Burbin Casual NC', Arial, sans-serif;
}

ul,
li,
h1,
h2,
p {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

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

#content {
    position: relative;
    width: calc(100% - 44px);
    max-width: 1234px;
    margin: 0 auto;
    padding-top: 130px;
}

#ad-header-mad {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 110px;
    padding-left: 13px;
    text-align: center;
    background: url(https://mad.ntnd.net/images/top-ad-background-left.png) no-repeat;
}

#ad-header-mad .ad-mad {
    height: 100px;
    padding-top: 10px;
    background: url(https://mad.ntnd.net/images/top-ad-background-right.png) top right no-repeat;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px dashed rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(0, 44, 73, 0.38);
    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

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

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

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

#sidebar {
    position: relative;
    z-index: 8;
    float: right;
    width: 312px;
    overflow: hidden;
}

#related-games-wrapper {
    float: left;
    width: 312px;
    margin-bottom: 4px;
    padding-top: 14px;
    overflow: hidden;
    background: url(https://mad.ntnd.net/images/sidebar-background-top.png) top left no-repeat;
}

#related-games {
    float: left;
    min-width: 100%;
    padding: 8px 0 16px 7px;
    overflow: hidden;
    background: url(https://mad.ntnd.net/images/sidebar-background-bottom.png) bottom left no-repeat;
}

#related-games h2 {
    margin: 0 0 10px 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
}

#related-games > ul {
    float: left;
}

#related-games > ul > li {
    position: relative;
    float: left;
    width: 75px;
    height: 75px;
    margin: 12px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#related-games > ul > li.twobytwo {
    width: 174px;
    height: 174px;
}

#related-games a {
    position: relative;
    top: -12px;
    left: -12px;
    display: block;
    width: 99px;
    height: 99px;
    overflow: hidden;
    text-indent: -1000em;
    background: url(https://mad.ntnd.net/images/thumbnailBorder.png);
}

#related-games a:hover {
    background-position: 0 -99px;
}

#related-games .twobytwo a {
    width: 198px;
    height: 198px;
    background: url(https://mad.ntnd.net/images/thumbnailBorderX4.png);
}

#related-games .twobytwo a:hover {
    background-position: 0 -198px;
}

#ad-pan3l {
    position: relative;
    clear: both;
    float: left;
    margin: 10px 0 0 4px;
    padding-bottom: 0;
}

#ad-sidebar-mad-wrapper {
    float: left;
}

#ad-sidebar-mad {
    position: relative;
    z-index: 7;
    float: left;
    width: 191px;
    padding-top: 14px;
    background: url(https://mad.ntnd.net/images/sidebar-ad-background-top.png) top left no-repeat;
}

#ad-sidebar-mad .ad-mad {
    padding: 1px 0 16px 14px;
    background: url(https://mad.ntnd.net/images/sidebar-ad-background-bottom.png) bottom left no-repeat;
}

#main {
    margin-left: 196px;
    margin-right: 318px;
}

#game-info {
    position: relative;
    height: 65px;
    padding-left: 10px;
    background: url(https://mad.ntnd.net/images/gamearea-background-top-left.png) no-repeat;
}

#game-info .content {
    height: 100%;
    background: url(https://mad.ntnd.net/images/gamearea-background-top-right.png) top right no-repeat;
}

#game-info h1 {
    position: relative;
    top: 4px;
    float: none;
    height: 61px;
    margin: 0 280px 0 185px;
    padding-left: 20px;
    overflow: hidden;
    color: #fff;
    font-size: 16pt;
    font-weight: 400;
    line-height: 61px;
    background: url(https://mad.ntnd.net/images/game-header-divider.png) no-repeat;
}

#game-info .zoom-controls {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    display: flex;
    gap: 7px;
    align-items: center;
    height: 39px;
}

#game-info .zoom-label {
    color: #fff;
    font-size: 17px;
    line-height: 38px;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

#game-info .zoom-button {
    position: relative;
    box-sizing: border-box;
    width: 42px;
    height: 36px;
    padding: 0;
    border: 2px solid #061c28;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(#1685a8, #00537f);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font: 700 25px/30px Arial, sans-serif;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

#game-info .zoom-button.reset {
    width: 50px;
    font-size: 17px;
    line-height: 31px;
}

#game-info .zoom-button.max {
    width: 56px;
    font-size: 15px;
    line-height: 31px;
}

#game-info .zoom-button:hover {
    background: linear-gradient(#22a7c9, #0070a6);
}

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

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

#game-info .logo {
    position: absolute;
    top: -25px;
    left: -20px;
    display: block;
    width: 202px;
    height: 95px;
    overflow: hidden;
    text-indent: -1000em;
    background: url(https://mad.ntnd.net/images/game-area-logo-3.png);
}

#game-info .logo:hover {
    background: url(https://mad.ntnd.net/images/game-area-logo-hover-3.png);
}

#game-area {
    position: relative;
    z-index: 7;
    padding-left: 12px;
    background: url(https://mad.ntnd.net/images/gamearea-background-bottom-left.png) bottom left no-repeat;
}

#game-area .content {
    min-height: 100%;
    background: url(https://mad.ntnd.net/images/gamearea-background-bottom-right.png) bottom right no-repeat;
}

#game {
    position: relative;
    left: -6px;
    box-sizing: content-box;
    margin: 0 auto;
}

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

.game-player-mount ruffle-player,
.game-player-mount iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.game-player-mount iframe {
    border: 0;
    overflow: hidden;
}

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

.game-description {
    box-sizing: border-box;
    width: min(100%, 860px);
    margin: 18px auto 0;
    padding: 0 12px 36px;
    color: #e6f4ff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.game-description h2 {
    margin-bottom: 6px;
    font-family: 'Burbin Casual NC', Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
}

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

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

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

.sheep5 {
    right: 5px;
    width: 91px;
    background-position: -150px 0;
}

@media (max-width: 1100px) {
    body {
        min-width: 960px;
    }

    #ad-sidebar-mad-wrapper {
        display: none;
    }

    #main {
        margin-left: 15px;
    }
}
