/* File: wp-content/themes/your-child-theme/style.css or Additional CSS */

/* Styling the main container for the response */
.api-response-area {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #0073aa; /* WordPress primary blue */
    background-color: #e5f2ff; /* Light blue background */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Georgia', serif; /* A more "sage" font style */
}

/* Styling the title within the response area */
.api-response-area h3 {
    color: #005177;
    border-bottom: 1px solid #0073aa;
    padding-bottom: 10px;
}

/* Styling the actual answer text */
.api-response-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    /* Added for the typing effect */
    overflow: hidden; /* Ensures the text is only as wide as its container when typing */
    white-space: pre-wrap; /* Keeps formatting but wraps text naturally */
    border-right: .15em solid orange; /* The "typing cursor" */
    padding-right: 5px;
}

/* --- Interesting Loading Spinner CSS --- */
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0073aa;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

