/* Layout Stuff */
html {
    scroll-behavior: smooth;
}
html, body {
    height: 100%;
}
#wrapper {
    min-height: 100%;
    position: relative;
}
body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    margin: 0px;
    background-repeat: repeat;
    background-attachment: fixed;
}
.wrap {
    width: 85%;
    min-width: 980px;
    max-width: 1860px;
    position: relative;
    overflow: visible;
    margin-left: auto;
    margin-right: auto;
}
#header-logo {
    position: relative;
    display: inline-block;
}
#header {
    width: 100%;
    height: 80px;
    z-index: 999;
}
#header img {
    margin-top: 3px;
}
#search {
    float: right;
    width: 320px;
    height: 80px;
    text-align: center;
    line-height: 80px;
    margin-right: calc(50% - 435px);
}
#nav-top {
    width: 100%;
    height: 28px;
    font-size: 18px;
    line-height: 28px;
    z-index: 998;
}
#nav-top a {
    display: inline-block;
    text-decoration: none;
}
#nav-buttons {
    width: 278px;
    height: 29px;
    overflow: hidden;
    float: right;
    text-align: right;
}
#nav-buttons img {
    float: right;
    margin-top: 2px;
}
#nav_top_mobile {
    display: none;
}
div[id^='mobile-menu-button-'] {
    display: none;
    width: 35px;
    height: 80px;
    line-height: 75px;
    font-weight: normal;
    font-size: 30px;
    cursor: pointer;
}
#mobile-menu-button-nav {
    float: left;
    clear: left;
    text-align: right;
}
#mobile-menu-button-nav_top_mobile {
    float: right;
    clear: right;
    text-align: left;
}
#cplinks {
    position: relative;
    height: 28px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 14px;
    line-height: 28px;
    z-index: 997;
}
#cplinks a {
    display: inline-block;
    text-decoration: none;
}
#social {
    display: inline-block;
    width: 232px;
    height: 90px;
}
#social > div:first-child {
    width: 100%;
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 30px;
}
#social > div {
    width: 58px;
    height: 54px;
    float: left;
}
#body {
    position: relative;
    padding-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    background-repeat: repeat-y;
}
#nav {
    position: relative;
    display: inline-block;
    width: 160px;
    vertical-align: top;
    line-height: 16px;
}
#nav a {
    display: block;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    padding-left: 4px;
}
#other a {
    font-size: 11px;
    padding-left: 9px;
}
#toggle_other {
    float: right;
    width: 12px;
    margin-right: 4px;
    margin-top: 2px;
}
#shadow {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 10px;
    margin-left: 160px;
    background-repeat: repeat-y;
    z-index: 996;
}
#content {
    position: relative;
    display: inline-block;
    width: calc(100% - 160px);
    vertical-align: top;
}
#userbox {
    width: 274px;
    height: 74px;
    float: right;
    padding: 3px;
    font-size: 12px;
    line-height: 15px;
}
#userbox a {
    font-weight: bold;
}
#footer {
    width: 100%;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    z-index: 999;
}
#footer .wrap {
    height: auto;
    padding: 10px 0px;
    box-shadow: 0px -10px 50px -40px #000000;
}
#footer-inner {
    height: 126px;
}
#footer-inner-mobile {
    display: none;
}
#footer-content {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}
#footer ul {
    float: left;
    list-style: none outside none;
    margin: 0 3px 0 13px;
    padding: 0;
    width: 175px;
}
#category-container {
    float: none;
    clear: both;
    overflow: hidden;
}
#category-info {
    clear: left;
}
#category-add-game {
    float: right;
    clear: right;
}
#category-select {
    width: calc(100% - 310px);
    height: 229px;
    text-align: center;
    padding-top: 21px;
}
#game-add-sheet {
    display: inline-block;
}
#pending-list-toggle {
    cursor: pointer;
}
#preview-display {
    display: none;
    text-align: left;
}
span#pending-list-toggle {
    border-bottom: 1px #000000 dashed;
}
div#pending-list {
    width: 50%;
    min-width: 300px;
    max-height: 200px;
    overflow: auto;
    border: 1px #000000 solid;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    text-align: left;
    display: none;
}
tr#pending-list {
    display: none;
}
#pending-list ul {
    margin: 0px -10px;
}
textarea[id*='-ad-code'] {
    width: calc(100% - 5px);
    height: 100px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}
.button-title {
    display: none;
    position: absolute;
    padding: 5px;
    z-index: 999;
}
h1 {
    text-align: center;
    margin: 0px;
}
h2 {
    text-align: center;
    margin: 0px;
}
label {
    vertical-align: middle;
}
.content-title-container {
    height: 250px;
    margin-bottom: 10px;
}
.content-title {
    height: 250px;
    margin-right: 300px;
    padding-top: 110px;
    text-align: center;
    vertical-align: middle;
}
.category-title {
    margin-right: 310px;
    text-align: center;
    padding-top: 25px;
}
.title {
    text-align: center;
    font-weight: bold;
}
table {
    border-spacing: 5px;
    line-height: 20px;
}
th, td {
    text-align: left;
    padding: 0px;
}
.nav-header {
    padding: 3px;
    font-weight: bold;
    cursor: pointer;
}
.ad-header {
    cursor: auto;
}
.header-arrow {
    float: right;
    margin-right: 4px;
}
.search_text {
    width: 220px;
    margin: 0px;
    padding: 5px 5px;
    font-size: 14px;
    border: 0px;
    outline: none;
    border-top-left-radius: 5px 5px;
    border-bottom-left-radius: 5px 5px;
}
.search_button {
    margin: 0px;
    padding: 5px 15px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: 0px;
    border-top-right-radius: 5px 5px;
    border-bottom-right-radius: 5px 5px;
}
#search-mods {
    display: table;
    margin-left: auto;
    margin-right: auto;
}
#search-mods span {
    display: inline-block;
    width: 25px;
}
.sub-top-game {
    display: inline-block;
    text-align: center;
    padding: 3px 0px;
}
.display {
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    border-spacing: 0px;
    border-collapse: collapse;
    table-layout: fixed;
}
.display th, .display td {
    text-align: left;
    padding: 3px;
}
.display td table {
    border-spacing: 0px;
}
.display td table th, .display td table td {
    border: 0px;
    padding: 0px;
}
.display a {
    text-decoration: none !important;
}
.noborder a {
    border: 0px !important;
}
.rowfix {
    display: none;
}
a:link, a:visited {
    text-decoration: none;
}
a:hover, a:active {
    text-decoration: underline;
}
#comments {
    margin-bottom: 15px;
}
#commentList td {
    vertical-align: top;
}
.comment {
    width: 100%;
    margin-bottom: 1px;
    border-spacing: 0px;
    table-layout: fixed;
}
.commentHeader {
    vertical-align: top;
    padding: 5px;
}
.commentHeader sup {
    line-height: 12px;
}
.commentContent {
    text-align: justify;
    vertical-align: top;
    word-wrap: break-word;
    padding: 5px;
}
.commentError {
    text-align: center;
    font-size: 20px;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 20px;
    padding: 5px;
}
.commentContent img, .commentContent iframe, #commentList img, #commentList iframe {
    max-width: 50% !important;
    max-height: none !important;
}
.comments-edit {
    width: 35px;
}
.comments-user {
    width: 50px;
}
.tag {
    font-size: 12px;
    display: inline-block;
    padding: 4px;
    border-radius: 8px;
}
.nsfw-warning {
    width: calc(100% - 70px);
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
    cursor: pointer;
}
.nsfw {
    display: none;
}
.spoiler-label {
    font-size: 12px;
    line-height: 14px;
    padding-top: 4px;
    padding-bottom: 0px;
    padding-left: 2px;
    padding-right: 5px;
    text-shadow: none;
}
.spoiler-text {
    text-shadow: none;
}
.hr {
    width: 100%;
    height: 1px;
}
input, select, option {
    font-family: Verdana, Arial, Helvetica, sans-serif;
}
textarea {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
}
.cperror {
    display: block;
    width: calc(100% - 10px);
    padding: 5px;
    font-weight: bold;
}
.mobile {
    display: none;
}
img {
    border: 0px !important;
}

/* Updates */
.updatericon {
    max-width: 40%;
    float: left;
    text-align: center;
    padding-right: 10px;
}
.updatetitle {
    position: relative;
    height: 30px;
    padding: 5px 5px 5px 10px;
    font-weight: bold;
    font-size: 18px;
    line-height: 28px;
    text-align: left;
}
.updatetitle-text {
    display: inline-block;
    width: calc(100% - 100px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.updatetitle span {
    float: right;
    clear: right;
    margin-right: 0px;
}
.updatemeta {
    height: 20px;
    line-height: 20px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 5px;
    padding-right: 5px;
    text-align: left;
    font-size: 12px;
}
.updateauthor {
    display: inline-block;
    width: calc(100% - 30px);
}
.update-edit {
    float: right;
    clear: both;
}
.updatetext {
    padding: 10px;
    text-align: justify;
}
.updatetext img {
    max-width: 90%;
}
.updateconsolename {
    line-height: 25px;
    padding-left: 10px;
}
.updatesheets {
    text-align: left;
}
.updatesheeticons {
    width: calc(100% - 10px);
    padding: 10px 10px 10px 0px;
    text-align: center;
}
.updatesheeticons .iconcontainer {
    margin: 0px 0px 10px 10px;
}
div.updateconsolename {
    width: calc(100% - 10px);
    font-weight: bold;
    margin: 0px;
}
.formElement {
    outline: none;
}

/* Category Page */
#letters {
    height: 20px;
    padding: 5px 2px;
    text-align: center;
    font-weight: bold;
    letter-spacing: -1px;
}
#letters a {
    display: inline-block;
}
#letters a:link, #letters a:visited {
    text-decoration: none;
}
#letters a:hover, #letters a:active {
    text-decoration: underline;
}
#letters .active {
    padding: 5px;
    margin: -5px 0px;
}
#sheet-container {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section {
    position: relative;
    height: 30px;
    padding-left: 10px;
    text-align: left;
    font-weight: bold;
    font-size: 18px;
    line-height: 30px;
}
.sect-name {
    display: inline-block;
    width: calc(100% - 300px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sect-edit {
    display: inline-block;
    vertical-align: top;
}
.sect-order {
    width: 45px;
    float: right;
    text-align: right;
    margin-right: 15px;
    height: 30px;
}
.sect-count {
    float: right;
    margin-right: 15px;
}
.sect-collapse {
    float: right;
    margin-right: 15px;
    cursor: pointer;
}
.zip-header {
    width: calc(100% - 10px);
    max-width: 745px;
    height: 30px;
    padding-left: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    text-align: left;
    font-weight: bold;
    font-size: 18px;
    line-height: 30px;
}
.zip-container {
    width: calc(100% - 20px);
    max-width: 735px;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    word-wrap: break-word;
    display: none;
}
table .zip-header, table .zip-container {
    width: 100%;
    max-width: none;
}
.zip-container ul {
    list-style-type: decimal;
    margin-left: 20px;
}
.zip-container li {
    word-wrap: break-word;
}
.zip-collapse {
    float: right;
    margin-right: 10px;
    cursor: pointer;
}
#section-form-buttons {
    display: none;
    margin-bottom: 15px;
    text-align: center;
}
.edit-section {
    cursor: pointer;
}
.zip-download {
    width: 720px;
    height: 190px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    float: none;
    clear: both;
}
.zip-download img {
    position: absolute;
    top: 28px;
    left: 29px;
}
/* CP Styles */
#submission_reminders {
    margin-left: 10px;
    overflow: hidden;
}
#submission_reminders ul {
    list-style-type: none;
    list-style-position: outside;
}
.success {
    position: relative;
    display: block;
    min-height: 36px;
    padding: 5px;
    font-weight: bold;
    z-index: 997;
}
.success img {
    vertical-align: top;
    float: left;
    margin-right: 5px;
}
.revised {
    text-shadow: none !important;
}
.approve {
    display: inline-block;
    margin-right: 5px;
    width: calc(50% - 10px);
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 24px;
}
.reject {
    display: inline-block;
    width: calc(50% - 10px);
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 24px;
}
.item-restore {
    width: 75px;
}
#landscape-container {
    display: none;
    padding: 10px;
}
#landscape-only {
    display: none;
    margin: 0px;
}
#batch-instructions {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 10px;
    text-align: justify;
}
#batch-filesize {
    margin-bottom: 10px;
    text-align: center;
}

/* Ads */
/*
div[id$='r-ad-header-small'], div[id$='r-ad-header-mobile'], div[id$='r-ad-footer-small'], div[id$='r-ad-footer-mobile'], div[id$='r-ad-sidebar-mobile'] {
    display: none;
}
*/
#headerad-container {
    position: relative;
    display: inline-block;
    width: calc(100% - 237px);
    text-align: right;
}
#headerad-container .banner {
    display: inline-block;
}
#headerad {
    position: relative;
    height: 90px;
    padding: 6px;
    z-index: 997;
    white-space: nowrap;
    overflow: hidden;
}
#sidebar-ad {
    max-width: 160px;
    max-height: 623px;
    margin-top: 10px;
    overflow: hidden;
    position: sticky;
    top: 0px;
}
#ccpa {
    padding: 2px !important;
}
.banner {
    max-width: 970px;
    max-height: 90px;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
}
.skyscraper {
    max-width: 160px;
    max-height: 600px;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
}
.square {
    max-width: 300px;
    max-height: 250px;
    position: absolute;
    top: 0px;
    right: 0px;
    overflow: hidden;
}
/* Large Screens */
@media screen and (min-width: 1200px) {
    .updatetitle {
        width: 100%;
    }
    .updatetitle:after {
        content: '';
        position: absolute;
        bottom: -15px;
        right: 0px;
        border-style: solid;
        border-width: 0px 0px 15px 15px;
        border-color: transparent;
    }
    .updatetitle span {
        margin-right: 15px !important;
    }
    .section {
        width: calc(100% + 5px);
    }
    .section:after {
        content: '';
        position: absolute;
        bottom: -15px;
        right: 0px;
        border-style: solid;
        border-width: 0px 0px 15px 15px;
        border-color: transparent;
    }
    #footer .wrap {
        padding: 10px 20px;
    }
    #footer .wrap:before {
        content: '';
        position: absolute;
        top: -20px;
        left: 0px;
        border-style: solid;
        border-width: 0px 0px 20px 20px;
        border-color: transparent;
    }
    #footer .wrap:after {
        content: '';
        position: absolute;
        top: -20px;
        right: 0px;
        border-style: solid;
        border-width: 0px 20px 20px 0px;
        border-color: transparent;
    }
}
/* Small Screens */
@media screen and (max-width: 1199px) {
    .wrap {
        width: 100%;
    }
    #submission_reminders {
        overflow: visible;
    }
/*
    div[id$='r-ad-header'], div[id$='r-ad-footer'] {
        display: none;
    }
    div[id$='r-ad-header-small'], div[id$='r-ad-footer-small'] {
        display: block;
    }
    .banner {
        max-width: 728px;
    }
*/
}
