/*Body*/
body {
  background-color: #f8f8f8;
}

/*Scroll Bar*/
::-webkit-scrollbar {
  width: 10px;          
}

::-webkit-scrollbar-thumb {   
 border-radius: 0px;
 background: -webkit-gradient(linear,left top,left bottom,from(#0095ff),to(#da1bb7));
 box-shadow: inset 2px 2px 2px rgba(255,255,255,.25), inset -2px -2px 2px #f8f8f8;}

 ::-webkit-scrollbar-track
 {
   -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
   background-color: #F5F5F5;
 }

/*Title Glitch Effect*/
.glitch {
  font-family: Montserrat, sans-serif;
  font-size: 3rem;
  font-weight: bold;
  position: relative;
  text-shadow: rgb(255, 33, 208) -2px 0px;
  animation: glitch 725ms infinite;
}

.glitch span {
  position: absolute;
  top: 0;
  left: 0;
}

.glitch span:first-child {
  animation: glitch 500ms infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-0.04em, -0.03em);
  opacity: 0.75;
}

.glitch span:last-child {
  animation: glitch 375ms infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(0.04em, 0.03em);
  opacity: 0.75;
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
      0.025em 0.04em 0 #fffc00;
  }
  15% {
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
      0.025em 0.04em 0 #fffc00;
  }
  16% {
    text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
      -0.05em -0.05em 0 #fffc00;
  }
  49% {
    text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
      -0.05em -0.05em 0 #fffc00;
  }
  50% {
    text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
      0 -0.04em 0 #fffc00;
  }
  99% {
    text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
      0 -0.04em 0 #fffc00;
  }
  100% {
    text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
      -0.04em -0.025em 0 #fffc00;
  }
}
/*END Title Glitch Effect*/

/*BOX EFFECT*/
.fill:hover,
.fill:focus {
  box-shadow: inset 0 0 0 2em #FF21D0;
}

.pulse:hover, 
.pulse:focus {
  animation: pulse 1s;
  box-shadow: 0 0 0 2em transparent;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 #FF21D0; }
}

.close:hover,
.close:focus {
  box-shadow: 
    inset -3.5em 0 0 0 #FF21D0,
    inset 3.5em 0 0 0 #FF21D0;  
}

.raise:hover,
.raise:focus {
  box-shadow: 0 0.5em 0.5em -0.4em #FF21D0;
  transform: translateY(-0.25em);
}

.up:hover,
.up:focus {
  box-shadow: inset 0 -3.25em 0 0 #FF21D0;
}

.slide:hover,
.slide:focus {
  box-shadow: inset 6.5em 0 0 0 #FF21D0;
}

.offset {  
  box-shadow: 
    0.3em 0.3em 0 0 #FF21D0,
    inset 0.3em 0.3em 0 0 #FF21D0;
  
  &:hover,
  &:focus {
    box-shadow: 
      0 0 0 0 #FF21D0,
      inset 6em 3.5em 0 0 #FF21D0;
  }
}

div.infoBox {
  transition: 0.25s;
  background: white;
  border: 2px solid;
  border-radius: 18px;
  font: inherit;
  line-height: 1;
  margin: 0.5em;
  padding-bottom: 1em;
}

div.infoBox h3{
  background: #f2f2f2;
  border-radius: 18px 18px 0 0;
  line-height: 1.8em;
  font-size: 25px;
  font-weight: 700;
}

/*END BOX EFFECT*/

/*Adding XEC Symbol to Input Box*/
#inputBox .input-box {
  position: relative;
}

#inputBox input {
  display: block;
  border: 2px solid #00ABE7;
  border-radius: 12px;
  background: #fff;
  padding: 10px 10px 10px 50px;
  width: 200px;
  height: 70px;
}

#inputBox .unit {
  font-weight: bold;
  position: absolute;
  display: block;
  left: 15px;
  top: 23px;
  z-index: 9;
}
/*End of Adding XEC to Input Box*/

/*Removing Scroll from Input Tag*/
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/*END OF Removing Scroll from Input Tag*/

/* Restore scrollbar for specific input elements using class */
input[type="number"].show-scrollbar::-webkit-outer-spin-button,
input[type="number"].show-scrollbar::-webkit-inner-spin-button {
  -webkit-appearance: auto;
}

input[type="number"].show-scrollbar {
  -moz-appearance: number-input;
}

/*START OF SELECT CALCULATOR BUTTON */
button.fancyBTN {
  position: relative;
  background-color: #0074C2;
  box-shadow: 0px 0px 25px 6px rgba(0,0,0,0.15);
  color: #0074C2;
  border-radius: 2px;
  font-weight:bold;
  text-transform: uppercase;
  border: none;
  letter-spacing: 0.1rem;
  font-size: 1rem;
  padding: 1.5rem 4rem;
  transition: 0.2s;
}

.fancyBTN:hover {
  letter-spacing: 0.15rem;
  padding: 1.5rem 5em;
  background: var(--clr);
  color: var(--clr);
  animation: box 3s infinite;
}

.fancyBTN:focus { /*When the button is clicked*/
  letter-spacing: 0.2rem;
  padding: 1.5rem 5em;
  background: var(--clr);
  color: var(--clr);
  box-shadow: 0 0 35px var(--clr);
  animation: box 3s;
  outline: none !important;
}

.fancyBTN::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #fff;
}

button.fancyBTN span {
  position: relative;
  z-index: 1;
}
button.fancyBTN i.iBTN {
  position: absolute;
  inset: 0;
  display: block;
}

button.fancyBTN .iBTN::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  left: 80%;
  top: -2px;
  border: 1px solid var(--clr);
  background: #0074C2;
  transition: 0.2s;
}

.fancyBTN:hover .iBTN::before {
  width: 35px;
  left: 20%;
  animation: move 3s infinite;
}

button.fancyBTN .iBTN::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  left: 20%;
  bottom: -2px;
  border: 1px solid var(--clr);
  background: #0074C2;
  transition: 0.2s;
}

.fancyBTN:hover .iBTN::after {
  width: 35px;
  left: 80%;
  animation: move 3s infinite;
}

@keyframes move {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes box {
  0% {
    box-shadow: #27272c;
  }
  50% {
    box-shadow: 0 0 25px var(--clr);
  }
  100% {
    box-shadow: #27272c;
  }
}

.fancyBTN.active,
.fancyBTN:active { /*When the button is clicked*/
  letter-spacing: 0.2rem;
  padding: 1.5rem 5em;
  background: var(--clr);
  color: var(--clr);
  box-shadow: 0 0 35px var(--clr);
  animation: box 3s;
  outline: none !important;
}

/*END OF SELECT CALCULATOR BUTTON */

img.fancyIMG:hover{
  box-shadow: 0 0 222px #00ABE7;
}