@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&family=Satisfy&display=swap');
@import url('../base_styles/reset.css');
@import url('../base_styles/home.css');

#components {
    margin-top: 5rem;
}

/* drawer css */
.drawer {
    background-color: var(--secondary-color);
    padding: 1rem;
    position: sticky;
    top: 50px;
    z-index: 5;
}

.drawer ul {
    display: flex;
    column-gap: 1rem;
    overflow: auto;
}

.drawer ul::-webkit-scrollbar {
    display: none;
}

.drawer ul li {
    padding: 5px;
    font-weight: bold;
    border-radius: 5px;
}

.active,
.drawer ul li:hover {
    cursor: pointer;
    background-color: var(--hover-color);
    color: var(--primary-color);
}

.horizontal-line {
    display: none;
}

/* content section */

.content {
    width: 90%;
    margin: 1rem auto;
    padding-bottom: 1rem;
}

.content-subheading,
.content-heading {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.code {
    color: var(--primary-color);
    background-color: var(--hover-color);
    padding: 2px;
    border-radius: 2px;
}

.code-img {
    width: 100%;
    margin: 2rem auto;
    border: none;
    background-color: var(--secondary-color);
}

.docs1 {
    min-height: 15rem;
}

.horizontal-line2 {
    display: block;
    border-bottom: solid 1px var(--secondary-color);
    width: 100%;
    margin: 2rem auto;
}

ul.examples {
    margin: 1rem 0;
    color: var(--color-info);
}

.wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: var(--hover-color);
    border-radius: 5px;
    margin: 1rem 0;
    padding: 2rem 1rem;
}

.lower-navigation {
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    color: var(--primary-color);
}

.to-top {
    background: var(--hover-color);
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
    box-shadow: 2px 2px 6px 2px var(--color-hover-gray);
}

.to-top.active {
    bottom: 4rem;
    pointer-events: auto;
    opacity: 1;
}
