@font-face {
    font-family: 'OpenSansWeb';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2'), url('../fonts/OpenSans-Regular.woff') format('woff');
}

*, body {
    font-family: OpenSansWeb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background-image: url(https://api.masterking32.com/random_bg.php?wow);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-bottom: 80px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
}

.content_box1{
    padding: 10px;
    text-align: left;
}

.main-box {
    width: 100%;
    margin: 80px auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    text-align: center;
}

.box-form {
    max-width: 80%;
    margin: 10px auto 10px auto;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

.login-form img {
    max-width: 100%;
    margin-bottom: 10px;
}

.form-control {
    margin: 5px 0px 10px 0px;
}

.input-group span {
    padding-top: 10px;
}

nav > .nav.nav-tabs {
    border: none;
    color: #fff;
    background: #272e38;
    border-radius: 0;
}

nav > div a.nav-item.nav-link,
nav > div a.nav-item.nav-link.active {
    border: none;
    padding: 18px 25px;
    color: #fff;
    background: #272e38;
    border-radius: 0;
}

.tab-content {
    background: #fdfdfd;
    line-height: 25px;
    border: 1px solid #ddd;
    border-top: 5px solid #e74c3c;
    border-bottom: 5px solid #e74c3c;
    padding: 30px 25px;
}

#nav-topplayers button {
    margin: 5px;
}

nav > div a.nav-item.nav-link:hover,
nav > div a.nav-item.nav-link:focus {
    border: none;
    background: #e74c3c;
    color: #fff;
    border-radius: 0;
    transition: background 0.20s linear;
}

td, th {
    text-align: center;
}

.downloads-table td, .downloads-table th {
    vertical-align: middle;
}

.downloads-table code {
    font-size: 85%;
}
.events-table td { vertical-align: middle; }
.events h5 { margin-top: 10px; }
.fallen h5 { margin-top: 15px; }
.fallen-stats { margin: 5px 0 15px 0; }
.fallen-stat { font-size: 1.4em; font-weight: bold; color: #e74c3c; }
.fallen-table td, .fallen-table th { vertical-align: middle; }
.fallen-table img { height: 18px; }

/* ---------------------------------------------------------------- shared */
nav > div a.nav-item.nav-link,
nav > div a.nav-item.nav-link.active { padding: 16px 14px; }
.rc-icon { height: 18px; margin-right: 2px; vertical-align: middle; }
.char-link { color: #272e38; font-weight: bold; border-bottom: 2px solid #999; text-decoration: none; }
.char-link:hover { color: #e74c3c; text-decoration: none; }
.fac-a { color: #3b82d6; }
.fac-h { color: #d63b2f; }

/* ---------------------------------------------------------- status strip */
.status-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px;
    margin: 15px 15px 0; padding: 8px 14px; background: #272e38; color: #fff; border-radius: 4px; font-size: 14px; text-align: left; }
.status-strip .text-muted { color: #aab2bd !important; }
.status-strip .fac-a { color: #7fb2f0; }
.status-strip .fac-h { color: #f08a80; }
.status-strip .text-danger { color: #ff7b6e !important; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.status-up { background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
.status-down { background: #e74c3c; }
.status-unknown { background: #95a5a6; }
.status-item { margin-left: 12px; }
.status-links a { color: #fff; margin-left: 14px; font-weight: bold; }
.status-links a:hover { color: #e74c3c; text-decoration: none; }

/* -------------------------------------------------- online, leaderboards */
.online-table td, .online-table th { vertical-align: middle; }
.online-summary { margin-bottom: 8px; }
.lb-card { margin-bottom: 18px; text-align: left; }
.lb-card .card-header { font-weight: bold; background: #272e38; color: #fff; padding: 8px 12px; }
.lb-list { list-style: none; margin: 0; padding: 4px 0; }
.lb-list li { display: flex; align-items: center; gap: 4px; padding: 4px 12px; border-bottom: 1px solid #f0f0f0; }
.lb-list li:last-child { border-bottom: none; }
.lb-rank { width: 22px; color: #999; font-weight: bold; }
.lb-level { color: #999; font-size: 12px; margin-left: 4px; }
.lb-value { margin-left: auto; font-weight: bold; color: #272e38; white-space: nowrap; }

/* ------------------------------------------------------ standalone pages */
.main-box.sub-page { margin: 30px auto; padding-bottom: 15px; }
.sub-logo { max-width: 340px; width: 60%; margin-top: 15px; }
.page-box { background: #fdfdfd; border-top: 5px solid #e74c3c; border-bottom: 5px solid #e74c3c;
    margin: 15px; padding: 25px; text-align: left; }

/* ----------------------------------------------------------------- armory */
.arm-search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto 20px; }
.arm-intro, .arm-notfound { text-align: center; padding: 20px 0; }
.arm-header { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; border-left: 6px solid #999;
    padding: 12px 16px; background: #f4f5f7; border-radius: 4px; }
.arm-portrait img { height: 42px; margin-right: 3px; }
.arm-name { margin: 0; font-weight: bold; color: #272e38; }
.arm-sub { font-size: 15px; }
.arm-faction { font-size: 12px; font-weight: bold; text-transform: uppercase; margin-left: 6px; }
.arm-guild { font-weight: bold; color: #555; }
.arm-badges .badge { margin-right: 4px; font-size: 12px; }
.arm-facts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; text-align: center; font-size: 12px; color: #666; }
.arm-fact { display: block; font-size: 20px; font-weight: bold; color: #272e38; }
.arm-h { margin-top: 24px; margin-bottom: 10px; border-bottom: 2px solid #e74c3c; padding-bottom: 4px; }

.arm-doll { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.arm-weapons { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.arm-slot { display: flex; align-items: center; padding: 4px 0; border-bottom: 1px solid #eee; min-height: 50px; }
.arm-slot-icon { display: inline-block; border: 2px solid #ccc; border-radius: 5px; margin-right: 10px; line-height: 0; background: #111; }
.arm-icon { width: 36px; height: 36px; border-radius: 3px; }
.arm-slot-text { display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; }
.arm-slot-text a:hover { text-decoration: none; filter: brightness(1.2); }
.arm-ilvl { font-size: 11px; color: #888; font-weight: normal; }
.arm-empty .arm-icon { opacity: 0.2; }

.arm-stats dl { display: grid; grid-template-columns: auto auto; gap: 0 10px; margin: 6px 0 0; font-size: 13px; }
.arm-stats dt { font-weight: normal; color: #666; }
.arm-stats dd { margin: 0; text-align: right; font-weight: bold; }

.arm-spec-tabs { margin-bottom: 6px; }
.arm-spec-tabs .nav-link { padding: 4px 12px; color: #272e38; }
.arm-spec-tabs .nav-link.active { background: #e74c3c; }
.tab-content.arm-spec-content { background: transparent; border: none; padding: 6px 0 0; }
.arm-trees { display: flex; flex-wrap: wrap; gap: 14px; }
.arm-tree { flex: 1 1 220px; background: #1c2129; border-radius: 6px; padding: 10px 10px 14px; color: #ddd; }
.arm-tree-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.arm-tree-icon { width: 24px; height: 24px; border-radius: 3px; }
.arm-tree-points { margin-left: auto; font-size: 18px; font-weight: bold; color: #ffd100; }
.arm-grid { display: grid; grid-template-columns: repeat(4, 44px); gap: 6px; justify-content: center; }
.arm-talent { position: relative; display: block; width: 40px; height: 40px; }
.arm-talent .arm-icon { width: 40px; height: 40px; border: 2px solid #555; border-radius: 4px; }
.arm-talent.none .arm-icon { filter: grayscale(1); opacity: 0.35; }
.arm-talent.has .arm-icon { border-color: #1eff00; }
.arm-talent.maxed .arm-icon { border-color: #ffd100; }
.arm-rank { position: absolute; right: -4px; bottom: -4px; background: #000; color: #fff; font-size: 10px;
    line-height: 1; padding: 2px 3px; border-radius: 3px; }
.arm-talent.none .arm-rank { color: #888; }
.arm-talent.has .arm-rank { color: #1eff00; }
.arm-talent.maxed .arm-rank { color: #ffd100; }
.arm-talent-list { columns: 2; }

.arm-prof { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.arm-prof-icon { width: 28px; height: 28px; border-radius: 4px; }
.arm-prof-body { flex: 1; }
.arm-prof .progress { height: 8px; }
.arm-prof .progress-bar { background: #e74c3c; }
.arm-ach { list-style: none; padding: 0; margin: 0; }
.arm-ach li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #eee; }
.arm-ach-icon { width: 24px; height: 24px; border-radius: 3px; }
.arm-ach-pts { background: #272e38; color: #ffd100; font-size: 11px; font-weight: bold; padding: 1px 6px; border-radius: 8px; }
.arm-ach-date { margin-left: auto; color: #888; font-size: 12px; white-space: nowrap; }

/* ---------------------------------------------------------------- account */
.acc-login { max-width: 420px; margin: 0 auto; }
.acc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.acc-head h4 { margin: 0; }
.acc-card { margin-bottom: 16px; }
.acc-card .card-header { font-weight: bold; background: #272e38; color: #fff; padding: 8px 12px; }
.acc-card .form-control { margin-bottom: 8px; }
.acc-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.acc-facts dt { font-weight: normal; color: #666; }
.acc-facts dd { margin: 0; }
.acc-chars td { vertical-align: middle; }

@media (max-width: 767px) {
    .arm-doll, .arm-weapons { grid-template-columns: 1fr; }
    .arm-facts { margin-left: 0; }
    .status-item { margin-left: 8px; }
}
