
body { margin: 0; }

.window { position: relative; }

@font-face {
    font-family: 'Bitter';
    src: url('../fonts/Bitter-Regular.ttf');
}
@font-face {
    font-family: 'BitterBold';
    src: url('../fonts/Bitter-Bold.ttf');
    font-weight: 600;
}
@font-face {
    font-family: 'BitterItalic';
    src: url('../fonts/Bitter-Italic.ttf');
    font-style: 'italic';
}

@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/Ubuntu-B.ttf');
}

.serif { font-family: 'Bitter'; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); color: #fff; font-weight: normal; }
.sans-serif { font-family: 'Ubuntu'; color: #fff; font-weight: normal; }
.group:after { content: ""; display: table; clear: both; }
.small { font-size: 12px; margin: 0; position: relative; top: -2px; color: #bbb; }

.window-container .handle { padding: 0 25px; position: absolute; top: 10px; height: 18px; overflow: hidden;
    background: url(../images/tab-bg.png) no-repeat; min-width: 85px; left: 20px; }

    .handle h2.tab-title { margin: 6px 0 0; font-size: 9px; font-weight: bold; letter-spacing: 0.2em; text-transform: uppercase;
        color: #999; float: left; font-family: sans-serif; }
    .handle .close_handle { width: 12px; height: 12px; margin: 5px 0 0 6px; float: right; background: url(../images/ui-close.png); }
        .close_handle:hover { background-position: 0 -12px; }

.window-container { padding: 23px 0 1px; }
    .window-container { -webkit-user-select: none; }
    .window-framework { margin: 5px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); border-radius: 10px; }

        .window-framework .top-left { width: 12px; height: 12px; background-image: url(../images/window-top-left.png); }
        .window-framework .top { height: 12px; background-image: url(../images/window-top.png); background-size: 100% 12px; }
        .window-framework .top-right { width: 12px; height: 12px; background-image: url(../images/window-top-right.png); }

        .window-framework .middle-left { width: 12px; background-image: url(../images/window-middle-left.png); background-size: 12px 100%; }
        .window-framework .middle { background-image: url(../images/window-middle.png); background-size: 150% 100%; }
        .window-framework .middle-right { width: 12px; background-image: url(../images/window-middle-right.png); background-size: 12px 100%; }

        .window-framework .bottom-left { width: 12px; height: 12px; background-image: url(../images/window-bottom-left.png); }
        .window-framework .bottom { height: 12px; background-image: url(../images/window-bottom.png); background-size: 100% 12px; }
        .window-framework .bottom-right { width: 12px; height: 12px; background-image: url(../images/window-bottom-right.png); }

        .window-framework .header-top .top-left { background-image: url(../images/window-header-top-left.png); }
        .window-framework .header-top .top { background-image: url(../images/window-header-top.png); }
        .window-framework .header-top .top-right { background-image: url(../images/window-header-top-right.png); }

        .window-framework .header-middle .middle-left { background-image: url(../images/window-header-middle-left.png); }
        .window-framework .header-middle .middle { background-image: url(../images/window-header-middle.png); background-size: 99% 100%; }
        .window-framework .header-middle .middle-right { background-image: url(../images/window-header-middle-right.png); }

        .window-framework .header-bottom .bottom-left { height: 3px; background-image: url(../images/window-header-bottom-left.png); }
        .window-framework .header-bottom .bottom { height: 3px; background-image: url(../images/window-header-bottom.png); background-size: 100% 3px; }
        .window-framework .header-bottom .bottom-right { height: 3px; background-image: url(../images/window-header-bottom-right.png); }

.notransition { -webkit-transition: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background-color: rgba(0,0,0,0.2); box-shadow: inset 0 0 5px 0 rgba(0,0,0,0.5);
    border-radius: 5px; overflow: hidden; }
::-webkit-scrollbar-thumb { border-radius: 5px; box-shadow: 0 0 4px 0 rgba(0,0,0,0.8);
    background-image: -webkit-gradient(
        linear,
        left top,
        right top,
        color-stop(0.25, rgba(140, 140, 140, 1)),
        color-stop(1, rgba(180, 180, 180, 1))
    ); }

/* Stat Bars */
.stat-bar {
    background-color: rgba(0,0,0,0.2);
    height: 4px; width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 4px 0 0;
    background-clip:content-box;
    -webkit-background-clip:content-box;
}

.stat-bar-fill {
    height: 100%;
    -webkit-transition: width .5s;
    border-radius: 5px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
}

#hp_bar {
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgba(170, 71, 65, 1.0)),
        color-stop(1, rgba(230, 130, 120, 1.0))
    );
}
#sp_bar {
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgba(90, 128, 83, 1.0)),
        color-stop(1, rgba(137, 201, 127, 1.0))
    );
}

button {
    font-family: 'Bitter'; font-size: 13px; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); color: #fff; font-weight: bold;
    border-radius: 5px;
    border: 0px;
    box-shadow: inset 0px 1px 1px rgba(255,255,255,0.7), 0px 1px 1px rgba(0,0,0,0.5);
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgba(138, 141, 142, 1.0)),
        color-stop(1, rgba(195, 195, 195, 1.0))
    );
}

button:hover {
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgba(170, 170, 170, 1.0)),
        color-stop(1, rgba(205, 205, 205, 1.0))
    );
}

button:active {
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgba(120, 122, 123, 1.0)),
        color-stop(1, rgba(180, 180, 180, 1.0))
    );
}

button:disabled {
    color: #bbb;
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgba(100, 101, 102, 1.0)),
        color-stop(1, rgba(140, 140, 140, 1.0))
    );
}

::-webkit-input-placeholder {
    color: rgb(220, 220, 220);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

input[type=text],[type=password],[type=number] {
    height: 20px;
    padding: 1px 0px 0px 4px;
    border: 0px;
    border-radius: 5px;
    color: rgb(240, 240, 240);
    box-shadow: inset 1px 1px 1px rgba(0,0,0,0.7), 1px 1px 1px rgba(255,255,255,0.5);
    background-color: rgb(160, 160, 160);
    font-family: 'Bitter'; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); color: #fff; font-weight: normal;
}

input:focus {
    outline: none;
}


.toggle-button {
    width: 16px; height: 16px;
    box-shadow: inset 1px 1px 1px rgba(0,0,0,0.7), 1px 1px 1px rgba(255,255,255,0.5);
}

.checked {
    background-image: url(../images/check.png), -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgba(138, 141, 142, 1.0)),
        color-stop(1, rgba(195, 195, 195, 1.0))
    );
}

.checked:hover {
    background-image: url(../images/check.png), -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgba(170, 170, 170, 1.0)),
        color-stop(1, rgba(205, 205, 205, 1.0))
    );
}

/*input[type=text],[type=password],[type=number]:disabled {
    background-color: rgb(130, 130, 130);
    color: #bbb;
}*/

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

/* Item Slots */

.itemslot { position: relative; width: 34px; height: 34px; margin: 2px 2px 0 0; float: left;
    background-image: url("../images/ui-item-bg.png"); background-size: 100% 100%; border-radius: 3px;
    box-shadow: inset 0 0 2px 1px rgba(0,0,0,0.3), 0 0 2px 1px rgba(255,255,255,0.1); -webkit-user-select: none; }
.itemslot img { margin: 5px; }
.itemslot .quantity { color: #fff; position: absolute; bottom: -3px; right: 1px; font-weight: bold; font-size: 11px;
    text-shadow: -1px 0 #222, 0 1px #222, 1px 0 #222, 0 -1px #222; letter-spacing: -0.1em; }


@-webkit-keyframes flash {
    to { opacity: 0; }
}

.flash-item {
    background-color: #FFF;
    opacity: 0.6;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    left: 0;
    bottom: 0;
    position: absolute;
    -webkit-animation-name: flash;
    -webkit-animation-duration: 1200ms;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: ease-out;
    -webkit-animation-fill-mode: forwards;
}

/* Cooldown Spinner */

.item-spinner.spinner-container { border-radius: 3px; width: 34px; height: 34px; }
.item-spinner .spinner { width: 68px; height: 68px; }

.effect-spinner.spinner-container { border-radius: 3px; width: 24px; height: 24px; }
.effect-spinner .spinner {  width: 48px; height: 48px; }

.spinner-container {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}
.spinner {
  margin: 0 auto;
  position: relative;
  top: -50%;
  left: -50%;
  border-radius: 3px;
}

.spinner span em {
  background: rgba(0,0,0,0.3);
  -webkit-animation-duration: 1s;
}

/* No need to edit below this line */


@-webkit-keyframes rotate-lt {
  0% {    -webkit-transform: rotate(180deg); }
  50% {   -webkit-transform: rotate(360deg); }
  100% {   -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes rotate-rt {
  0% {    -webkit-transform: rotate(180deg); }
  50% {   -webkit-transform: rotate(180deg); }
  100% {   -webkit-transform: rotate(360deg); }
}

.spinner {
  border-radius: 100%;
  position: relative;
}

.spinner span {
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: absolute;
}

.spinner span:first-child {
  left: 0;
}

.spinner span:last-child {
  left: 50%;
}

.spinner span em {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-timing-function: linear;
}

.spinner span:first-child em {
  left: 100%;
  -webkit-animation-name: rotate-rt;
  -webkit-transform-origin: 0 50%;
}

.spinner span:last-child em {
  left: -100%;
  -webkit-animation-name: rotate-lt;
  -webkit-transform-origin: 100% 50%;
 }


.category-icons {
    float: left;
    margin: 0px 2px 0px 2px;
}

.category-icon {
    opacity: 0.5;
}

.category-icon:hover {
    opacity: 1.0;
}

.category-selected {
    opacity: 1.0;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.6);
}

.content-divisor {
    width: 100%;
    height: 2px;
    margin: 10px 0px 5px 0px;
    background-color: rgba(180, 180, 180, 0.6);
    box-shadow: inset 0px 1px 0px rgba(70, 70, 70, 0.6);
}

.selected-indicator {
    display: block;
    width: 13px;
    height: 13px;
    background-image: url(../images/arrow-open.png);
    position: absolute;
    top: -7px;
    left: 50%;
    margin-left: -6px;
}
