body {
  background-color: rgb(145, 148, 150);
  backdrop-filter: blur(4px);
}




.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's on top of other content */
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3); /* Light color for outer ring */
  border-top: 4px solid #3498db; /* Blue color for spinner */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

/* Keyframes for spinning animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide the content until the page is loaded */
.content {
  display: none;
  padding: 20px;
}

/* Simple page content styles */
.content h1 {
  color: #333;
}
.content p {
  font-size: 18px;
}

/* Long page content example */
.long-content {
  height: 2000px;
  background-color: #f0f0f0;
  padding: 20px;
}



.box {
  text-align: center;
  place-items: center;
  position: absolute;
  top: 100px;
  background-color: rgb(223, 217, 211);
  padding: 20px;
  width: calc(100% - 40px);
  max-width: 350px;
  border-radius: 10px;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.box button {
  padding: 7px 20px;
  width: 90%;
  border-radius: 3px;
  outline: none;
  border: none;
  margin-top: 40px;
  cursor: pointer;
  background-color: rgb(66, 66, 240);
  color: white;
  
}

.cont {
  margin-top: 30px;
  position: relative;
  z-index: 4;
  width: 100%;
}

input {
  width: 100%;
  border: none;
  color: rgb(46, 45, 45);
  background-color: transparent;
  border-bottom: 2px solid rgb(58, 57, 57);
  outline: none;
  z-index: 4;
  box-sizing: border-box;
  padding: 5px;
}

input:focus {
  outline: none;
}

input:focus ~ .float,
input:valid ~ .float {
  top: -20px;
  font-size: 12px;
  color: rgb(66, 66, 240);
  z-index: 4;
}

.float {
  position: absolute;
  font-size: 14px;
  color: rgb(107, 102, 102);
  pointer-events: none;
  left: 5px;
  top: 0px;
  transition: all 0.2s ease-out;
  z-index: 4;
}

.box h2 {
  text-align: left !important;
  color: rgb(253, 43, 43);
  font-size: 15px;
  animation: warning 3s ease-in-out;
  margin: 10px 0;
}

#qrImage {
  margin-top: 60px;
  animation: appear 2s ease-in-out;
  max-width: 100%;
  height: auto;
}

@keyframes appear {
  0% {
      scale: 0;
      opacity: 0;
  }
  100% {
      scale: 1;
      opacity: 1;
  }
}

@keyframes warning {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

@keyframes shake {
  0% {
      transform: translateX(0);
  }
  25% {
      transform: translateX(-2px);
  }
  50% {
      transform: translateX(0);
  }
  75% {
      transform: translateX(2px);
  }
  100% {
      transform: translateX(0);
  }
}

.error {
  animation: shake 0.1s linear 10;
}

/* Media Queries */
@media only screen and (min-width: 768px) {
  .box {
      top: 200px;
      width: 350px;
      transform: translateX(-50%);
  }
  
  .box button {
      padding: 7px 150px;
  }
}

@media only screen and (max-width: 480px) {
  .box {
      top: 50px;
      padding: 15px;
  }
  
  .box h2 {
      font-size: 13px;
  }
  
  input {
      padding: 5px 0;
  }
}