@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;
 }

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

.header {
  width: 100%;
  text-align: right; /* Aligns child elements to the right */
  padding: 10px;
}
.language-selector {
  padding: 5px;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 5px;
}
/*.moving-bg {
  position: relative;
  top: -20px;  
  background-size: contain;
  animation: moveAround 10s linear infinite;
}*/
.moving-bg {
  position: relative;
  top: -20px;
  background-size: contain;
  animation: moveAround 10s linear infinite;
  z-index: 1; /* on top at first (to catch taps) */
}

#adminPasswordContainer {
  display: none;  /* hidden until unlocked */
  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); }
}

/* Loader Styling */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    background-image: url('../img/bird.gif');
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden; 
}

.admin{
    border: 1px solid green; 
/*    display: none;*/
}

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

.numerology{
    font-family: Courier, monospace;
     font-weight: bold;
    text-align: center;
    margin-top: 5vh;
/*    font-size: 20px;*/
  
}
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;
}     

button {
    font-size: 16px;
    background-color: #4caf50;
    color: white;
    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;
/*    background-position: 100px -50px;*/

    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;
}

/* Container for Od첫 images */
.odu-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
/*    width: fit-content;*/
    width: 50%;
    margin: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Header image (overlapping top) */
.odu-header {
    position: absolute;
    top: -25px; /* Adjust this value to move it up/down */
    z-index: 2;
    width: 80px;
}

/* Footer image (overlapping bottom) */
.odu-footer {
    position: absolute;
    bottom: -25px; /* Adjust this value to move it up/down */
    z-index: 2;
    width: 80px;
}

/* Individual Od첫 lines */
.odu-line-container {
    display: flex;
    justify-content: center;
    gap: 22px;
    position: relative;
    z-index: 1;
}

/* Od첫 image size */
.odu-line {
    width: 30px;
    height: 50px;
}

#chatbot-container {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    background: white;
    border: 2px solid #008000;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
#chatbot-header {
    background: white;
    border-bottom: 1px solid green;
    color: green;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* Messages area */
#chatbot-messages {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Wrapper for message alignment */
.chat-message-wrapper {
    display: flex;
    width: 100%;
}

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

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

/* Message bubble */
.chat-message {
    padding: 10px 14px;
    max-width: 75%;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    border-radius: 15px;
}

.chat-message strong { font-weight: bold; }
.chat-message em { font-style: italic; }
.chat-message ul { padding-left: 1.2em; margin-top: 5px; }
.chat-message li { margin-bottom: 4px; }
.chat-message pre { background: #f0f0f0; padding: 10px; border-radius: 5px; overflow-x: auto; }
.chat-message code { background: #eee; padding: 2px 4px; border-radius: 3px; }
.chat-message blockquote {
  border-left: 4px solid #ccc;
  margin: 10px 0;
  padding-left: 10px;
  color: #555;
  font-style: italic;
}

/* User messages (aligned right, green) */
.user-message {
    background-color: #4CAF50;
    color: white;
    border-radius: 15px 15px 0 15px;
    text-align: justify; /* right text alignment */
}

/* Bot messages (aligned left, light grey) */
.bot-message {
    background-color: #f1f1f1;
    color: black;
    border-radius: 15px 15px 15px 0;
    text-align: left; /* left text alignment */
}


/* Input section */
#chatbot-input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid green;
    background: white;
}

#chatbot-input {
    flex-grow: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid green;
    border-radius: 5px;
}

#chatbot-send {
    padding: 8px 12px;
    margin-left: 5px;
    font-size: 14px;
    background: #008000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#chatbot-send:hover {
    background: #006400;
}

/* Floating toggle button */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #008000;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#chatbot-toggle:hover {
    background: #006400;
}

 .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;
}


/* Pause animation when .paused is applied */
#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;
    /*color: white;*/
    border: none;
    /*padding: 10px 16px;*/
    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;
    /*background: #222;*/
    /*color: white;*/
    border: none;
    /*padding: 10px 16px;*/
    font-size: 14px;
    /*border-radius: 8px;*/
    cursor: pointer;
    z-index: 9999;
    opacity: 0.85;
    transition: 0.2s;
/*    width: 70px;
    height: 34px;*/
}

.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%;
}

/* Checked state */
input:checked + .slider {
    background-color: #2196F3;
}

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

/* Language labels */
.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;
}

.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 animation */
.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; /* or any brand color */
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

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

/* Whole button pulse animation */
@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;
}

/* Mobile scaling */
@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%); /* centers vertically & horizontally */
  z-index: 1000;
}
}
    /* Mobile-friendly typography */
  @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;
    }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    #chatbot-container {
        width: 90vw;
        height: 80vh;
        bottom: 10px;
        right: 10px;
    }

    #chatbot-toggle {
        bottom: 15px;
        right: 15px;
    }

    .ifaDetails {
    margin-top: -10px;
    }

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

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

}
