#question-container {
  position: fixed;
  width: 40%;
  max-width: 300px;
  text-align: center;
  z-index: 1; /* Ensure it stays on top */
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center them horizontally */
  transition: top 0.5s ease, transform 0.5s ease;
 
}

/* Initial centered position using transform */
.centered-question-bar {
  position: fixed;
  top: 0; /* Align to the top of the viewport */
  left: 50%;
  transform: translate(-50%, 50vh); /* Center vertically using translateY */
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 1; /* Fully visible */
}

/* Top position */
.top-question-bar {
  position: fixed;
  top: 0; /* Keep at top */
  left: 50%;
  transform: translate(-50%, 20px); /* Offset slightly from top */
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 1; /* Fully visible */
}

#questionInput {
  width: 100%;
  padding: 8px 12px; /* Removed padding for the button */
  border: 2px solid #d4af37;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #f5bd02;
  backdrop-filter: blur(10px);
  font-size: 16px;
  outline: none;
  transition: border 0.3s ease;
  position: relative;
  z-index: 1; /* Ensure input stays above other elements */
}

#questionInput:focus {
  border: 2px solid #f5bd02;
}

#askAiBtn {
  outline: none;
  margin-top: 8px;
  width: auto;
  height: auto;
  align-content: center;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid #d4af37;
  display: none;
  align-items: center;
  color: #f5bd02;
  font-size: 8px;
  font-weight: bolder;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1;
}

#askAiBtn:before {
  font-size: 24px; /* Icon size */
}

#askAiBtn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

#askAiBtn:active {
  transform: scale(0.95);
}


/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 10000; /* On top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
  backdrop-filter: blur(8px); /* Glass-like effect */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(240, 171, 0, 0.6); /* Gold border to match theme */
  color: #f5bd02; /* Gold text */
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  width: 80%;
  max-height: 80vh; /* Ensures the modal does not exceed 80% of the viewport height */
  text-align: center;
  box-shadow: 0px 0px 30px rgba(240, 171, 0, 0.8); /* Soft gold glow */
  overflow-y: auto; /* Allows scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
  scrollbar-width: none; /* Firefox */
}

/* Completely hide scrollbar for Chrome, Safari, and Opera */
.modal-content::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE and Edge */
.modal-content {
  -ms-overflow-style: none; /* IE and Edge */
}


.modal-body {
  font-size: 16px;
  color: #f5bd02; /* Gold text */
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  color: #f5bd02; /* Gold color for the close button */
  cursor: pointer;
  transition: all 0.3s ease;
}

.close:hover {
  color: #fff; /* White on hover */
}

/* Animation for modal display */
.modal-content {
  animation: fadeInModal 0.5s ease;
}


.meaning {
  font-size: 16px;
  color: #d4af37;
}


.card-name-analysis {
  font-size: 18px;
  color: #d4af37;
}


.analysis {
  font-style: italic;
  color: #f5bd02;
  margin-top: 20px;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.download-btn {
  display: none; /* Hide button initially */
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid #f5bd02; /* Gold border, remove the white line */
  border-radius: 5px;
  color: #f5bd02;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  position: fixed; /* Fixed positioning for consistent placement */
  bottom: 15px; /* Align to the bottom */
  right: 0%; /* Center horizontally */
  transform: translateX(-50%); /* Center the button exactly */
  transition: transform 0.2s ease;
  z-index: 1000;
  outline: none;
  transition: opacity 0.3s ease; /* Fading transition */
}

.download-btn i {
  margin-left: 0px;
}

.download-btn:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

.download-btn:active {
  transform: scale(0.95) translateX(-50%);
}

@media (max-width: 600px) {
  .download-btn {
    padding: 6px 12px;
    font-size: 12px;
    bottom: 10px;
  }
}

.download-btn.hidden {
  opacity: 0;
}


#quota-info {
  margin-top: 45px;
   font-size: 0.5em;
  color: #f5bd02;
}

.quota-info p {
  font-size: 0.5em;
}
.quota-info hr {
  margin: 11px 0;
  border: none; /* Remove default border */
  height: 1px; /* Set thickness */
  background-color: #fdb502; /* Set desired color */
}