@charset "utf-8";

:root {
  --primary-color: #404040;
  --primary-color-hover: #1a1a1a;
  --accent-color: #4c53af;
  --accent-color-hover: #3c4185;
  --white-button-hover: #e6e4e4;
  --charts-color: #b7badf;
  --random-color: #e6a388;
  --button-color: #f4f4f4;
  --button-color-hover: #d1d1d1;
  --details-color: #dbddef;
  --input-color: rgba(0, 0, 0, 0.2);
  --info-color: #71c2f4;
  --info-bg-color: #ffffff;
  --text-primary-color: #1e2140;
  --text-gray: #757575;

  --font-body: "Inter", sans-serif, system-ui;
  --font-logo: "Questrial", sans-serif, system-ui;
  --font-mono: ui-monospace, SFMono-Regular, Monaco, Consolas, "Courier New", monospace;
  --main-border-radius: 12px;
}

@view-transition {
  navigation: auto;
}

html,
body {
  height: 100vh;
  margin: 0;
  padding: 0;
  height: -webkit-fill-available;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1em;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
}

/**************************\
  Backgrounds
\**************************/

body.main {
  background-image: url("/static/img/moon-bgjar.svg");
}

@media (max-width: 1100px) {
  body.main {
    background-image: url("/static/img/moon-bgjar-tablet.svg");
  }
}

@media (max-width: 500px) {
  body.main {
    background-image: url("/static/img/moon-bgjar-mobile.svg");
  }
}

body.main-gradient {
  background-image: linear-gradient(140deg, rgba(255, 148, 241, 1) 0%, rgba(76, 83, 175, 1) 100%);
}

body.result {
  background-color: #2d2287;
}

body.error-background {
  background-image: url("/static/img/stacked-waves-haikei.svg");
}

body.about {
  background-color: var(--primary-color);
}

body.charts {
  background-image: linear-gradient(
    to right bottom,
    #cfe4ff,
    #cadcfa,
    #c5d5f4,
    #c0cdee,
    #bcc5e8,
    #bdc4e7,
    #bdc3e7,
    #bec2e6,
    #c3c8ec,
    #c8cdf1,
    #ced3f7,
    #d3d9fd
  );
}

body.random {
  background-image: linear-gradient(
    to right bottom,
    #ebd3c5,
    #e4c6ba,
    #ddb9af,
    #d5ada6,
    #cda09e,
    #cf9d9a,
    #d09996,
    #d29692,
    #dd9c8d,
    #e6a388,
    #ecab81,
    #eeb57b
  );
}

body.article {
  background-color: #f6f6f6;
}

/**************************\
  Text & links
\**************************/

a,
a:visited,
a:active {
  color: black;
}

a.white,
a.white:visited,
a.white:active {
  color: white;
}

.no-underline {
  text-decoration: none;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  letter-spacing: -0.7px;

  @media (max-width: 768px) {
    font-size: 1.75rem;
  }
}

.regular-title {
  font-weight: 500;
  margin-top: 0;
  font-size: 2rem;
  letter-spacing: -0.7px;
  margin-bottom: 1rem;
}

.subheading {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: -10px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .subheading {
    font-size: 1rem;
    width: 100%;
  }

  .regular-title {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1.1rem;
  }
}

.gradient {
  background-image: linear-gradient(161deg, rgba(255, 148, 241, 1) 0%, rgba(76, 83, 175, 1) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.purple {
  color: var(--text-primary-color);
}

.gray {
  color: var(--text-gray);
}

.version-subtitle {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text-gray);
  margin-top: -0.75rem;
}

/**************************\
  General components
\**************************/

/* For Safari */
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

hr {
  margin: 40px auto;
  width: 80%;
  background-color: rgba(105, 105, 105, 0.4);
  height: 1px;
  border: 0;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.rounded-button,
.rounded-button:visited {
  border: 1px solid var(--button-color);
  border-radius: 25px;
  padding: 11px 22px;
  background-color: var(--button-color);
  cursor: pointer;
  font: inherit;
  color: black;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  margin-bottom: 30px;
  transition: all 0.2s;
  --animate-delay: 0.5s;
  user-select: none;
}

.rounded-button.info,
.rounded-button.info:visited {
  border: 1px solid var(--info-color);
}

.rounded-button.charts,
.rounded-button.charts:visited {
  border: 1px solid var(--charts-color);
  margin: 3px;
}

.rounded-button.charts.active {
  background-color: var(--charts-color);
  cursor: default;
}

.rounded-button.random,
.rounded-button.random:visited {
  border: 1px solid var(--random-color);
}

@media (hover: hover) {
  .rounded-button:hover {
    background-color: var(--button-color-hover);
  }

  .rounded-button.info:hover {
    background-color: var(--info-color);
  }

  .rounded-button.charts:hover {
    background-color: var(--charts-color);
  }

  .rounded-button.random:hover {
    background-color: var(--random-color);
  }
}

#sharebtn,
#gototop,
#gototop:visited {
  background-color: var(--details-color);
  color: var(--text-primary-color);
  border: none;
  border-radius: 50%;
  position: fixed;
  bottom: 15px;
  right: 15px;
  cursor: pointer;
  z-index: 1;
}

#sharebtn {
  display: none;
  padding: 17px 19px;
  transition: bottom 0.3s;
}

#gototop,
#gototop:visited {
  opacity: 0;
  visibility: hidden;
  padding: 17px 18px;
  transition: all 0.2s;
}

#rank-alert {
  display: none;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  color: black;
  background-color: #f4f4f5;
  border-radius: var(--main-border-radius);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

#rank-alert > .divider {
  background-color: #e4e4e7;
  width: 1px;
  height: 1rem;
  margin: 0 0.5rem;
}

#rank-alert > ion-icon {
  margin-left: 0.5rem;
}

/**************************\
  Navigation Bar
\**************************/

/* Logo */

.logo {
  background-color: white;
  text-align: center;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.logo a {
  color: black;
  display: block;
  text-decoration: none;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  padding: 14px;
  font-family: var(--font-logo);
}

/* Links */

.navigation {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(5px);
  height: 40px;
  max-width: 100%;
  padding: 5px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav__link,
.nav__link:visited {
  color: #696969;
  font-weight: 300;
  display: inline-block;
  font-size: 1.2rem;
  text-decoration: none;
  margin: 0 5px;
  transition: font-weight 0.3s;
}

.nav__link:hover {
  font-weight: 700;
}

@media (max-width: 768px) {
  .nav__link {
    font-size: 1rem;
  }
}

.nav__link-active,
.nav__link-active:visited {
  font-weight: 700;
  color: black;
  transition: all 0.2s;
}

/**************************\
  Footer
\**************************/

footer {
  text-align: center;
  width: 100%;
  background-color: transparent;
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.8);
}

footer a {
  color: rgba(0, 0, 0, 0.8);
}

footer.white,
footer.white a {
  color: rgba(255, 255, 255, 0.8);
}

/**************************\
  Alert - Banner message
\**************************/

.alert {
  padding: 8px;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.alert__Close {
  margin-left: 15px;
  color: white;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.1s;
}

.alert__Close:hover {
  opacity: 0.7;
}

/**************************\
  Box Wrappers
\**************************/

/* All pages */

.main-wrapper {
  flex: 1;
}

/* Index, Random, About */

.box-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 30px 0;
  flex: 1;

  &.about {
    height: auto;
    margin: 0;
  }
}

/* Charts */

.data-wrapper {
  margin: 50px auto;
  width: 50%;
}

@media (max-width: 1000px) {
  .data-wrapper {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .data-wrapper {
    width: 100%;
  }
}

/**************************\
  Box Containers
\**************************/

/* Index */

.box {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(5px);
  padding: 35px;
  border-radius: 10px;
  text-align: center;
  width: 50%;
  transition: width 1s;
}

@media (max-width: 768px) {
  .box {
    margin: auto;
    width: 75%;
  }
}

/* Charts, Random, About */

.result-box {
  margin: 30px auto;
  padding: 25px;
  border-radius: var(--main-border-radius);
  text-align: center;
  text-wrap: balance;
  width: 50%;
  background-color: white;
}

@media (max-width: 1500px) {
  .result-box {
    width: 65%;
  }
}

@media (max-width: 1100px) {
  .result-box {
    width: 70%;
  }
}

@media (max-width: 768px) {
  .result-box {
    width: 75%;
  }
}

/* Canvas */

.canvas__container {
  box-sizing: border-box;
  background-color: white;
  width: fit-content;
  max-width: 95%;
  margin: 1rem auto;
  text-align: center;
  border-radius: var(--main-border-radius);
  padding: 1rem;
}

.text-box {
  background-color: var(--info-bg-color);
  padding: 1rem;
  border-radius: var(--main-border-radius);
  border: 1px solid var(--details-color);
}

/* Error pages */

.message {
  box-sizing: border-box;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error__Header {
  font-size: 7rem;
  color: rgb(255, 255, 255, 0.7);
  margin: 0;
}

.error__Secondary {
  font-size: 3rem;
  text-align: center;
  color: white;
  margin: 0;
}

.error__Subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: white;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .error__Header {
    font-size: 4rem;
  }

  .error__Secondary {
    font-size: 2rem;
  }

  .error__Subtitle {
    font-size: 1rem;
  }
}

.error__Links {
  margin-top: 50px;
}

.error__Links a,
.error__Links button {
  text-decoration: none;
  background-color: white;
  color: black;
  border-radius: 15px;
  padding: 11px 22px;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
}

.error__Links button.main,
.error__Links a.main {
  background-color: var(--accent-color);
  color: white;
  margin-right: 8px;

  :hover {
    background-color: var(--accent-color-hover);
  }
}

@media (max-width: 768px) {
  .error__Links {
    margin-top: 20px;
  }
}

/* About */

.about__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about__links a {
  margin: 0;
}

/* Privacy */

.privacy {
  padding: 1rem;
  max-width: 1000px;
  margin-inline: auto;

  & > * + * {
    margin-top: 2rem;
  }
}

/**************************\
  Form elements - Index, Canvas
\**************************/

input[type="text"] {
  display: block;
  padding: 12px;
  border: 1.5px solid var(--input-color);
  border-radius: 10px;
  box-sizing: border-box;
  margin: 20px auto;
  width: 100%;
  font-family: var(--font-body);
  -webkit-appearance: none;
  -webkit-box-shadow: 0px 9px 15px -15px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 9px 15px -15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}

input[type="text"]:hover {
  -webkit-box-shadow: 0px 9px 15px -10px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 9px 15px -10px rgba(0, 0, 0, 0.4);
}

input[type="text"]:focus {
  outline: none;
  box-shadow: 0px 0px 2px var(--primary-color) !important;
}

input::placeholder {
  font-family: var(--font-body);
  color: #b8bacb;
  font-size: 1.05rem;
}

input[type="submit"],
input[type="reset"],
.download-button,
#open {
  border: none;
  -webkit-appearance: none;
  border-radius: 15px;
  padding: 11px 22px;
  font-family: var(--font-body);
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  width: fit-content;
  display: inline-block;
  user-select: none;
}

#open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

input[type="submit"]:hover,
.download-button:hover {
  background-color: var(--primary-color-hover);
}

input[type="reset"],
#open {
  background-color: white;
  color: black;
}

input[type="reset"]:hover,
#open:hover {
  background-color: var(--white-button-hover);
}

input,
.download-button {
  font-size: 1rem;
}

@media (max-width: 768px) {
  input {
    font-size: 1rem;
  }
}

label {
  font-size: 1.25rem;
  opacity: 75%;
  font-weight: 300;
}

@media (max-width: 768px) {
  label {
    font-size: 1rem;
  }
}

/**************************\
  Canvas, Charts - Artist Image
\**************************/

.artist-rounded-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .artist-rounded-image {
    width: 40px;
    height: 40px;
  }
}

/**************************\
  Canvas Page
\**************************/

.canvas__ArtistMetaContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.canvas__ArtistText {
  font-size: 1.25rem;
  view-transition-name: artist-name;
}

.canvas__ArtistImage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas__Video,
.canvas__Image {
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--main-border-radius);
}

.download-button {
  margin: 25px 0;
}

/**************************\
  Charts page
\**************************/

.charts__Row {
  display: flex;
  justify-content: space-between;
  text-align: left;
}

.charts__Number {
  color: rgb(0, 0, 0, 0.5);
  width: 45px;
}

@media (max-width: 768px) {
  .charts__ArtistName,
  .charts__Number {
    font-size: 1.25rem;
  }
}

.charts__ArtistContainer {
  display: flex;
  max-width: 75%;
  word-break: break-word;
}

.charts__ImageContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 15px;
}

.charts__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/**************************\
  Article page
\**************************/

article {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
}

.article__Container {
  background-color: white;
  margin: 15px auto;
  border-radius: 20px;
  border: 1px solid #e6e7eb;
  padding: 25px;
  /* box-shadow: 0 0 3px 0 rgb(0 0 0 / 15%); */
  width: 100%;
  box-sizing: border-box;
}

.article__Hero {
  height: 40vh;
  overflow: hidden;
  background: url(/static/img/cdfs.jpg) no-repeat center center scroll;
  background-size: cover;
  box-shadow: 2px 10px 30px 8px rgb(100 100 100 / 20%);
  width: 90%;
  border-radius: 10px;
}

.article__Header {
  text-align: left;
  font-weight: bold;
  font-size: 2.5rem;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .article__Header {
    font-size: 2rem;
  }
}

.article__Screenshot {
  width: 100%;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
}

@media (min-width: 768px) {
  .article__Hero,
  .article__Header,
  .article__Container,
  .article__Screenshot {
    width: 60%;
  }
}

@media (min-width: 1400px) {
  .article__Hero,
  .article__Header,
  .article__Container,
  .article__Screenshot {
    width: 50%;
  }
}

.article__Summary {
  border-top: 1px solid rgba(105, 105, 105, 0.4);
  border-bottom: 1px solid rgba(105, 105, 105, 0.4);
  margin: 30px 0;
  padding: 30px 0;
}

.article__Summary p {
  margin: 10px 0;
}

@media (max-width: 768px) {
  .article__Summary p {
    font-size: 1rem;
  }
}

.article__Button,
.article__Button:visited {
  border: 1px solid var(--text-primary-color);
  border-radius: 25px;
  padding: 21px 32px;
  background-color: var(--text-primary-color);
  color: white;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  margin: 50px auto 25px;
  width: 40%;
  transition: all 0.2s;
}

.article__Button:hover {
  background-color: var(--button-color);
  color: black;
  border: 1px solid var(--text-primary-color);
}

/**************************\
  Artist Page
\**************************/

#banner {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 30px;
  justify-content: center;
  align-items: center;
  height: 22vh;
  width: 100%;
  background-color: white;
  min-height: 150px;
}

.artist-page__name-container {
  display: block;
  flex-grow: 0;
  flex-shrink: 1;
  display: flex;
  justify-content: start;
  max-width: 50%;
}

.artist-page__name-container h1 {
  font-size: calc(0.75rem + 3vmin);
  text-align: start;
  word-break: break-word;
  view-transition-name: artist-name;
}

.artist-page__image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 0;
  flex-shrink: 1;
}

.artist-page__image-container img {
  width: 12vh;
  height: 12vh;
  object-fit: cover;
  border-radius: 50%;
  -webkit-box-shadow: 0px 9px 15px -9px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 9px 15px -9px rgba(0, 0, 0, 0.4);
}

.artist-page__canvas-container {
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
  width: fit-content;
  margin: 0 auto;
}

#canvas-list .artist-page__canvas-container:not(:last-child) {
  border-bottom: 1px solid rgba(22, 24, 35, 0.2);
}

.artist-page__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.artist-page__meta,
.artist-page__meta a {
  color: var(--text-gray);
}

.artist-page__meta span {
  display: flex;
  gap: 1rem;
}

.artist-page__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 1rem 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(105, 105, 105, 0.4);
}

.artist-page__header > p,
.artist-page__header > .rounded-button {
  margin: 0;
}

.artist-page__canvas {
  width: 22vmax;
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .artist-page__canvas {
    width: 35vmax;
  }
}

.artist-page__canvas-container .download-button {
  margin: 0;
  width: 100%;
}

#form-container {
  width: 40vmax;
}

#form-container.hidden {
  display: none;
}

#form-container input[type="text"] {
  border-radius: 15px;
  box-shadow: none;
}

/**************************\
  Search Autocomplete
\**************************/

.search__InputContainer {
  position: relative;
}

#result {
  display: none;
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  z-index: 1;
  background-color: white;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  transition: opacity 0.2s ease-in, filter 0.2s ease-in;
  border-radius: 10px;
  -webkit-box-shadow: 0px 9px 15px -9px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 9px 15px -9px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--input-color);
}

#result ul li {
  padding: 10px;
}

#result ul li:hover {
  background: #eee;
}

.search__Image {
  border-radius: 50%;
  width: 63px;
  height: 63px;
  padding: 8px;
  background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);
  background-clip: content-box;
  text-indent: -10000px;
}

.search__Item {
  min-height: 50px;
  align-items: center;
  border-radius: 3px;
  cursor: pointer;
  display: grid;
}

.search__ItemLink {
  display: grid;
  align-items: center;
  text-decoration: none;
  grid-auto-flow: column;
  justify-content: space-between;
  width: 100%;
}

.search__ItemContent {
  align-items: center;
  display: grid;
  grid-gap: 13px;
  gap: 13px;
  line-height: 1.25em;
  grid-auto-flow: column;
  overflow: hidden;
}

.search__ItemIcon {
  align-items: center;
  align-self: flex-start;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.search__ItemContentBody {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.search__ItemContentTitle {
  font-size: 1.05rem;
  text-align: start;
  display: inline-block;
  margin: 0 0.5em 0 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search__ItemContentDescription {
  text-align: start;
  color: #262627;
  font-size: 0.9em;
  max-width: 100%;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

/* Detached Search - Mobile */

.search__DetachedOverlay {
  display: none;
  background-color: rgba(4, 6, 8, 0.85);
  height: -webkit-fill-available;
  height: 100vh;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  padding: 0;
  position: fixed;
  z-index: 999998;
  overflow: hidden;
}

.search__DetachedContainer {
  background-color: white;
  height: 97%;
  border-radius: 15px 15px 0 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  z-index: 999999;
}

.search__DetachedFormContainer {
  border-bottom: 1px solid rgba(128, 126, 163, 0.3);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 0 0 8px;
  padding: 8px;
}

.search__DetachedFormContainer input[type="text"] {
  box-shadow: none;
}

.search__DetachedCancelButtonContainer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search__DetachedCancelButton {
  border: none;
  padding: 12px;
  background: none;
  color: #262627;
  cursor: pointer;
  margin: 0 0 0 8px;
  font: inherit;
}

#detached_result {
  display: none;
  padding: 12px;
  box-sizing: border-box;
}

#detached_result ul li {
  padding: 10px;
}

.search__about {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.info-pill {
  border: 1px solid var(--input-color);
  border-radius: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0.2px;
  font-weight: 300;
}

/**************************\
  Modal
\**************************/

.modal {
  font-family: var(--font-body);
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999998;
}

.modal__container {
  background-color: white;
  padding: 30px;
  max-width: 500px;
  max-height: 100vh;
  border-radius: 5px;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 999999;
}

@media (max-width: 768px) {
  .modal__container {
    max-width: 95%;
  }
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--text-primary-color);
  box-sizing: border-box;
}

.modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.modal__header .modal__close:before {
  content: "\00d7";
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.5);
}

.modal__content {
  margin-top: 2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.8);
}

.modal__btn {
  font-family: var(--font-body);
  font-size: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  border-radius: 0.25rem;
  border-style: none;
  border-width: 0;
  cursor: pointer;
  -webkit-appearance: button;
  text-transform: none;
  overflow: visible;
  line-height: 1.15;
  margin: 0;
  will-change: transform;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: -webkit-transform 0.25s ease-out;
  transition: transform 0.25s ease-out;
  transition: transform 0.25s ease-out, -webkit-transform 0.25s ease-out;
}

.modal__btn:focus,
.modal__btn:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

/* Animations */

@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(5%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

/* ----------------------------------------------
 * Generated by Animista on 2022-5-11 2:28:14
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

.slide-in-bottom {
  -webkit-animation: slide-in-bottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: slide-in-bottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/**
 * ----------------------------------------
 * animation slide-in-bottom
 * ----------------------------------------
 */

@-webkit-keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

/**************************\
  Bubble
\**************************/

.bubble {
  display: none;
  position: relative;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  text-align: center;
  font-size: 0.85rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 10px;
  padding: 10px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.bubble:after {
  content: "";
  position: absolute;
  display: block;
  z-index: 1;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.7) transparent;
  border-width: 0 10px 10px;
  top: -10px;
  left: 60%;
  margin-left: -10px;
}

/**************************\
  Loader
\**************************/

.loader-container {
  display: flex;
  padding-top: 2rem;
  justify-content: center;
  align-items: start;
  height: 600px;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--text-gray);
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

ion-icon {
  font-size: 1.25rem;
  opacity: 0.7;
}
