@tailwind base;
@tailwind components;
@tailwind utilities;

/**
 * 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.
 */

/* You can override the default Infima variables here. */
:root {
  --ifm-color-primary: #1DA4E5;
  --ifm-color-primary-dark: #189EE4;
  --ifm-color-primary-darker: #1296DC;
  --ifm-color-primary-darkest: #0f87c8;
  --ifm-color-primary-light: #22a7e9;
  --ifm-color-primary-lighter: #30b1f2;
  --ifm-color-primary-lightest: #3dbbf9;
  --ifm-code-font-size: 0.775rem;
  --ifm-code-background: #daf3ff;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
  --ifm-container-width-xl: 1330px;
  --ifm-container-width: 1280px;
  --doc-sidebar-width: 230px!important;
  --ifm-link-color: var(--ifm-color-primary-darkest);
  --docusaurus-highlighted-code-line-bg: rgba(51, 85, 102, 0.3);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
  --ifm-color-primary: #2aadee;
  --ifm-color-primary-dark: #20a8f1;
  --ifm-color-primary-darker: #169ce4;
  --ifm-color-primary-darkest: #1593d7;
  --ifm-color-primary-light: #28aef0;
  --ifm-color-primary-lighter: #34b9fb;
  --ifm-color-primary-lightest: #3fbefe;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 1.7rem;
}
code {
  font-weight: 600;
  padding: .1rem .3rem;
  border:0;
}
a:not([class]) {
  color: var(--ifm-color-primary-darkest)!important;
  text-decoration: none;
}

.navbar__inner, .main-wrapper {
  margin: auto;
  width: 100%;
  max-width: var(--ifm-container-width);
}
.main-wrapper {
  padding:1rem;
}
@media (min-width:1368px) {
  .navbar__inner, .main-wrapper {
    max-width: var(--ifm-container-width-xl);
  }
  .main-wrapper {
    padding: 1rem 0;
  }
}

@media (min-width: 997px) {
  .theme-doc-sidebar-container {
    border-right: 0!important;
  }
}
.theme-doc-sidebar-container nav.menu {
  padding: 1.5rem 0;
}
.theme-doc-sidebar-menu {
  font-size: 0.875rem;
}
.menu__list .menu__list{
  margin:0;
  padding:0;
}
.theme-doc-sidebar-item-category-level-1 >.menu__list-item-collapsible + .menu__list {
  margin-top: 0.25rem;
}
.theme-doc-sidebar-menu li {
  padding: 0.25rem 0;
}
.theme-doc-sidebar-menu li.theme-doc-sidebar-item-link-level-1 .menu__link,
.theme-doc-sidebar-menu li.theme-doc-sidebar-item-category-level-1 .menu__link{
  border-radius: 0;
  padding: .2rem 0;
}
.theme-doc-sidebar-menu li.theme-doc-sidebar-item-link-level-2 .menu__link,
.theme-doc-sidebar-menu li.theme-doc-sidebar-item-category-level-2 .menu__link {
  border-radius: 0;
  padding: .2rem .75rem;
}
.theme-doc-sidebar-menu .menu__link:hover, .menu__list-item-collapsible:hover {
  background-color: transparent;
  color: var(--ifm-color-primary);
}
.theme-doc-sidebar-menu .menu__link--active:not(.menu__link--sublist),
.menu__list-item-collapsible--active, .menu__list-item-collapsible .menu__link--active {
  background-color: transparent;
  font-weight: bold;
  color: var(--ifm-color-primary-darkest);
}
.theme-doc-sidebar-menu .theme-doc-sidebar-item-link-level-2 .menu__link--active:not(.menu__link--sublist),
.theme-doc-sidebar-menu .theme-doc-sidebar-item-category-level-2 .menu__link--active:not(.menu__link--sublist){
  border-left: 1px solid var(--ifm-color-primary-darkest);
}
.menu__caret {
  padding: .25rem;
}
.menu__caret:hover {
  color: var(--ifm-color-primary);
}
.menu__link--sublist-caret:after {
  background: var(--ifm-menu-link-sublist-icon) 50% / 1.5rem 1.5rem;
}

.breadcrumbs__item .breadcrumbs__link:hover {
  background-color: transparent;
}
.breadcrumbs__item--active .breadcrumbs__link {
  background-color: transparent;
  color: inherit;
  font-weight: 600;
}

.github-link-icon {
  display: block;
  width:22px;
  height: 22px;
  background: url('/img/github-mark.svg');
  background-size: 100%;
}
[data-theme='dark'] .github-link-icon {
  background: url('/img/github-mark-white.svg') ;
  background-size: 100%;
}
.demo-container .theme-code-block {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: .5rem;
  border-bottom-right-radius: .5rem;
  margin: -1.1rem;
  margin-top: 1rem;
}
.theme-code-block-highlighted-line {
  border-left: 3px solid var(--ifm-color-primary-lightest);
}
.theme-doc-markdown {
  line-height: 1.75;
}
.markdown h1:first-child {
  margin-bottom: 1rem;
}
.markdown h2,.markdown h3,.markdown h4 {
  margin-bottom: .875rem;
}
.markdown table th, .markdown table td{
  text-align: left;
  font-size: .875rem;
  padding: .7rem .75rem;
  border:0;
  vertical-align: top;
  background-color: inherit;
}
.markdown table tr {
  border-top: 0;
  border-bottom: 1px solid var(--ifm-table-border-color);
}
.markdown table thead tr {
  border-width: 1px;
  border-top: 0;
}
.markdown table tr:nth-child(2n) {
  background-color: inherit;
}
.markdown table th {
  white-space: nowrap;
  line-height: 1.3;
  vertical-align: middle;
}
.markdown table td code {
  white-space: nowrap;
}

