@import "../base-style.css";
@import "../components/components.css";
@import "./mobile-menu.css";
@import "../style.css";

html {
  scroll-behavior: smooth;
}

/* typography */
p.component-info {
  font-size: 1.25rem;
}

.flex-ctn {
  display: flex;
  flex-wrap: wrap;
}

.docs-ctn {
  display: grid;
  grid-template-columns: 1fr 4fr;
}

.docs-ctn aside.docs-sidebar {
  /* grid-area: aside; */
  background-color: var(--clr-background-light);
  padding: 1rem 2rem;
  position: sticky;
  top: 0rem;
  height: calc(100vh - 2rem);
}

aside.docs-sidebar h3 {
  padding-top: 1rem 0;
}

aside.docs-sidebar .components-link {
  display: flex;
  flex-direction: column;
}

aside.docs-sidebar .components-link a {
  color: var(--clr-txt-dark);
  padding: 0.625rem;
}

aside.docs-sidebar .components-link a:hover {
  color: var(--clr-primary);
  background-color: var(--clr-primary-light);
  border-radius: 0.25rem;
}

/* Docs */
.component-box-border {
  border: 0.125rem solid var(--light-gray);
  border-radius: 0.25rem;
}

.divider {
  border: 0;
  height: 1px;
  background-color: var(--clr-txt-dark);
  margin: 3rem 1rem;
}

/* alert */
.alert-ctn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

/* vertical cards */
.docs-card-vertical {
  width: 100%;
  max-width: 18.75rem;
}

.card-vertical-ctn img.card-img {
  max-width: 100%;
  max-height: 100%;
}

/* horizontal cards */
.docs-card-horizontal {
  width: 100%;
  max-width: 25rem;
}

/* modal */
.docs-modal-demo {
  width: 100%;
  max-width: 31.25rem;
}

/* Floating btn */
a.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  box-shadow: var(--light-shadow);
}

/* toast */
.docs-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--clr-primary-light);
  width: fit-content;
}

.docs-toast span.material-icons {
  cursor: pointer;
  margin-left: 1rem;
}

/* Grid */
.grid-box {
  background-color: var(--clr-primary-light);
  padding: 2rem;
}

/* footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background-color: var(--clr-primary);
  color: var(--clr-white);
  padding: 2rem 0;
}

footer .footer-links a {
  color: var(--clr-white);
  padding-right: 0.875rem;
  font-size: 1.5rem;
}

footer p.copyright {
  font-size: 0.875rem;
}

/* Media queries */
@media screen and (max-width: 800px) {
  header nav {
    display: none;
  }

  .docs-ctn {
    grid-template-columns: 1fr;
  }

  .docs-ctn aside.docs-sidebar {
    display: none;
  }

  .docs-component {
    width: 100%;
  }

  .docs-hor-card-img {
    width: 9.375rem;
    max-width: 100%;
    height: 12.5rem;
    max-height: 100%;
  }
}
