/* Use a custom font */
@import url("https://fonts.googleapis.com/css?family=Poppins:400,600&display=swap");

/* Set the font and background color for the body */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

/* Container for the content */
.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
}

/* Style the input element */
.input {
  display: block;
  margin: 20px auto;
  width: 80%;
  padding: 12px;
  border: none;
  outline: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input:focus {
  width: 90%;
  border-color: #ffcc00;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(0);
}

/* Style the qr-code element */
.qr {
  display: block;
  margin: 20px auto;
  width: 200px;
  height: 200px;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative; /* For loading message positioning */
}

/* Loading message style */
.loading {
  color: #333;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Style the download button */
.btn {
  display: inline-block;
  margin: 20px auto;
  padding: 10px 20px;
  background: #ffcc00;
  color: #333;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn:hover:not(:disabled) {
  background: #ffdd33;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

/* Style buttons for QR code styles */
.style-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.style-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.style-btn.active {
  background: #ffcc00;
  color: #333;
}

.style-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Add some animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation: fadeIn 0.8s ease-out;
}
