body {
    display: grid;
    height: 100vh;
    grid-template-columns: 15rem 1fr;
    grid-template-areas:
    'header header'
    'aside main';
    overflow: hidden;
}

.main-nav {
    height: 4rem;
    grid-area: header;
}

main {
    grid-area: main;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}


/*side nav*/
.side-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.side-nav li a {
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.side-nav li a:hover {
    background: var(--PRIMARY-BUTTON-HOVER);
    color: var(--SECONDARY-COLOR);
}

.side-nav li a:active {
    background: var(--PRIMARY-COLOR);
}

aside {
    grid-area: aside;
    overflow-y: auto;
}

section > p {
    margin: 0.75rem 0;
    width: 95%;
}


/*scrollbar styling*/
aside::-webkit-scrollbar {
    background: inherit;
}

aside::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: var(--PRIMARY-BUTTON-HOVER);
}


/*containers*/
.code-container {
    margin: 1.5rem 0;
    width: 95%;
    height: min-content;
    max-height: 18rem;
    overflow-y: auto;
}

.component-container {
    padding: 2rem;
    height: max-content;
    margin: 1.5rem 0;
    width: 95%;
    background-color: var(--CONTAINER-BG);
    border-radius: 10px;
    padding: 1rem;

    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-evenly;
    gap: 10px;
}

.typo-container {
    display: flex;
    flex-direction: column;
}

.item-center {
    align-items: center;
}

.rating-container {
    justify-content: center;
}


/*color container*/
.color {
    padding: 5px;
    text-align: center;
    color: var(--WHITE);
    width: 8rem;
    aspect-ratio: 1/1;

    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;

}

.color:hover {
    transform: scale(1);
}

.color:nth-child(1){
    background: var(--PRIMARY-COLOR);
}

.color:nth-child(2){
    background: var(--SECONDARY-COLOR);
}

.color:nth-child(3){
    background: var(--WARNING-COLOR);
}

.color:nth-child(4){
    background: var(--SUCCESS-COLOR);
}

.color:nth-child(5){
    background: var(--DANGER-COLOR);
}


/*overwriting css for presenting in docs*/
.component-container .fab {
    position: static;
}

.toast {
    position: static;
}

.component-container .brand {
    margin: 0;
    margin-right: 10px;
}

#textutils .component-container div {
    width: 100%;
}

/*hr styling*/
hr {
    width: 95%;
    margin: 1.5rem 0;
}

main {
    scroll-behavior: smooth;
}