/** ■ theme color 
 * blue: #3d65af
 *
 * leftbar transition: .33s ease-out;
 */

@-ms-viewport {
	width: 1024px;
	height: 648px;
}
 
@font-face{
	font-family: 'suken';
	src: url("../font/A-SOTCenturyStd-Regular.woff") format("woff"), 
		 url("../font/AA-SOTCenturyStd-Regular.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}
 
html,
body {
  font-family: helvetica, arial, 'hiragino kaku gothic pro', meiryo, 'ms pgothic', sans-serif;
  touch-action: false;
  overflow: hidden;
  margin: 0;
}

button {
  display: inline-block;
  border: none;
  text-decoration: none;
  appearance: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: background .25s ease-in-out;
  user-select: none;
}

button::-moz-focus-inner {
  border: 0;
}

.container {
  display: flex;
  position: absolute;
  flex-direction: row;
  top: 1%;
  left: .5%;
  width: 99vw;
  height: 98%;
  overflow: hidden;
}

.container.NowLoading * {
  transition: none !important;
}

.container * {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#leftbar {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 20.25rem;
  /* this height value is modified through js */
  height: 99%;
  border: 3px solid #3d65af;
  background: #fff;
  box-shadow: 2px 0 4px rgba(42, 42, 42, .2);
  user-select: none;
  margin: 0;
  transition: left .33s ease-out;
  z-index: 10;
}

#leftbar.hidden {
  left: calc(-20.25rem - 3px);
}

#jxgbox {
  display: block;
  position: absolute;
  flex-shrink: 0;
  left: 9.25rem;
  transition: left .33s ease-out;
}

#jxgbox.wider {
  left: 0px;
}

#flowmanager {
  display: flex;
  position: absolute;
  justify-content: space-between;
  margin-left: calc(50vw + 10.125rem - 10px - 7rem / 2);
  width: 7rem;
  bottom: 0;
  transition: margin .33s ease-out;
  touch-action: manipulation;
}

.hidden > #flowmanager {
  margin-left: calc(50vw + 20.125rem - 10px - 7rem / 2);
}

.flow-btn {
  padding: .5rem;
  cursor: pointer;
}

.icon {
  display: inline-block;
  top: 0;
  left: 0;
  width: 2.2rem;
  height: 2.2rem;
  stroke-width: 1px;
  user-select: none;
  pointer-events: none;
  opacity: 1;
}

.switcher {
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  left: calc(100% + 2px);
  top: -3px;
  width: calc(3.5rem + 2px);
  height: 4rem;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #3d65af;
  box-shadow: 0px 2px 2px rgba(42, 42, 42, .2);
  cursor: pointer;
}

.switcher > svg {
  fill: #fff;
  stroke: rgba(96, 96, 96, .2);
  stroke-width: 1; 
  stroke-miterlimit:10;
  transform: scale(.96, .82);
}

.hidden .switcher > svg {
  transform: rotate(180deg) scale(.96, .82);
}

.whitespace {
  display: flex;
  position: absolute;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  left: calc(100% + 3px);
  top: -3px;
  width: 3.5rem;
  padding: 4.5rem 0 1rem;
  border-radius: 0 4px 9px 0;
  box-sizing: border-box;
  z-index: -10;
  background: #fff;
  box-shadow: 3px 3px 4px rgba(42, 42, 42, .2);
}

.whitespace > div {
  display: flex;
  position: relative;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: .25rem;
  margin: .35rem 0;
  border-radius: 19px;
  transition: background .2s ease, opacity .2s ease, fill .2s linear, stroke .2s linear;
  cursor: pointer;
}

.whitespace > div > svg {
  fill: #f2f2f2;
  stroke: #999;
  stroke-width: 1; 
  stroke-miterlimit:10;
  transition: all .2s;
}

.whitespace > .pointer > svg {
  stroke-width: 1.4; 
}

.pointer.chosen > svg {
  fill: #a9badc;
  stroke: #3d65af;
}

.edit.chosen > svg {
  fill: #a9badc;
  stroke: #3d65af;
}

.whitespace > .edit > svg {
  stroke-width: 1; 
}

.whitespace > .eraser > svg {
  stroke-width: 1.4; 
  margin: 1px 0 -1px;
  transform: scale(1, .98);
}

.eraser.chosen > svg {
  fill: #a9badc;
  stroke: #3d65af;
}

.whitespace > .delete-all > svg {
  stroke-width: 0.75; 
  transform: scale(1, .92);
  transition: all .4s;
}

.delete-all:active, 
.delete-all.chosen > svg {
  fill: #a9badc;
  stroke: #3d65af;
}

.whitespace > .separator {
  flex: 0 0 auto;
  display: block;
  position: relative;
  height: 2px;
  padding: 0;
  margin: .5rem 0;
  background: #f0f0f0;
}

.whitespace > .elective {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: .5rem;
  transition: opacity .08s ease-out;
}

.elective.on {
  background: rgba(61, 101, 175, 0.2);
}

.elective.disabled {
  opacity: 0;
  pointer-events: none;
}

.elective-display > img {
  display: block;
  position: relative;
  width: 1.8rem;
  height: 1.8rem;
}

.elective-cancel {
  width: 28px;
  height: 28px;
  pointer-events: auto;
  transition: opacity .2s ease-in;
}

.elective-cancel.disabled {
  pointer-events: none;
  opacity: 0;
}

.elective-settings.disabled {
  opacity: .2;
  pointer-events: none;
}

.whitespace > .color > .color-display {
  display: block;
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
}

.pallet {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  left: calc(100% + .5rem);
  top: 0;
  height: 2rem;
  padding: .3rem;
  pointer-events: none;
}

.pallet > div {
  flex: 0 0 auto;
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 .1rem;
  border: 2px solid #fff;
  border-radius: 50%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: all 0.07s ease-in;
}

.pallet > div:nth-child(2) {
  transition: all 0.14s ease-in;
}

.pallet > div:nth-child(3) {
  transition: all 0.20s ease-in;
}

.pallet > div:nth-child(4) {
  transition: all 0.26s ease-in;
}

.pallet > div:nth-child(5) {
  transition: all 0.31s ease-in;
}

.pallet > div:nth-child(6) {
  transition: all 0.36s ease-in;
}

.pallet > div:nth-child(7) {
  transition: all 0.40s ease-in;
}

.pallet > div:nth-child(8) {
  transition: all 0.44s ease-in;
}

.pallet > div:nth-child(9) {
  transition: all 0.47s ease-in;
}

.pallet > div:nth-child(10) {
  transition: all 0.50s ease-in;
}

.pallet > div:nth-child(11) {
  transition: all 0.52s ease-in;
}

.pallet > div:nth-child(12) {
  transition: all 0.54s ease-in;
}

.pallet > div:nth-child(13) {
  transition: all 0.55s ease-in;
}

.pallet > div:nth-child(14) {
  transition: all 0.56s ease-in;
}

.elective-pallet {
  padding: .3rem .5rem;
}

.chosen .pallet > div {
  opacity: 1;
  transform: translate(0);
  pointer-events: auto;
}

.line-type-display {
  display: block;
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid #000;
  border-radius: 4px;
  box-sizing: border-box;
}

.line-pallet > div {
  border: 1px solid #333;
  margin: 0 .4rem;
}

.line-straight,
.line-dot,
.line-broken {
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid #000;
  border-radius: 4px;
  box-sizing: border-box;
}

.icon-line {
  width: 100%;
  height: 100%;
  fill: #666;
  stroke: #666;
  stroke-width: 4; 
  stroke-miterlimit: 10;
}

.line-straight > .icon-line {
}

.line-dot > .icon-line {
  stroke-dasharray: 2 2;
}

.line-broken > .icon-line {
  stroke-dasharray: 6 3;
}

.gray {
  background: rgba(99, 99, 99, 1.0);
}

.red {
  background: rgba(234, 96, 31, 1.0);
}

.blue {
  background: rgba(0, 111, 187, 1.0);
}

.green {
  background: rgba(3, 174, 122, 1.0);
}

.purple {
  background: rgba(153, 0, 153, 1.0);
}

.brown {
  background: rgba(128, 64, 0, 1.0);
}

.yellow {
  background: rgba(255, 241, 0, 1.0);
}

.palegray {
  background: rgba(200, 200, 203, 1.0);
}

.palered {
  background: rgba(255, 202, 191, 1.0);
}

.paleblue {
  background: rgba(191, 228, 255, 1.0);
}

.palegreen {
  background: rgba(119, 217, 168, 1.0);
}

.paleyellow {
  background: rgba(255, 255, 128, 1.0);
}

.palepurple {
  background: rgba(201, 172, 230, 1.0);
}

.palebrown {
  background: rgba(255, 202, 128, 1.0);
}

.palegray > svg,
.palered > svg,
.paleblue > svg,
.palegreen > svg,
.paleyellow > svg,
.palepurple > svg,
.palebrown > svg {
  fill: #666;
}
  
#tabs {
  display: flex;
  position: relative;
  height: 2.5rem;
  overflow: hidden;
  z-index: 5;
}

#tabs > div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: .9rem;
  font-weight: 700;
  background: #f0f0f0;
  box-sizing: border-box;
  cursor: pointer;
}

#tabs > .here {
  color: #fff;
  background: #3d65af
}

#tools {
  display: block;
  position: relative;
  height: calc(100% - 4.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#bottombar {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  height: 2rem;
  box-sizing: border-box;
  z-index: -5;
  box-shadow: 0 -2px 2px rgba(42, 42, 42, 0.1)
}

#bottombar > img {
  display: block;
  position: relative;
  width: 5rem;
  height: auto;
  margin: 0 0 0 .2rem;
}

#bottombar > div {
  display: flex;
  position: absolute;
  flex-direction: row;
  justify-content: flex-last;
  align-items: center;
  right: 3px;
  top: 0;
  height: 100%;
}

.onfile {
  display: block;
  position: relative;
  padding: 2px 0;
  width: 5rem;
  margin: .2rem;
  color: #333;
  background: #fafafa;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
  font-size: .85rem;
  outline: none;
  cursor: pointer;
  text-align: center;
}

.onfile:hover {
  border-color: #009dff;
}

.onfile.disable {
  border-color: #cccccc;
  background-color: #f0f0f0;
  color: #cccccc;
  cursor: default;
  pointer-events: none;
}

#floatinglogo {
  display: block;
  position: absolute;
  left: 103%;
  bottom: 6px;
  height: 32px;
  opacity: 0;
  transition: opacity .21s ease-out;
  z-index: 5;
}

.hidden > #floatinglogo {
  opacity: 1;
  transition-delay: 0s;
}

.group {
  display: flex;
  position: relative;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 15px 0 20px;
  margin: 0 8px;
}

.group > p {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 5px 2px;
  color: #1928b3;
  font-size: 1.15rem;
  font-weight: bold;
}

.group > div {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 5.5rem;
  height: 5.5rem;
  text-align: center;
  line-height: 1.3em;
  font-size: .9rem;
  font-weight: bold;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  border: 3px solid rgba(42, 42, 42, 0);
  border-radius: 2px;
  transition: border .2s ease-in, background .2s ease-in;
  margin: 2px;
  cursor: pointer;
}

.group > div > img {
  width: 1.8em;
  height: 1.8em;
  margin: 0 0 -.25em;
  pointer-events: none;
}

.group > div:hover {
  border: 3px solid #eee;
  background: #f0f0f0;
}

.group > .unimpl:hover {
  background: #a419b3;
}

.group > div.chosen {
  color: #1928b3;
  background: rgba(42, 42, 42, 0);
  border: 3px solid #3d65af;
}

.group > .blank,
.group > .blank:hover {
  background: none;
  border: none;
  cursor: default;
}

.group:last-child {
  margin-bottom: calc(100vh - 300px - 32px);
}

.amounter {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: start;
  position: absolute;
  left: calc(100% + 2px);
  top: -.2rem;
  width: 7rem;
  height: 2.5rem;
  padding: 0 .2rem;
  pointer-events: none;
}

.amounter > div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  margin: 0 .1rem .4rem;
  color: #000;
  font-size: .95rem;
  background: radial-gradient(circle at 50% 120%, #f2f0f6, #e8e4ea 10%, #e6e2e9 80%, #e0e0e4 100%);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: all 0.11s ease-in;
}

.amounter > div.selected {
  color: #eee;
  background: radial-gradient(circle at 50% 120%, #618bde, #4a68c8 10%, #3958c3 80%, #1928b3 100%);
}

.amounter > div:nth-child(1) {
  transition: all 0.18s ease-in;
}

.amounter > div:nth-child(2),
.amounter > div:nth-child(3) {
  transition: all 0.20s ease-in;
}

.amounter > div:nth-child(4),
.amounter > div:nth-child(5),
.amounter > div:nth-child(6),
.amounter > div:nth-child(7) {
  transition: all 0.28s ease-in;
}

.amounter > div:nth-child(8) {
  transition: all 0.35s ease-in;
}

.chosen > .amounter > div {
  margin: 0 .1rem;
  opacity: 1;
  pointer-events: auto;
}

.configure svg,
#flowmanager svg,
.feature > svg {
  fill: #666;
  stroke: #666;
  stroke-width: 1; 
  stroke-miterlimit: 10;
  margin: 0;
}

.icon.icon-editor {
  stroke-width: 0; 
  stroke-miterlimit: 0;
}

.unable {
  opacity: .2;
  pointer-events: none;
}

#undo > svg {
  transform: scale(1, 1)
}

#redo > svg {
  transform: scale(-1, 1);
}

.configure-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 5;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.configure {
  display: block;
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  padding: 10px;
  touch-action: manipulation;
}

.configure svg {
  width: 28px;
  height: 28px;
}

.setting-container {
  display: flex;
  position: absolute;
  flex-direction: column;
  justify-content: flex-start;
  align-items: space-between;
  top: -2px;
  right: -2px;
  border-radius: 3px;
  padding: .4em 0;
  background: #fff;
  opacity: 0;
  font-size: 1em;
  transition: transform .24s, opacity .24s;
  transform: scale(.8);
  transform-origin: top right;
  box-shadow: 0 3px 4px rgba(42, 42, 42, .24);
  pointer-events: none;
}

.configure.doing > .setting-container {
  transform: scale(1);
  opacity: 1;
  z-index: 10;
  cursor: initial;
  pointer-events: auto;
  max-height: 98vh;
}

.configure > .curtain {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.configure.doing > .curtain {
  display: block; 
  cursor: default;
}

.setting-block {
  width: 15.2em;
  padding: 0 .6em;
}

.setting-block .title {
  width: 100%;
  color: #999;
  font-weight: 700;
  font-size: 1.2em;
  margin: .2em .2em 0;
}

.setting-area {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: .5em 0;
  margin-bottom: .8em;
  border-top: 3px solid #999;
  box-sizing: border-box;
}

.setting-area > * {
  margin: .6em 1.5em;
}

.check-box {
  position:relative;
  padding-left: 1.4em;
  color: #717171;
  font-weight: 700;
  cursor: pointer;
}

.check-box > p {
  margin: 0 0 0 .5em;
}

.check-box::before{
  content: "";
  display: block;
  position: absolute;
  top: .25em;
  left: .25em;
  width: .8em;
  height: .8em;
  border: 2px solid #666;
  border-radius: 4px;
}

.check-box.chosen::after {
  content: "";
  display: block;
  position: absolute;
  top: -.25em;
  left: .4em;
  width: .5em;
  height: 1em;
  transform: rotate(40deg);
  border-bottom: 4px solid #65AF3D;
  border-right: 4px solid #65AF3D;
}

.inner-settings {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  width: 70%;
  margin: 0 auto;
  opacity: .3;
  pointer-events: none;
  transition: opacity .12s ease-in;
}

.feature.chosen + .inner-settings {
  opacity: 1;
  pointer-events: inherit;
}

.feature.disabled {
  display: none;
}

.inner-settings > div {
  margin: .2em 1em;
}

.switcher-container {
  display: flex;
  justify-content:center;
  align-items: center;
  width: 80%;
  margin: .5em auto;
}

.switcher-container input {
	display: none;
}

.switcher-container label { 
	display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 50%;
	color: #545454;
  height: 2rem;
  font-weight: 700;
	background: #fff;
  border: 3px solid #A4A4A4;
	transition: background .2s;
	cursor: pointer;
}

.switcher-container label > span {
  pointer-events: none;
}

.switcher-container label:first-of-type{
	border-radius: 15px 0px 0px 15px;
  border-width: 3px 1px 3px 3px;
}

.switcher-container label:last-of-type{
	border-radius: 0px 15px 15px 0px;  
  border-width: 3px 3px 3px 1px;
}

.switcher-container input:checked + label {
	background-color: #DEF6D1;
  border: 3px solid #65AF3D;
  color: #65AF3D;
}

.blue-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  color: #5E81C1;
  background-color: #fff;
  border-radius: 35px;
  border: 3px solid #5E81C1;
  font-size: 1.1em;
  font-weight: 700;
  padding: 0.3em;
  margin: 0 auto;
  outline: none;
  cursor: pointer;
}

.text-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  appearance: none;
  background: none;
  margin: .8em auto .4em;
  color: #5E81C1;
  font-size: 1.05em;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.text-button.disabled {
  display: none;
}

.info-container {
  display: flex;
  position: absolute;
  flex-direction: column;
  justify-content: center;
  top: 20%; 
  right: 2px;
}

.info-item {
  display: flex;
  justify-content: flex-end;
  color: #222;
  height: 0;
  opacity: 0;
  transform: translate(calc(100% - 2.75rem), 0);
  filter:dropshadow(color=#f2f2f2, offX= 0, offY=-1)
    dropshadow(color=#f2f2f2, offX= 1, offY= 0)
    dropshadow(color=#f2f2f2, offX= 0, offY= 1)
    dropshadow(color=#f2f2f2, offX=-1, offY= 0);
  text-shadow: #f2f2f2 1px 1px 0px, #f2f2f2 -1px 1px 0px,
    #f2f2f2 1px -1px 0px, #f2f2f2 -1px -1px 0px;
  transition: opacity .12s ease-out, transform .23s ease-out;
}

.info-item.active {
  height: auto;
  opacity: 1;
}

.info-visualizer {
  display: block;
  position: relative;
  padding: .5rem;
}

.icon-trace {
  width: 1.75rem;
  height: 1.75rem;
  stroke: #fff;
  stroke-width: 1;
}

.info-pane {
  display: block;
  position: relative;
  padding: .5rem;
  overflow: hidden;
}

.info-header {
  padding: 0 0 .5em;
  font-weight: 700;
}

.info-content {
  padding: 0 0 0 1em;
  margin: 0;
}

.info-content-item {
  margin: .5em 0;
}

.info-item:hover {
  transform: none;
}

.zoom-container {
  display: flex; 
  position: absolute;
  flex-direction: row-reverse;
  right: 2px;
  bottom: 2px;
}

.home-button {
  display: none;
  pointer-events: none;
}

.home-button.activated {
  display: block;
  animation: vanish 500ms cubic-bezier(.215, .61, .355, 1) alternate forwards;  
  animation-fill-mode: forwards;
  pointer-events: auto;
}

.home-button .icon {
  transform: scale(.9);
}

#magnify.onTab {
  display: none;
}

#magnify > div {
  position: absolute;
  top: 0;
  margin: 0 -6px 0 0;
  z-index: 5
}

#magnify::before {
  content: '';
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

#magnify.chosen::before {
  display: block;
  cursor: auto;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 26px;
  background: transparent;
  outline: none;
  margin: 0 6 10px;
  transform: scale(1, 0) rotate(270deg);
  transform-origin: top left;
  transition: opacity .2s, transform .14s;
  opacity: .96;
}

.chosen .slider {
  transform: scale(1, 1) rotate(270deg);
}

.slider::-webkit-slider-runnable-track {
  width: 140px;
  height: 6px;
  background: #ddd;
  outline: none;
  border: none;
  overflow: visible;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  background: #4da8e5;
  border-radius: 14px;
  top: -8px;
  cursor: pointer;
}

.slider::-moz-range-track {
  width: 140px;
  height: 6px;
  background: #ddd;
  outline: none;
  border: none;
  overflow: visible;
}

.slider::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #4da8e5;
  border-radius: 14px;
  cursor: pointer; 
}

.slider::-ms-track {
  width: 140px;
  height: 6px;
  background: transparent;
  outline: none;
  border: none;
}

.slider::-ms-fill-lower,
.slider::-ms-fill-upper {
  background: #ddd;
  border-radius: 10px;
}

.slider::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #4da8e5;
  border-radius: 14px;
}

.setting-window {
  display: none; 
  flex-direction: column;
  position: fixed;
  width: 23rem;
  left: calc(100% - 28rem);
  top: 4rem;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(42, 42, 42, .16);
  z-index: 10;
  touch-action: manipulation;
}

.setting-window.on {
  display: flex;
}

.setting-window-header {
  flex: 0 0 auto;
  display: flex; 
  position: relative;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: .25rem .75rem;
  color: #fff;
  background: #3d65af;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
}

.setting-window-header-toggle {
  flex: 0 0 auto;
  display: flex; 
  position: relative;
  justify-content: center;
  align-items: center;
  width: 1rem;
  height: 1rem;
  margin-right: .5rem;
  cursor: pointer;
}

.setting-window-header-toggle > svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  fill: #fff;
}

.setting-window:not(.shade) .setting-window-header-toggle > .icon-plus,
.setting-window.shade .setting-window-header-toggle > .icon-minus {
  display: none;
}

.setting-window-body {
  flex: 0 0 23.5rem;
  display: none; 
  position: relative;
  width: 100%;
  border: 3px solid #3d65af;
  border-top: none;
  padding: 1rem;
  background: #fff;
  box-sizing: border-box;
}

.setting-window-empty-icon {
  width: 6rem;
  height: 6rem;
  fill: #aaa;
}

.setting-window-empty-p {
  margin: 2rem 0;
}

.setting-window.empty:not(.shade) > .setting-window-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #aaa;
  font-size: 1.1rem;
}

.ecm-main .ecm-bootstrap .btn-primary {
  font-weight: 700;
}

.btn-primary {
  background: #f00;
}

.setting-window.setting:not(.shade) > .setting-window-setting {
  display: block;
}

.setting-window-title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 3rem;
  font-size: 1.2rem;
  padding: .5rem .5rem 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setting-window-title-type {
  display: flex;
  position: relative;
  width: 3rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-right: 1rem;
}

.setting-window-title-type-image {
  width: 1.5em;
  height: 1.5em;
}

.setting-window-title-type-text {
  margin: .25rem 0 0;
  font-size: .8rem;
}

.setting-window-settings {
  padding: 0 0 0 1rem;
}

.setting-window-settings-row {
  flex: 1 1 auto;
  display: flex; 
  justify-content: flex-start;
  align-items: flex-start;
  padding: .25rem 0;
}

.setting-window-settings-key {
  flex: 0 0 3em;
  display: block; 
  position: relative;
  padding: .25rem .5em .25rem 0;
  text-align: right;
}

.setting-window-settings-input {
  flex: 0 0 8em;
  display: block; 
  position: relative;
  height: 2em;
  padding: 0 .5rem;
  box-sizing: border-box;
  font-size: 1rem;
  user-select: text;
  -webkit-user-select: text;
}

.setting-window-settings-pallet {
  flex: 1 1 auto;
  display: flex; 
  flex-wrap: wrap;
  position: relative;
}

.setting-window-settings-color {
  flex: 0 0 auto;
  display: flex; 
  justify-content: center;
  align-items: center;
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: .7rem;
  border-radius: 4px;
  cursor: pointer;
}

.setting-window-settings-toggle {
  flex: 1 1 auto;
  display: flex; 
  flex-wrap: wrap;
  position: relative;
  transition: opacity .2s ease-out;
}

.setting-window-settings-row.disabled {
  pointer-events: none;
  opacity: .2;
}

.setting-window-settings-line-type {
  flex: 1 1 auto;
  display: flex; 
  justify-content: flex-start;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.setting-window-settings-line-type > div {
  margin-right: .4rem;
}

.setting-window-settings-line-type.selected {
  color: #65AF3D;
}

.setting-window-settings-line-type.selected > div {
  border-color: #65AF3D;
}

.setting-window-settings-line-type.selected .icon-line {
  stroke: #65AF3D;
}

.setting-window-settings-separator {
  flex: 0 0 auto;
  display: block;
  position: relative;
  width: 90%;
  height: 2px;
  margin: .5rem 5%;
  background: #f0f0f0;
  box-sizing: border-box;
}

.setting-window-others {
  padding: .25rem 2.5rem;
}

.setting-window-others > .check-box {
  margin: .75rem 0;
  font-weight: 400;
}

.icon-check {
  display: block;
  position: relative;
  width: 1.1em;
  height: 1.1em;
  fill: #fff;
}

.modal {
  display: flex;
  position: fixed;
  justify-content: center;
  -ms-align-items: center;
  align-items: center;
  flex: 1 0 0%;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20
}

.modal.on {
  opacity: 1;
  cursor: auto;
  pointer-events: auto;
}

.modal > .pane {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(42, 42, 42, 0.4);
  opacity: 0;
  transform: scale(1.02, 1.04);
  transition: opacity .20s, transform .18s ease-out .06s;
  pointer-events: none;
  cursor: default;
}

.modal.on > .pane {
  transform: scale(1.0, 1.0);
  pointer-events: auto;
  opacity: 1;
}

.modal > .curtain {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 46, 56, 0.8);
  opacity: 0;
  transition: opacity .21s;
  pointer-events: none;
  z-index: -20;
}

.modal.on > .curtain {
  opacity: 1;
  pointer-events: auto;
}

.close {
  display: block;
  position: absolute;
  top: 10px;
  left: calc(100% - 20px - 10px);
  width: 20px;
  height: 20px;
  fill: #666;
  stroke: #666;
  stroke-width: 1; 
  stroke-miterlimit: 10;
  margin: 0;
  cursor: pointer;
  pointer-events: none; 
}

.on .close {
  pointer-events: auto; 
}

#ensure > .pane {
  width: 40%;
  min-width: 494px;
  max-width: 634px;
  height: 32%;
  min-height: 201px;
  max-height: 281px;
}

#ensure > .pane > h2 {
  margin: -0.5em 0 0.5em;
}

#ensure > .pane > p {
  font-size: 1.05rem;
  margin: -2.5em 0 -2em;
}

#ensure > .pane > div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.data > .pane {
  width: 49rem;
  height: 32rem;
  margin: auto;
}

.dataarea {
  display: block;
  position: relative;
  width: 90%;
  height: 68%;
  border: 3px solid #f0f0f0;
  margin: 0 0 2em 0;
  overflow: hidden;
}

#saver .dataarea {
  height: 56%;
}

.dataarea > .load-tab-bar {
  display: flex;
  position: relative;
  top: 0;
  width: 100%;
  height: 2.6em;
}

.dataarea > .load-tab-bar > div {
  display: flex;
  position: relative;
  justify-content: center;
  -ms-align-items: center;
  align-items: center;
  width: 100%;
  color: #000;
  background: #f0f0f0;
  padding: .5em .15em;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-weight: bold;
  cursor: pointer;
}

.dataarea > .load-tab-bar > :first-child {
  letter-spacing: -.01em;
}

.dataarea > .load-tab-bar > .selected {
  color: #000;
  margin: 0;
  background: #fff;
  font-weight: bold;
}
 
#datatools {
  display: none;
  position: absolute;
  justify-content: flex-end;
  -ms-align-items: center;
  align-items: center;
  width: calc(100% - 4em);
  padding: 1.9em 2em 0.8em;
}

#datatools > div {
  margin-left: 10px;
  cursor: pointer;
}

#datatools svg {
  fill: #f2f2f2;
  stroke: #bbb;
  stroke-width: 1; 
  stroke-miterlimit:10;
  transition: all .2s; 
  transform: scale(.9, .9);
}

.dataarea > .scroll-wrapper{
  display: block;
  position: relative;
  overflow-y: auto;
  width: 100%;
  height: calc(100% - 2.6em);
}

.dataarea ul {
  display: flex;
  position: absolute;
  flex-wrap: wrap;
  justify-content: flex-start;
  -ms-align-items: flex-start;
  align-items: flex-start;
  width: 96%;
  margin: 2rem 1rem;
  padding: 0;
  list-style: none;
}

.dataarea li {
  display: inline-block; 
  position: relative;
  border: 1px solid #f0f0f0;
  padding: 0px .6rem;
  width: 5.5rem;
  height: 6rem;
  margin: 0 0 1rem 1rem;
  font-size: .85rem;
  line-height: 6rem;
  color: #888;
  font-weight: 700;
  border: 2px solid #f0f0f0;
  background: #f0f0f0;
  text-align: center;
  transition: all .12s linear;
}

#savearea li {
  background: #f6f6f6;
  cursor: pointer;
}

.dataarea li.saved {
  color: #333;
  background: #fff;
  border: 2px solid #f0f0f0;
  cursor: pointer;
  white-space: pre-line;
  overflow: hidden;
}

#savearea li.saved {
  background: #fff;
  box-shadow: none;
}

.dataarea li.saved:hover {
  margin-top: -2px;
  box-shadow: 0 2px 2px rgba(42, 42, 42, 0.2);
}

#savearea li.selected {
  color: #3d65af;
  border: 2px solid #3d659f;
  background: linear-gradient(135deg, #edeff5 0%, #c2d6fb 100%);
}

.dataarea li > .name {
  margin-top: 0.6em;
  line-height: 1.5rem;
  font-weight: 700;
}

.dataarea li > .date {
  margin-top: -0.5em;
  line-height: 1.5rem;
  font-weight: 400
}

.ensurebtn {
  display: block;
  color: #fff;
  width: 8em;
  text-align: center;
  padding: 1em 0;
  margin: 0 .2rem;
  transition: background .2s;
  pointer-events: none; 
}

#saver .ensurebtn {
  margin: -1em 0 1.6em;
  font-size: .95rem;
}

.on .ensurebtn {
  cursor: pointer;
  pointer-events: auto; 
}

.yes {
  background: #3daf7e;
}

  .yes:hover {
    background: #42bd88
  }

.no {
  background: #ddd;
}

  .no:hover {
    background: #e0e0e0
  }

  
/* JXG Class */

.quit {
  display: block;
  position: absolute;
  width: 28px;
  height: 28px;
  outline: none;
  text-align: center;
  transform: translate(0, 40px);
  transition: .4s;
}

.quit > button {
  display: block;
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  cursor: pointer;
}

.icon-stop {
  display: block;
  position: relative;
  width: 28px;
  height: 28px;
  fill: #BD4277;
}

.ticksLabel {
  font-family: suken !important;
  font-weight: 700 !important;
  color: #222 !important;
  filter:dropshadow(color=#fff, offX= 0, offY=-1)
    dropshadow(color=#fff, offX= 1, offY= 0)
    dropshadow(color=#fff, offX= 0, offY= 1)
    dropshadow(color=#fff, offX=-1, offY= 0);

  text-shadow: #fff 1px 1px 0px, #fff -1px 1px 0px,
    #fff 1px -1px 0px, #fff -1px -1px 0px;
  font-size: 1.3rem !important;
  transform: translate(0, .16em)
}

.label,
.guide,
.info {  
  font-family: suken !important;
  font-weight: 700 !important;
  color: #222 !important;
  filter:dropshadow(color=#fff, offX= 0, offY=-1)
    dropshadow(color=#fff, offX= 1, offY= 0)
    dropshadow(color=#fff, offX= 0, offY= 1)
    dropshadow(color=#fff, offX=-1, offY= 0);

  text-shadow: #fff 1px 1px 0px, #fff -1px 1px 0px,
    #fff 1px -1px 0px, #fff -1px -1px 0px;
  font-size: 2rem !important;
}

.guide {
  font-size: 1.5rem !important;
  padding: 1px !important;
}

.info {
  transform: translate(.5em, 1.2em);
}

.info.left.top {
  transform: translate(0, -1.2em);
}

.info.left.bottom {
  transform: translate(0, .8em);
}

.info.right.top {
  transform: translate(3em, -1.6em);
}

.info.right.bottom {
  transform: translate(2em, .4em);
}

.onoma {
  transform: translate(0, .8em);
  opacity: 0 !important;
}

.onoma.visible {
  opacity: 1 !important;
}

@keyframes vanish {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media screen and (max-width: 764px) {
  #dataarea {
    width: 96%;
    height: 90%;
    border: 3px solid #f0f0f0;
    margin: 0 0 2em 0;
  }
}

/* using em to specify the size because iPhone is always semi-zooming the content */
@media screen and (max-height: 32em) {
  .setting-container {
    flex-direction: row;
  }
}

@media all and (-ms-high-contrast:none) {
  .modal.data { 
    justify-content: flex-start;
  }
  
  *::-ms-backdrop, 
  .modal.data { 
    justify-content: flex-start;
  }
}

@media only screen and (max-width: 1023px) {
  html {
    font-size: 14px;
  }
}

@media only screen and (max-height: 575px) {
  html {
    font-size: 14px;
  }
}

@media only screen and (max-width: 839px) {
  html {
    font-size: 12px;
  }
}

@media only screen and (max-height: 479px) {
  html {
    font-size: 12px;
  }
}

@media only screen and (max-width: 600px) {
  html {
    font-size: 10px;
  }
}

@media only screen and (max-height: 399px) {
  html {
    font-size: 10px;
  }
}

@media only screen and (max-height: 319px) {
  html {
    font-size: 9px;
  }
}

