/*!
 =========================================================
 * WebEngine CMS
 * https://webenginecms.org/
 * Licensed under the MIT license
 * http://opensource.org/licenses/MIT
 =========================================================
*/

/* =========================================================
   BASE / OVERRIDES
========================================================= */

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    border-top: none !important;
}

a:focus,
a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.form-control {
    background: #fafafa;
    border: 1px solid #e3e3e3;
    color: #666;
}

.form-control:focus {
    border: 1px solid #ccc;
}

.nopadding {
    padding: 0 !important;
    margin: 0 !important;
}

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.thumbnail {
    background-color: #f1f1f1;
    border: 1px solid #e3e3e3;
}

a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
    border-color: #ff0000;
}

.btn-primary {
    color: #3f6588;
    background-color: transparent;
    border-color: #3f6588;
    -webkit-transition: all .1s ease-in;
    -o-transition: all .1s ease-in;
    transition: all .1s ease-in;
    border-radius: 0;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
    color: #fff !important;
    background-color: #3f6588 !important;
    border-color: #3f6588 !important;
}

.form-horizontal .control-label {
    text-align: left !important;
}

/* =========================================================
   GLOBAL RESPONSIVE FIX
========================================================= */

html,
body {
    min-width: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.sidebar-banner img,
.webengine-mu-logo {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#container,
.footer,
.global-top-bar .global-top-bar-content,
.header-info-container {
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.footer {
    box-sizing: border-box;
}

#content .panel-body,
#content .table-responsive,
#content .rankings-wrapper {
    overflow-x: visible;
}

/* =========================================================
   NAVBAR BASE
========================================================= */

#navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
}

#menu-toggle {
    display: none !important;
}

.navbar-nav > li > a {
    color: #2c2c2c !important;
}

.navbar-nav > li > a:hover {
    color: #000 !important;
}

/* =========================================================
   THEME TOGGLE + DARK MODE
========================================================= */

body,
#container,
.footer,
.panel,
.panel-heading,
.panel-footer,
.thumbnail,
.well,
.form-control,
input[type=text],
input[type=password],
input[type=number],
textarea,
select,
.btn,
a,
#navbar,
#navbar ul li a {
    -webkit-transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, opacity .25s ease;
    -o-transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, opacity .25s ease;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, opacity .25s ease;
}

body {
    background: #000000 url('../img/background.jpg') no-repeat top center;
}

@media only screen and (min-width: 2000px) {
    body {
        background: #000000 url('../img/background-2600.jpg') no-repeat top center !important;
    }
}

html.dark-mode body {
    background: #06080c url('../img/background-dark.jpg') no-repeat top center !important;
    color: #d7dde5;
}

@media only screen and (min-width: 2000px) {
    html.dark-mode body {
        background: #06080c url('../img/background-dark-2600.jpg') no-repeat top center !important;
    }
}

@media (max-width: 991px) {
    body,
    html.dark-mode body {
        background-size: cover !important;
    }
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    vertical-align: middle;
    outline: 0;
}

.theme-toggle:hover,
.theme-toggle:focus {
    background: rgba(255,255,255,0.14);
    color: #ffda8a;
}

.theme-toggle .theme-icon {
    font-size: 16px;
    line-height: 1;
}

.theme-icon-light {
    display: none;
}

html.dark-mode .theme-icon-dark {
    display: none;
}

html.dark-mode .theme-icon-light {
    display: inline-block;
}

html.dark-mode .global-top-bar {
    background: rgba(7, 10, 15, 0.92);
    color: #cfd7e1;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

html.dark-mode .global-top-bar a {
    color: #d7dde5;
}

html.dark-mode .global-top-bar a:hover {
    color: #ffffff !important;
}

html.dark-mode #navbar {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

html.dark-mode #navbar ul li a {
    color: #d7dde5 !important;
}

html.dark-mode #navbar ul li a:hover,
html.dark-mode #navbar ul li a:focus,
html.dark-mode #navbar ul li.active a,
html.dark-mode #navbar ul li a.active {
    color: #ffffff !important;
    background: rgba(255,255,255,0.05);
}

html.dark-mode #container {
    background: rgba(18, 24, 33, 0.96);
    color: #d7dde5;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

html.dark-mode #content {
    color: #d7dde5;
}

html.dark-mode .footer {
    background: rgba(15, 20, 28, 0.97);
    color: #aeb8c4;
}

html.dark-mode .footer hr {
    border-top-color: #2a3645;
}

html.dark-mode a {
    color: #c2ccd8;
}

html.dark-mode a:focus,
html.dark-mode a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

html.dark-mode .thumbnail,
html.dark-mode .well,
html.dark-mode .panel,
html.dark-mode .panel-default,
html.dark-mode .panel-news,
html.dark-mode .panel-sidebar,
html.dark-mode .panel-general,
html.dark-mode .panel-addstats,
html.dark-mode .panel-downloads,
html.dark-mode .table-responsive {
    background: #161d27 !important;
    color: #d7dde5 !important;
    border-color: #253140 !important;
}

html.dark-mode .panel-heading,
html.dark-mode .panel-footer {
    background: #10161e !important;
    color: #d7dde5 !important;
    border-color: #253140 !important;
}

html.dark-mode .panel-title,
html.dark-mode .page-title,
html.dark-mode .home-news-block .home-news-block-header h2 {
    color: #ffffff !important;
}

html.dark-mode table,
html.dark-mode .table,
html.dark-mode .table-striped,
html.dark-mode .rankings-table,
html.dark-mode .general-table-ui,
html.dark-mode .myaccount-table {
    color: #d7dde5 !important;
    background: transparent;
}

html.dark-mode .table > tbody > tr > td,
html.dark-mode .table > tbody > tr > th,
html.dark-mode .table > tfoot > tr > td,
html.dark-mode .table > tfoot > tr > th,
html.dark-mode .table > thead > tr > td,
html.dark-mode .table > thead > tr > th,
html.dark-mode table td,
html.dark-mode table th,
html.dark-mode .rankings-table tr td,
html.dark-mode .general-table-ui tr td,
html.dark-mode .myaccount-table tr td {
    color: #d7dde5 !important;
    border-color: #253140 !important;
}

html.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.02);
}

html.dark-mode .rankings-table-place {
    color: #ffffff !important;
}

html.dark-mode .form-control,
html.dark-mode input[type=text],
html.dark-mode input[type=password],
html.dark-mode input[type=number],
html.dark-mode textarea,
html.dark-mode select {
    background: #0f141c !important;
    border: 1px solid #253140 !important;
    color: #d7dde5 !important;
}

html.dark-mode .form-control:focus,
html.dark-mode input[type=text]:focus,
html.dark-mode input[type=password]:focus,
html.dark-mode input[type=number]:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus {
    border-color: #42576e !important;
    box-shadow: 0 0 0 1px rgba(66, 87, 110, 0.2);
}

html.dark-mode .btn-primary {
    color: #d7dde5;
    background-color: transparent;
    border-color: #42576e;
}

html.dark-mode .btn-primary:active,
html.dark-mode .btn-primary:focus,
html.dark-mode .btn-primary:hover {
    color: #ffffff !important;
    background-color: #42576e !important;
    border-color: #42576e !important;
}

html.dark-mode .btn-default,
html.dark-mode .btn-secondary {
    color: #d7dde5;
    background: #18202b;
    border-color: #253140;
}

html.dark-mode .btn-default:hover,
html.dark-mode .btn-secondary:hover {
    color: #ffffff !important;
    background: #253140;
}

html.dark-mode .modal-content {
    background: #161d27;
    color: #d7dde5;
    border-color: #253140;
}

html.dark-mode .modal-header,
html.dark-mode .modal-footer {
    border-color: #253140;
}

html.dark-mode .close {
    color: #ffffff;
    opacity: .85;
}

html.dark-mode .header-info,
html.dark-mode .header-info-block {
    color: #e2e8f0;
}

html.dark-mode .webengine-online-bar {
    background: rgba(255,255,255,0.08);
}

html.dark-mode .sidebar-banner img,
html.dark-mode .webengine-mu-logo {
    filter: none;
}

@media (max-width: 767px) {
    .theme-toggle {
        margin-right: 0;
        margin-bottom: 6px;
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
    body {
        background-size: cover;
    }

    #header {
        padding: 36px 15px 10px;
    }

    .header-info-container {
        padding: 0 15px;
        box-sizing: border-box;
        text-align: center;
    }

    .header-info-container .header-info {
        width: 100%;
        max-width: 420px;
    }

    #container {
        padding: 15px 0;
        margin: 0 10px;
        width: auto;
    }

    #content {
        padding: 10px 15px 0;
    }

    .footer {
        width: auto;
        margin: 0 10px 30px;
        padding: 24px 15px;
    }

    .global-top-bar .global-top-bar-content {
        width: auto;
        padding: 0 10px;
    }
}

/* =========================================================
   MOBILE GENERAL
========================================================= */

@media (max-width: 767px) {
    .global-top-bar {
        font-size: 11px;
    }

    .global-top-bar .col-xs-6 {
        width: 100%;
        float: none;
        text-align: center !important;
        margin-bottom: 4px;
    }

    .webengine-language-switcher,
    .webengine-language-switcher:hover {
        width: auto;
        height: auto;
        overflow: visible;
    }

    #content > .col-xs-8,
    #content > .col-xs-4,
    #content > .col-xs-12,
    #content > .col-sm-8,
    #content > .col-sm-4,
    #content > .col-sm-12 {
        width: 100%;
        float: none;
    }

    .header-info-container .row > .col-xs-6,
    .header-info-container .row > .col-sm-6,
    .header-info-container .row > .col-xs-12,
    .header-info-container .row > .col-sm-12 {
        width: 100%;
        float: none;
        text-align: center !important;
    }

    .home-news-block .home-news-block-header h2,
    .page-title {
        font-size: 22px;
    }

    .panel-sidebar > .panel-heading .panel-title,
    .panel-news .panel-title {
        line-height: 1.25;
    }

    .panel-sidebar,
    .panel-news,
    .panel-general,
    .panel-addstats,
    .panel-downloads {
        margin-bottom: 20px;
    }

    .rankings-table tr td {
        font-size: 14px;
        padding: 8px;
    }

    .rankings-table-place {
        font-size: 18px;
    }

    .sidebar-banner {
        margin: 15px 0;
    }

    #content .panel-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #content .table,
    #content .rankings-table,
    #content .general-table-ui,
    #content .myaccount-table {
        display: table;
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .rankings-table tr td,
    .general-table-ui tr td,
    .myaccount-table tr td {
        white-space: normal;
        word-break: break-word;
    }

    .panel-sidebar > .panel-heading .btn,
    .panel-usercp > .panel-heading .btn {
        width: auto;
        display: inline-block;
        margin-top: 0;
        float: right !important;
    }
}

/* =========================================================
   MOBILE NAV ALWAYS VISIBLE
========================================================= */

@media (max-width: 768px) {
    #menu-toggle {
        display: none !important;
    }

    #navbar {
		display: block !important;
		position: static !important;
		top: auto !important;
		z-index: auto !important;
		overflow: visible !important;
		background: rgba(0,0,0,.25) !important;
}

    #navbar > ul {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        background: rgba(0,0,0,.92) !important;
        text-align: left !important;
    }

    #navbar > ul > li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    #navbar > ul > li:last-child {
        border-bottom: 0 !important;
    }

    #navbar > ul > li > a {
        display: block !important;
        width: 100% !important;
        color: #ffffff !important;
        padding: 14px 16px !important;
        margin: 0 !important;
        background: transparent !important;
        text-align: left !important;
        text-transform: uppercase !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    #navbar > ul > li > a:hover,
    #navbar > ul > li > a:focus,
    #navbar > ul > li > a:active {
        background: rgba(255,255,255,.08) !important;
        color: #ffda8a !important;
    }

    #header {
        padding: 35px 0 10px 0;
    }

    .webengine-mu-logo {
        max-width: 220px;
        margin: 0 auto;
    }

    .header-info-container {
        width: calc(100% - 20px) !important;
        margin-top: 10px;
        text-align: center;
    }

    .header-info-container .header-info {
        width: 100% !important;
        max-width: none;
        padding: 15px;
    }

    #container {
        width: calc(100% - 20px) !important;
        padding: 10px 0;
        border-radius: 5px;
    }

    #content {
        min-height: auto;
        padding: 10px !important;
        overflow: visible;
    }

    .footer {
        width: calc(100% - 20px) !important;
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .panel-news,
    .panel-sidebar,
    .panel-general,
    .panel-addstats,
    .panel-downloads {
        margin-bottom: 20px;
    }

    .rankings-table,
    .general-table-ui,
    .myaccount-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .rankings-table tr td,
    .general-table-ui tr td,
    .myaccount-table tr td {
        font-size: 14px;
        padding: 8px !important;
    }

    .rankings-table-place {
        font-size: 18px;
    }

    .myaccount-character-block {
        width: 100%;
        text-align: center;
    }

    .myaccount-character-block img {
        width: 80px;
    }

    .myaccount-character-name a {
        font-size: 15px;
    }

    .home-news-block .home-news-block-header h2 {
        font-size: 22px;
    }

    .home-news-block-article .home-news-block-article-title,
    .home-news-block-article .home-news-block-article-date {
        line-height: 22px;
        font-size: 13px;
    }

    input[type=text],
    input[type=password],
    input[type=number],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
    }

    .btn,
    input[type=submit],
    button {
        max-width: 100%;
    }
}

/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 480px) {
    #header {
        padding-top: 25px;
    }

    .webengine-mu-logo {
        max-width: 180px;
    }

    #navbar > ul > li > a {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    .global-top-bar {
        font-size: 10px;
    }

    .header-info-container .header-info {
        font-size: 11px;
    }

    .page-title {
        font-size: 24px;
    }

    .panel-news .panel-title {
        font-size: 20px;
    }
}