#spinner-front,
#spinner-back {
  position: fixed;
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
  width: 100%;
  transition: all 1s;
}

.controlDynamicTask {
  width: 100%;
  height: 60px;
  background-color: rgb(177, 183, 184);
  padding: 5px;
}

.footerTaskDiv {
  width: 100%;
  height: 40px;
  background-color: #000;
  padding: 5px;
}

.textFieldDisplay {
  width: 100%;
  min-height: 80px;
  padding: 10px;
}

.width-info {
  width: 40px;
  font-size: 10px;
}

#spinner-front {
  z-index: 999;
  margin-top: 45vh;
  color: #fff;
  text-align: center;
}

#spinner-back {
  z-index: 998;
  height: 100vh;
  background: #000;
}

#spinner-front.show {
  visibility: visible;
  opacity: 1;
}

#spinner-back.show {
  visibility: visible;
  opacity: 0.7;
}

#popupModalImage {
  width: 100%;
  height: auto;
}

.activeTool,
.activeStamp {
  background-color: rgb(77, 78, 156) !important;
  color: rgb(255, 255, 255);
}

input[type="range"]::range-track {
  width: 100%;
  height: 20px;
  border-radius: 10px;
  background-color: #eee;
  border: 2px solid #ccc;
}

input[type="range"]::range-thumb {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-color: white;
  border: 2px solid #1976d2;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}

input[type="range"]::range-progress {
  height: 20px;
  border-radius: 10px 0 0 10px;
  background-color: #2196f3;
  border: 2px solid #1976d2;
}

#dynamicLoader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: dynamicSpin 1s ease-in-out infinite;
  -webkit-animation: dynamicSpin 1s ease-in-out infinite;
}

@keyframes dynamicSpin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

@-webkit-keyframes dynamicSpin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

.optionDiv {
  width: 90%;
  display: inline-block;
  vertical-align: top;
  margin-bottom: 10px;
  margin-top: 10px;
  background: #f5f2f0;
  padding: 10px;
}

.stampChoices,
.mapChoice {
  width: 100px;
  height: auto;
  margin-top: 10px;
  margin-bottom: 5px;
  margin-left: -10px;
  line-height: 75px;
  border: none;
  color: rgb(0, 0, 0);
  padding: 10px 22px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  cursor: pointer;
  overflow-y: auto;
}

.toolChoices {
  width: 105px;
  height: auto;
  margin-top: 10px;
  margin-bottom: 5px;
  margin-left: -10px;
  line-height: 75px;
  background-color: rgb(177, 183, 184);
  border: none;
  color: rgb(0, 0, 0);
  padding: 10px 22px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  cursor: pointer;
}

.toolChoices:hover,
.stampChoices:hover {
  background-color: rgb(77, 78, 156) !important;
  color: rgb(255, 255, 255);
}

.img__wrap {
  position: relative;
  height: 200px;
  width: 257px;
  cursor: pointer;
}

.img__description_layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(36, 62, 206, 0.6);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* transition effect. not necessary */
  transition: opacity 0.2s, visibility 0.2s;
}

.img__wrap:hover .img__description_layer {
  visibility: visible;
  opacity: 1;
}

.img__description {
  transition: 0.2s;
  transform: translateY(1em);
}

.img__wrap:hover .img__description {
  transform: translateY(0);
}

#field_options {
  float: left;
  border: 1px solid #ccc;
  padding: 5px;
  font-family: Arial;
}

#currentOptions > span {
  cursor: pointer;
  display: block;
  float: left;
  color: #fff;
  background: #789;
  padding: 5px;
  padding-right: 25px;
  margin: 4px;
}

#currentOptions > span:hover {
  opacity: 0.7;
}

#currentOptions > span:after {
  position: absolute;
  content: "×";
  border: 1px solid;
  padding: 2px 5px;
  margin-left: 3px;
  font-size: 11px;
}

#field_options > input {
  background: #eee;
  border: 0;
  margin: 4px;
  padding: 7px;
  width: auto;
}

.pendingField {
  opacity: 0.5;
}

.highlightedArea {
  border-style: solid;
}

#modal_content {
  overflow-x: hidden;
}

.fieldButton {
  cursor: pointer;
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.fieldButton:hover {
  background-color: #555555;
  color: white;
}

.fieldSelect {
  width: 100%;
  height: 40px;
}

.fieldInput {
  width: 90%;
  height: 40px;
}

.formBuilderModelField {
  width: 100%;
  min-height: 60px;
  padding: 10px;
}

.formBuilderModelFieldLabel {
  font-size: 18px;
  width: 100%;
  padding-bottom: 10px;
  padding-top: 10px;
  font-weight: 500;
}

.formBuilderControls {
  padding: 10px;
  width: 100%;
  height: 40px;
}

.fieldChoice {
  width: 92%;
  height: 60px;
  border: 1px solid black;
  padding: 10px;
}

#dynamic-form-builder-container {
  width: 100%;
  min-height: 900px;
}

.fieldColumn {
  float: left;
  width: 40%;
  height: 500px;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 10px;
  padding: 10px;
  border: 1px dotted black;
}

@media only screen and (max-width: 600px) {
  .fieldColumn {
    width: 40%;
  }
}

.optionElement {
  display: inline;
}

.removeTaskButton,
.editTaskButton {
  float: right;
}

#drawing-mode {
  margin-bottom: 10px;
  vertical-align: top;
}

#drawing-line-width {
  padding-left: 20px;
}

#drawing-color {
  width: 85px;
  height: 85px;
}

.toolSelection {
  width: 100%;
  height: 100px;
}

label {
  display: inline-block;
  width: 130px;
}

#bd-wrapper {
  min-width: 1500px;
}

#canvasMainDiv {
  width: 100%;
  min-height: 500px;
}

.aio_current_stamp_preview {
  width: 100px;
}

.stamp_modal_row {
  width: 100%;
  min-height: 100px;
  padding: 10px;
}

.stamp_actions {
  float: right;
}

.stampImageTable {
  width: 80px;
  height: auto;
}

.stampControls {
  width: 100%;
  min-height: 60px;
  padding: 10px;
}

.crop-wrapper {
  background-color: rgba(255, 255, 255, 1);
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.resize-container {
  position: relative;
  display: inline-block;
  cursor: move;
  margin: 0 auto;
}

.resize-container-ontop {
  position: absolute;
  cursor: move;
  background-color: rgba(5, 255, 5, 0);
  z-index: 1000;
  width: 100%;
  height: 100%;
}

.resize-container img {
  display: block;
}

.resize-container:hover img,
.resize-container:active img {
  outline: 2px dashed rgba(0, 0, 0, 0.9);
}

.resize-handle-ne,
.resize-handle-se,
.resize-handle-nw,
.resize-handle-sw {
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.9);
  z-index: 999;
}

.resize-handle-nw {
  top: -5px;
  left: -5px;
  cursor: nw-resize;
}

.resize-handle-sw {
  bottom: -5px;
  left: -5px;
  cursor: sw-resize;
}

.resize-handle-ne {
  top: -5px;
  right: -5px;
  cursor: ne-resize;
}

.resize-handle-se {
  bottom: -5px;
  right: -5px;
  cursor: se-resize;
}

.top-overlay {
  z-index: 990;
  background-color: rgba(222, 222, 222, 0.6);
  width: 100%;
  height: 50%;
  margin-top: -300px;
  position: absolute;
}

.bottom-overlay {
  z-index: 990;
  background-color: rgba(222, 222, 222, 0.6);
  width: 100%;
  height: 50%;
  margin-bottom: -300px;
  position: absolute;
  bottom: 0;
}

.right-overlay {
  z-index: 990;
  background-color: rgba(222, 222, 222, 0.6);
  width: 50%;
  height: 700px;
  top: 50%;
  margin-top: -300px;
  margin-left: -300px;
  position: absolute;
}

.left-overlay {
  z-index: 990;
  background-color: rgba(222, 222, 222, 0.6);
  width: 50%;
  height: 600px;
  top: 50%;
  right: 0px;
  margin-top: -300px;
  margin-right: -300px;
  position: absolute;
}

.aio_generic_button_smaller {
  width: 200px;
  margin-top: 10px;
  margin-bottom: 5px;
  margin-left: -10px;
  line-height: 75px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 5px;
}

.overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -300px;
  margin-top: -300px;
  z-index: 999;
  width: 600px;
  height: 600px;
  border: solid 2px rgba(222, 222, 222, 0.9);
  box-sizing: content-box;
  pointer-events: none;
}

.overlay:before {
  top: 0;
  margin-left: -2px;
  margin-top: -40px;
}

.overlay:after {
  bottom: 0;
  margin-left: -2px;
  margin-bottom: -40px;
}

.overlay-inner:before {
  left: 0;
  margin-left: -40px;
  margin-top: -2px;
}

.overlay-inner:after {
  right: 0;
  margin-right: -40px;
  margin-top: -2px;
}

#cropperDiv {
  width: 80%;
  min-height: 700px;
  padding: 10px;
}

/* The Modal (background) */

.modal-custom {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  padding: 10px;
}

/* Modal Content/Box */

.modal-content-custom {
  background-color: #fefefe;
  margin: 15% auto;
  /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  /* Could be more or less, depending on screen size */
}

#cropper-js-div img {
  display: block;

  /* This rule is very important, please don't ignore this */
  max-width: 100%;
}

/* The Close Button */
.close-custom,
.close-custom-stamps,
.close-custom-text {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-custom:hover,
.close-custom:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.close-custom-stamps:hover,
.close-custom-stamps:focus,
.close-custom-text:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Ensure the size of the image fit the container perfectly */
#imageToCrop {
  display: block;

  /* This rule is very important, please don't ignore this */
  max-width: 100%;
}

#cropper-js-div{
    width: 100%;
}