

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

body{
  background-color: var(--bg);
  color: var(--text);
  font-size:1.5em;
  font-family: 'DeterminationCyrillic', DeterminationMonoWebRegular;
  width:100%;
  height:100%;
  padding:12px 0 0 12px;
  margin:0;
  vertical-align: top;
  min-width:500px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#page_tabs{
  display:flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 8px;
}

.tab_click{
  margin-top: auto;
  display:inline;
  cursor:pointer;
  border: 2px solid var(--border-strong);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--elevated);
  color: var(--text-2);
  padding:4px 24px;
  height:42px;
  vertical-align: top;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.tab_click:hover {
  background: var(--hover);
  color: var(--text);
  border-color: var(--accent);
}

.tab_selected{
  height:56px;
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(155,89,244,0.3);
}

.tab{
  display:inline-block;
}


#status_kris, #status_susie, #status_ralsei, #status_noelle{
  display:inline-block;
  padding: 0 0 0 25px;
  font-size: 0.8em;
}

.character_name{
  display:inline-block;
  vertical-align: top;
}

.status_desc{
  padding-top:6px;
  display:inline-block;
  font-size:0.85em;
}

.lineItem{
  display:block;
  padding: 10px 0
}

.submitButton{
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  color: #fff;
  cursor:pointer;
  display:inline-block;
  padding:10px 20px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 0 16px rgba(155,89,244,0.3);
}
.submitButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(155,89,244,0.5), 0 4px 16px rgba(0,0,0,0.3);
  opacity: 0.95;
}
.submitButton:active {
  transform: scale(0.97) translateY(0);
}

.broken_party{
  display:none;
}

#main_box{
    padding:20px;
    margin:10px;
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--surface);
    display:inline-block;
    vertical-align: top;
    box-shadow: var(--shadow-card);
}



#goner_box{
    padding:20px;
    margin:10px;
    width:700px;
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--surface);
    display:inline-block;
    vertical-align: top;
    box-shadow: var(--shadow-card);
}

#goner_left{
  margin: 0 50px 0 0;
}


#goner_flex{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}



#goner_wrapper{
  position:relative;
  padding: 12px;
  height:172px;
  width:108px;
  background-color: var(--elevated);
  border-radius: var(--radius-sm);
}

#goner_head{
  position:absolute;
  bottom:80px;
  width:84px;
  height:88px;
  z-index:5;
}

#goner_body{
  bottom:40px;
  position:absolute;
  width:84px;
  height:60px;
  z-index:10;
}

#goner_legs{
  bottom:12px;
  position:absolute;
  width:84px;
  height:36px;
  z-index:15;
}




#thrash_box{
    padding:20px;
    margin:10px;
    width:425px;
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--surface);
    display:inline-block;
    box-shadow: var(--shadow-card);
    vertical-align: top;
}

#thrash_flex{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.thrasher_select{
  margin: 0 0 0 10px;
  padding: 6px;
}

#lightworld_box{
    padding:20px;
    margin:10px;
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--surface);
    display: inline-block;
    position:relative;
    box-shadow: var(--shadow-card);
}
#lightworld_box img{
  height:40px;
  vertical-align: bottom;
}

#lightworld_box .lineItem{
  display:inline-block;
}

#party_box{
  vertical-align: top;
    padding:20px;
    margin:10px;
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--surface);
    display: inline-block;
    position:relative;
    box-shadow: var(--shadow-card);
}
#party_box img{
  height:40px;
  vertical-align: bottom;
}

#party_box .lineItem{
  display:inline-block;
}


#thrash_wrapper{
  position:relative;
  width:250px;
  height:150px;
  background-color: var(--elevated);
  border-radius: var(--radius-sm);
}

#thrash_head{
  position:absolute;
  bottom:64px;
  right:80px;
  z-index:15;
}

#thrash_body{
  position:absolute;
  bottom:24px;
  right:20px;
  z-index:10;
}
#thrash_feet{
  position:absolute;
  bottom:0px;
  right:0px;
  z-index:12;
}
#thrash_feet2{
  position:absolute;
  bottom:0px;
  right:-50px;
  z-index:5;
}


#thrash_box .ui-slider{
  width:200px;
  height:10px;
  margin: 20px 0 20px 50px;
}

#thrash_box .ui-slider .ui-slider-handle{
  width:0.8em;
  height:0.8em;
}

#thrash_head_c_slider{

}


#thrash_body_c_slider{

}

#thrash_feet_c_slider{

}


.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #04AA6D;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #04AA6D;
  cursor: pointer;
}


.unused_room{
  display:none;
}

.filename input{
  width:210px;
}

#flags_box, .flags_box{
    padding:20px;
    margin:10px;
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--surface);
    display:inline-block;
    vertical-align: top;
    box-shadow: var(--shadow-card);
}


.flag{
  margin: 10px 20px 10px 0px;
}

.flag input{
  width:140px;
}

.room_id select{
  width:490px;
}

.character_box{
  padding:20px;
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: inline;
  position:relative;
  align-self: flex-start;
  vertical-align: top;
  box-shadow: var(--shadow-card);
}
.character_box img{
  height:40px;
  vertical-align: bottom;
}
#character_wrapper{

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.character_box{
  margin: 10px;
  width:430px;
}


.character_box .lineItem{
  display:inline-block;
}

#stat_block{

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.stat{
  margin: 0 5px;
  flex-grow: 1;
}

#item_box_wrapper{

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.item_box{
    padding:20px;
    margin:10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
}

#item_wrapper{
    max-width:980px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.item_slot{
  width:250px;
}

.item_slot select{
  width:225px;
}

.hidden{
  position:absolute;
  width:0px;
  height:0px;
  z-index:-100;
  left:-1000px;
  top:-1000px;
}


.spell_wrapper{
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
}

.spell_slot{
  display:block;
}

.spells_title{
  cursor:pointer;
}

#recruit_box{
  display:inline-block;
  vertical-align: top;
    padding:20px;
    margin:10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
}

#recruit_wrapper{
    max-width:1100px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.recruit{
  width:300px;
  padding: 5px 30px 5px 0;
}

#recruit_cafe_box{
  display:inline-block;
  vertical-align: top;
    padding:20px;
    margin:10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
}

#recruit_cafe_wrapper{
  max-width:450px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.recruit_cafe select{
  width:290px;
}

.unused_recruit, .unused_recruit_cafe{
  display:none;
}

select, input{
  background-color: var(--elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding:6px;
  font-size:1em;
  font-family: 'DeterminationCyrillic', DeterminationMonoWebRegular;
  transition: border-color var(--transition);
}

select:focus, input:focus {
  outline: none;
  border-color: var(--accent);
}


input[type='number']{
  width:108px;
}

input[name='_11'] {
  width: 120px;
}

input[name='_1597'] {
  width: 120px;
}

option{
  font-size:0.8em;
  color: var(--text);
  background: var(--surface);
}

a, a:visited, a:hover, a:active{
  color: var(--accent);
  text-decoration: inherit;
}


#js_err_010{
  opacity: 0;
  -webkit-animation: fadeInFromNone 1s;
  -moz-animation: fadeInFromNone 1s;
  -o-animation: fadeInFromNone 1s;
  animation: fadeInFromNone 1s;
   animation-fill-mode: forwards;
  animation-iteration-count: 1;
}


@keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    99% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}


/* Custom Checkboxes */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    background-color: var(--elevated);
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
    position: relative;
    top: -2px;
    transition: border-color var(--transition), background-color var(--transition);
}

input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Changed data highlights */
.val-changed, span.val-changed {
    color: var(--warning) !important;
}

input.val-changed, select.val-changed {
    color: var(--warning) !important;
    border-color: var(--warning) !important;
}

input[type="checkbox"].val-changed {
    border-color: var(--warning) !important;
}

input[type="checkbox"].val-changed:checked {
    background-color: var(--warning) !important;
}

input[type="checkbox"].val-changed:checked::after {
    border-color: #0b0b12 !important;
}

/* Recruits grey color fix */
label.lineItem input[type="checkbox"]:not(:checked) ~ span.selectTitle {
    color: #777777;
}

label.lineItem input[type="checkbox"]:checked ~ span.selectTitle {
    color: #ffffff;
}

label.lineItem.is-checked input[type="checkbox"] ~ span.selectTitle {
  color: #ffffff;
}

label.lineItem.val-changed input[type="checkbox"]:not(:checked) ~ span.selectTitle,
label.lineItem.val-changed input[type="checkbox"]:checked ~ span.selectTitle {
    color: var(--warning) !important;
}

.lineItem.val-changed .selectTitle,
.lineItem.val-changed input[type="text"],
.lineItem.val-changed input[type="number"],
.lineItem.val-changed select {
  color: var(--warning) !important;
  border-color: var(--warning) !important;
}
