@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/open-sans-v15-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Regular'), local('OpenSans-Regular'),
       url('./fonts/open-sans-v15-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('./fonts/open-sans-v15-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('./fonts/open-sans-v15-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('./fonts/open-sans-v15-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./fonts/open-sans-v15-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}

.hidden {
  display: none !important;
}

body {
  background: #FFF;
  margin: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 16pt;
  box-sizing: border-box;
}

h4 {
  margin: 0 0 8px 0;
}

i {
  font-size: 12pt;
  margin-top: -8px;
  margin-bottom: 8px;
}

section.landing {
  padding: 50px 0;
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: center;
  max-width: 80vw;
}

section.landing > * {
  padding: 0;
  margin: .5rem 0;
  width: 100%;
}

section.landing > button, section.landing > input {
  padding: 12px;
  background: none;
  border: transparent;
  font-size: 12pt;
}

section.landing > input {
  width: calc(100% - 21px);
  box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.2);
}

section.landing > button {
  background: #2196F3;
  color: #FFF;
  cursor: pointer;
  overflow: hidden;
}

span.warning {
  color: red !important;
  margin: 0;
  font-size: 14pt;
}

input.warning {
  border: 1px solid red !important;
}

/* Processing */
section.processing {
  padding: 50px 0;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 75vw;
  max-width: 90vw;
}

section.processing > div {
  flex-flow: column nowrap;
  display: flex;
  flex: 0 1 27%;
}

section.processing button {
  padding: 12px;
  background: none;
  border: transparent;
  font-size: 12pt;
  background: #2196F3;
  color: #FFF;
  cursor: pointer;
  overflow: hidden;
}

.jscolor {
  border: none;
  padding: 5px;
  border-radius: 4px;
  margin-left: auto;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ul > .flag {
  display: flex;
  border: 2px solid #e4e4e4;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  align-items: center;
}

ul > .flag > canvas {
  max-height: 10vmin;
  max-width: 10vmin;
}

ul > .flag > span {
  margin: -3px 0 0 1rem;
}

.impexp {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.impexp > input {
  flex: auto;
  padding: 6px;
  min-height: 30px;
}

.impexp > button {
  width: 20%;
  flex: auto;
}

canvas.gradient_editor {
  margin-top: 18px;
  top: 0;
  position: absolute;
}

.gradient_editor.wrapper {
  position: relative;
}

.gradient_editor > .handles {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  z-index: 1;
  display: none;
}

/* This achieves a 1:1 aspect ratio to match the canvas */
.gradient_editor > .handles:before {
  content: "";
	display: block;
	padding-top: 100%;
}

.gradient_editor > .handles > .handle {
  display: block;
  width: 1rem;
  position: absolute;
  top: 0;
  background: transparent;
  cursor: grab;
  border: 1px solid #000;
  transform-origin: bottom;
}

.gradient_editor > .handles > .handle:before {
  /* content:"";
  position: absolute;
  height: 0px;
  width: 0px;  
  left: 0px;
  top: -29px;
  border-width: 15px;
  border-color: #000 transparent transparent transparent;
  border-style: solid; */
}

/* Color Stop Manager */
.color_stop {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  background: #f1f1f1;
  padding: 5px;
  border-radius: 4px;
  white-space: pre-wrap;
  cursor: grab;
}

.color_stop.dragging {
  background: #d1c9fb;
}

.color_stop_number {
  white-space: pre;
}

.addstop {
  color: grey;
  display: flex;
  flex: 1 0 100%;
  justify-content: center;
  align-items: center;
  font-size: 30pt;
  cursor: pointer;
  margin-top: 4px;
  user-select: none;
}

.close_button {
  margin-right: .3rem;
  color: #dc004b;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

section.loading {
  background: rgba(255,255,255,0.9);
	height: 100vh;
	width: 100vw;
  display: flex;
  flex-flow: column nowrap;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
  left: 0;
}

.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}
.loader {
  color: #000000;
  font-size: 10px;
  margin: 80px auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 3.5em;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}


@media only screen and (max-width: 450px) {
  h4 {
    margin: 12px 0 4px 0;
  }

  section.processing {
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 90vw;
    padding: 5vw;
    max-width: none;
  }

  section.processing > div {
    flex: 1 1 100%;
    width: 100%;
  }

  .color_stops {
    margin-top: 12px;
  }
}