/*
 * The item mall, as it appears inside the game.
 *
 * The window is a fixed 716x516 browser rect on top of the 3D view, so this is not a
 * responsive layout looking for a phone - it is one panel, sized to fit that rect, that
 * also survives being opened in a real browser.
 *
 * Written to degrade rather than break. The previous stylesheet reached for PIE.htc, a
 * behavior-based polyfill, to give Internet Explorer rounded corners; every rounded
 * element carried `behavior: url('PIE.htc')` and the file itself was 41 KB fetched on
 * every page. Square corners in an old client are worth a great deal less than that, so
 * border-radius is used plainly and old clients simply get squares.
 */

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    background-color: #664a2f;
    color: #ccc;
    text-align: center;
    margin: 0;
    padding: 0;
}

#page {
    padding: 8px 10px 16px;
}

a {
    color: #ccc;
    text-decoration: none;
}

a:hover {
    color: #fff;
}

/* --------------------------------------------------------------- the top strip */

#header {
    position: relative;
    min-height: 46px;
    text-align: left;
}

#header .topup {
    margin: 0;
    padding-right: 150px;
    line-height: 1.4;
}

#header .topup strong {
    color: #e59500;
    font-weight: normal;
}

#balance {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #9a7242;
    border: #c4a86c solid 1px;
    border-radius: 10px;
    padding: 5px 10px;
    white-space: nowrap;
}

#balance span {
    color: #e59500;
    font-weight: bold;
}

img.coin {
    width: 16px;
    height: 16px;
    vertical-align: text-top;
    border: 0;
}

/* ----------------------------------------------------------------- the shelves */

ul#categories {
    list-style-type: none;
    margin: 10px 0 0;
    padding: 0;
    text-align: center;
}

ul#categories li {
    display: inline-block;
    margin: 0 6px 6px 0;
    vertical-align: middle;
}

ul#categories li a {
    display: inline-block;
    min-width: 92px;
    padding: 7px 10px;
    background-color: #442e1a;
    border: #c4a86c solid 1px;
    border-radius: 10px;
}

ul#categories li a.current {
    background-color: #6b5031;
    color: #fff;
}

/* ---------------------------------------------------------------- the products */

table#product-list {
    background-color: #372515;
    border: #c4a86c solid 1px;
    border-radius: 10px;
    border-collapse: separate;
    margin: 4px auto 15px;
    padding: 10px;
}

table#product-list td {
    width: 190px;
    padding: 12px 10px;
    vertical-align: top;
    text-align: center;
}

table#product-list img.item {
    width: 64px;
    height: 64px;
    border: 0;
}

table#product-list h4 {
    color: #e59500;
    font-weight: normal;
    margin: 6px 0 2px;
    font-size: 13px;
}

table#product-list .quantity {
    margin: 0;
    color: #fff;
}

table#product-list .description {
    margin: 2px 0 6px;
    color: #b0a08c;
    font-size: 11px;
    line-height: 1.3;
}

table#product-list .price {
    margin: 6px 0 8px;
}

table#product-list .unaffordable {
    margin: 0;
    color: #a58e74;
    font-size: 11px;
}

input.bt-buy {
    background-color: #f0ede1;
    border: #000 solid 1px;
    border-radius: 10px;
    padding: 7px 22px;
    color: #000;
    font-size: 13px;
    cursor: pointer;
}

input.bt-buy:hover {
    background-color: #fff;
}

/* --------------------------------------------------------------- the paginator */

table#pagination {
    margin: 0 auto;
    text-align: center;
}

table#pagination td {
    display: inline-block;
    margin-right: 6px;
}

table#pagination td a {
    display: inline-block;
    min-width: 16px;
    padding: 5px 8px;
    background-color: #442e1a;
    border: #c4a86c solid 1px;
    border-radius: 10px;
}

table#pagination td a.current {
    background-color: #6b5031;
    color: #fff;
}

/* ------------------------------------------------------------------- the rest */

h2 {
    display: block;
    background-color: #9a7242;
    font-weight: normal;
    font-size: 20px;
    text-align: center;
    width: 260px;
    padding: 4px 15px;
    border: #c4a86c solid 1px;
    border-radius: 10px;
    margin: 20px auto 16px;
}

h2 span {
    display: inline-block;
    background-color: #2c1910;
    padding: 5px 20px;
    border: #c4a86c solid 1px;
    border-radius: 10px;
}

.standalone {
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.5;
}

.standalone .quiet {
    color: #a58e74;
    font-size: 12px;
}

.notice {
    margin: 12px auto;
    padding: 8px 14px;
    border-radius: 10px;
    border: #c4a86c solid 1px;
    max-width: 520px;
}

.notice-ok {
    background-color: #3d4f2a;
    color: #e2f0cf;
}

.notice-error {
    background-color: #5a2b22;
    color: #f3d8d2;
}

.empty {
    margin: 30px 0;
    color: #a58e74;
}

.detail {
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #2c1910;
    border: #c4a86c solid 1px;
    padding: 8px;
    font-size: 11px;
    color: #d6c4ae;
}
