:root {
  --white: #fff;
  --main-primary: #3730a3;
  --main-tertiary: #1e1b4b;
  --main-secondary: #f4f4f4;
  --black: #000;
  --gray-50: #f9f9f9;
  --gray-100: #ececec;
  --gray-200: #e3e3e3;
  --gray-300: #cdcdcd;
  --gray-400: #b4b4b4;
  --gray-500: #9b9b9b;
  --gray-600: #676767;
  --gray-700: #424242;
  --gray-750: #2f2f2f;
  --gray-800: #212121;
  --gray-900: #171717;
  --gray-950: #0d0d0d;
  --gray-hover: #f5f5f5;
  --red-500: #ef4444;
  --red-700: #b91c1c;
  --button-disabled: #D7D7D7;
  --button-enabled: #000;
  --text-primary: var(--text-gray-950);
  --text-secondary: #5d5d5d;
  --link: #a5b4fc;
}


body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-style: normal;
}

a {
  color: var(--text-secondary);
}

#main {
  display: flex;
  min-height: 100vh;
  justify-content: center;
}

#main.rtl {
  direction: rtl;
}

#content {
  display: flex;
  background-color: var(--white);
  flex: 1;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
  margin-bottom: 86px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 100%;
}

.content-header {
  display: flex;
  position: sticky;
  flex-direction: row;
  column-gap: 12px;
  width: 95%;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  z-index: 3;
  background-color: var(--white);
  top: 0;
}

.content-header.rtl {
  direction: rtl;
}

#header-buttons > svg {
  padding-left: 4px;
  padding-right: 4px;
  color: var(--text-secondary);
  cursor: pointer;
}

#logo {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
  margin-left: 12px;
}

#logo > a {
  text-decoration: none;
}

#spinner-profiles {
  width: 50px;
}

.floating-help-container {
  display: none;
  align-items: center;
  justify-content: left;
  animation: bounce 3.5s infinite ease-in-out;
  margin-left: 26px;
  z-index: 12;
}

@keyframes bounce {
  0%, 20%, 40% {
      transform: translateX(0);
  }
  10%, 30% {
      transform: translateX(-20px);
  }
  100% {
      transform: translateX(0);
  }
}

#floating-help-text {
  position: absolute;
  width: 250px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: var(--main-primary);
  color: var(--white);
  font-weight: normal;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
}

.floating-help-arrow {
  display: block;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background-color: var(--main-primary);
  border-radius: 1.75px;
  z-index: 12;
  left: -5px;
  position: absolute;
}

.floating-help-container.rtl {
  justify-content: right;
}

.floating-help-arrow.rtl {
  left: -7px;
}

#profile-dropdown-toggle {
  margin-left: 8px;
  cursor: pointer;
}

#profile-dropdown-toggle > svg {
  color: var(--text-secondary);
}

#profile-dropdown {
  position: absolute;
  top: 58px;
}

.profile-dropdown {
  display: none;
}

#profile-dropdown-container {
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 340px;
  height: 44vh;
  background-color: var(--white);
  border-radius: 24px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  z-index: 1;
  padding: 8px;
  margin-left: 8px;
  overflow-y: scroll;
}

.profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 8px;
  margin-right: 8px;
  height: 36px;
  margin: 8px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 300;
  text-align: right;
  cursor: pointer;
}

.profile-item:hover {
  background-color: var(--gray-hover);
}

.profile-item.rtl {
  direction: rtl;
}

#hamburger-menu {
  display: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-left: 16px;
}

.avatar {
  border-radius: 100px;
  overflow: hidden;
  cursor: pointer;
}

.avatar-search {
  margin-left: 8px;
  margin-right: 8px;
  width: 32px;
}

.settings-menu {
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 320px;
  min-width: 280px;
  flex-direction: column;
  z-index: 3;
  background-color: var(--white);
  border-radius: 10px;
  padding: 8px;
  position: fixed;
  top: 52px;
  right: 12px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
}

.settings-option {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  border-radius: 6px;
  gap: 8px;
  row-gap: 10px;
  column-gap: 10px;
  padding: 12px;
  cursor: pointer;
  height: 32px;
}

.settings-option:hover {
  background-color: var(--gray-50);
}

.settings-option-icon {
  color: var(--text-secondary);
}

.settings-separator {
  border-bottom-color: var(--gray-200);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  width: 100%;
  height: 10px;
}

.modal {
  width: 100%;
  height: 100%;
  position: fixed;
  display: none;
  background-color: #00000075;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.modal-container {
  position: absolute;
  width: 50%;
  height: 50%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}

.modal-content {
  padding: 8px;
  overflow: auto;
  flex: 1;
}

.modal-content > li {
  list-style-image: none;
  margin-bottom: 8px;
}

.modal-option {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
}

.modal-option-name {
  font-weight: bold;
}

.modal-option-value {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}

.theme-circle {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  cursor: pointer;
  box-sizing: border-box;
  border: 2px solid var(--gray-200);
}

.theme-circle:hover {
  border-color: var(--gray-400);
}

.theme-circle.dark-blue {
  background: linear-gradient(to top right, #1e1b4b 50%, #3730a3 50%);
}

.theme-circle.light-blue {
  background: linear-gradient(to top right, #0161ef 50%, #fff 50%);
}

.theme-circle.miami {
  background: linear-gradient(to top right, #01efd0 50%, #ef04ca 50%);
}

.modal-buttons-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 12px;
}

.modal-buttons-container > button {
  border-radius: 8px;
  padding: 8px;
  width: 64px;
}

.button-primary {
  background-color: var(--main-primary);
  color: var(--white);
  border: none;
  cursor: pointer;
}

.button-secondary {
  background-color: var(--gray-200);
  color: var(--text-secondary);
  border: 1px solid var(--gray-500);
  cursor: pointer;
}

.modal-option-value > select {
  font-size: 16px;
  height: 32px;
  padding: 5px;
}

.searchbar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 75vh;
  z-index: 2;
}

.searchbar-container.send-to-top {
  height: auto;
  align-items: flex-start;
  margin-left: 36px;
}

h1 {
  font-weight: 500;
  font-size: 30px;
  margin-bottom: 28px;
  text-align: center;
}

#searchbar {
  display: flex;
  background-color: var(--main-secondary);
  height: 52px;
  width: 60%;
  border-radius: 26px;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
  column-gap: .5rem;
  margin-right: 42px;
  margin-left: 24px;
}

#searchbar.rtl {
  direction: rtl;
}

#searchbar.send-to-bottom {
  position: fixed;
  bottom: 30px;
}

#searchbar-input {
  background-color: unset;
  border: none;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 16px;
  width: 100%;
  outline: none;
}

#searchbar-input.rtl {
  direction: rtl;
}

.searchbar-send {
  background-color: var(--button-disabled);
  border-radius: 100px;
}

.searchbar-send.enabled {
  background-color: var(--button-enabled);
  cursor: pointer;
}

#search-suggestions-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  column-gap: .5em;
  width: 70%;
  max-width: 768px;
  min-width: 70%;
}

.search-suggestion {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  column-gap: .5em;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 28px;
  color: var(--gray-500);
  padding: 8px 12px;
  max-width: 100%;
  height: 100%;
  width: 100%;

  --tw-shadow: 0 0 2px 0 rgba(0,0,0,.05),0 4px 6px 0 rgba(0,0,0,.02);
  --tw-shadow-colored: 0 0 2px 0 var(--tw-shadow-color),0 4px 6px 0 var(--tw-shadow-color);
  --tw-ring-offset-shadow: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)
}

.search-suggestion:hover {
  background-color: var(--gray-50);
}

.search-suggestion-text {
  display: inline-block;
  text-align: center;
}

#messages-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 70px;
  margin-left: 8%;
  margin-right: 8%;
  width: 90%;
  font-size: large;
  z-index: 0;
}

#messages-container.rtl {
  direction: rtl;
}

.message {
  position: relative;
  display: flex;
  flex-direction: row;
  max-width: 70%;
  min-width: 70%;
  margin-top: 12px;
  overflow-wrap: break-word;
  border-radius: 1.5rem;
  padding-top: .625rem;
  padding-bottom: .625rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.message.user {
  background-color: var(--main-secondary);
  margin-left: 25%;
  right: 5%;
}

.message-text {
  width: 100%;
}

.fade-in {
  animation: dissolveIn 1.5s ease-out forwards;
}

@keyframes dissolveIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.language-select-container {
  margin-left: 8px;
  margin-right: 12px;
}

#language-select {
  border-radius: 16px;
  border-color: rgba(0, 0, 0, 0.1);
  padding: unset;
  text-align: center;
  text-transform: uppercase;
  height: 32px;
}

.avatar {
  width: 32px;
  height: 32px;
  filter: saturate(0);
}

#spinner {
  width: 100px;
  height: 50px;
  margin: auto;
}

#results-container {
  position: absolute;
  z-index: 4;
}

.results-subheading {
  color: var(--text-secondary);
  font-style: italic;
  font-size: small;
  text-align: center;
  width: 75%;
  min-width: 75%;
  max-width: 75%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 8px;
  margin-bottom: 8px;
}

.disclaimer {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 300;
  padding: 8px;
  position: fixed;
  bottom: 0px;
  text-align: center;
}

#sidebar {
  background-color: var(--main-tertiary);
  width: 260px;
  transition: width 0.3s ease-in-out;
}

.sidebar-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.sidebar-container.rtl {
  direction: rtl;
}

#sidebar-header {
display: flex;
justify-content: space-between;
padding-inline-start: .25em;
padding-inline-end: .25em;
padding-top: .3em;
height: 48px;
color: var(--link);
}

#sidebar-header.rtl {
  direction: rtl;
}

#sidebar-hide {
  cursor: pointer;
}

#sidebar-close-mobile {
  display: none;
  cursor: pointer;
}

.sidebar-logo {
  width: 16px;
  height: 16px;
  filter: grayscale(1);
}

.sidebar-links-container {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

.sidebar-link {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 95%;
gap: 10px;
height: 40px;
border-radius: 8px;
padding-left: 8px;
padding-right: 8px;
cursor: pointer;
}

.sidebar-link.rtl {
  direction: rtl;
}

.sidebar-link:hover {
  background-color: var(--main-primary);
}

.sidebar-new-search-icon {
  color: var(--link);
}

.sidebar-link-image {
  max-width: 16px;
  max-height: 16px;
  color: var(--white);
}

.sidebar-link-text {
  color: var(--white);
  font-size: 14px;
  font-weight: 350;
  flex: 1;
}

.sidebar-link-text a {
  text-decoration: none;
}

.sidebar a:visited {
  color: var(--gray-700);
}

.sidebar-link-option {
color: var(--white);
visibility: hidden;
padding-right: 8px;
}

.sidebar-link:hover .sidebar-link-option {
visibility: visible;
}

#sidebar-shadow {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #00000050;
  overflow: hidden;
  z-index: 3;
  touch-action: pan-x;
}

.nothing-here {
  color: var(--white);
  font-style: italic;
  text-align: center;
  cursor: unset;
}

.danger {
  color: var(--red-500);
}

#nothing-here:hover {
  background-color: unset;
  cursor: unset;
}

.prompt-history-list {
margin-top: 20px;
}

.prompt-link {
height: 36px;
}

.sidebar-subheading {
  color: var(--link);
  font-weight: 600;
  font-size: 12px;
  margin-top: 20px;
  padding: 8px;
}

#sidebar-prompt-history {
display: flex;
justify-content: center;
flex-direction: column;
}

#spinner {
  width: 100px;
  height: 50px;
  margin: auto;
}

.content-serp-heading {
  display: flex;
  align-items: center;
  flex-direction: row;
  column-gap: 8px;
}

.content-serp-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-top: 18px;
  margin-left: 32px;
}

.serp {
  width: 75%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #a5b4fd50;
  border-radius: 10px;
}

.serp:hover {
  background-color: #a5b4fd25;
}

.serp-heading {
  display: flex;
  flex-direction: column;
  margin: 8px;
}

.serp-heading-row-1 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.serp-heading-row-1.rtl {
  direction: rtl;
}

.serp-favicon svg {
  align-items: center;
}

.serp-title {
  margin-left: 8px;
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  text-transform: none;
}

.serp-kebab {
  color: var(--text-primary);
  cursor: pointer;
}

.kebab-serp-menu {
  display: none;
  position: absolute;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 54px;
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 10px 50px -3px rgba(0,0,0,.2),0 4px 6px -4px rgba(0,0,0,.1);
  right: 19%;
  gap: 2px;
}

.close-this {
  display: flex;
}

.kebab-serp-menu.rtl {
  direction: rtl;
}

.kebab-serp-menu-option {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  margin-left: -8px;
  cursor: pointer;
}

.kebab-serp-menu-option:hover {
  background-color: var(--gray-hover);
}

.serp-title a {
  cursor: pointer;
  text-decoration: none;
}

.serp-title a:hover{
  text-decoration: underline;

}

.serp-file-name {
  font-size: 12px;
  font-weight: normal;
  color: var(--text-secondary);
  text-transform: none;
}

.serp-heading-row-2 {
  margin-left: 32px;
}

.serp-description {
  height: 61px;
  padding: 8px;
  color: var(--text-primary);
  overflow: auto;
  cursor: pointer;
  scrollbar-width: none;
}

.serp-description > h1 {
  font-size: x-large;
  font-weight: 600;
  text-align: unset;
}

.serp-description > h2 {
  font-size: larger;
  font-weight: 600;
}

.serp-description > h3 {
  font-size: large;
  font-weight: 600;
}

.typing-animation {
  width: 21ch;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid #000;
  animation: typing 2s steps(21) forwards, blink 0.5s step-end 4, hide-cursor 0s 2s forwards;
}

.type-animation-sidebar {
  position: absolute;
  width: 10ch;
  white-space: nowrap;
  overflow: hidden;
  border-right: 6px solid var(--white);
  animation: typing 1s steps(10) forwards, blink 0.5s step-end 4, hide-cursor 0s 2s forwards, remove-position 0s 2s forwards;
}

@keyframes typing {
  from { width: 0; }
  to { width: 21ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
  100% { border-color: transparent; }
}

@keyframes hide-cursor {
  100% { border-color: transparent; }
}

@keyframes remove-position {
  to {
    position: unset;
  }
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  #hamburger-menu {
    display: block;
  }

  #sidebar {
    display: none;
    position: sticky;
    z-index: 10;
    right: 100%;
    width: 66%;
    overflow-y: auto;
    box-shadow: 0 10px 50px -3px rgba(0,0,0,.2),0 4px 6px -4px rgba(0,0,0,.1);
  }

  #sidebar.rtl {
    right: unset;
    left: 100%;
  }

  #sidebar.show {
    position: absolute;
    display: block;
    width: 55%;
    height: 100vh;
  }

  #sidebar-hide {
    display: none;
  }

  #sidebar-close-mobile {
    display: block;
  }

  h1 {
    margin-top: 25%;
  }

  #content {
    position: absolute;
    justify-content: center;
  }

  .content-header {
    position: fixed;
    background-color: var(--main-tertiary);
    column-gap: 0;
  }

  #profile-dropdown-toggle > svg, #hamburger-menu {
    color: var(--white);
  }

  #spinner-profiles {
    fill: var(--white);
  }

  .content-serp-container {
    left: 0;
  }

  .message {
    max-width: 85%;
    min-width: 85%;
  }

  .message.user {
    margin-left: 12%;
  }

  #searchbar {
    position: fixed;
    min-width: 80%;
    bottom: 30px;
    z-index: 10;
    touch-action: pan-x;
  }

  #search-suggestions-container {
    flex-direction: column;
    row-gap: 8px;
    width: 80%;
    min-width: 80%;
  }

  .search-suggestion {
    font-size: larger;
    min-height: 42px;
    width: 100%;
    min-width: 100%;
  }

  .searchbar-container {
    height: auto;
    margin-top: 100px;
  }

  .searchbar-container.send-to-bottom {
    position: fixed;
    bottom: 0;
  }

  #searchbar-input {
    font-size: 14px;
  }

  .results-container {
    margin-top: 75px;
    margin-bottom: 100px;
  }

  .disclaimer {
    font-size: 12px;
    z-index: 1;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 300;
    padding: 8px;
    position: fixed;
    bottom: 0px;
    text-align: center;
    background-color: var(--white);
    width: 100%;
    height: 70px;
    display: flex;
    align-items: end;
    justify-content: center;
  }

  #logo > a {
    color: var(--white);
  }

  .floating-help-container {
    position: absolute;
    justify-content: center;
    align-items: flex-start;
    margin-left: 0;
  }

  .floating-help-container.rtl {
    justify-content: center;
  }

  .floating-help-arrow {
    top: -5px;
  }

  #floating-help-text {
    width: 150px;
  }

  @keyframes bounce {
    0%, 20%, 40% {
        transform: translateY(0);
    }
    10%, 30% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
  }
}