:root {
  --sl-input-border-width: 1px;
  --sl-color-neutral-300: rgb(82, 82, 91);
  --sl-color-primary-50: var(--sl-color-orange-50);
  --sl-color-primary-100: var(--sl-color-orange-100);
  --sl-color-primary-200: var(--sl-color-orange-200);
  --sl-color-primary-300: var(--sl-color-orange-300);
  --sl-color-primary-400: var(--sl-color-orange-400);
  --sl-color-primary-500: var(--sl-color-orange-500);
  --sl-color-primary-600: var(--sl-color-orange-600);
  --sl-color-primary-700: var(--sl-color-orange-700);
  --sl-color-primary-800: var(--sl-color-orange-800);
  --sl-color-primary-900: var(--sl-color-orange-900);
  --sl-color-primary-950: var(--sl-color-orange-950);
}

:not(:defined) {
  display: none;
}

body {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  margin: 0;
  padding: 0;
}

/* NAVBAR */

.navbar {
  display: inline;
  top: 0;
  left: 0;
  padding: 12px 30px;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0.1em 0.1em 0.4em #0000001a;
  z-index: 1000;
}

.navbar-ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.navbar-li {
  display: inline-block;
  margin-right: 30px;
}

.navbar-li a {
  color: black;
  text-decoration: none;
  font-size: 18px;
}

.navbar-li a:hover {
  color: rgb(255, 145, 0);
}

/* UNICODE TOGGLE */

label[for="toggle-unicode"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 4rem;
  min-height: 20px;
  width: max-content;
}

/* WEBSITE TITLE  */

.title-box {
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  max-width: 70%;
  margin: 20px auto 0; /* Center the title box horizontally */
}

.title {
  margin: 0;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 24px;
}

.subtitle {
  margin: 0;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 20px;
}

/* ABOUT PAGE */

.about-main-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
}

.about-main-container main {
  overflow-y: scroll;
}

.about-title {
  text-align: center;
}

.about-body {
  padding: 20px;
  width: 80%;
  margin: 0 auto;
}

.about-body-shadow {
  padding: 20px;
  width: 72%;
  margin: 0 auto;
  border-radius: 1em;
  box-shadow: 0.1em 0.1em 1em #0000001a;
}

.about-body p {
  text-align: left;
  width: 90%;
  margin: 0 auto;
}

.about-body ul {
  padding: 20px;
  text-align: left;
}

.about-body li {
  padding: 20px;
  text-align: left;
}

.about-text-container {
  width: 60%;
  margin: 0 auto;
  padding: 20px;
}

.photo-section {
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  width: 60%;
  margin: 0 auto;
}

.photo-card {
  flex: 1;
  margin: 0 10px;
  text-align: center;
}

.name-card {
  flex: 1;
  font-size: 0.7em;
  margin: 0 10px;
  text-align: center;
}

.photo-card img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0.1em 0.1em 0.8em #0000001a;
}

/* HEATMAP CONTAINERS */

.main-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  margin: 10px 2vw;
  gap: 2vw;
  flex-grow: 1;
  min-height: 0;
}

.container > div {
  flex: 0 0 47vw;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.text-header {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.text-container {
  position: relative;
  border: 1px solid #ccc;
  display: flex;
  height: 100%;
  gap: 10px;
  flex-grow: 1;
  min-height: 0;
}

.minimap {
  min-width: 40px;
  background: rgba(0 0 0 / 0.02);
  position: relative;
}

.text {
  flex-grow: 1;
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 10px;
}

.highlight {
  background-color: hsl(30, 100%, 90%);
  color: black;
  cursor: pointer;
  outline: 1px solid rgba(0 0 0 / 0.5);
  opacity: 1;
}

.highlight[data-depth="2"] {
  background-color: hsl(30 100% 80%);
}

.highlight[data-depth="3"] {
  background-color: hsl(30 100% 70%);
}

.highlight[data-depth="4"] {
  background-color: hsl(30 100% 60%);
}

.highlight[data-depth="5"] {
  background-color: hsl(30 100% 50%);
}

.highlight[data-depth="6"] {
  background-color: hsl(30 100% 40%);
}

.highlight[data-depth="7"] {
  background-color: hsl(30 100% 35%);
}

.highlight[data-depth="8"] {
  background-color: hsl(30 100% 35%);
}

.highlight[data-depth="9"] {
  background-color: hsl(30 100% 35%);
}

.highlight[data-depth="10"] {
  background-color: hsl(30 100% 35%);
}

.highlight:hover {
  outline: 2px solid green;
  outline-offset: 0;
}

.highlight .tooltip {
  background: #444;
  border-radius: 0.5rem;
  color: white;
  padding: 0.5rem 1rem;
  position: fixed;
  transform: translate(1rem, 0);
  z-index: 2;
}

.uid-link {
  list-style: none;
}

.uid-link:hover {
  text-decoration: underline;
}

span.highlight[data-match-type="0"] {
  background-color: rgba(153, 153, 153, 0.477);
}

span.highlight[data-match-type="2"] {
  background-color: rgba(26, 179, 255, 0.477);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

sl-dropdown {
  padding: 0 8px;
}

span.heading {
  scroll-margin-top: 30px;
}

mark {
  background-color: #8fbc8f73;
  box-shadow: 0 0 3px 0 seagreen;
  pointer-events: none;
}

.search-button::part(base) {
  padding: calc(var(--sl-spacing-x-small) - 4px);
  border: 1px solid gray;
  margin: 3px;
}

.search-button::part(base):hover {
  border-color: var(--sl-color-primary-600);
}

.search-drawer {
  --size: min(max-content, 100%);
}

.search-drawer::part(panel) {
  margin-left: 50px;
  width: calc(100% - 50px);
  background-color: #faebd7ee;
}

.search-drawer::part(header) {
  height: 0;
}

.search-drawer::part(header-actions) {
  z-index: 9;
}

.search-drawer::part(body) {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-drawer sl-input {
  margin-right: calc(72px - 1rem);
}

.search-drawer .results {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-drawer .results:not(.show) {
  display: none;
}

.search-drawer .query {
  text-decoration: underline;
  font-style: italic;
}

.search-drawer sl-radio-group::part(form-control-input) {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@keyframes swellAnimation {
  0% {
  }
  50% {
    background-color: rgba(228, 255, 26, 0.5);
  }
  100% {
  }
}

.highlighted-swell-animation {
  animation: swellAnimation 2s ease-in-out;
}
