/* Split the screen in half */
.split {
  height: 100%;
  width: 50%;
  position: fixed;
  z-index: 1;
  top: 0;
  overflow-x: hidden;
  padding-top: 20px;
}

/* Control the left side */
.left {
  left: 0;
  padding: 20px;
}

/* Control the right side */
.right {
  right: 0;
  padding: 20px;
}

#GetResult {
  margin-left: 10px;
}

/*Scanning animation*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  position: relative;
}
.ocrloader {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
}
.ocrloader span {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  font-weight: 700;
  width: 100%;
  padding: 10px;
  color: #3f51b5;
  background-color: #00ccb5;
  z-index: 1;
  text-align: center;
  transform: translateY(135%);
  animation: move 0.8s cubic-bezier(0.15, 0.44, 0.76, 0.64);
  animation-iteration-count: infinite;
}
.ocrloader > div {
  z-index: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48%;
  backface-visibility: hidden;
}
.ocrloader i {
  display: block;
  height: 1px;
  background: #000;
  margin: 0 auto 2px;
  margin: 0 auto 2.2px;
  backface-visibility: hidden;
}
.ocrloader i:nth-child(2) {
  width: 75%;
}
.ocrloader i:nth-child(3) {
  width: 81%;
}
.ocrloader i:nth-child(4) {
  width: 87%;
}
.ocrloader i:nth-child(6) {
  width: 71%;
}
.ocrloader i:nth-child(7) {
  width: 81%;
}
.ocrloader i:nth-child(8) {
  width: 65%;
}
.ocrloader i:nth-child(9) {
  width: 83%;
}
.ocrloader i:nth-child(10) {
  width: 75%;
}
.ocrloader i:nth-child(12) {
  width: 86%;
}
.ocrloader i:nth-child(14) {
  width: 65%;
}
.ocrloader i:nth-child(16) {
  width: 75%;
}
.ocrloader i:nth-child(18) {
  width: 83%;
}
.ocrloader:before,
.ocrloader:after,
.ocrloader em:after,
.ocrloader em:before {
  border-color: #0467f9;
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  border-style: solid;
  border-width: 0px;
}
.ocrloader:before {
  left: 0;
  top: 0;
  border-left-width: 1px;
  border-top-width: 1px;
}
.ocrloader:after {
  right: 0;
  top: 0;
  border-right-width: 1px;
  border-top-width: 1px;
}
.ocrloader em:before {
  left: 0;
  bottom: 0;
  border-left-width: 1px;
  border-bottom-width: 1px;
}
.ocrloader em:after {
  right: 0;
  bottom: 0;
  border-right-width: 1px;
  border-bottom-width: 1px;
}
@keyframes move {
  0%,
  100% {
    transform: translateY(135%);
  }
  50% {
    transform: translateY(0%);
  }
  75% {
    transform: translateY(272%);
  }
}

img {
  max-width: 100%;
  max-height: 100%;
}

.document-page {
  /*   --scan-grid-color: 0,255,255; */
  --scan-grid-color: 0, 120, 255;
  position: relative;
  width: 100%;
  height: 60vh;
  padding: 0px;
}
.document-page-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #fff;
  box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.25);
  overflow: auto;
  text-align: center;
  padding: 5px;
}

.input-groupCustom {
  margin: 20px 0 !important;
}

.scanning .document-page-inner::after {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-size: 30px 30px;

  background-image: radial-gradient(
      rgba(var(--scan-grid-color), 0.25) 2px,
      transparent 2px
    ),
    linear-gradient(
      to right,
      rgba(var(--scan-grid-color), 0.3) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(var(--scan-grid-color), 0.3) 1px,
      transparent 1px
    );
  background-position: 15.5px 15.5px;
  opacity: 0;
  animation: gridColorChange 2.5s 0.5s linear infinite alternate;
}
.document-page.scanning:before,
.document-page.scanning:after,
.scanning .document-page-inner:after {
  display: block;
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 10;
}
.document-page.scanning:before {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-size: 200px 30px;
  background-image: linear-gradient(
    to bottom,
    rgba(var(--scan-grid-color), 0.5) 1px,
    transparent 1px
  );
  animation: animateGridHorizontal 5s 1.25s ease-out infinite;
  background-repeat: repeat-y;
  background-position-x: -200px;
}
.document-page.scanning:after {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-size: 30px 400px;
  background-image: linear-gradient(
    to right,
    rgba(var(--scan-grid-color), 0.5) 1px,
    transparent 1px
  );
  animation: animateGridVertical 5s 1s ease-out infinite;
  background-repeat: repeat-x;
  background-position-y: -400px;
}

@keyframes animateGridHorizontal {
  from {
    background-position-x: -200px;
  }
  to {
    background-position-x: calc(100% + 200px);
  }
}
@keyframes animateGridVertical {
  from {
    background-position-y: -400px;
  }
  to {
    background-position-y: calc(100% + 400px);
  }
}
@keyframes gridColorChange {
  100% {
    opacity: 1;
  }
}

#StatusElem {
  margin: 0px 0px;
  background-color: #9c27b0;
  padding: 5px;
  text-align: center;
  color: white;
  font-weight: 100;
}
.docThumCol {
  border: 1px solid #9c27b0;
  border-radius: 5px;
}
.document-image {
  border: 1px solid #b3b3b3;
}
.headRow {
  text-align: center;
  padding: 10px;
  border: 1px solid #e3e3e3;
  margin: 10px 0px;
}

pre {
  background-color: ghostwhite;
  /* border: 1px solid #8BC34A; */
  padding: 10px 20px;
  margin: 20px;
  /* border-radius: 5px; */
  width: auto;
  margin-left: auto;
  margin-right: auto;
  /* margin-top: 5rem !important;*/
}

.resultDiv {
  /* margin: 5rem 0 0 0; */
  border-radius: 5px;
  border: 1px solid #8bc34a;
}

.resultDiv .head {
  padding: 5px;
  background-color: #8bc34a;
  text-align: center;
  color: white;
  font-weight: 100;
}

.form-control:focus {
  background-color: #fbfbfb !important;
  border-color: #ebebeb !important;
  outline: 0;
  box-shadow: none !important;
}

.btn-outline-secondary {
  --bs-btn-border-color: #bfbfbf !important;
  background-color: #8bc34a !important;
  color: #ffffff !important;
}

/* KEYFRAMES */

@keyframes spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(359deg);
  }
}

@keyframes spin3D {
  from {
    transform: rotate3d(0.5, 0.5, 0.5, 360deg);
  }
  to {
    transform: rotate3d(0deg);
  }
}

@keyframes configure-clockwise {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes configure-xclockwise {
  0% {
    transform: rotate(45deg);
  }
  25% {
    transform: rotate(-45deg);
  }
  50% {
    transform: rotate(-135deg);
  }
  75% {
    transform: rotate(-225deg);
  }
  100% {
    transform: rotate(-315deg);
  }
}

@keyframes pulse {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0.25;
    transform: scale(0.75);
  }
}

/* GRID STYLING */

* {
  box-sizing: border-box;
}

.spinner-box {
  width: auto;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  display: none;
}

/* SPINNING CIRCLE */

.leo-border-1 {
  position: absolute;
  width: 150px;
  height: 150px;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgb(63, 249, 220);
  background: linear-gradient(
    0deg,
    rgba(63, 249, 220, 0.1) 33%,
    rgba(63, 249, 220, 1) 100%
  );
  animation: spin3D 1.8s linear 0s infinite;
}

.leo-core-1 {
  width: 100%;
  height: 100%;
  background-color: #37474faa;
  border-radius: 50%;
}

.leo-border-2 {
  position: absolute;
  width: 150px;
  height: 150px;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgb(251, 91, 83);
  background: linear-gradient(
    0deg,
    rgba(251, 91, 83, 0.1) 33%,
    rgba(251, 91, 83, 1) 100%
  );
  animation: spin3D 2.2s linear 0s infinite;
}

.leo-core-2 {
  width: 100%;
  height: 100%;
  background-color: #1d2630aa;
  border-radius: 50%;
}

/* ALTERNATING ORBITS */

.circle-border {
  width: 150px;
  height: 150px;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgb(63, 249, 220);
  background: linear-gradient(
    0deg,
    rgba(63, 249, 220, 0.1) 33%,
    rgba(63, 249, 220, 1) 100%
  );
  animation: spin 0.8s linear 0s infinite;
}

.circle-core {
  width: 100%;
  height: 100%;
  background-color: #1d2630;
  border-radius: 50%;
}

/* X-ROTATING BOXES */

.configure-border-1 {
  width: 115px;
  height: 115px;
  padding: 3px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fb5b53;
  animation: configure-clockwise 3s ease-in-out 0s infinite alternate;
}

.configure-border-2 {
  width: 115px;
  height: 115px;
  padding: 3px;
  left: -115px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(63, 249, 220);
  transform: rotate(45deg);
  animation: configure-xclockwise 3s ease-in-out 0s infinite alternate;
}

.configure-core {
  width: 100%;
  height: 100%;
  background-color: #1d2630;
}

/* PULSE BUBBLES */

.pulse-container {
  width: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pulse-bubble {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #3ff9dc;
}

.pulse-bubble-1 {
  animation: pulse 0.4s ease 0s infinite alternate;
}
.pulse-bubble-2 {
  animation: pulse 0.4s ease 0.2s infinite alternate;
}
.pulse-bubble-3 {
  animation: pulse 0.4s ease 0.4s infinite alternate;
}

/* SOLAR SYSTEM */

.solar-system {
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #fafbfc;
  border-radius: 50%;
}

.earth-orbit {
  width: 165px;
  height: 165px;
  -webkit-animation: spin 12s linear 0s infinite;
}

.venus-orbit {
  width: 120px;
  height: 120px;
  -webkit-animation: spin 7.4s linear 0s infinite;
}

.mercury-orbit {
  width: 90px;
  height: 90px;
  -webkit-animation: spin 3s linear 0s infinite;
}

.planet {
  position: absolute;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3ff9dc;
}

.sun {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #ffab91;
}

.leo {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.blue-orbit {
  width: 165px;
  height: 165px;
  border: 1px solid #91daffa5;
  -webkit-animation: spin3D 3s linear 0.2s infinite;
}

.green-orbit {
  width: 120px;
  height: 120px;
  border: 1px solid #91ffbfa5;
  -webkit-animation: spin3D 2s linear 0s infinite;
}

.red-orbit {
  width: 90px;
  height: 90px;
  border: 1px solid #ffca91a5;
  -webkit-animation: spin3D 1s linear 0s infinite;
}

.white-orbit {
  width: 60px;
  height: 60px;
  border: 2px solid #ffffff;
  -webkit-animation: spin3D 10s linear 0s infinite;
}

.w1 {
  transform: rotate3D(1, 1, 1, 90deg);
}

.w2 {
  transform: rotate3D(1, 2, 0.5, 90deg);
}

.w3 {
  transform: rotate3D(0.5, 1, 2, 90deg);
}

.three-quarter-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #fb5b53;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 0.5s linear 0s infinite;
}

.resultDivTop {
  padding: 20px 0;
  text-align: right;
}

.animMsg {
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease;
}

.animMsg.show {
  opacity: 1;
  display: block;
}
.result_txt {
  padding: 5px;
}

.result_txt .success {
  padding: 10px;
  font-weight: 300;
  color: green;
}

.result_txt .failure {
  padding: 10px;
  font-weight: 300;
  color: rgb(221, 2, 2);
}
