:root {
  --primary: #0f7b3d;
  --primary-dark: #0a5a2c;
  --bot-bg: #f5f7f6;
  --user-bg: linear-gradient(135deg, #0f7b3d, #3bbf77);
  --border-soft: rgba(0, 128, 0, 0.25);
  --shadow-soft: 0 20px 40px rgba(0,0,0,0.15);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}
@media print {
    body {
        display: none !important;
    }
}

 body{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: green;
    background-color: white;
    background-image: url('../img/background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: Courier, monospace;
    font-weight: bold;
 }

.status.success { color: green; }
.status.error { color: red; }

.opacity-shield {
  opacity: 1 !important;
}

#guidance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.guidance-popup {
  background: #fff;
  padding: 20px 24px;
  /*max-width: 320px;*/
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: fadeIn 0.4s ease;
  width: clamp(300px, 92vw, 560px);
  max-width: 560px;
}

.guidance-popup h4 {
  margin-bottom: 10px;
}

.guidance-popup button {
  margin-top: 15px;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

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

@keyframes fadeInGuide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ifa-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  min-width: 15px;

  /* ⬅️ Outlined style instead of filled */
  background: transparent;
  color: #2e7d32;
  border: 1.5px solid #2e7d32;
  border-radius: 50%;

  font-size: 9px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  margin-left: 4px;
  font-style: normal;
  vertical-align: middle;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;

  /* Subtle hover feedback */
  transition: background 0.15s, color 0.15s;
}

.ifa-tip:hover,
.ifa-tip:active {
  background: #2e7d32;
  color: white;
}

/* The tooltip text is now a fixed overlay, not absolute inside the icon */
#ifa-tip-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.45);
  padding: 16px;
  justify-content: center;
  align-items: flex-end;
}

#ifa-tip-overlay.visible {
  display: flex;
}

#ifa-tip-box {
  background: #1b4332;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 12px 12px 12px 12px;
  padding: 16px 18px;
  max-width: 480px;
  width: 100%;
  position: relative;
}

#ifa-tip-box .ifa-tip-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

@media (min-width: 640px) {
  #ifa-tip-overlay {
    background: transparent;
    align-items: flex-start;
    pointer-events: none;
  }

  #ifa-tip-overlay.visible {
    display: block;
    pointer-events: none;
  }

  #ifa-tip-box {
    position: fixed;
    pointer-events: auto;
    width: 260px;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
}


.history-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.history-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.15);
}

.history-note textarea {
  width: 100%;
  min-height: 70px;
  max-height: 200px;     
  resize: vertical;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.2);
  background: #fafafa;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.history-note textarea:focus {
  outline: none;
  border-color: #444;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
  background: #fff;
}

.note-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.6;
  font-style: italic;
}

@media (max-width: 600px) {
  .history-card {
    padding: 12px;
  }

  .history-note textarea {
    font-size: 14px;
    min-height: 80px;
  }
}
.history-note textarea.saved {
  border-color: #3a7;
}

#myHistoryContainer {
  padding-bottom: 80px; 
  position: relative;
}

#historyPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 30px 0;     
  position: static;    
  background: none;
}

#historyPagination button {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  transition: all 0.2s;
}

#historyPagination button:hover {
  background: #e0e0e0;
}

.history-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 10px;
    opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.history-container.show {
  opacity: 1;
  max-height: none;  
  overflow: visible;
}

.history-list {
  padding-right: 5px;  
  margin-bottom: 10px;
}

.history-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  /*gap: 8px;*/
  margin: 30px 0;
  flex-wrap: wrap;
  color: green;
}

#pageNumbers {
  display: flex;
  /*gap: 6px;*/
}

.page-btn{
  border:none;
  background:#eee;
  padding:6px 10px;
  margin:2px;
  cursor:pointer;
  border-radius:4px;
}

.page-btn.active{
  background:#333;
  color:green;
  font-weight:bold;
}

.page-ellipsis{
  padding:6px 6px;
  opacity:0.6;
}

button:disabled{
  opacity:0.4;
  cursor:not-allowed;
}

#historyList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible;    
}

.history-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.history-card:hover {
  transform: translateY(-3px);
}

.history-card h4 {
  margin: 0 0 5px 0;
  font-weight: bold;
}

.history-card p {
  margin: 3px 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.history-card .timestamp {
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
}

#chatbot-container {
  position: fixed;
  bottom: 20px;
  /*right: 20px;*/
  left: 20px; 
  width: 360px;
  height: 420px;

  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  overflow: hidden;

  z-index: 1000;
}

#chatbot-header {
  height: 48px;
  line-height: 48px;

  padding: 0 14px;
  font-weight: 600;
  font-size: 14px;

  background: #f5f6f7;
  border-bottom: 1px solid #dadde1;
}

#chatbot-header button {
  background: #ffffff;
  color: #0f7b3d;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  transition: 
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#chatbot-header button:hover {
  background: #0f7b3d;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 123, 61, 0.35);
  transform: translateY(-1px);
}

#chatbot-header button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(15, 123, 61, 0.25);
}

#chatbot-header button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 123, 61, 0.35);
}

#chatbot-messages {
  position: absolute;
  top: 48px;        
  bottom: 100px;   
  left: 0;
  right: 0;

  padding: 12px;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 8px;

  background: #f0f2f5;
}

.chat-message-wrapper {
  display: flex;
}

.align-left { justify-content: flex-start; }
.align-right { justify-content: flex-end; }

.chat-message {
  max-width: 75%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  text-align: left !important;
}

.user-message {
  background: green;
  color: white;
  border-radius: 18px 18px 4px 18px;
}

.bot-message {
  background: #e4e6eb;
  color: #050505;
  border-radius: 18px 18px 18px 4px;
}

#chatbot-input-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  height: 100px;

  display: flex;
  align-items: flex-end;
  gap: 8px;

  padding: 10px;
  background: #ffffff;

  z-index: 10;
}

#chatbot-input {
  flex: 1;
  height: 80px;
  max-height: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ccd0d5;
  resize: none;
  overflow-y: auto;
  line-height: 1.4;
}


#chatbot-input::placeholder {
  color: #65676b;
  font-size: 13px;
  font-weight: normal;
}

.queryBtn {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: none;

  background: #0f7b3d;
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.queryBtn:hover {
  background: #0a5a2c;
  transform: scale(1.05);
}

#chatbot-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: green;
  color: #fff;
  border: none;

  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

@media (max-width: 768px) {
  #chatbot-container {
    width: 100vw;
    height: 50vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
}

.custom-modal {
  display: none;
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6);
}

.custom-modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
}

.customClose {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.custom-modal-content label {
    display: block;
    text-align: left;
    font-weight: 600; 
}

.success-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 15px 22px;
    border-radius: 10px;
    display: none;
    font-size: 16px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.success-check {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.success-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


 .blink-text {
  animation: blink-animation 1s steps(5, end) infinite;
}
#flag {
  position: fixed;
  top: 2%;
  left: 2%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}
@keyframes blink-animation {
  20%, 100% {
    opacity: 0;
  }
}

.header {
  width: 100%;
  text-align: right;
  padding: 10px;
}
.language-selector {
  padding: 5px;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.lang-label {
    position: absolute;
    top: 50%;
    font-size: 12px;
    font-weight: bold;
    color: white;
    transform: translateY(-50%);
    pointer-events: none;
}

.lang-label.left {
    left: 8px;
}

.lang-label.right {
    right: 8px;
}

.languageBtn {
    position: fixed;
    top: 0.5px;
    left: 10px;
    color: green;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 5px;
    background: white;
    z-index: 9999;

    max-width: 65vw;
    white-space: nowrap;
    overflow: hidden;
}

.languageBtn select {
    border: none;
    outline: none;
    color: green;
    font-weight: bold;
    background: transparent;
    max-width: 100px;
}

@media (max-width: 380px) {

    .historyBtn {
        font-size: 12px;
        padding: 3px 6px !important;
    }

    .languageBtn {
        font-size: 12px;
    }

}

.historyBtn {
    position: fixed;
    top: 0.5px;
    right: 10px; 
    border: 1px solid green;
    color: green;
    font-weight: bold;
    padding: 4px 8px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.9;
    transition: 0.2s;
}


.historyBtn:hover {
    opacity: 1;
}

@media (max-width: 360px) {

    .historyBtn {
        font-size: 0;
    }

    .historyBtn::before {
        content: "History ▼";
        font-size: 12px;
    }

}


.moving-bg {
  position: relative;
  top: -20px;
  background-size: contain;
  animation: moveAround 10s linear infinite;
  z-index: 1;
}

#adminPasswordContainer {
  display: none; 
  position: relative;
  z-index: 0;
}

@keyframes moveAround {
  0%   { transform: translate(-10px, -10px); }
  25%  { transform: translate(0px, 0px); }
  50%  { transform: translate(-20px, -20px); }
  75%  { transform: translate(0px, -20px); }
  100% { transform: translate(-10px, -10px); }
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    background-image: url('../img/bird.gif');
    background-position: center;
    background-repeat: no-repeat;
    background-size: clamp(80px, 30%, 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden; 
}

.admin{
    border: 1px solid green; 
}


.numerology{
    font-family: Courier, monospace;
     font-weight: bold;
    text-align: center;
    margin-top: 5vh;
  
}
h1 {
    margin-bottom: 20px;
}
/*
#birthdate-box {
        margin-bottom: 10px;
    }  

input#birthdate[type="text"],
input#birthdate[type="date"]  {
    width: 80%;
    max-width: 250px;
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}  */   

#birthdate-box {
  margin-bottom: 10px;
}

input#birthdate[type="text"],
input#birthdate[type="date"] {
  width: 80%;
  max-width: 250px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: green;
  font-family: Courier, monospace;
  font-weight: bold;
}

button {
    font-size: 16px;
    background-color: #4caf50;
    color: green;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.3);
    transform: scale(1.05);
}

.footer {
    color: black;
    text-align: center;
}

.footer h4 {
    color: green;
}

.footer a {
    color: #f8b400;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer ul {
    padding: 0;
    list-style: none;
}

.footer .list-inline li {
    display: inline;
    margin: 0 10px;
}

.footer .list-inline li a {
    color: #fff;
    font-size: 20px;
}

.footer .list-inline li a:hover {
    color: #f8b400;
}

.calculator {
    position: relative;
    width: 200px;
    height: 200px;
    margin: auto;
    background-image: url('../img/random.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 333s linear infinite;
}

.calculator button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px dotted green;
    background-color: white;
    color: green;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    transition: background-color 0.3s ease-in-out;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.calculator button:hover {
    background-color: white;
    border: 1px solid green;
    color: green;
}

.calculator button:focus {
    outline: none;
    background-color: white;
    border: 1px solid green;
    color: green;
}

.calculator button.clicked {
    font-weight: bold;
}

.app-btn {
    border: 1px solid green; 
    color: green; 
    background-color: white; 
    font-weight: bold;
}


.odusign {
    font-family: Courier, monospace;
    font-weight: bold;
    text-align: center;
    font-size: 20px;
}

.odu-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(50%, 220px);
  margin: auto;
}
.odu-header {
    position: absolute;
    top: -20px;
    z-index: 2;
    width: 92px;
}

.odu-footer {
    position: absolute;
    bottom: -23px;
    z-index: 2;
    width: 100px;
}

.odu-line-container {
    display: flex;
    justify-content: center;
    gap: 29px;
    margin: 4px 0;
    position: relative;
    z-index: 1;
}

.odu-line {
    width: 30px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
}

.odu-open {
    background-image: url("../img/openOpele.png");
}

.odu-close {
    background-image: url("../img/closeOpele.png");
}

.align-left {
    justify-content: flex-start;
}

.align-right {
    justify-content: flex-end;
}

 .modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
  }
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
  }
  .close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  .close-btn:hover,
  .close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  .cancel-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
  }
  #payButton {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
  }

  .socials a {
    color: green;
  }

    .socials a:hover {
    text-decoration: none;
  }

  .socials img {
    height: 25px;
  }

  #waveform-container {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 30px;
  align-items: end;
}

#waveform-container.paused {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

#waveform-container.paused .wave-bar {
  animation-play-state: paused !important;
}

.wave-bar {
  width: 4px;
  height: 100%;
  background: green;
  animation: pulse 1s infinite ease-in-out;
}

.wave-bar:nth-child(2) {
  animation-delay: 0.1s;
}
.wave-bar:nth-child(3) {
  animation-delay: 0.2s;
}
.wave-bar:nth-child(4) {
  animation-delay: 0.3s;
}
.wave-bar:nth-child(5) {
  animation-delay: 0.4s;
}

  .termsModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
  }

  .termsModal-content {
    background: #fff;
    margin: 5vh auto;
    padding: 1.5em;
    border-radius: 10px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.6;
  }

  .termsClose {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: green;
    cursor: pointer;
    margin-top: -10px;
    margin-right: -10px;
  }

  .termsClose:hover {
    color: green;
  }

    .aboutModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
  }

  .aboutModal-content {
    background: #fff;
    margin: 5vh auto;
    padding: 1.5em;
    border-radius: 10px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.6;
  }

  .aboutClose {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: green;
    cursor: pointer;
    margin-top: -10px;
    margin-right: -10px;
  }

  .aboutClose:hover {
    color: green;
  }

  #translate-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #222;
    border: none;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.85;
    transition: 0.2s;
}
#translate-btn:hover {
    opacity: 1;
    background: #444;
}

.lang {
    position: fixed;
    top: 5px;
    left: 10px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.85;
    transition: 0.2s;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: green;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(36px);
}


.donate-btn {
  color: green;
  text-decoration: none;
  margin-top: 2vh;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.25s ease;
  background-color: white;
  border: 1px solid green;
  font-weight: bold;
  display: inline-block;
}

.donate-btn:hover {
  text-decoration: none !important;
  background-color: white;
  color: black;
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.3);
  transform: scale(1.05);
}

.heart {
  display: inline-block;
  animation: pulse 1.2s infinite;
}

.guidance-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f9f9f9;
  font-style: italic;
  font-size: 14px;
  color: black;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 8px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: green;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

.kb-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}

.kb-page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.kb-ellipsis {
  padding: 0 2px;
  font-size: 13px;
  color: #888;
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.kb-page-btn {
  border: 1px solid #d4edda;
  background: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-family: Courier, monospace;
  font-weight: bold;
  font-size: 13px;
  color: #1b4332;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.kb-page-btn:hover:not(:disabled) {
  background: #e8f5e8;
  border-color: #2e7d32;
  transform: none;
  box-shadow: none;
}

.kb-page-btn.active {
  background: #2e7d32;
  color: #ffffff;
  border-color: #2e7d32;
}

.kb-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.kb-page-ellipsis {
  padding: 0 4px;
  font-size: 13px;
  color: #888;
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.kb-page-info {
  font-size: 11px;
  margin-top: 8px;
  color: #888;
  font-style: italic;
  font-weight: normal;
  letter-spacing: 0.3px;
}

#pageNumbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.history-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 16px 0;
}

.kb-media {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kb-media-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #008000;
  background: #f8fff8;
  color: black;
  cursor: pointer;
  font-size: 14px;
}

.kb-sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 300px;
  height: 100vh;
  background: #fff;
  border-left: 2px solid #ddd;
  box-shadow: -3px 0 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transition: right 0.4s ease-in-out;
  z-index: 9999;
  padding: 10px 15px;
  font-family: 'Poppins', sans-serif;
}

.kb-sidebar.active {
  right: 0;
}

.kb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ccc;
}

.kb-btn, .kb-toggle {
  background: #00796b;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.2s;
}
.kb-btn:hover, .kb-toggle:hover {
  background: #004d40;
}

.kb-toggle {
  position: fixed;
  bottom: 20px;
  right: 380px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9998;
}

@media (max-width: 768px) {
  .kb-sidebar {
    width: 90%;
    right: -100%;
  }
  .kb-sidebar.active {
    right: 0;
  }
  .kb-toggle {
    right: 20px;
    bottom: 80px;
  }
}

#kb-search {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.kb-item {
  padding: 8px 10px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.kb-item:hover {
  background: #eaf6ff;
}

.feedback-section {
  animation: fadeIn 0.3s ease-in-out;
}

.feedback-btn:hover {
  transform: scale(1.2);
  transition: 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes buttonPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.donate-btn.attention {
  animation: buttonPulse 1.5s ease-in-out infinite;
}

@media (max-width: 480px) {
    .switch {
        width: 60px;
        height: 30px;
    }

    .slider:before {
        height: 22px;
        width: 22px;
        bottom: 4px;
        left: 4px;
    }

    input:checked + .slider:before {
        transform: translateX(30px);
    }

    .lang-label {
        font-size: 10px;
    }

    #flag {
  position: fixed;
  /*top: 35%;*/
  top: 2%;
  left: 5%;
  transform: translate(-50%, -50%); 
  z-index: 1000;
}
}

  @media (max-width: 600px) {
    .termsModal-content {
      padding: 1em;
      font-size: 0.95rem;
    }
  }
  @media (max-width: 600px) {
    .aboutModal-content {
      padding: 1em;
      font-size: 0.95rem;
    }
  }

@keyframes pulse {
  0%, 100% { height: 10%; }
  50% { height: 100%; }
}

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .ifaDetails {
    margin-top: -10px;
    }

      #audioModal div {
    width: 95%;
    font-size: 14px;
  }

#flag {
  position: fixed;
  /*top: 35%;*/
  top: 2%;
  left: 5%;
  transform: translate(-50%, -50%); 
  z-index: 1000;
}

.moving-bg {
        width: clamp(80px, 30%, 200px);
        height: auto;
    }

}

@media (min-width: 768px) and (max-width: 1024px) {

  .app-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .app-section > div {
    width: 100% !important;
    max-width: 700px;
    margin-bottom: 25px;
  }

  #main-content {
    text-align: left;
  }

  .moving-bg {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto 10px auto;
    display: block;
  }

  .calculator {
    margin: 20px auto;
    position: relative;
  }

  .numerology {
    margin-top: 10px;
    text-align: center;
  }

  select,
  input,
  button {
    font-size: 16px;
    padding: 10px;
  }

  #divinationResultContainer {
    width: 100%;
    padding: 10px 20px;
  }

  .kb-sidebar {
    width: 85%;
  }

  .kb-toggle {
    right: 20px;
  }

  .odu-container {
    width: 90%;
  }
}

.acc-header:hover {
  transform: none !important;
  box-shadow: none !important;
}