body {
    &.sidebar-active {
        overflow: hidden;
        padding-right: 15px;
    }
}

#sidebar {
    --sidebarWidth: 450px;

    max-width: var(--sidebarWidth);
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: var(--colour-black);
    z-index: 10000;
    box-shadow: var(--big-shadow);

    &:not(.active) {
        display: none;
    }

    div.backdrop {
        background-color: rgba(0, 0, 0, 0.5);
        position: fixed;
        left: 0;
        right: var(--sidebarWidth);
        top: 0;
        bottom: 0;  
    }

    img.decorator {
        width: 200px;
        position: absolute;
        top: 50px;
        left: -155px;
        transform: scaleX(-1);
    }

    svg.close {
        position: absolute;
        top: 36px;
        right: 36px;
        width: 30px;
        fill: white;
        z-index: 10;

        &:hover {
            fill: var(--colour-primary);
            cursor: pointer;
        }
    }

    @media (max-width: 600px) {
        img.decorator {
            display: none;
        }
    }

    div.content {
        overflow-y: auto;
        max-height: 100vh;

        svg.spinner {
            margin-top: 100px;
            width: 70px;
            margin-left: auto;
            margin-right: auto;
            fill: var(--colour-primary);
        }

        padding: 36px;

        div.menu {
            div.icons {
                display: flex;
                gap: 36px;
                justify-content: space-evenly;
                margin-top: 22px;
                margin-bottom: 22px;
                
                a {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 6px;

                    svg {
                        fill: white;
                        height: 30px;
                        width: auto;
                    }
                }
            }

            nav {
                display: flex;
                flex-direction: column;
                margin: 18px;
                margin-top: 36px;
                margin-bottom: 36px;

                a {
                    color: white;
                    text-decoration: none;
                    font-family: 'Bangers';
                    font-size: 1.4rem;
                    margin-top: 18px;
                    margin-bottom: 18px;
                    text-align: center;

                    &:hover {
                        color: var(--colour-primary);
                    }
                }
            }
        }
    }
}