.iflex {
  display: -webkit-inline-flex;
  display: -webkit-inline-box;
  display: -moz-inline-flex;
  display: -ms-inline-flex;
  display: -o-inline-flex;
  display: inline-flex;
}
.flex {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
}
.flex.horz {
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
}
.flex.vert {
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
}
.flex.rev-vert {
  -webkit-flex-direction: column-reverse;
  -webkit-box-orient: vertical-reverse;
  -moz-flex-direction: column-reverse;
  -ms-flex-direction: column-reverse;
  -o-flex-direction: column-reverse;
  flex-direction: column-reverse;
}
.flex.horz-rev {
  -webkit-flex-direction: row-reverse;
  -webkit-box-orient: horizontal-reverse;
  -moz-flex-direction: row-reverse;
  -ms-flex-direction: row-reverse;
  -o-flex-direction: row-reverse;
  flex-direction: row-reverse;
}
/* main axis */
.flex.center {
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
}
.flex.right {
  -webkit-justify-content: flex-end;
  -moz-justify-content: flex-end;
  -ms-justify-content: flex-end;
  -o-justify-content: flex-end;
  justify-content: flex-end;
}
.flex.space {
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  -o-justify-content: space-between;
  justify-content: space-between;
}
.flex.evenly {
  -webkit-justify-content: space-evenly;
  -moz-justify-content: space-evenly;
  -ms-justify-content: space-evenly;
  -o-justify-content: space-evenly;
  justify-content: space-evenly;
}
.flex.around {
  -webkit-justify-content: space-around;
  -moz-justify-content: space-around;
  -ms-justify-content: space-around;
  -o-justify-content: space-around;
  justify-content: space-around;
}
/* cross-axis */
.flex.top {
  -webkit-align-items: flex-start;
  -moz-align-items: flex-start;
  -ms-align-items: flex-start;
  -o-align-items: flex-start;
  align-items: flex-start;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
}
.flex.middle {
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
.flex.bottom {
  -webkit-align-items: flex-end;
  -moz-align-items: flex-end;
  -ms-align-items: flex-end;
  -o-align-items: flex-end;
  align-items: flex-end;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
}
.flex.stretch {
  -webkit-align-items: stretch;
  -moz-align-items: stretch;
  -ms-align-items: stretch;
  -o-align-items: stretch;
  align-items: stretch;
  -webkit-box-pack: stretch;
  -ms-flex-pack: stretch;
}
/* content */
.flex.content.top {
  -webkit-align-content: flex-start;
  -moz-align-content: flex-start;
  -ms-align-content: flex-start;
  -o-align-content: flex-start;
  align-content: flex-start;
}
.flex1 {
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
}
.flex.shrink {
  flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -moz-flex-shrink: 1;
  -o-flex-shrink: 1;
  -ms-flex-shrink: 1;
}
.flex.wrap {
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.flex.nowrap {
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
}
.fullscreen {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
.noselect {
  touch-action: none;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                          supported by Chrome and Opera */
}
.safe {
  position: absolute;
  left: constant(safe-area-inset-left);
  left: env(safe-area-inset-left);
  top: constant(safe-area-inset-top);
  top: env(safe-area-inset-top);
  right: constant(safe-area-inset-right);
  right: env(safe-area-inset-right);
  bottom: constant(safe-area-inset-bottom);
  bottom: env(safe-area-inset-bottom);
}
/*****************************************************************************
    scrollbar
*****************************************************************************/
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
.underlineFocus {
  position: absolute;
  bottom: -5px;
  left: 0px;
  right: 0px;
  content: "";
  border-bottom: 3px double #fa293d;
  outline: 0;
}
.textinput {
  border: 1px solid #efefef;
  border-radius: 0.25rem;
}
.textinput input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.25rem;
  outline: 0;
  margin: 0;
  border: 0;
  font-size: 1rem;
  border-radius: 0.25rem;
}
.textinput.error {
  border: 1px solid #fa293d;
}
.textbutton {
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  outline: none;
  background-color: #efefef;
  color: #888888;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  padding: 0.5rem;
  position: relative;
}
.textbutton.active {
  border: 1px solid #888888;
  background-color: #fafafa;
}
#busy {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
}
div.dialog_backdrop {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  transition: opacity 0.25s, background-color 0.25s;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
}
div.dialog_backdrop .dialog {
  max-height: 100%;
  box-sizing: border-box;
  position: relative;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
  background-color: white;
  color: #252525;
  border-radius: 0.5rem;
  border: 1px solid #efefef;
  padding: 1.5rem 1rem 1rem;
  transform: scale(0, 0);
}
div.dialog_backdrop .dialog .content {
  max-height: 100%;
  overflow-y: auto;
}
div.dialog_backdrop .dialog a {
  color: #fa293d;
  text-decoration: none;
}
div.dialog_backdrop .dialog a:active,
div.dialog_backdrop .dialog a:focus {
  text-decoration: underline;
  outline: 0;
}
div.dialog_backdrop .dialog p {
  font-size: 0.9em;
  text-align: center;
}
div.dialog_backdrop .dialog p.error {
  color: #fa293d;
}
div.dialog_backdrop .dialog div.input {
  border: 1px solid #efefef;
  border-radius: 0.25rem;
}
div.dialog_backdrop .dialog div.input input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.25rem;
  outline: 0;
  margin: 0;
  border: 0;
  font-size: 1rem;
  border-radius: 0.25rem;
}
div.dialog_backdrop .dialog div.input.error {
  border: 1px solid #fa293d;
}
div.dialog_backdrop .dialog div.input:focus-within,
div.dialog_backdrop .dialog div.input.error:focus-within {
  border: 1px solid #888888;
}
div.dialog_backdrop .dialog button[disabled],
div.dialog_backdrop .dialog button.facebook[disabled],
div.dialog_backdrop .dialog button.text[disabled] {
  background-color: #888888;
  border: 1px solid #888888;
  color: #fafafa;
}
div.dialog_backdrop .dialog button.text {
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  outline: none;
  background-color: #efefef;
  color: #888888;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  padding: 0.5rem;
  position: relative;
  display: block;
  width: 100%;
}
div.dialog_backdrop .dialog button.text:active {
  border: 1px solid #888888;
  background-color: #fafafa;
}
div.dialog_backdrop .dialog button.text:focus::after {
  position: absolute;
  bottom: -5px;
  left: 0px;
  right: 0px;
  content: "";
  border-bottom: 3px double #fa293d;
  outline: 0;
}
div.dialog_backdrop .dialog button > * {
  vertical-align: middle;
  margin: 0 0.25rem;
}
div.dialog_backdrop .dialog button .icon {
  width: auto;
  height: 1.2rem;
}
div.dialog_backdrop .dialog button.facebook {
  background-color: #3897f0;
  border: 1px solid #3897f0;
  color: white;
  width: 100%;
}
div.dialog_backdrop .dialog button.facebook:active {
  background-color: #4CA9FF;
}
div.dialog_backdrop .dialog button.airgames {
  background-color: #32d3f0;
  border: 1px solid #32d3f0;
  color: #333333;
}
div.dialog_backdrop .dialog button.airgames:active {
  background-color: #4cdef8;
}
div.dialog_backdrop .dialog div.divider {
  margin: 0.5rem 0;
  border-bottom: 1px solid #efefef;
}
div.dialog_backdrop .dialog #close {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0.125rem;
  display: inline-block;
  background-color: transparent;
  border: none;
  position: absolute;
  right: -0.125rem;
  top: -0.125rem;
}
div.dialog_backdrop .dialog #close img {
  width: 100%;
  height: 100%;
}
div.dialog_backdrop .dialog #close:focus {
  outline: 2px solid #fa293d;
}
div.dialog_backdrop .dialog.open {
  animation: dialog-open 0.25s;
  -webkit-animation: dialog-open 0.25s;
  -moz-animation: dialog-open 0.25s;
  -o-animation: dialog-open 0.25s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: fowrads;
  -moz-animation-fill-mode: fowrads;
  -o-animation-fill-mode: fowrads;
}
div.dialog_backdrop.bury {
  background-color: rgba(0, 0, 0, 0);
}
#billing .dialog {
  font-size: 1.1em;
  width: 20rem;
  width: 80%;
  max-width: 600px;
  text-align: center;
  overflow: hidden;
}
#billing .dialog .logo {
  background-color: #32d3f0;
  color: #016d8c;
  margin: -1.5rem -1rem 0;
  padding: 0.25rem;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
}
#billing .dialog .logo img {
  height: 2em;
  width: auto;
}
#billing .dialog a {
  font-size: 1.2rem;
  outline: none;
}
#login .dialog {
  width: 15rem;
  max-width: 60%;
}
#login .dialog .section {
  text-align: center;
}
#login .dialog .section > * {
  margin-bottom: 0.25rem;
}
#login .dialog .logo {
  width: 100%;
}
#login .dialog .or {
  margin: 0.25rem 0;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#login .dialog .or div:nth-child(2n+1) {
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  height: 1px;
  border-bottom: 1px solid #efefef;
}
#login .dialog .or div:nth-child(2) {
  margin: 0 1rem;
}
#pinlogin .dialog {
  width: 25rem;
  max-width: 80%;
}
#pinlogin .dialog #pin_list {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
}
#pinlogin .dialog #pin_list > * {
  min-width: 2rem;
  min-height: 2rem;
  max-width: 2rem;
  max-height: 2rem;
  margin: 0.5rem 0.25rem 1rem;
}
#pinlogin .dialog #pin_list input {
  text-align: center;
}
#newsletter .dialog {
  width: 15rem;
  max-width: 60%;
}
#newsletter .dialog .logo {
  width: 100%;
}
#newpass .dialog {
  width: 15rem;
  max-width: 60%;
}
#info .dialog {
  width: 10rem;
  max-width: 50%;
  font-size: 1.1em;
}
@keyframes dialog-open {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.97);
  }
  90% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
@-webkit-keyframes dialog-open {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.97);
  }
  90% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
@-moz-keyframes dialog-open {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.97);
  }
  90% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
@-o-keyframes dialog-open {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.97);
  }
  90% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
@font-face {
  font-family: yanone;
  src: url(../fonts/Yanone.woff) format("woff"), url(../fonts/Yanone.ttf) format("truetype");
}
@font-face {
  font-family: gotham;
  src: url(../fonts/gotham.woff) format("woff"), url(../fonts/gotham.ttf) format("truetype");
}
@font-face {
  font-family: troika;
  src: url("../fonts/troika.woff") format("woff"), url("../fonts/troika.ttf") format("truetype");
}
@font-face {
  font-family: gotham_n;
  src: url("../fonts/gotham_n.woff") format("woff"), url("../fonts/gotham_n.ttf") format("truetype");
}
body {
  margin: 0;
  font-family: yanone, arial;
  background-color: #31D3F0;
  overflow: hidden;
  padding-top: constant(safe-area-inset-top);
  /* iOS 11.0 */
  padding-top: env(safe-area-inset-top);
  /* iOS 11.2 */
}
canvas {
  touch-action: none;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                          supported by Chrome and Opera */
}
#login .dialog .logo {
  width: 50% ! important;
}
#main {
  position: absolute;
  background-image: radial-gradient(at center 25%, #2CB3B4, #007b7f);
  background-size: cover;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
#main canvas {
  width: 100%;
  height: 100%;
}
#splash {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  color: white;
  background-color: #31D3F0;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#splash > * {
  display: block;
  margin: auto;
  margin-top: 0;
  margin-bottom: 0.5vh;
}
#splash #logo {
  height: 15vh;
  max-height: 15vmin;
  margin-bottom: 2vh;
  transition: opacity 0.5s linear;
}
#splash #logo img {
  display: block;
  margin: auto;
  max-height: 100%;
  height: 100%;
  width: auto;
}
#splash #loader {
  max-height: 7vh;
  width: auto;
}
#splash #progress {
  width: 50%;
  max-width: 400px;
  height: 2vh;
  padding: 0.2vh;
  overflow: hidden;
  box-sizing: border-box;
  border: 0.2vh solid white;
  border-radius: 1vh;
  margin-bottom: 2vh;
}
#splash #progress .bar {
  height: 100%;
  box-sizing: border-box;
  width: 0%;
  border-radius: 0.6vh;
  background-color: white;
  transition: width 0.25s;
}
#splash #labelLoading {
  font-size: 1rem;
  text-align: center;
  animation: flash linear 5s infinite;
}
#splash #labelLoading.start {
  font-size: 1.5rem;
  font-weight: 800;
}
div.dialog_backdrop .dialog p {
  font-family: arial;
  font-size: 1em ! important;
}
#home {
  visibility: hidden;
}
a:active #home {
  opacity: 1;
  transform: scale(0.95, 0.95);
}
#alert .dialog {
  max-width: 80%;
}
#switch .dialog {
  width: 15rem;
  max-width: 60%;
  max-height: 80vh;
}
#switch .dialog .section {
  text-align: center;
}
#switch .dialog .logo {
  height: 3rem;
}
#switch .dialog .or {
  margin: 0.25rem 0;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#switch .dialog .or div:nth-child(2n+1) {
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  height: 1px;
  border-bottom: 1px solid #efefef;
}
#switch .dialog .or div:nth-child(2) {
  margin: 0 1rem;
}
#switch .dialog #users {
  max-height: 50vh;
  overflow-y: auto;
}
#switch .dialog #users > * {
  margin-bottom: 0.25rem;
}
#switch .dialog #users > *:last-child {
  margin-bottom: 0;
}
#switch .dialog #users::-webkit-scrollbar {
  width: 8px;
  padding: 2px;
}
#switch .dialog #users::-webkit-scrollbar-track {
  box-shadow: none;
}
#switch .dialog #users::-webkit-scrollbar-thumb {
  background-color: rgba(71, 9, 33, 0.3);
  border-radius: 4px;
  border: 2px solid white;
}
#avatar .dialog {
  padding: 0.5em;
  background-color: #31D3F0;
}
#avatar .dialog .tabs {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  height: 2em;
  color: white;
}
#avatar .dialog .tabs .tab {
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  transition: none;
  padding: 0.25em;
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  text-align: center;
  cursor: pointer;
}
#avatar .dialog .tabs .tab:active {
  text-decoration: underline;
  transform: none;
  background-color: #a4f1ff;
}
#avatar .dialog .tabs .tab:focus {
  outline: none;
  background-color: #a4f1ff;
}
#avatar .dialog .tabs .tab.selected {
  background-color: white;
  color: #0d7b98;
}
#avatar .dialog .select {
  background-color: white;
  border-radius: 0.5em;
  display: grid;
  padding: 1em;
}
#avatar .dialog .select .button {
  padding: 0.5em;
  border: 1px solid #31D3F0;
  border-radius: 0.5em;
  margin: 0.25em;
}
#avatar .dialog .select .button img {
  width: 3em;
  height: 3em;
}
#avatar .dialog .select.sex {
  grid-template-columns: 1fr 1fr;
  border-top-left-radius: 0;
}
#avatar .dialog .select.type {
  grid-template-columns: 1fr 1fr 1fr;
}
#avatar .dialog .select.num {
  grid-template-columns: 1fr 1fr 1fr;
  border-top-right-radius: 0;
}
#avatar .dialog .button:focus {
  outline: 2px solid #fa293d;
}
@media (max-height: 480px) {
  #switch .dialog {
    width: 25rem;
    max-width: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 0.125rem;
  }
  #switch .dialog > * {
    place-self: center stretch;
  }
}
#home {
  position: absolute;
  left: 1em;
  bottom: 1em;
  width: 2em;
  height: 2em;
  overflow: hidden;
  background-color: white;
  transition: all 0.5s;
  border-radius: 50%;
  opacity: 0.5;
}
#home img {
  width: 1.5em;
  height: 1.5em;
  margin: 0.25em;
}
a:active #home {
  opacity: 1;
  transform: scale(0.95, 0.95);
}
iframe {
  position: absolute;
  border: none;
  border-radius: 0.25rem;
}
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}
body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
body {
  font-family: troika,impact,tahoma,verdana ! important;
  background-color: #31D3F0 ! important;
  overflow-y: auto;
}
#root {
  max-width: 600px;
  margin: auto;
}
.title {
  font-size: 1.1em;
}
/*********************************************************************************************
    Main
********************************************************************************************/
#main {
  position: relative ! important;
  padding: 0.5em;
}
#main .title {
  color: #eafdc7;
}
#main > * {
  margin-bottom: 0.5rem;
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 0.5em;
  text-align: center;
}
#main > :first-child {
  border: none;
}
#main > :last-child {
  margin-bottom: 0;
}
@media (max-width: 320px) {
  body,
  body * {
    font-size: 0.8rem;
  }
}
/*********************************************************************************************
    Quick Swap
********************************************************************************************/
#quick {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  color: white;
}
#quick > .button {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  margin: 0.5rem;
  border-radius: 0.5rem;
}
.flags {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
}
.flag {
  width: 1.5rem ! important;
  height: 1.5rem ! important;
  display: block;
  border-radius: 0.25rem;
  color: white;
  padding: 0 ! important;
  margin: 0.25rem;
}
.flag.f1 {
  background-color: #14941a;
}
.flag.f2 {
  background-color: #516dbe;
}
.flag.f3 {
  background-color: #6d2580;
}
.flag.f4 {
  background-color: #ec7d33;
}
#item .dialog .content {
  text-align: center;
}
#item .dialog .content .current {
  margin: 0rem;
  color: sienna;
}
#item .dialog .content hr {
  margin: 1rem;
}
#crafts .items {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
#settings .content > * {
  text-align: center;
}
#settings .content .buttons {
  margin: 0.5rem 0;
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 0.5rem;
}
#settings .content .buttons button {
  padding: 0.5rem 1.5rem;
  place-self: center;
}
#link .content {
  text-align: center;
}
#link .content .header {
  color: #204f94;
}
#link .content .url {
  color: #9b360f;
}
#link .content .footer {
  color: #c2241f;
  font-size: 0.6rem;
}
.name.q0 {
  color: #888;
}
.name.q1 {
  color: #14941a;
}
.name.q2 {
  color: #516dbe;
}
.name.q3 {
  color: #6d2580;
}
.name.q4 {
  color: #ec7d33;
}
.buff {
  color: #32d43a;
}
.buff img {
  vertical-align: middle;
  height: 1em;
}
.stats {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.stats > * {
  margin: 0.25rem;
  color: #e0af27;
}
.stats .attr .add {
  color: #10a117;
}
.stats .attr .sub {
  color: #c2241f;
}
.hp {
  box-sizing: border-box;
  height: 1.2rem;
  padding: 0.1rem;
  border-radius: 0.6rem;
  position: relative;
  border: 2px solid white;
  background-color: #333;
  overflow: hidden;
}
.hp .bar {
  height: 100%;
  width: 0%;
  border-radius: 0.5rem;
  background-color: #14941a;
  transition: width 0.25s;
}
.hp .label {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  color: white;
}
.dialog {
  max-height: 100%;
  box-sizing: border-box;
}
.dialog .button,
.dialog button {
  display: block;
  margin-bottom: 0.5rem;
}
.button,
button {
  cursor: pointer;
  padding: 0.5em 1em;
  background-color: #d1e6ec;
  color: #0e1f38;
  border-radius: 0.25rem;
  border: 1px solid #0e1f38;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease-out;
}
.button[disabled] {
  color: gray;
}
.button:active,
button:active {
  transform: scale(0.97, 0.97);
}
.button:focus,
button:focus {
  box-shadow: 0 2px 5px #F51D7E, 0 -2px 5px #F51D7E, -2px 0 5px #F51D7E, 2px 0 5px #F51D7E;
  outline: none;
}
.button.close {
  background-color: #F51D7E;
  color: white;
}
a {
  text-decoration: none;
}
div.dialog_backdrop .dialog p {
  font-family: arial;
}
#splash {
  background-color: #31D3F0 ! important;
  background-image: none;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#splash > * {
  margin-top: initial ! important;
  margin-bottom: 0.5vh;
}
#splash #logo {
  position: initial ! important;
  height: 15vh;
  max-height: 15vmin;
}
#chart {
  position: absolute;
  display: none;
}
#help .dialog {
  width: 80%;
  max-width: 600px;
  height: 80%;
}
#help .dialog .body {
  overflow-y: auto;
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
}
#help .dialog .body p {
  text-align: left;
}
#help .dialog .body li {
  font-family: arial;
}
#help .dialog .content {
  height: 100%;
}
#help .dialog .content > div {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
  height: 100%;
}
#tabs {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  margin: 0 1rem;
}
#tabs .tab {
  margin: 0.125rem 0.125rem 0;
  padding: 0.25rem 1rem;
  background-color: white;
  color: steelblue;
  cursor: pointer;
}
#tabs .tab.on {
  background-color: lightblue;
}
/*********************************************************************************************
    Main Logo
********************************************************************************************/
#logo {
  font-size: 4rem;
  color: #ec7d33;
  text-shadow: 2px 2px 2px white;
  text-align: center;
  padding: 1rem;
}
@media (max-width: 480px) {
  #logo {
    font-size: 2rem;
  }
}
/*********************************************************************************************
    Boss
********************************************************************************************/
#boss .players {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: stretch;
  -moz-align-items: stretch;
  -ms-align-items: stretch;
  -o-align-items: stretch;
  align-items: stretch;
  -webkit-box-pack: stretch;
  -ms-flex-pack: stretch;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  -o-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
#boss .players .attr {
  display: -webkit-inline-flex;
  display: -webkit-inline-box;
  display: -moz-inline-flex;
  display: -ms-inline-flex;
  display: -o-inline-flex;
  display: inline-flex;
  margin-right: 0.25rem;
}
#boss .players .char {
  width: 49%;
  box-sizing: border-box;
  padding: 0.5rem;
  background-color: #9b360f;
  color: white;
  border-radius: 0.5em;
  text-align: center;
  position: relative;
}
#boss .players .char .combat {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 2em;
  color: #c4890c;
  transform: translate(-50%, -50%);
  animation: scrollUp 0.5s linear;
  animation-fill-mode: forwards;
  text-shadow: 1px 1px 1px white, -1px -1px 1px white;
}
#boss .players .char .combat.crit {
  color: #971313;
}
#boss .players .char .combat.crit span {
  display: block;
  font-size: 1.5em;
  animation: crit 0.5s linear;
  animation-fill-mode: both;
}
#boss .players .char .combat.dodge {
  color: #2c5ba1;
  animation: dodge 0.5s linear;
}
@media (max-width: 320px) {
  #boss .players {
    -webkit-flex-direction: column;
    -webkit-box-orient: vertical;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    -o-flex-direction: column;
    flex-direction: column;
    margin-bottom: 0;
  }
  #boss .players .char {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}
@keyframes scrollUp {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -200%);
  }
}
@keyframes dodge {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 200%);
  }
}
@keyframes crit {
  0% {
    -webkit-transform: none;
    transform: none;
  }
  15% {
    -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
    transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
  }
  30% {
    -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
    transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
  }
  45% {
    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
  }
  60% {
    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
  }
  75% {
    -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
  }
  100% {
    -webkit-transform: none;
    transform: none;
  }
}
/*********************************************************************************************
    Character
********************************************************************************************/
#char {
  background-color: #664f0e;
  color: white;
}
/*********************************************************************************************
    Bags
********************************************************************************************/
#bag .item {
  margin: 0.25rem 0;
  background-color: white;
  color: steelblue;
}
#bag .item:nth-child(2n) {
  background-color: rgba(255, 255, 255, 0.8);
  color: steelblue;
}
#bag .tools {
  padding: 0.5rem;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: space-around;
  -moz-justify-content: space-around;
  -ms-justify-content: space-around;
  -o-justify-content: space-around;
  justify-content: space-around;
}
/*********************************************************************************************
    Smokey
********************************************************************************************/
#smokey {
  text-align: center;
  position: fixed;
  bottom: 0;
  color: white;
  width: 100%;
}
#smokey .content {
  background-color: rgba(14, 31, 56, 0.7);
  width: 100%;
  max-width: 600px;
  margin: auto;
}
#smokey .row {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  padding: 0.5rem;
  animation: showText 0.5s linear;
  animation-fill-mode: forwards;
}
#smokey .row > * {
  margin: 0 0.125rem;
}
#smokey .row .red {
  font-weight: bold;
  color: #971313;
  text-shadow: -1px -1px 1px white, 1px 1px 1px white, 1px -1px 1px white, -1px 1px 1px white;
}
#smokey .row .black {
  color: white;
}
#smokey .row .craft {
  width: 1rem;
  height: 1rem;
  padding: 0.5rem;
  animation: showCraft 0.5s linear;
  animation-fill-mode: forwards;
}
#smokey .row.hide {
  animation: hideText 0.5s linear;
  animation-fill-mode: forwards;
}
#smokey .row.hide .craft {
  animation: hideCraft 0.5s linear;
  animation-fill-mode: forwards;
}
@keyframes showText {
  0% {
    font-size: 0;
  }
  100% {
    font-size: 1rem;
  }
}
@keyframes hideText {
  0% {
    font-size: 1rem;
  }
  100% {
    font-size: 0;
  }
}
@keyframes showCraft {
  0% {
    transform: scale(0, 0);
  }
  100% {
    transform: scale(1, 1);
  }
}
@keyframes hideCraft {
  0% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(0, 0);
  }
}
/*********************************************************************************************
    Current slots
********************************************************************************************/
#slots .item {
  margin-bottom: 0.5rem;
}
/*********************************************************************************************
    Create Name
********************************************************************************************/
#createname .logo {
  text-align: center;
  color: #ec7d33;
  font-size: 1.5rem;
}
/*********************************************************************************************
    CRAFTING BAG
********************************************************************************************/
.button.mat {
  padding: 0;
  border: 1px solid white;
  margin: 0.25rem;
}
.craft {
  text-align: center;
  width: 2em;
  height: 2em;
  overflow: hidden;
  border-radius: 0.25rem;
  color: white;
  position: relative;
}
.craft .count {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.6rem;
}
.craft.r0 {
  background-color: #888;
}
.craft.r1 {
  background-color: #14941a;
}
.craft.r2 {
  background-color: #516dbe;
}
.craft.r3 {
  background-color: #6d2580;
}
.craft.r4 {
  background-color: #ec7d33;
}
#craft .dialog .craft {
  margin: 1em auto;
}
/*********************************************************************************************
    UI
********************************************************************************************/
#store .shelf {
  margin: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #c4d2e6;
  text-align: center;
}
#store .shelf .items {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
#store .shelf .items .storeItem {
  color: white;
  padding: 0.25rem;
  margin: 0.25rem;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#store .shelf .items .storeItem .icon {
  width: 2rem;
  height: 2rem;
  background-size: 100% 100%;
  margin-right: 0.25rem;
}
#store .shelf .items .storeItem .attr {
  width: 2rem;
  height: 2rem;
}
#store .shelf .items .storeItem.r2 {
  background-color: #516dbe;
}
#store .shelf .items .storeItem.r3 {
  background-color: #6d2580;
}
#store .shelf .items .storeItem.r4 {
  background-color: #ec7d33;
}
/*********************************************************************************************
    Leaders
********************************************************************************************/
#leaders .dialog {
  min-width: 70%;
  max-width: 600px;
}
#leaders .list {
  background-color: #d1e6ec;
  margin-bottom: 0.5rem;
}
#leaders .row {
  background-color: white;
  color: steelblue;
  padding: 0.5rem;
}
#leaders .row:nth-child(2n) {
  background-color: rgba(255, 255, 255, 0.8);
  color: steelblue;
}
#leaders .pager {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
}
#leaders .pager .button:first-child {
  margin-right: 0.5rem;
}
/*********************************************************************************************
    Help
********************************************************************************************/
#help .row {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#help .row .attr {
  min-width: 2em;
  max-width: 2em;
  height: 2em;
  background-size: 100% 100%;
  margin-right: 0.5rem;
}
#help .row .desc {
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
}
/*********************************************************************************************
    UI
********************************************************************************************/
#menu {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#menu > .button {
  margin: 0.25rem;
}
/*
const Attributes = {
    attack      :0,
    defense     :1,
    gold        :2,
    salvage     :3, // increases crafting material
    find        :4, // increase magic find
    bag         :5, // increases inventory slots
    speed       :6, // decreases loot time/increases initiation
    craft       :7, // increases craft slots
    stamina     :8, // increases hp
    crit        :9,
    duration    :10,// buff duration
}
*/
.attr {
  display: inline-block;
  min-width: 1.2em;
  min-height: 1.2em;
  background-size: 100%;
  margin-right: 0.25rem;
}
.attr.a0 {
  background-image: url(../images/rpg/sword.png);
}
.attr.a1 {
  background-image: url(../images/rpg/shield.png);
}
.attr.a2 {
  background-image: url(../images/rpg/gold.png);
}
.attr.a3 {
  background-image: url(../images/rpg/salvage.png);
}
.attr.a4 {
  background-image: url(../images/rpg/magic.png);
}
.attr.a5 {
  background-image: url(../images/rpg/bag.png);
}
.attr.a6 {
  background-image: url(../images/rpg/speed.png);
}
.attr.a7 {
  background-image: url(../images/rpg/craft.png);
}
.attr.a8 {
  background-image: url(../images/rpg/heart.png);
}
.attr.a9 {
  background-image: url(../images/rpg/crit.png);
}
.attr.a10 {
  background-image: url(../images/rpg/time.png);
}
.attr.agold {
  background-image: url(../images/rpg/coin.png);
}
.attr {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
}
.attr .desc {
  margin-left: 0.25rem;
}
.attr .diff {
  margin-left: 0.25rem;
}
/*
const ItemTypes = {
    head:0,
    chest:1,
    gloves:2,
    boots:3,
    weapon:4,
    consumable:5,
    material:6,
}
*/
.equipment {
  position: relative;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
.equipment .icon {
  background-size: 100% 100%;
  min-width: 2rem;
  max-width: 2rem;
  height: 2rem;
  margin-right: 0.25rem;
}
.equipment .info {
  position: relative;
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
}
.equipment .flag {
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
  width: 0.5rem !important;
  height: 0.5rem !important;
}
.equipment .down {
  color: #971313;
}
.dialog .equipment.button {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
}
.dialog .content {
  padding: 0.5rem;
}
.icon.s0 {
  background-image: url(../images/rpg/helm.png);
}
.icon.s1 {
  background-image: url(../images/rpg/chest.png);
}
.icon.s2 {
  background-image: url(../images/rpg/gauntlet.png);
}
.icon.s3 {
  background-image: url(../images/rpg/boots.png);
}
.icon.s4 {
  background-image: url(../images/rpg/sword.png);
}
.icon.s5 {
  background-image: url(../images/rpg/potion.png);
}

