html, body {
    background: url(/includes/images/background.jpg) repeat #333;
    color: #fff;
    height: 100%;
    min-height: 100%;
    font-family: Arial;
    font-size: 15px;
    overflow:hidden;
    line-height: 20px;
    margin: 0;
}

p {
    margin: 0;
}

a { text-decoration: none; }

a.mxp_send {text-decoration: underline;}

a {color: #aaa;}
a:hover {color: #fff;}

h3 {
  margin: 10px 0;
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  font-size: 24px;
  line-height: 40px;
}

table {
    width: 100%;
}

td {
    vertical-align: top;
}

img {
    max-width: 100%;
}

.clear {clear: both; height: 10px;}
.clear_only {clear: both;}

.indent {margin-left: 20px;}

.content {
    margin: 0;
    padding: 5px;
    background: #111;
}

.no_pad {padding: 0;}

.no_border {
   border: 0;
   clear: both;
}

.scrolling {
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.bold {font-weight: bolder;}

.right {float: right;}
.left {float: left;}

.txt_right {text-align: right;}
.txt_center {text-align: center;}
.txt_left {text-align: left;}

.mono {font-family: 'LiberationMono';}

@font-face{
    font-family: 'LiberationMono';
    src: url('/includes/fonts/liberationmono-regular-webfont.eot');
    src: url('/includes/fonts/liberationmono-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('/includes/fonts/liberationmono-regular-webfont.woff') format('woff'),
         url('/includes/fonts/liberationmono-regular-webfont.ttf') format('truetype'),
         url('/includes/fonts/liberationmono-regular-webfont.svg#webfont') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DroidSansMonoRegular';
    src: url('/includes/fonts/DroidSansMono-webfont.eot');
    src: url('/includes/fonts/DroidSansMono-webfont.eot?#iefix') format('embedded-opentype'),
         url('/includes/fonts/DroidSansMono-webfont.woff') format('woff'),
         url('/includes/fonts/DroidSansMono-webfont.ttf') format('truetype'),
         url('/includes/fonts/DroidSansMono-webfont.svg#DroidSansMonoRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ArameMono';
    src: url('/includes/fonts/Arame Mono.woff2') format('woff2'),
         url('/includes/fonts/Arame Mono.woff') format('woff');
}

@font-face {
    font-family: 'ArameMonoBold';
    src: url('/includes/fonts/Arame Mono Bold.woff2') format('woff2'),
         url('/includes/fonts/Arame Mono Bold.woff') format('woff');
}

@font-face {
    font-family: 'ArameMonoThin';
    src: url('/includes/fonts/Arame Mono Thin.woff2') format('woff2'),
         url('/includes/fonts/Arame Mono Thin.woff') format('woff');
}

@font-face {
    font-family: 'BitterRegular';
    src: url('/includes/fonts/bitter.eot');
    src: url('/includes/fonts/bitter.eot') format('embedded-opentype'),
         url('/includes/fonts/bitter.woff2') format('woff2'),
         url('/includes/fonts/bitter.woff') format('woff'),
         url('/includes/fonts/bitter.ttf') format('truetype'),
         url('/includes/fonts/bitter.svg#BitterRegular') format('svg');
}

@font-face {
    font-family: 'CinzelDecorative';
    src: url('/includes/fonts/CinzelDecorative-Regular.ttf');
    src: url('/includes/fonts/CinzelDecorative-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Cinzel';
    src: url('/includes/fonts/Cinzel-Regular.ttf');
    src: url('/includes/fonts/Cinzel-Regular.ttf') format('truetype');
}


*:focus {
    outline: none;
}

.tab_container {
    background: transparent;
    border: 0;
    height: calc(100% - 5px);
    font-size: 0.85em;
}

.tab_nav {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}

.tab_nav > li {
    cursor: pointer;
}

.tab_nav > li > a {
    cursor: pointer !important;
    display: inline-block;
}


/* Slider */
.ui-slider {
    border: 1px #333 solid;
}

.ui-slider .ui-slider-handle {
    border: 1px #888 solid;
}


/* Wrapper for page content to push down footer */
#wrap {
    min-height: 100%;
    height: 100%;
    padding: 0;
    margin: 0 auto 0 auto;
}

.separator {height: 5px;}

/* Tabs */
.ui-tabs {
    position: relative;
}

.ui-tabs div.ui-tabs-panel {
    padding: 0.4em;
}

.ui-tabs ul.tab_nav {
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
}

.ui-tabs ul.tab_nav > li.ui-tabs-active {
    z-index: 1;
}

.ui-tabs ul.tab_nav > li {
    background-clip: content-box;
    float: none !important;
    display: inline-block;
    white-space: no-wrap;
    vertical-align: bottom;
    overflow: hidden;
}

.ui-tabs ul.tab_nav > li > a {
    overflow: hidden;
    outline: 0;
}

.ui-tabs > .tab_content {
    position: relative;
}

.dialog_content > .tab_content {
    height: 100%;
}

/* Element styling */
#container_drop {position: absolute;}

#container {
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    width: 100%;
}

#container .element {
    margin: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

#footer {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

#container .output, #container .output_scrollback {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    -o-user-select: text;
    user-select: text;
}

.output, .output_scrollback, .output_scrollback_wrapper {
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
    color: #aaaaaa;
}

.tab_content.tab_type_main_output, .tab_content.tab_type_channel {
    background-color: black;   /* make output/channel background black */
    background-image: none !important;
}

.output_wrap {
    width: 100%;
    height: 100%;
}

.output_container {
    position: relative;
    height: 100%;
}

.output {
    position: relative;
    width: 100%;
    height: 100%;
    border-width: 0;
    border-style: solid;
    padding: 0 0px;
    padding-top: 0;
    font-size: 13px;
    word-wrap: break-word;
    white-space: pre-wrap;
    background: transparent;
}

.output_wrap > .output {  /* applies to main output and chat boxes, but not to the help viewer*/
    overflow: hidden;
}

.output_scrollback, .output_scrollback_wrapper {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 78;
}

.output_scrollback_wrapper {
    position: absolute;
    height: 90%;
    padding: 0;
    margin: 0;
    overflow: visible;
    display: none;
    border: 0;
}

.output_scrollback {
    position: relative;
    height: calc(100% - 7px);
    font-size: 13px;
    word-wrap: break-word;
    white-space: pre-wrap;
    background: rgba(0,0,0,1);
    padding: 5px 10px;
    margin-left: -10px;
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #808080;
}

.show_scrollback {
    display: block;
    position: absolute;
    cursor: pointer;
    z-index: 1;
}

.hide_scrollback {  
    display: none;  
    top: -2px;
    right: -4px;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    z-index: 79;
    position: absolute;
    cursor: pointer;
    font-family: Arial;
    text-align: center;
    padding: 1px 8px;
    font-size: 1.0em;
    text-transform: uppercase;
}

.output div, .output_scrollback div {
    padding: 0;
    margin: 0;
    line-height: 120%;
    clear: both;
    min-height: 1em;
}

.output_container:not(#output_main) .output div, .output_container:not(#output_main) .output_scrollback div {
    margin-bottom: 10px;
}

/* removes the needless space after the last block, if the extra padding option is enabled */
.output > div:last-child > br {
    display: none;
}

#c_footer {
    position: relative;
}

#data_form {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

#input {
    left: 0;
}

#user_input {
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    outline: none;
    overflow: hidden;
    resize: none;
    font-family: sans-serif;
}

#user_input:focus {
    outline: none;
}

#user_input::-webkit-input-placeholder { color: #555555 }
#user_input::-moz-placeholder { color: #555555 }
#user_input::-ms-input-placeholder { color: #555555 }

#input 
#container_output {
    margin-left: 0;
    margin-right: 0;
}

.ui-autocomplete {
    background-color: black;
}

.ui-autocomplete .ui-menu-item.ui-state-focus {
    background-color: #333333;
    color: black;
}

#data_form > div {
    position: absolute;
    z-index: 1;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

#data_form > #open_settings_small {
    display: none;
}

#footer {
    z-index: 1;
    position: relative;
}

#footer > div {
    float: left;
}

#footer > div#character_module_status > div {
    display: inline-block;
    overflow: hidden;
}

#footer > div#character_module_status > div::before {
    display: block;
    content: "";
    position: absolute;
}


#footer #sidebar_footer_icons {
    float: right;
}

#sidebar_footer_icons > div {
    float: left;
}

#sidebar_footer_icons > div i {
    cursor: pointer;
}


#status-daytime {
    width: 80px;
    background-repeat: no-repeat;
}

#status-daytime div.daynight-wrap {
    height: 32px;
    width: 77px;
    border: 0px;
    border-radius: 11px;
    position: relative;
    overflow: hidden;
}

#status-daytime div.daynight-icon {
    background-size: cover;
    width: 26px;
    height: 26px;
    top: 1px;
    position: absolute;
}

#status-daytime.daytime-day {
    background-image: url("/includes/images/bottom/sun_light_bg_small.png");
}

#status-daytime.daytime-night {
    background-image: url("/includes/images/bottom/moon_light_bg_small.png");
}

#status-daytime.daytime-day div.daynight-icon {
    background-image: url("/includes/images/bottom/sun.png");
}

#status-daytime.daytime-night div.daynight-icon {
    background-image: url("/includes/images/bottom/moon.png");
}


#character_module_status, #character_module_extra_icons {
    text-align: left;
    font-size: 0.85em;
    overflow: hidden;
    white-space: nowrap;
}

#footer > #character_module_status_right {
    float: right;
    margin-right: 10px;
}

#character_module_extra_icons .statusicon {
    margin-right: 5px;
    padding-top: 3px;
}

#character_module_extra_icons #daynight_indicator {
    padding-top: 0 !important;
}


#footer > #character_module_status_right > *{
    float: left;
}

#character_module_extra_icons {
    padding-top: 0px;
}

#character_module_extra_icons > img {
    cursor: pointer;
}

#character_module_extra_icons .statusicon {
    display: inline-block;
    float: right;
}

/* Tab contents - expandable headings */

.tab_content .section .heading {
    cursor: pointer;
}

.tab_content .subsection > .heading {
    cursor: pointer;
    line-height: 23px;
    padding-bottom: 5px;
}

.tab_content .section .heading::before, .tab_content .subsection .heading::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    background-repeat: no-repeat;
    padding-right: 5px;
}

/* Collapsed section is not shown, except for the heading */
.tab_content .section.collapsed > :not(.heading), .tab_content .subsection.collapsed > :not(.heading) {
    display: none;
}

/* Horizontal rule */
.hrule {
    display: block;
    height: 0px;
    border: none;
}

/* Tasks */
.tasks_entry .tick-box {
    float: left;
    display: inline-block;
}

.tasks_entry a {
    position: relative;
    top: 1px;
}

.tasks_entry::after {
    content: '';
    display: block;
    clear: both;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px #000000;
    border-radius: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(85,85,85,0.8);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(85,85,85,0.4);
}

::-webkit-scrollbar-corner {background: transparent;}

select, textarea, input[type="text"], input[type="password"]
{
  display: inline-block;
}
input[type="file"],
input[type="image"],
input[type="submit"],
input[type="reset"],
input[type="button"],
input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

textarea {
  height: auto;
}

button {
    width: auto;
    color: #dddddd;
    font-size: 0.7em;
    text-align: center;
    cursor: pointer;
    padding-top: 10px;
    height: 46px;
    border-style: solid;
    background-clip: padding-box;
    background-image: url("/includes/images/status/button-off-center.png");
    border-width: 0 13px;
    border-image-source: url("/includes/images/status/button-off.png");
    border-image-slice: 0 13 0 13;
    border-image-width: 0 13px;
    background-color: transparent;
}

/* this removes many of the right and left lines on buttons, use px and not em. */
.ui-dialog .ui-dialog-buttonpane button {
    margin: 0px 0px 10px 5px;
    padding: 0px 10px 5px 10px;
}

button:hover {
    color: #ffffff;
    background-image: url("/includes/images/status/button-on-center.png");
    border-image-source: url("/includes/images/status/button-on.png");
}

button.green {
    background-image: url("/includes/images/status/button-green-off-center.png");
    border-image-source: url("/includes/images/status/button-green-off.png");
}

button.green:hover {
    background-image: url("/includes/images/status/button-green-on-center.png");
    border-image-source: url("/includes/images/status/button-green-on.png");
}


.ui-button.ui-button-text-only > .ui-button-text {
    padding-top: 0;
}

/* Mapper */

#map_canvas {
    background-color: transparent;
    display: block;
    position: relative;
    margin: auto;
    top: 0;
    left: 0;
    z-index: 1;
}

#map_area_name {
    height: 20px;
    color: #fff;
    text-align: left;
    padding: 0 0 1px 0;
    overflow: hidden;
}

#marker_map_center {
    height: 0px;
    width: 0px;
    position: absolute;
    left: 0;
    top: 0;
}

#marker_char_current {
    width: 20px;
    height: 20px;
    background-image: url("/includes/images/map/map-location.png");
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    border: 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    pointer-events: none;
}

#map_container {
    height: calc(100% - 43px);
    position: relative;
    overflow:hidden;
    cursor:move;
}

#map_room_exits {
    height: 20px;
    color: #fff;
    text-align: left;
    padding: 1px 0 0 0;
}

#map_overhead {
    position: absolute;
    left: 0;
    top: 0;
    display: none;
    white-space: pre;
    text-align: center;
    font-size: 15px;
    line-height: 17px;
    height: 100%;
    width: 100%;
}

#map_overhead .no_out {
    display: none;
}

#map_overhead_content {
    display: inline-block;
}

#map_overhead_content > div {
    text-align: left;
}

.env_default {background-image: url(/includes/images/map/mt-808080.png)}

#map_nomap {
    position: absolute;
    z-index: 60;
    margin-top: 20px;
    margin-left: 0;
    height: 40px;
    color: #999;
    text-align: center;
    display: none;
    font-weight: bold;
    font-size: 16px;
}

.ui-button-text-only .ui-button-text {
   font-size: 13px;
}

.tab_content .button
{
   border-top-left-radius: 0;
   border-top-right-radius: 0;
   border-top: none;
}

p.buttons {
    padding-left: 20px;
}

.icon-plus-sign, .icon-minus-sign {cursor: pointer;}
#div_room_description {line-height: 1.5em}

.container-viewer {
    padding-right: 5px;
    /* display: block; */
    margin: 7px 0 0 30px;
    float: left;
}

#div_inventory .open_container {
    border-style: solid;
    border-width: 1px;
    border-radius: 4px;
}

#div_inventory .container_buttons.open_container, #div_inventory .item-container {
    margin-left: 15px;
    margin-right: 10px;
    background-color: #222;
    border-style: solid;
    border-width: 1px;
    border-top: none;
    padding-bottom: 2px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    padding-left: 5px;
}

#div_inventory .container_buttons.open_container {
   border-radius: 0;
   border-bottom: none;
}

#div_inventory .item-container {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border-top-right-radius:  0px;
    border-top-left-radius: 0px;
    border-top: 0;
}

#div_inventory .item, #container_room_contents .item {
    padding: 0 2px;
    cursor: pointer;
    line-height: 25px;
    /* display: inline-block; */
    clear: both;
}


#div_inventory .item-container .item {
    border-radius: 0;
}

#container_room_contents .section
{
   margin-bottom: 0px;
}

#div_inventory .item > .item_icon, #container_room_contents .item > .item_icon {
    width: 25px;
    height: 25px;
    position: absolute;
    /* margin-right: 5px; */
    display: block;
    float: left;
    vertical-align: middle;
    background-image: url("/includes/images/windows/bullet-on.png");
    background-repeat: no-repeat;
    background-position: center center;
}

#div_inventory .item > .item_desc, #container_room_contents .item > .item_desc, #container_room_contents .item > .player_name {
    /* position: absolute; */
    padding-left: 30px;
    display: block;
}

.ui-widget-overlay {
    opacity: .8;
    background: black;
    filter: Alpha(Opacity=80);
}

.tnc_default {color: #aaaaaa;}

.mxp_send, .url_link {
    color: inherit;
    text-decoration:underline;
}

.break {line-height: 100%; margin: 0; padding: 1px; clear: both;}

.output .no_out, .output_scrollback .no_out {
    display: none;
}

.frame_border, 
.ui-dialog,
.popup_bordered {
    background-color: black !important;
    box-shadow: 6px 6px 4px rgba(0,0,0,0.5);
}

.popup_bordered {
    background: rgba(0,0,0,.9);
}

.popup_bordered p {
    padding: 3px;
    margin: 5px 3px;
}

.popup_bordered br {
    display: none;
}


ul hr {margin: 5px;}

/*
.marquee {
    position: relative;
    white-space: nowrap;

    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -moz-animation-duration:60s;
    -moz-animation-name: scroll;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -webkit-animation-duration:60s;
    -webkit-animation-name: scroll;
    -o-animation-iteration-count: infinite;
    -o-animation-timing-function: linear;
    -o-animation-duration:60s;
    -o-animation-name: scroll;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration:60s;
    animation-name: scroll;

}

@-moz-keyframes scroll {
0% {text-indent: 95%;}
100% {text-indent: -50%;}
}

@-webkit-keyframes scroll {
0% {text-indent: 95%;}
100% {text-indent: -50%;}
}

@-o-keyframes scroll {
0% {text-indent: 95%;}
100% {text-indent: -50%;}
}

@keyframes scroll {
0% {text-indent: 95%;}
100% {text-indent: -100%;}
}

.marquee:hover {
 -moz-animation-play-state: paused;
 -webkit-animation-play-state: paused;
 -o-animation-play-state: paused;
 animation-play-state: paused;
 }
*/



/* ****** jquery UI overrides ****** */

.cm_dialog_bg {
    position: absolute;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    background: url(/includes/images/creation/background.jpg) repeat;
}

.ui-dialog {
    background: rgba(0,0,0,.9);
    z-index: 200;
    padding: 0 0 0 0;
    overflow: visible !important;
}

.ui-dialog .ui-dialog-titlebar {
    height: 28px;
    position: relative;
    left: 0; 
    right: 0;
}

.ui-dialog .ui-dialog-titlebar .ui-dialog-title {
    font-family: 'BitterRegular';
    padding-top: 2px;
    width: 100%;
    text-align: center;
    font-size: 1.2em;
    line-height: 1.2em;
}

.ui-dialog .ui-dialog-titlebar-close:focus {
    outline: none;
}

.ui-dialog.cm_nonmodal {
    color: black;
}

.ui-dialog.cm_nonmodal .ui-dialog-titlebar {
    margin-top: 10px;
    font-weight: bold;
}

.ui-dialog.cm_nonmodal .ui-dialog-titlebar {
    width: 100%;
}

.ui-dialog.cm_nonmodal .ui-dialog-content {
    width: 100%;
    min-height: 135px !important;
}


/* ****** General UI overrides ****** */
.context-menu-list {z-index: 1000;}

/* Submenu scrolling */
li.context-menu-submenu ul {

    white-space:nowrap;
    max-height: 500px;
    overflow-y: auto;
}

li.context-menu-submenu ul li {
    padding-right: 25px;
}

/* Avatar selection dialog */

.avatar_choose_one {
    float: left;
    width: 72px;
    height: 72px;
}

.avatar_choose_one > a {
    display: block;
    width: 64px;
    height: 64px;
    padding: 4px;
}

.avatar_choose_one > a:hover {
    background-color: #606060;
}

.avatar_buttons {
    clear: both;
    margin-top: 5px;
    text-align: center;
}

#avatar_tabs {
    height: 240px;
    clear: both;
}

#avatar_tab_choices {
    max-height: 240px;
}

.item_vnum {
    display: none;
}

#sound-volume-control {
    background: #000000;
    padding: 5px;
}

#tbl_skills tr {
    color: #E4CCB4;
}

#tbl_skills tr:hover {
    cursor: pointer;
    color: white;
}

#group_skills .skill_name {
    cursor: pointer;
}

#group_skills .skill_name:hover {
    color: white;
}

.floater {
    position: absolute;
    height: 400px;
    width: 250px;
    z-index: 120;
}

.floater .tab_nav {
    cursor: pointer;
}

#bottom {
    position: relative;
    padding: 0px 3px;
}

#bottom > div {
    position: absolute;
}

#bottom_buttons {
    white-space: nowrap;
    background-repeat: repeat;
    left: 5px;
}

#bottom_buttons > div {
    height: 46px;
    display: inline-block;
    vertical-align: top;
}

#bottom_buttons > div.bottom_button {
    width: 15.4%;
    color: #dddddd;
    font-size: 0.7em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    padding-top: 10px;
    height: 36px;
}

#bottom_buttons > div.bottom_button:hover {
    color: #ffffff;
}

#bottom_buttons .ui-menu {
    z-index: 1050;
    position: absolute;
}

#bottom_buttons .ui-menu .ui-menu-item a {
    font-size: 0.8em;
    line-height: 1.2;
}


/* Character Module */
#character_module_name {
    text-align: center;
    margin: 0;
}

#character_module_avatar {
    right: 3px;
    top: 4px;
}

#character_module_avatar img {
    border: 0;
    display: block;
}

#character_module_balances {
    display: block;
    width: 26px;
    height: 46px;
    position: absolute;
    left: 5px;
    top: 0px;
    background-image: url("/includes/images/status/bal-eq-frame.png");
}

#character_module_balances > .balance {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    margin-top: 3px;
    background-repeat: no-repeat;
}

#character_module_balances > .balance.lost {
    opacity: 15%;
}
#character_module_balances > .bal {
    background-image: url("/includes/images/status/bal-on.png");
}
#character_module_balances > .eq {
    background-image: url("/includes/images/status/eq-on.png");
    margin-left: 7px;
}

.balance {
    height: 15px;
    width: 14px;
    padding: 0;
    margin: 0;
    display: block;
    border: 0;
    color: #66ff22;
    font-size: 13px;
    text-align: center;
}

#gauges {
    margin: 0;
    text-align: center;
    height: 36px;
    display: grid;
}

#character_module_gauges .ui-widget-header {
    border: 0;
}

.gauge {
    overflow: visible;
    position: relative;
    grid-row: 1;
    display: block;
    cursor: default;
    background-size: 100% 100%;
    background-origin: content-box;
    background-clip: content-box;
}

.gauge::before {
    content: "";
    display: inline-block;
    position: absolute;
}

.gauge::after {
    content: "";
    display: inline-block;
    position: absolute;
}

.gauge.full::after {
    background-size: calc(100% - 4px) calc(100% - 6px), 100% 100%;
    background-position: -1px 3px, -1px 0;
}

.gauge.last {
}

.gauge > .diff {
    position: absolute;
    left: -8px;
    top: -8px;
    padding: 0;
    margin: 0;
    width: 44px;
    height: 44px;
    background-size: 100% 100%;
    display: block;
    z-index: 1;
}

.gauge > div.ui-progressbar-value {
}

.gauge .text {
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    z-index: 100;
    line-height: 22px;
    margin-top: 5px;
}

#tab_affdef_main {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    font-size: 0.85em;
}

#tab_affdef_main #tab_affdef_top {
    clear: both;
}

#tab_affdef_main #tab_affdef_top_left {
    margin-top: -8px;
}

#tab_affdef_main .tab_affdef_heading {
    font-size: 1.2em;
    color: #aaa;
    margin: 1px 0 1px 0;
    clear: both;
    text-align: center;
}

#tab_affdef_main .tab_affdef_heading > a {
    cursor: pointer;
}

#tab_affdef_main .tab_affdef_heading > a:hover {
    text-decoration: underline;
}

#tab_affdef_main .tab_affdef_heading > a.tab_affdef_heading_sel {
    color: white;
}

#tab_affdef_main #tab_affdef_lists {
    clear: both;
    line-height: 1.3em;
    padding: 2px;
    margin-bottom: 3px;
    position: relative;
}

#tab_affdef_main #tab_affdef_lists > div {
    position: absolute;
    top: 0;
    left: 0;
}

#tab_affdef_main #tab_affdef_defs {
    margin: auto;
    max-width: 120px;
    text-align: center;
}

#tab_affdef_main #tab_affdef_defs > div {
    white-space: nowrap;
}

#tab_affdef_main #tab_affdef_defs > div > div {
    display: inline-block;
    width: 20%;
    height: 21px;
    padding: 0 1% 0 1%;
    margin-bottom: 8px;
    vertical-align: middle;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

#tab_affdef_main #tab_affdef_defs > div > div > img {
    display: block;
    margin: auto;
    max-width: 21px; 
    max-height: 21px; 
}


#tab_affdef_main #tab_affdef_info {
    font-size: 1.1em;
    text-align: center;
    width: 100%;
}

#tab_affdef_main #tab_affdef_info #tab_affdef_charname {
    font-size: 1.2em;
    color: white;
    text-decoration:underline;
}

#tab_affdef_main #tab_affdef_top > div {
    float: left;
    position: relative;
}

#tab_affdef_main #tab_affdef_top > div#tab_affdef_top_left {
    width: 40%;
    max-width: 40%;
}

#tab_affdef_main #tab_affdef_top > div#tab_affdef_top_right {
    width: 60%;
    max-width: 60%;
}


#tab_affdef_main #tab_affdef_body > img:not(#affdef_body_shield) {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    z-index: 1;
}

#tab_affdef_main .affdef_off {
    opacity: 0.15;
}


/* This is for MKO - they don't have the figure */
#tab_affdef_main #tab_affdef_defs.onlydefs > div > div {
    padding: 0 5% 0 5%;
}
#tab_affdef_main #tab_affdef_top > div#tab_affdef_defs.onlydefs {
    float: none;
}
/* End of MKO-specific affdef */
#tab_affdef_main #tab_affdef_defs.onlydefs {
    max-width: 180px;
}

/* Reduced size central bottom section */

.reduced .gauge, .reduced .gauge::after, .reduced .gauge::before {
    height: 24px;
}

.reduced .gauge .diff {
    height: 32px;
    width: 32px;
    top: -6px;
}

.reduced .gauge .text {
    margin-top: 1px;
}

#character_module_balances.reduced {
    background-size: cover;
    width: 22px;
    height: 35px;
    top: -7px;
}

#character_module_balances.reduced > .balance {
    width: 12px;
    height: 12px;
    background-size: cover;
    margin-left: 5px;
}

#character_module_balances.reduced > .eq {
    margin-left: 5px;
    margin-top: 2px;
}

#bottom_buttons.reduced > div.bottom_button {
    height: 30px;
    padding-top: 3px;
    background-size: cover;
}

#bottom_buttons.reduced > div.bottom_buttons_sep {
    height: 28px;
}

#character_module_avatar.reduced {
    top: -4px;
}

#character_module_avatar.reduced img {
    width: 39px;
    height: 39px;
}

/* animations */

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
    color: darkred;
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

/*
#output_main.dead .output span, #output_main.dead .output div {
    animation: shift 2s linear;
}

@keyframes shift {
  5% { color: gray; }
  15% { color: white; }
  30% { color: darkgray; }
}
*/


/* compass */

.movement_buttons {
    position: absolute;
}

.movement_buttons > img.movement_button {
    height: 25%;
    width: 20%;
    display: block;
    position: absolute;
    margin: 0;
    padding: 0;
}

.movement_buttons > img.movement_button.movement_enabled {
    cursor: pointer;
}

.movement_buttons > img.movement_button.movement_button_l { height: 50%; left: 40%; top: 25%; }
.movement_buttons > img.movement_button.movement_button_toggle { right: 0; top: 0; }

.movement_buttons > img.movement_button.movement_button_nw { left: 20%; top: 12.5%; }
.movement_buttons > img.movement_button.movement_button_ne { left: 60%; top: 12.5%; }
.movement_buttons > img.movement_button.movement_button_sw { left: 20%; top: 62.5%; }
.movement_buttons > img.movement_button.movement_button_se { left: 60%; top: 62.5%; }
.movement_buttons > img.movement_button.movement_button_n  { left: 40%; top: 0%; }
.movement_buttons > img.movement_button.movement_button_e  { left: 60%; top: 37.5%; }
.movement_buttons > img.movement_button.movement_button_s  { left: 40%; top: 75%; }
.movement_buttons > img.movement_button.movement_button_w  { left: 20%; top: 37.5%; }
.movement_buttons > img.movement_button.movement_button_i  { left: 0%; top: 25%; }
.movement_buttons > img.movement_button.movement_button_o  { left: 0%; top: 50%; }
.movement_buttons > img.movement_button.movement_button_u  { left: 80%; top: 25%; }
.movement_buttons > img.movement_button.movement_button_d  { left: 80%; top: 50%; }

.output_scrollback  {
   border-bottom-style: double;
   border-bottom-width: 3px;
}

#log_download {
    text-align: center;
    margin-top: 10px;
    font-size: 1.3em;
}

#log_download_button {
    display: inline-block;
    padding: 5px;
}

#log_download_dlg > .dialog_content { height: auto; }

