@font-face {
  font-family: HK Grotesk;
  src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Regular.otf?v=1603136326027")
    format("opentype");
}

@font-face {
  font-family: HK Grotesk;
  font-weight: bold;
  src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Bold.otf?v=1603136323437")
    format("opentype");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: HK Grotesk;
}

.background {
  width: 100%;
  height: 100%;
  position: fixed;
  background: url(/clouds-transparent.png) no-repeat center center,
    linear-gradient(180deg, rgb(255, 255, 255) 0%, rgb(180, 227, 241) 100%);
  background-size: cover;
  mix-blend-mode: screen;
  z-index: -1;
}

.wrapper {
  max-width: 640px;
  margin: 0px auto;
}

.supplemental {
  color: gray;
  font-size: 11px;
}

.assistant,
.user {
  padding: 5px;
  margin: 10px 0;
}

.assistant {
  display: flex;
  flex-direction: row;
  align-items: end;
  animation-duration:0.5s;
  animation-name: slidein;
}

.assistant .avatar {
  flex: 0 0 auto;
  height: 32px;
  width: 32px;
  background-image: url("/holly-avatar.png");
  background-size: cover;
  border-radius: 32px;
  border: 1px solid orange;
  background-color: white;
  margin-right: 10px;
}

.assistant .text {
  background: rgb(255, 255, 255);
  border: 2px solid #f2f2f2;
  border-radius: 10px;
  border-bottom-right-radius: 0;
  color: #302d3c;
  margin: 0.2rem;
  margin-right: 0;
  padding: 0px 16px;
  box-shadow: 0px 4px 12px -4px rgba(33, 32, 56, 0.08);
  word-break: break-word;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 12px;
}

.user {
  display: flex;
  flex-direction: row-reverse;
}

.user .text {
  position: relative;
  display: inline-block;
  background: rgb(255, 255, 255);
  border: 2px solid #f2f2f2;
  border-radius: 10px;
  border-bottom-right-radius: 0;
  color: #302d3c;
  margin: 0.2rem;
  margin-right: 0;
  padding: 0px 16px;
  box-shadow: 0px 4px 12px -4px rgba(33, 32, 56, 0.08);
  word-break: break-word;
  background: #f99769;
  border: 2px solid #fa651a;
}

.userPrompt {
  padding-bottom: 20px;
  padding-left: 50px;
}

.userPrompt form {
  display: flex;
  flex-direction: row;
}

.userPrompt input {
  width: 100%;
  padding: 20px;
  border: 1px solid white;
  background-color: rgb(222, 236, 239);
  border-radius: 20px;
  font-size: 16px;
}

.userPrompt input:focus {
  outline: none;
}

.userPrompt button {
  cursor: pointer;
  background-color: #f99769;
  color: black;
  border: none;
  font-family: inherit;
  font-size: 16px;
  margin: 5px;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px #f99769 solid;
}

.loading {
  justify-content: center;
  font-size: 24px; /* Adjust font size as needed */
}

.loading::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 5px solid #ccc;
  border-color: #f99769 transparent white transparent;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.header .icon {
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    line-height: 24px;
}

.header .icon:hover {
    color: #f99769;
}

.modal {
    display: flex; /* Ensure modal content is centered */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1000;
}

.modal .modal-content {
    background: white; /* White background for modal content */
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow for better visibility */
    position: relative; /* Ensure close button is positioned relative to this container */
    max-height: 80vh; /* Limit the height of the modal content */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Adjusted close button styles to position it within the white modal content area and make it sticky */
.modal .close-button {
    position: sticky; /* Make the button sticky */
    top: 5px; /* Keep original top spacing */
    /* right: 10px; */ /* Sticky usually works with top/bottom/left/right for one scroll direction, right might not be needed or might behave unexpectedly with top */
    /* Ensure it's aligned to the right, float might be an option or flexbox on a parent */
    float: right; /* Use float to keep it to the right */
    background: white; /* Add a background to prevent text from showing through */
    padding: 10px; /* Add some padding so it's not flush against the edge */
    z-index: 10;  /* Ensure it stays above modal content, already there */
}

.modal .close-button:hover {
    color: #f99769;
}

/* Clear the float after the button if necessary, or adjust modal-content's first child's margin-top */
.modal .modal-content h2 {
    clear: both; /* Ensure h2 doesn't wrap around the floated button */
    padding-top: 10px; /* Add some space above the title if button is tall */
}

/* Adjusted the list style in the info modal */
.modal .modal-content ul {
    text-align: left; /* Align text to the left */
    list-style: none; /* Remove default bullet points */
    padding-left: 0; /* Remove default padding */
}

.modal .modal-content ul li {
    position: relative; /* Position for custom bullet */
    padding-left: 1.5em; /* Space for custom bullet */
    margin-bottom: 0.5em; /* Add spacing between list items */
}

.modal .modal-content ul li::before {
    content: "\1F538"; /* Orange diamond emoji */
    position: absolute;
    left: 0;
    top: 0;
}
