// dropzone for files
section .dropzone {
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed black;
  border-radius: 4px;
  position: relative;
  display: flex;
  justify-content: center;
}

section .dropzone .dz-preview {
  justify-self: center;
  width: 100%;
  max-width: 360px;
  min-width: 240px;
}

section .dropzone .dz-preview .dz-image {
  width: auto;
}

// form stuff

.field {
  position: relative;
  margin: 1em 0;
}

.field.disabled {
  input, select, label {
    opacity: 0.6;
  }
  .tooltip-content {
    opacity: 1.0;
  }
  &::after {
    content: 'Currently not available, coming soon!';
    line-height: 0;
    top: 50%;
    margin-left: 20px;
  }
}
.field--type--text input {
  background: none;
  border: none;
  font-size: large;
  border-bottom: 2px solid white;
  color: white;
  text-align: right;
}
.field--type--text label, .field--type--select label, .field--type--file label {
  min-width: 200px;
  display: inline-block;
  white-space: nowrap;
  margin-right: 12px;
}
input[type=checkbox]{
	height: 0;
	width: 0;
	visibility: hidden;
}

.field--type--checkbox {
  line-height: 30px;
}

.field--type--checkbox input[type=checkbox] + label {
	cursor: pointer;
	text-indent: -9999px;
	width: 60px;
	height: 28px;
	background: grey;
	display: inline-block;
	border-radius: 30px;
  position: relative;
  top: 2px;
}

.field--type--checkbox input[type=checkbox] + label:after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 24px;
	height: 24px;
	background: #fff;
	border-radius: 20px;
	transition: 0.3s;
}

.field--type--checkbox input[type=checkbox] + label:active:after {
	width: 34px;
}

.field--type--checkbox input[type=checkbox]:checked + label {
	background: #bada55;
}

.field--type--checkbox input[type=checkbox]:checked + label:after {
	left: calc(100% - 1px);
	transform: translateX(-100%);
}
button.help {
  width: 24px;
  height: 24px;
  border-radius: 24px;
  color: rgb(45, 45, 252);
  position: relative;
  appearance: none;
  background: white;
  border: 1px solid rgb(230, 230, 230);
}

button.help:hover, button.help:active, button.help:focus {
  outline: none;
  border: 1px solid rgb(230, 230, 230);
}

button.help::after {
  content: '?';
}

button.help:hover .tooltip-content {
  display: block;
}

.tooltip-content {
  display: none;
  position: absolute;
  min-width: 250px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  top: -15px;
  left: 50%;
  color: white;
  padding: 1em 2em;
  transform: translate(-50%, -100%);
  outline: none;
  white-space: normal;
}

.tooltip-content:active {
  outline: none;
}

.tooltip-content::before, .tooltip-content::after {
  content: '';
  pointer-events: none;
  position: absolute;
	top: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
  width: 0;
  filter: drop-shadow(0 0 1px #000)
}
.tooltip-content::after {
  border-top-color: rgba(0, 0, 0, 0.6);
  border-width: 8px;
  margin-left: -8px;
}
.summary {
  text-align: center;
}

.field--type--file label {
  line-height: 60px;
}

.field--type--file .hints {
  text-align: justify;
}

.file-upload-wrapper {
  display: block;
  position: relative;
  width: 225px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  float: left;
  margin-right: 1em;
  cursor: pointer;

  .like-button {
    padding: 0;
    margin: 0;
    display: block;
    cursor: pointer;
    pointer-events: none;
    width: 100%;
    font-size: 100%;
  }
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.file-upload-wrapper {
  input[type="file"] {
    &:disabled {
      + .like-button {
        opacity: 0.6;
        cursor: disabled;
      }
    }
  
    &:not(:disabled):hover {
      cursor: pointer;
      
      + .like-button {
        &.primary { background-color: rgb(255, 180, 180); }
        &.secondary { background-color: rgb(180, 180, 221); }
      }
    }
  }
}

.message {
  margin: 1em 0;
}

#queue-generation {
  max-width: 500px;
}

.progress-button {
  position: relative;
  overflow: hidden;
}

@keyframes indefinite-animation {
  0% {
    left: 0%;
    width: 0%
  }
  30% {
    width: 30%;
  }
  70% {
    width: 30%;
  }
  100% {
    left: 100%;
    width: 0%;
  }
}


.progress-button.indefinite .progress {
  width: 30%;
  animation: ease-in-out infinite 2s indefinite-animation;
}

.progress {
  position: absolute;
  width: 0%;
  background-color: rgb(255, 230, 230);
  height: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 1s ease width;
  box-shadow: 0 0 4px white;
}

.download-rom {
  display: block;
  margin: 20px;
  color: white;
  font-size: larger;
  text-shadow: 0 0 2px white;
}