:root {
    --primary-color: white ;
    --background-color: rgb(29, 27, 27);
    --secondary-color: #6970e7;
    --text-color: #737477;
    --component-backgroundColor: rgb(34, 32, 32); 
      box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--primary-color);
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

.navbar {
    position: fixed;
    background-color: rgb(34, 32, 32) ;
    top: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.heading__link {
    text-decoration: none;
    color: var(--secondary-color);
     padding: 1rem;
}

.nav__list {
    display: flex;
    flex-wrap: wrap;
    font-size: 10vw;
    visibility: visible;
}

.menu-hamburger {
    display: none;
}

.nav__link {
    text-decoration: none;
    font-size: large;
    font-weight: bold;
    padding: 1rem;
    color: var(--secondary-color);
}

.nav__link:hover {
    background-color: #494ea70e;
    color: white;
    text-decoration: underline;
}

/* **** Sidebar **** */

.sidebar {
    position: fixed;
    left: 0;
    width: 20rem;
    height: calc(100vh-67px);
    overflow-y: scroll;
    color: var(--text-color);
    top: 67px;
    bottom: 0;
    text-align: center;
    background-color: var(--component-backgroundColor);
    border-top: 2px solid var(--background-color);
    z-index: 1;
}

.icon-cross {
    position: fixed;
    right: 1rem;
    top: 5rem;
    display: none;
}

.main-container {
    position: fixed;
    left: 0;
    width: calc(100% - 20rem);
    top: 67px;
    bottom: 0;
    height: cal(100% - 67px );
    margin-left: auto;
    right: 0;
    overflow-y: scroll;
    color: var(--text-color);
    text-align: center;
}

.component-list--container {
    width: 100%;
}

.heading {
    color: var(--secondary-color);
    padding: 1rem;
}

.component-list {
    list-style-type: none;
    padding: 0;
}

.list--item {
    padding: 1rem;
    font-size: large;
    background-color: var(--component-backgroundColor);
    border: 1px solid var(--background-color);
    cursor: pointer;
}

.item-link {
    text-decoration: none;
    color: var(--text-color);
}

.list--item:hover {
   background-color:rgb(31, 28, 28) ;
   color: var(--primary-color);
   text-decoration: underline;
}

::-webkit-scrollbar{
    width:5px;
}
::-webkit-scrollbar-track{
    box-shadow:inset 0 0 10px rgb(163, 163, 163);
}

::-webkit-scrollbar-thumb{
    background-color:var(--secondary-color);
}

.navbar-toggle__list {
    list-style-type: none;
    padding: 0;
    display: none;
}

.menu-hamburger {
    display: none;
}


@media only screen and (max-width: 700px) {
    .navbar-toggle__list {
        display: initial;
    }
    .nav__list {
        display: none;
    }
    .sidebar {
        display: none;
    }
    .main-container {
        width: 100%;
    }
    .menu-hamburger {
        display: initial;
    }
}

/* *** main container *** */
.wrapper {
    display: flex;
    justify-items: center;
    width: 95%;
    flex-grow: 1;
    border: none;
}

.component-container {
    padding: 1rem;
    width: 95%;
    border: 1px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.sub-component-container {
    margin: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    align-items: center;
}

.component__heading {
    color: var(--secondary-color);
}

.component-display {
    width: 100%;
    padding: 1rem;
    display: flex;
   justify-content: center;
   column-gap: 10px;
   flex-wrap: wrap;
   margin-bottom: 2rem;
}

.sub-component__heading {
    color: var(--primary-color);
}

.component-code {
    width: 80%;
}