@import url(light.css);
@import url(dark.css) (prefers-color-scheme: dark);

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

:root {
  --md-ref-typeface-brand: 'Google Sans Flex', sans-serif;
  --md-ref-typeface-plain: 'Google Sans Flex', sans-serif;

  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  font-family: var(--md-ref-typeface-plain);
  font-size: 14px;
}

a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

a:hover {
  text-decoration: underline;
}

@media (width < 600px) {
  :is(.medium, .expanded):not(.compact) {
    display: none;
  }

  .lt-medium {
    display: block;
  }

  .gte-medium {
    display: none;
  }

  md-snackbar {
    --md-snackbar-bottom: 96px;
  }
}

@media (width >=600px) {
  .lt-medium {
    display: none;
  }
  .gte-medium {
    display: block;
  }
}

@media (width >=600px) and (width < 840px) {
  :is(.compact, .expanded):not(.medium) {
    display: none;
  }
}

@media (width < 840px) {
  .gte-expanded {
    display: none;
  }
}

@media (width >=840px) {
  :is(.compact, .medium):not(.expanded) {
    display: none;
  }

  .gte-expanded {
    display: block;
  }
}

/* Nav Rail & Modal Drawer */
.nav-scrim {
  display: none;
}

.nav-drawer-container {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

@media (width < 600px) {
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 250ms cubic-bezier(0.2, 0, 0, 1),
      visibility 250ms;
  }

  .nav-scrim.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-drawer-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 250ms cubic-bezier(0.2, 0, 0, 1),
      visibility 250ms;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background-color: var(--md-sys-color-surface);
  }

  .nav-drawer-container.open {
    transform: translateX(0);
    visibility: visible;
  }
}

.layout-container {
  width: 100%;
  min-width: 0;
}

.content-container {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.search-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.main {
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  min-width: 0;
  padding: 1rem;
  /* overflow-y: auto; */
}

.main > .flex.col {
  width: 100%;
  min-width: 0;
}

md-carousel {
  max-width: 100%;
  min-width: 0;
}

.circle {
  border-radius: 50%;
}

.flex {
  display: flex;
}

.aic {
  align-items: center;
}

.jcc {
  justify-content: center;
}

.col {
  flex-direction: column;
}

.g4 {
  gap: 4px;
}
.g8 {
  gap: 8px;
}
.g12 {
  gap: 12px;
}

.p12 {
  padding: 12px;
}

.mt8 {
  margin-top: 8px;
}

.fabBottom {
  position: fixed;
  right: 16px;
  /* style as you need */
  bottom: 96px;
  /* style as you need */
}

@media (width >=840px) {
  .fabBottom {
    bottom: 16px;
  }
}
