@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

@keyframes slideInLeft {
  0% {
    opacity: 0%;
/*    transform: scale(0.9);   */
  }
  100% {
    opacity: 100%;
  /*  transform: scale(1);  */
  }
}

body {
  animation: 1s ease-out 0s 1 slideInLeft;
  scroll-behavior: smooth;
  max-height: 100vh;
  max-width: 768px;
  margin: 0 auto;
  background: #2b2b33;
  color: #d8d1ff;
  text-align: center;
  font-family: "Poppins", sans-serif;
  justify-content: center;
  font-size: larger; /* Increase the font size */
}

::selection {
  color: rgb(0, 0, 0);
  background: #a686ff;
  
}

img {
  width: 6rem;
  margin: 0 0;
  margin-top: 10%;
  filter: drop-shadow(5px 10px 20px #ac7f17);
  transition: 1s ease-in-out;
}
img:hover {
  transform: scale(1.2);
  filter: drop-shadow(5px 10px 30px #fad888);
}

h2 {
  margin-top: 5%;
  line-height: 0%;
  color: #8069ff;
  text-shadow: 10px 5px 20px #473897;
  transition: 200ms linear;
}

h2:hover {
  color: white;
}

a {
  font-size: small;
  line-height: 0%;
  color: #d8d1ff;
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: #8069ff;
}

.links {
  margin: 0 1em;
}
#a2hs {
  font-size: 1rem;
  font-weight: bold;
  display: none;
}

label {
  font-style: oblique;
  padding: 5px 20px;
  font-size: 15px;
}

input,
button {
  width: 90%;
  margin: 5px auto;
  color: white;
  border: none;
  background: #2b2b33;
  border-radius: 5px;
}

input {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  outline: 1px solid #393940;
  margin: 10px auto;
  padding: 15px;
  transition: 0.2s ease-in-out;
  box-shadow: 6.7px 6.7px 5.3px rgba(0, 0, 0, 0.008),
    22.3px 22.3px 17.9px rgba(0, 0, 0, 0.012),
    100px 100px 80px rgba(0, 0, 0, 0.02);
}

input:hover {
  opacity: 0.7;
}

input:focus,
input.form-control:focus {
  outline: 2px solid #696970;
  opacity: 0.4;
  color: white;
}

input:placeholder-shown {
  font-size: 14px;
  font-weight: normal;
  background: #45454e;
  outline: 1px dashed #6d6d75;
  
}

.row {
  padding: 0.5rem 2rem;
  margin: 20px 0; /* Increase the spacing between rows */
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-bottom: 10rem;
}
button {
  outline: 0px solid #5e47de;
  font-weight: 600;
  bottom: 50px; /* anchor the button to the bottom of the viewport */
  left: 0; /* anchor the button to the left of the viewport */
  right: 0; /* anchor the button to the right of the viewport */
  margin: 0px; /* center the button horizontally */
  padding: 15px 0px;
  background: #8069ff;
  color: white;
  box-shadow: 6.7px 6.7px 5.3px rgba(0, 0, 0, 0.008),
    22.3px 22.3px 17.9px rgba(0, 0, 0, 0.012),
    100px 100px 80px rgba(0, 0, 0, 0.02);
  transition: 0.5s ease-in-out;
}
button:hover {
  font-size: 15px;
  cursor: pointer;
  background: #5e47de;
  outline: 2px solid #9c8bfd;
}

.row-c {
  overflow-y: hidden;
  background: #4900b749;
  font-weight: 600;
  position: fixed; /* position the button fixed to the bottom of the viewport */
  bottom: 0; /* anchor the button to the bottom of the viewport */
  left: 0; /* anchor the button to the left of the viewport */
  right: 0; /* anchor the button to the right of the viewport */
  margin: 0;

  padding: 70px 20px 0px 20px;
  padding-bottom: 10px;
  /* set the top of the button to the height of the viewport minus the height of the button */
  top: calc(93vh - 10rem);

  /* set the height of the button to the height of the viewport minus the padding */
  height: calc(90vh - 10px);

  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  /* fallback */
  -webkit-mask: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  mask: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  transition: all 0.5s ease-in-out;

}


.inputs {
  color: white;
  margin: 10px 0;
}

#result {
  position: relative; /* add this to enable the use of the top property */
  top: 0; /* set the initial top position to 0 */
  margin: 0px 20px;
  transform: scale(1);
  padding: 5px 10px;
  opacity: 0.8;
  transition: all 0.4s ease-in-out;
}

/* Add the "animated" class to the result element to apply the animation */
#result.animated {
  top: -5%; /* move the element up by 20% */
  margin-bottom: 2rem;
  opacity: 1;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  color: white;
  transform: scale(1.3);
}

#raw-c.result {
  background: #bb00ff9d;
}


#alert-box {

  position: fixed;
  bottom: 20%;
  left: 0;
  width: 100%;
  height: 50px;
  color: rgb(255, 70, 70);
  text-align: center;
  line-height: 50px;
  z-index: 50;
  transition: all 200ms linear;
  opacity: 0;
}

#alert-box.show {
  opacity: 1;
}
