﻿.docs-nav {
    top: 4rem;
    width: 16rem;
    height: calc(100vh - 4rem);
}
.docs-page {
    position: relative;
    min-height: calc(100vh - 4rem);
    margin-left: 16rem;
    margin-top: 4rem;
    padding: 1rem 3rem;
}
.search-box {
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 45em;
    width: 95vw;
    display: flex;
    flex-direction: column;
    z-index: 20;
}
.search-results {
    max-height: calc(80vh - 8rem);
    overflow-y: auto;
}
.left, .right {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.right {
    padding: 1rem;
    background: var(--light-200);
    border: 1px solid var(--light-300);
    border-radius: .5rem;
}

dl {
    margin: .5rem 0;
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width:60em) {
    .doc-item {
        flex-direction: column;
    }
}

.component-grid {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

.component-item {
  display: flex;
  flex-direction: column;
  background-color: var(--light-200);
  border: 1px solid var(--light-300);
  border-radius: .5rem;
}

.component-item .preview {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--light-100);
}

.component-item .helpers {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.component-card .example {
    background-color: var(--light-200);
    background-image: linear-gradient(var(--light-300) 1px, transparent 1px), linear-gradient(to right, var(--light-300) 1px, var(--light-200) 1px);
    background-size: 16px 16px;
    background-position: -1px 0;
}

.grid-item .preview {
  padding: 1rem;
  border-radius: .5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.preview header, .preview aside, .preview .sidebar, .preview .overlay {
    position: relative !important;
}

.grid-item .helpers {
  padding: .5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.grid-item .helpers code {
  padding: .25rem .5rem;
  border-radius: .25rem;
  background: var(--light-200)
}

.app-sidebar {
    position: fixed;
    top: 4rem;
    left: 0;
    width: 16rem;
    height: calc(100vh - 4rem);
    padding: 1rem;
    border-right: 1px solid var(--light-400);
    overflow-y: auto;
}

.app-main {
    position: relative;
    top: 4rem;
    left: 16rem;
    right: 0;
    bottom: 0;
    width: calc(100% - 16rem);
    overflow-y: auto;
}

.app-main-full {
    position: relative;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

.spinner {
    position: relative;
    display: inline-block;
}

.dot-grid {
    width: 4rem;
    height: 2.5rem;
}

.dot-grid .dot {
    width: 1rem;
    height: 1rem;
    display: block;
    position: absolute;
    top: 50%;
    border-radius: 50%;
    background-color: var(--blue-200);
    transform: translateY(-50%);
    animation: spinner 1.2s ease-in-out infinite;
}

.dot-grid .dot.dot1 {
    left: 0;
    transform: translateX(0);
}

.dot-grid .dot.dot2 {
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.2s;
}

.dot-grid .dot.dot3 {
    transform: translateX(0);
    right: 0;
    animation-delay: 0.4s;
}

@keyframes spinner {
    0% {
        opacity: 1;
        top: 50%;
    }

    50% {
        opacity: 0.3;
        top: 0;
    }

    100% {
        opacity: 1;
        top: 50%;
    }
}
