/* Make .container responsive and centered, but no fixed width */
.container {
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
  font-family: sans-serif;
  border: 2px solid #ccc;
  padding: 20px;
  border-radius: 8px;
}

/* Headings */
h1, h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}

/* .important-note styling */
.important-note {
  font-size: 1.0em;
  color: #aa0000;
  background: #ffeaea;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ff9999;
  border-radius: 4px;
}

/* Email section layout */
.email-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

#email-address {
  font-weight: bold;
  font-size: 1.2em;
  color: #555;
}

/* Buttons: gradient + animation + more visible "active" */
button {
  background: linear-gradient(45deg, #fc466b, #3f5efb);
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
button:active {
  transform: translateY(0);
  box-shadow: none;
  background: linear-gradient(45deg, #9b9dfa, #9b9dfa);
}
.close-btn {
  background: linear-gradient(45deg, #999, #ccc);
}

/* Timer display: stylish countdown */
.timer-display {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #444;
  margin-bottom: 10px;
}

/* Checking message */
.checking-message {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #004400;
  background: #e9ffe9;
  border: 1px solid #a6f3a6;
  padding: 8px;
  border-radius: 4px;
}

/* Hide element with .hidden */
.hidden {
  display: none!important;
}

/* Inbox styling */
#messages-container {
  margin-top: 15px;
}

/* Make each message more colorful and clearly separated */
.message {
  background-color: #f0f7ff;
  border: 1px solid #cde2ff;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.message:hover {
  background-color: #e0efff;
}
.message-subject {
  font-weight: bold;
  color: #1a1a1a;
  font-size: 1.1em;
  margin-bottom: 4px;
}
.message-from {
  color: #555;
  font-size: 0.9em;
}

/* Full mail view container */
#mail-view {
  border: 2px solid #ccc;
  padding: 10px;
  margin-top: 20px;
  border-radius: 5px;
  background: #fafafa;
}
.mail-content {
  width: 100%;
  height: 500px;
  border: 1px solid #ddd;
  margin: 10px 0;
}
#attachments {
  margin-top: 10px;
}
.attachment-link {
  display: block;
  margin: 5px 0;
  text-decoration: none;
  color: #0066cc;
}
.attachment-link:hover {
  text-decoration: underline;
}
.theTitleH1 {
  background: linear-gradient(45deg, #fc466b, #3f5efb);
  background-size: 200% 200%;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  animation: gradientShift 3s ease infinite alternate;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.theTitleH2 {
  background: linear-gradient(45deg, #2196F3, #4CAF50);
  background-size: 200% 200%;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  animation: h2GradientShift 4s ease infinite alternate;
}
@keyframes h2GradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.mainarea {
  border: 2px dashed #3f5efb;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  background: #fafaff;
  box-shadow: 0 2px 8px rgba(63, 94, 251, 0.1);
}

/* Loading animation area */
.loading-animation {
  /* Enough space to show at least 5 messages worth of height if needed */
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

/* We wrap the spinner in an extra div for easy positioning */
.animation-wrapper {
  text-align: center;
}

/* The rotating circle */
.spinner-circle {
  width: 80px;
  height: 80px;
  border: 10px solid #ddd;
  border-top-color: #3f5efb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* The text inside the circle area */
.spinner-text {
  margin-top: 10px;
  font-size: 1em;
  color: #666;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* on top of everything */
}

.popup-content {
  background: #fff;
  padding: 1.5rem;
  max-width: 300px;
  text-align: center;
  border-radius: 8px;
}

.hiddenpopup {
  display: none !important;
}

.button-group {
  margin-top: 1rem;
}

.button-group button {
  margin: 0 0.5rem;
}
#popupWaitBtn{
    margin-bottom:10px!important;
    background: linear-gradient(135deg, #66BB6A, #43A047); 
}

#popupChangeBtn {
  background: linear-gradient(135deg, #ff5252, #e91e63);
}

/* Verification Popup style overrides */
#verificationPopup .popup-content {
  width: 300px;
  background: #f9f9ff;
  border: 2px solid #3f5efb;
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}

#verificationPopup .verification-title {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

#verificationPopup .verification-question {
  background-color: #e0e7ff;
  border: 1px solid #bfc8ff;
  padding: 8px;
  margin: 8px 0;
  border-radius: 5px;
  font-weight: bold;
  color: #333;
}

#verificationPopup .verification-input label {
  display: inline-block;
  margin: 5px 0;
  font-size: 0.95em;
  color: #333;
}

#verificationPopup .verification-input input[type="number"] {
  width: 60px;
  padding: 5px;
  margin-left: 5px;
}

#verificationPopup .button-group {
  margin-top: 1.2rem;
}

#verificationPopup .button-group button {
  background: linear-gradient(135deg, #66bb6a, #43a047);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin: 0 5px;
}
#verificationPopup .button-group button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
#verificationPopup .button-group button:active {
  transform: translateY(0);
  box-shadow: none;
}
