/*******************************************
 * Performing Dragging of a modal
 * 
 * @author (Anyanwu Benedict Chukwuemeka)
 * @version (v0.01)
 *******************************************/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-color: var(--bcg-handle) var(--bcg-trpnt);
    scrollbar-width: thin;
}

html:root
{
    --bcg-base: #ffe4e1;
    --bcg-btn: #bc8f8f;
    --bcg-handle: #ca9e99;
    --bcg-shade: #000000c3;
    --bcg-trpnt: #00000000;
    --bcg-white: #eddbdb;
    --font-clr: #532a5b;
    --font-shadow: #43383875;
}

html
{
    background-color: var(--bcg-base);
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    scroll-behavior: smooth;
}

body
{
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background-color: var(--bcg-base);
}

@supports(-webkit-tap-highlight-color: var(--bcg-trpnt))
{
    body
    {
        -webkit-tap-highlight-color: var(--bcg-trpnt);
    }
}

html:has(body[gen-menu-modal-is-dragging="true"])
{
    overscroll-behavior: none none !important;
    touch-action: none !important;
    scroll-behavior: auto;
    overflow: hidden !important;
}

button
{
    font-family: 'Poppins', sans-serif;
}

.openModalBtn
{
    min-width: 12.5rem;
    padding: 1rem 2.5rem;
    outline: none;
    border: none;
    color: var(--font-clr);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 2rem;
    background-color: var(--bcg-btn);
    box-shadow: 0 0.25rem 0.125rem 0.25rem var(--font-shadow);
    text-shadow: 0 0.125rem 0.125rem var(--font-shadow);
    transition: all 300ms ease-in-out;
    cursor: pointer;
}

.openModalBtn:hover
{
    filter: brightness(1.125);
}

.openModalBtn:active
{
    scale: 0.875;
}

.genMenuModalBdr
{
    position: fixed;
    left: 0%;
    right: 0%;
    bottom: 0%;
    width: 100%;
    height: 100%;
    max-height: none;
    display: flex;
    justify-content: center;
    align-items: end;
    border-radius: 0rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease-in-out;
    z-index: 100;
}

.genMenuModalBdr[aria-expanded="true"]
{
    opacity: 1;
    visibility: visible;
}

.genMenuModalBdr.isDragging *
{
    transition: none !important;
    cursor: grabbing !important;
}

.genMenuModalBdr .genMenuModalBcg
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background-color: var(--bcg-shade);
    -webkit-backdrop-filter: blur(0.625rem);
    backdrop-filter: blur(0.625rem);
    z-index: -1;
}

.genMenuModalBdr .genMenuModalBox
{
    position: relative;
    width: 100%;
    max-width: 35.125rem;
    height: -moz-fit-content;
    height: fit-content;
    max-height: 100%;
    border-radius: 0.625rem;
    border-bottom-left-radius: 0rem;
    border-bottom-right-radius: 0rem;
    background-color: var(--bcg-white);
    overflow: hidden auto;
    scrollbar-gutter: stable;
    transform: translateY(100%);
    transition: all 150ms ease-in-out;
}

    
.genMenuModalBdr[aria-expanded="true"] .genMenuModalBox
{   
    transform: translateY(0%);
}

.genMenuModalBox.disableClicks *
{
    pointer-events: none !important;
}

.genMenuModalBox.disableScroll
{
    overflow: hidden hidden !important;
}

.genMenuModalBox .genMenuModalDragHandleBdr
{
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    cursor: grab;
}

.genMenuModalDragHandleBdr .genMenuModalDragHandleBox
{
    width: -moz-fit-content;
    width: fit-content;
    height: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.genMenuModalDragHandleBox .genMenuModalDragHandleIcon
{
    width: 2.5rem;
    height: 0.3125rem;
    border-radius: 2.5rem;
    background-color: var(--bcg-handle);
}

.genMenuModalCtntBdr
{
    width: 100%;
}

.genMenuModalCtntBox
{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.625rem 0;
}

.genMenuModalCtntBox .genMenuModalCtntSectBox
{
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.625rem 1.25rem;
}

.genMenuModalCtntSectBox:has(+ .genMenuModalCtntDescBox)
{
    padding-bottom: 0;
}

.genMenuModalCtntSectBox:first-child
{
    margin-top: 0;
}

.genMenuModalCtntSectBox .genMenuModalCtntSectText
{
    color: var(--font-clr);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
}

.genMenuModalCtntBox .genMenuModalCtntDescBox
{
    width: 100%;
    padding: 0.625rem 1.25rem;
}

.genMenuModalCtntDescBox .genMenuModalCtntDescText
{
    color: var(--font-clr);
    font-size: 0.8125rem;
    text-align: justify;
}
