body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000;
  color: #c0c0c0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(128, 0, 128, 0.7);
  width: 80%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  margin-top: 500px;
  margin-bottom: 10px;
}

h1 {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #dda0dd;
  animation: colorPulse 3s infinite;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 15px;
  text-align: left;
  color: #dda0dd;
  font-weight: bold;
}

input {
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #444444;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #ffffff;
  transition: border 0.3s ease;
}

textarea {
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #444444;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #ffffff;
  transition: border 0.3s ease;
  min-height: 150px;
}

#content {
  min-height: 150px;
}

input::placeholder, textarea::placeholder {
  color: #888888;
}

input:focus, textarea:focus {
  border: 1px solid #800080;
  outline: none;
}

button {
  margin-top: 25px;
  padding: 12px;
  background-color: #800080;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #9932cc;
  transform: scale(1.05);
}

.qr-code-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

#qrcode {
  /* Ensures the canvas is always visible */
}

.download-button {
  background-color: #4b0082;
}

.download-button:hover {
  background-color: #6a5acd;
}

footer {
  position: relative;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

footer p {
  font-size: 14px;
  color: white;
}

#waitGif {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  width: 150px;
  height: 150px;
  z-index: 99999999999;
  display: none;
}

.think-text {
  position: fixed;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: monospace;
  font-size: 16px;
  white-space: pre-wrap;
  z-index: 99999999999;
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes colorPulse {
  0% { color: #dda0dd; }
  50% { color: #9932cc; }
  100% { color: #dda0dd; }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal-content {
  background-color: #1a1a1a;
  margin: 15% auto;
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 8px 24px rgba(128, 0, 128, 0.7);
}

.instruction-set {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 5px 0;
  background-color: #2a2a2a;
  border-radius: 6px;
}

.instructions-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.instructions-actions button {
  flex: 1;
  margin-top: 0;
}
