/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */
@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
  font-family: 'GoogleSans';
  src: url('/fonts/GoogleSans/GoogleSans.ttf') format('truetype-variations');
  font-weight: 410 900;
  font-style: normal;
  ascent-override: 106.25%;
  size-adjust: 106.25%;
}

@font-face {
  font-family: 'GoogleSansCode';
  src: url('/fonts/GoogleSansCode/GoogleSansCode.ttf') format('truetype-variations');
  font-weight: 1 900;
  font-style: monospace;
  ascent-override: 106.25%;
  size-adjust: 106.25%;
}

.breadcrumbs__link {
  font-weight: 500;
  font-size: 0.875rem;
  padding: 8px 16px 8px 16px;
}

img {
  border-radius: 15px;
}

/* You can override the default Infima variables here. */
:root {
  font-family: 'GoogleSans', sans-serif;
  letter-spacing: 0.1px;
  --ifm-color-primary: #4250af;
  --ifm-color-primary-dark: #4250af;
  --ifm-color-primary-darker: #4250af;
  --ifm-color-primary-darkest: #4250af;
  --ifm-color-primary-light: #4250af;
  --ifm-color-primary-lighter: #4250af;
  --ifm-color-primary-lightest: #4250af;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'GoogleSans', sans-serif;
  letter-spacing: 0.1px;
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
  --ifm-color-primary: #adcbfa;
  --ifm-color-primary-dark: #85b2f8;
  --ifm-color-primary-darker: #71a5f6;
  --ifm-color-primary-darkest: #357ff3;
  --ifm-color-primary-light: #d5e4fc;
  --ifm-color-primary-lighter: #e9f1fe;
  --ifm-color-primary-lightest: #ffffff;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
  --ifm-navbar-background-color: #0c0c0c;
  --ifm-footer-background-color: #0c0c0c;
}

[data-theme='dark'] body,
[data-theme='dark'] .main-wrapper {
  background-color: #070707;
}

div[class^='announcementBar_'] {
  min-height: 2rem;
  background-color: #2b3336;
  color: white;
}

.menu__link {
  padding: 10px 10px 10px 16px;
  border-radius: 24px;
  margin-right: 16px;
  font-weight: 500;
}

.menu__list-item-collapsible {
  margin-right: 16px;
  border-radius: 24px;
  font-weight: 500;
}

.menu__link--active {
  font-weight: 600;
}

.table-of-contents__link {
  font-size: 14px;
  font-weight: 450;
}

/* workaround for version switcher PR 15894 */
div[class*='navbar__items'] > li:has(a[class*='version-switcher-34ab39']) {
  display: none;
}

code {
  font-weight: 500;
  font-family: 'GoogleSansCode';
}

.buy-button {
  padding: 8px 14px;
  border: 1px solid transparent;
  font-family: 'GoogleSans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 5px 2px rgba(181, 206, 254, 0.4);
}
