* {
    box-sizing: border-box;
}

body {
	width: 100vw;
	height: 100vh;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-size: 14px;
    background-color: #fafafa;
    display: grid;

    grid-template-columns: 1fr 2fr;
}

#settings {
	height: 100vh;
    border-right: 1px solid gray;
    text-align: center;
    padding: 0px;
    background-color: white;
    color: black;
    display: grid;
}

.setpart {
	padding: 5px;
	margin-top: 15px;
	border: 1px solid gray;
	background-color: #fafafa;
}
.partdetail {
		display: none;
		margin-left: -5px;
		margin-right: -5px;
		padding: 5px;
		background-color: #f0f0f0;
		color: #333;
}
#tf {
    padding: 10px;
}
#tl {
	padding: 10px;
    overflow-y: scroll;
}
h2 {
    padding-bottom: 4px;
    border-bottom: 4px solid #f9b200;
    display: inline-block;
}
#preview {
	height: 100vh;
    text-align: center;
    padding: 20px;
    background-image: repeating-linear-gradient(135deg, #f8f8f8, #f8f8f8 10px, #eee 10px, #eee 20px);
}
#previewi {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
#preview img {
max-width:100%;
max-height:100%;
}
.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
select, button {
    padding: 7px;
    background-color: white;
}
textarea {
    width: 100%;
    height: 100px;
}
textarea.toolong, .toolongtip {
    background-color: #ffff55;
}
.toolongtip {
    display: none;
}
textarea.toolong ~ .toolongtip {
    display: block;
}
select#stil + ul, select#logo + ul, select#imgstyle + ul {
    padding: 8px;
    margin: 8px;
    background-image: repeating-linear-gradient(135deg, #f8f8f8, #f8f8f8 10px, #eee 10px, #eee 20px);

}
#targetimg, #targetimg2 {
    padding: 8px;
    margin: 8px;
    background-image: repeating-linear-gradient(135deg, #f8f8f8, #f8f8f8 10px, #eee 10px, #eee 20px);
}
#targetimg > img, #targetimg2 > img {
    max-width: 200px;
    max-height: 200px;
}
select#stil + ul img {
    max-height: 100px;
}
select#logo + ul img {
    max-height: 50px;
}
select#imgstyle + ul img {
    max-height: 80px;
}
button, #userImageLabel, #userImage2Label {
    display: inline-block;
    background-color: #652480;
    color: white;
    border: 1px solid black;
    line-height: 1em;
    padding: 7px;
}
button:hover, #userImageLabel:hover, #userImage2Label:hover {
    background-color: #f9b200;
    color: white;
}
#userImage, #userImage2 {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}
#loading {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .7);
    display: none;
}

.sk-circle {
  margin: auto;
  width: 40px;
  height: 40px;
  position: relative;
    top: 50%;
transform: translateY(-50%);
}
.sk-circle .sk-child {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
.sk-circle .sk-child:before {
  content: '';
  display: block;
  margin: 0 auto;
  width: 15%;
  height: 15%;
  background-color: #333;
  border-radius: 100%;
  -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
          animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
}
.sk-circle .sk-circle2 {
  -webkit-transform: rotate(30deg);
      -ms-transform: rotate(30deg);
          transform: rotate(30deg); }
.sk-circle .sk-circle3 {
  -webkit-transform: rotate(60deg);
      -ms-transform: rotate(60deg);
          transform: rotate(60deg); }
.sk-circle .sk-circle4 {
  -webkit-transform: rotate(90deg);
      -ms-transform: rotate(90deg);
          transform: rotate(90deg); }
.sk-circle .sk-circle5 {
  -webkit-transform: rotate(120deg);
      -ms-transform: rotate(120deg);
          transform: rotate(120deg); }
.sk-circle .sk-circle6 {
  -webkit-transform: rotate(150deg);
      -ms-transform: rotate(150deg);
          transform: rotate(150deg); }
.sk-circle .sk-circle7 {
  -webkit-transform: rotate(180deg);
      -ms-transform: rotate(180deg);
          transform: rotate(180deg); }
.sk-circle .sk-circle8 {
  -webkit-transform: rotate(210deg);
      -ms-transform: rotate(210deg);
          transform: rotate(210deg); }
.sk-circle .sk-circle9 {
  -webkit-transform: rotate(240deg);
      -ms-transform: rotate(240deg);
          transform: rotate(240deg); }
.sk-circle .sk-circle10 {
  -webkit-transform: rotate(270deg);
      -ms-transform: rotate(270deg);
          transform: rotate(270deg); }
.sk-circle .sk-circle11 {
  -webkit-transform: rotate(300deg);
      -ms-transform: rotate(300deg);
          transform: rotate(300deg); }
.sk-circle .sk-circle12 {
  -webkit-transform: rotate(330deg);
      -ms-transform: rotate(330deg);
          transform: rotate(330deg); }
.sk-circle .sk-circle2:before {
  -webkit-animation-delay: -1.1s;
          animation-delay: -1.1s; }
.sk-circle .sk-circle3:before {
  -webkit-animation-delay: -1s;
          animation-delay: -1s; }
.sk-circle .sk-circle4:before {
  -webkit-animation-delay: -0.9s;
          animation-delay: -0.9s; }
.sk-circle .sk-circle5:before {
  -webkit-animation-delay: -0.8s;
          animation-delay: -0.8s; }
.sk-circle .sk-circle6:before {
  -webkit-animation-delay: -0.7s;
          animation-delay: -0.7s; }
.sk-circle .sk-circle7:before {
  -webkit-animation-delay: -0.6s;
          animation-delay: -0.6s; }
.sk-circle .sk-circle8:before {
  -webkit-animation-delay: -0.5s;
          animation-delay: -0.5s; }
.sk-circle .sk-circle9:before {
  -webkit-animation-delay: -0.4s;
          animation-delay: -0.4s; }
.sk-circle .sk-circle10:before {
  -webkit-animation-delay: -0.3s;
          animation-delay: -0.3s; }
.sk-circle .sk-circle11:before {
  -webkit-animation-delay: -0.2s;
          animation-delay: -0.2s; }
.sk-circle .sk-circle12:before {
  -webkit-animation-delay: -0.1s;
          animation-delay: -0.1s; }

@-webkit-keyframes sk-circleBounceDelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
            transform: scale(0);
  } 40% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes sk-circleBounceDelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
            transform: scale(0);
  } 40% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
    #tf {
        background-color: #f9b200;

    }
@media (min-width: 600px) {
    body {
        //overflow: hidden;
    }
}
@media (max-width: 600px) {
	body {
		display: block;
		width: auto;
		height: auto;
	}
    #settings, #preview {
        position: relative;
        width: 100%;
        left: 0;
        top: 0;
        right: auto;
        overflow: auto;
        display: block;
    }
    #settings {
        padding-top: 100px;
        height: auto;
    }
#tl {
    overflow-y: auto;
}
    #tf {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #f9b200;
        margin: 0;
        padding: 3px;
        overflow: hidden;
        z-index: 99;
    }
    #tf h1 {
        display: inline-block;
        margin: 0;
        line-height: 44px;
    }
    #tf form {
        display: inline;
    }
    #tf button {
        height: 40px;
        padding: 3px;
        line-height: 34px;
    }
}
.dummyForm {
	position: relative;
	display: inline;
}
code {
    background-color: #cfcfcf;
}


#msg > p {
	margin: 5px;
	padding: 5px;
	border-left: 10px solid black;
}
#msg > p.warn {
	background-color: #f4b642;
	border-color: #f7711d;
}

#msg > p.notice {
	background-color: #ddd;
	border-color: #888;
}

.nimp {
		font-size: 90%;
		color: #444;
}
