.ui-tabs-panel {
  position: relative !important;
  height: 502px;
  overflow-y: scroll;
  clear: both;
  padding: 5px;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/*------------------------------------------------*/

html {
  image-rendering: pixelated;
  scroll-behavior: smooth;
  touch-action: initial;
}

body {
  overscroll-behavior: none;
  font-family: 'PixelOperatorMono';
  background: none;
  font-size: 12px;
  color: #a1df2a;
  text-shadow: 1.5px 1.5px 0px #4c00a8, 0 0 12px rgba(76, 0, 168, 0.8);
}

#page-header,
#page-subheader {
  text-align: center;
  margin: 0.5em;
}

#page-header,
#page-header a {
  font-size: 46px;
}

#page-subheader,
#page-subheader a {
  font-size: 26px;
  margin-bottom: 1em;
}

#page-header a,
#page-subheader a {
  text-decoration: none;
}

h3 {
  font-size: 14px;
}

button {
  border-radius: 5px;
  text-align: center;
  transition: 0.3s;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 0.5em;
  display: inline;
}

/*-------------------------------------------------------------------*/

.ui-corner-all,
.ui-tabs-panel {
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

.ui-corner-top a {
  -moz-border-radius-topleft: 5px;
  -webkit-border-top-left-radius: 5px;
  -moz-border-radius-topright: 5px;
  -webkit-border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

#dollmaker_container {
  position: relative;
  width: 100%;
  max-width: 915px;
  margin: auto;
  line-height: 1em;
  background: none;
  display: flex;
  gap: 20px;
}

/*-------------------------------------------------------------------*/

#bodyArea {
  position: relative;
  top: 0px;
  width: 200px;
  height: 200px;
  text-align: center;
  background-color: transparent;
  border: none;
  flex-shrink: 0;
  box-sizing: border-box;
}

#Doll-background {
  inset: 0px;
  position: absolute;
  background-color: transparent !important;
}

#avi-area {
  width: 200px;
  height: 200px;
  top: 0px;
  left: 0;
  right: 0;
  margin: auto;
  position: absolute;
  border: none;
  visibility: visible !important;
  z-index: -1;
}

/*-------------------------------------------------------------------*/

.canvas-column {
  width: 200px;
  flex-shrink: 0;
}

#bodyArea,
#swatchesArea,
#credits {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

#swatchesArea,
#credits {
  padding: 10px 5px 15px 5px;
}

#swatchesArea button {
  margin-bottom: 0px;
}

#swatchesArea a {
  display: block;
  float: left;
  margin: 2px 2px 7px 2px;
  text-align: center;
  width: 20px;
  height: 20px;
  position: relative;
  transition: 0.3s;
}

#swatchesArea h3 {
  font-weight: normal;
  clear: both;
  padding: 7px 0 5px 0;
}

#Left-eye-switch img,
#Right-eye-switch img {
  margin-top: 5px;
}

/*-------------------------------------------------------------------*/

#instructions {
  position: relative;
  padding: 0px 5px;
  display: none;
}

#instructions-list {
  line-height: 1.1em;
  display: list-item;
  list-style-type: disc;
}

.subBullet {
  display: list-item;
  list-style-type: circle;
  margin-left: 0.2em;
}

/*-------------------------------------------------------------------*/

.ui-draggable {
  user-select: none;
  cursor: grab;
}

.ui-draggable-dragging {
  cursor: grabbing;
  z-index: 9999 !important;
}

#piecesArea {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

@media (max-width: 700px) {
  #dollmaker_container {
    flex-direction: column;
    align-items: stretch;
  }

  .canvas-column {
    display: contents !important;
  }

  #swatchesArea {
    order: 1;
  }

  .build-block {
    order: 2;
    align-items: center;
  }

  .build-block #bodyArea {
    width: 200px;
  }

  #piecesArea {
    order: 3;
  }

  #credits {
    order: 4;
  }

  .ui-tabs-panel {
    height: 320px;
  }
}

#tabsbar {
  text-align: left;
  padding: 5px 10px 15px 10px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#tabsbar li {
  display: block;
}

#tabsbar li a {
  padding: 4px 5px 3px;
  font-weight: normal;
  text-decoration: none;
  transition: 0.3s;
}

#tabsbar .ui-state-active a,
#tabsbar .ui-state-active a:hover {
  position: relative;
  font-weight: normal;
}

/*-------------------------------------------------------------------*/

#piecesArea div {
  padding: 10px 10px 0;
}

#piecesArea img {
  margin: 0 4px 4px 4px;
}

#piecesArea ul #tabsbar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 8px !important;
  height: auto !important;
}

#piecesArea ul #tabsbar li {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#piecesArea ul #tabsbar li a {
  display: flex !important;
  box-sizing: border-box !important;
}