/* ==========================================================
   UO Horizon Armoury v2
   Matches Horizon Wiki / Codex Theme
   ========================================================== */

/* -----------------------------
   Fonts
------------------------------ */

@font-face {
    font-family: "UOClassic";
    src: url("../fonts/CLF-UoClassic.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* -----------------------------
   Global Layout
------------------------------ */

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

html {
    background-color: #6b4f4b;
    background-image: url("../images/backgroundtile.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

body {
    background: transparent;
    color: #f2e7d5;
    font-family: Arial, Helvetica, sans-serif;
}

/* -----------------------------
   Main Wrapper
------------------------------ */

.armoury-wrapper,
.horizon-armoury-banner,
.topmenublock,
.armoury-content {
    width: 100%;
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
}

.armoury-wrapper {
    margin: 28px auto;
    padding: 0;
    background: transparent;
}

/* -----------------------------
   Banner
------------------------------ */

.horizon-armoury-banner {
    display: block;
    border: 1px solid #8d6b39;
    box-shadow: 0 0 24px rgba(0,0,0,.75);
}

.horizon-armoury-banner img {
    display: block;
    width: 100%;
    max-width: 1450px;
    height: auto;
}

/* -----------------------------
   Navigation
------------------------------ */

.topmenublock {
    width: 100%;
    max-width: 1450px;
    height: auto;
    margin: 0 auto;
    background: #160d0d;
    border-left: 1px solid #8d6b39;
    border-right: 1px solid #8d6b39;
    border-bottom: 1px solid #8d6b39;
    box-shadow: 0 0 18px rgba(0,0,0,.6);
    border-collapse: collapse;
}

.topmenublock td {
    padding: 14px 18px;
    background: transparent;
    text-align: center;
    white-space: nowrap;
}

.topmenublock a {
    font-family: "UOClassic", serif;
    font-size: 26px;
    color: #f7d774;
    text-decoration: none;
    text-shadow: 0 2px 6px #000;
}

.topmenublock a:hover {
    color: #fff5c8;
    text-shadow: 0 0 10px rgba(255,220,120,.75);
}

/* -----------------------------
   Main Content Frame
------------------------------ */

.armoury-content,
#armoury-content,
.content,
.main-content {
    background: #120b0b;
    border: 1px solid #8d6b39;
    box-shadow: 0 0 24px rgba(0,0,0,.70);
    padding: 10px;
    color: #f2e7d5;
}

/* -----------------------------
   Typography
------------------------------ */

h1,
h2,
h3,
.armoury-title {
    font-family: "UOClassic", serif;
    font-weight: normal;
    color: #f7d774;
    text-shadow: 0 2px 6px #000;
    margin: 0;
}

h1,
.armoury-title {
    font-size: 36px;
    padding: 12px 18px;
    border-top: 1px solid #8d6b39;
    border-bottom: 1px solid #8d6b39;
    background: linear-gradient(#2b1a16, #120b0b);
}

h2 {
    font-size: 30px;
    padding: 8px 0;
}

h3 {
    font-size: 24px;
}

p {
    margin: 0 0 12px 0;
    font-size: 16px;
}

/* -----------------------------
   Links
------------------------------ */

a:link,
a:visited {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #fff5c8;
    text-shadow: 0 0 10px rgba(255,220,120,.65);
}

/* -----------------------------
   Tables
------------------------------ */

table {
    width: 100%;
    max-width: 1450px;
    border-collapse: collapse;
    border-spacing: 0;
    background: #160d0d;
    color: #f2e7d5;
    font-size: 16px;
}

th {
    font-family: "UOClassic", serif;
    font-weight: normal;
    font-size: 24px;
    color: #f7d774;
    text-align: left;
    background: #201616;
    border-top: 1px solid #8d6b39;
    border-bottom: 1px solid #8d6b39;
    padding: 10px 14px;
    text-shadow: 0 2px 6px #000;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(141,107,57,.35);
}

tr:nth-child(odd) {
    background: rgba(0,0,0,.25);
}

tr:nth-child(even) {
    background: rgba(255,255,255,.06);
}

tr:hover {
    background: rgba(247,215,116,.08);
}

/* -----------------------------
   Default Table Reset
------------------------------ */

.defaulttable,
.defaulttable thead,
.defaulttable tbody,
.defaulttable tfoot,
.defaulttable tr,
.defaulttable td,
.defaulttable th {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* -----------------------------
   Status Colors
------------------------------ */

.cyan {
    color: #31d6e7;
    text-shadow: 0 2px 6px #000;
}

.gold {
    color: #f7d774;
    text-shadow: 0 2px 6px #000;
}

.green {
    color: #85e731;
    text-shadow: 0 2px 6px #000;
}

.red {
    color: #bd0000;
    text-shadow: 0 2px 6px #000;
}

.grey {
    color: #949494;
    text-shadow: 0 2px 6px #000;
}

.white {
    color: #fefefe;
    text-shadow: 0 2px 6px #000;
}

/* -----------------------------
   Status / Info Tables
------------------------------ */

th.status_title {
    text-align: right;
    font-size: 12px;
    color: #d7c19b;
    background: transparent;
    border: none;
    padding: 0;
}

td.status_results {
    text-align: left;
    font-size: 12px;
    color: #85e731;
    background: transparent;
    border: none;
    padding: 0;
}

/* -----------------------------
   Rolodex / Alphabet Links
------------------------------ */

.rolodex a,
.rolodex-letters,
.no-results {
    display: block;
    background: #160d0d;
    border: 1px solid #8d6b39;
    border-radius: 6px;
    color: #f7d774;
    text-align: center;
    padding: 8px;
    text-shadow: 0 2px 6px #000;
}

.rolodex a:hover {
    background: rgba(247,215,116,.12);
    color: #fff5c8;
}

/* -----------------------------
   Buttons
------------------------------ */

.status-button {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 18px;
    background: linear-gradient(#3e2a24, #1b1111);
    border: 1px solid #8d6b39;
    border-radius: 5px;
    color: #f7d774;
    font-family: "UOClassic", serif;
    font-size: 22px;
    text-decoration: none;
    transition: .2s;
}

.status-button:hover {
    background: linear-gradient(#5b3a2c, #241515);
    color: #fff5c8;
    box-shadow: 0 0 10px rgba(255,220,120,.35);
}

/* -----------------------------
   Search Form
------------------------------ */

.webdesigntuts-workshop {
    background: transparent;
    height: auto;
    position: relative;
    text-align: center;
    width: auto;
}

.webdesigntuts-workshop:before,
.webdesigntuts-workshop:after {
    display: none;
}

.webdesigntuts-workshop form {
    display: inline-block;
    margin: 20px auto;
    padding: 12px;
    background: #120b0b;
    border: 1px solid #8d6b39;
    border-radius: 5px;
    box-shadow: inset 0 0 12px rgba(0,0,0,.55);
}

.webdesigntuts-workshop input {
    height: 34px;
    width: 220px;
    padding: 0 10px;
    background: #f2e7d5;
    border: 1px solid #8d6b39;
    color: #170f0f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.webdesigntuts-workshop button {
    height: 36px;
    width: 90px;
    background: linear-gradient(#3e2a24, #1b1111);
    border: 1px solid #8d6b39;
    color: #f7d774;
    font-family: "UOClassic", serif;
    font-size: 20px;
    cursor: pointer;
}

.webdesigntuts-workshop button:hover {
    color: #fff5c8;
    box-shadow: 0 0 10px rgba(255,220,120,.35);
}

/* -----------------------------
   Legacy Position Helpers
------------------------------ */

.guildshield,
.statusscroll {
    display: none;
}

div#a {
    background-image: none;
}

.subTable table tbody tr td {
    background-color: transparent;
}
/* ==========================================================
   Armoury Boundary / Width Fix
   Match Wiki Container Behavior
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.armoury-wrapper,
.horizon-armoury-banner,
.topmenublock,
.armoury-content,
#armoury-content,
.content,
.main-content {
    width: 1450px !important;
    max-width: 1450px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.horizon-armoury-banner img {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

.topmenublock {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.armoury-content,
#armoury-content,
.content,
.main-content {
    margin-top: 0 !important;
    padding: 10px !important;
    overflow-x: hidden;
}

/* Prevent tables from forcing the frame wider */
.armoury-content table,
#armoury-content table,
.content table,
.main-content table {
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsive fallback */
@media (max-width: 1490px) {
    .armoury-wrapper,
    .horizon-armoury-banner,
    .topmenublock,
    .armoury-content,
    #armoury-content,
    .content,
    .main-content {
        width: calc(100% - 48px) !important;
        max-width: calc(100% - 48px) !important;
    }
}
/* -----------------------------
   Responsive
------------------------------ */

@media (max-width: 900px) {
    .armoury-wrapper,
    .horizon-armoury-banner,
    .topmenublock,
    .armoury-content {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
    }

    .topmenublock td {
        display: block;
        padding: 10px;
        font-size: 26px;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        font-size: 14px;
    }

    th {
        font-size: 20px;
    }
}