/*******************************************************
 * Styling of the drag and sort list
 * 
 * @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-width: thin;
    scrollbar-color: var(--bcg-handle) var(--bcg-trpnt);
}

html:root
{
    --bcg-base: #38776d;
    --bcg-bright: #ffffff;
    --bcg-btn: #ffffff10;
    --bcg-handle: #cdcdcdcd;
    --bcg-shade: #000000c3;
    --bcg-trpnt: #00000000;
    --font-clr-heavy: #ffffff;
    --font-clr-mid: #cccccc;
    --font-clr-light: #ffffff88;
    --font-shadow: #77777777;
    --transition-flow: 250ms;
}

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: 100svh;
    min-height: 100vh;
    background-color: var(--bcg-base);
}

html:has(.edit_modal_base.active) body
{
    overflow: hidden;
}

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



.dragElem.dragging
{
    opacity: 0;
}

.dragElem.notDragging
{
    pointer-events: none;
}

.dragPreview
{
    position: fixed;
    width: clamp(--cusPrvWidth , --cusPrvWidth, --cusPrvWidth);
    height: clamp(--cusPrvWidth , --cusPrvWidth, --cusPrvWidth);
    padding: inherit;
    background-color: #60b9aa7d !important;
    opacity: 1;
    transition: none !important;
    text-decoration: none;
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    z-index: 100;
}



.base
{
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden auto;
    padding: 2.5rem 1rem;
}

.base .hdr
{
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.hdr .title
{
    width: 100%;
    color: var(--font-clr-heavy);
    text-align: center;
}

.hdr .topic
{
    width: 100%;
    color: var(--font-clr-mid);
    text-align: center;
}

.base .bdr
{
    width: 100%;
    margin: 0 auto;
    max-width: 28.125rem;
    border-radius: 0.625rem;
    background-color: var(--bcg-bright);
}

.bdr .box
{
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.card
{
    width: 100%;
    display: flex;
    flex-direction: row;
    border-radius: 0.5rem;
    border: 0.125rem dotted var(--font-shadow);
}

.card:not(:last-child)
{
    margin-bottom: 0.3125rem;
}

.card .handle
{
    width: 2rem;
    min-height: 100%;
    display: grid;
    place-items: center;
    cursor: grab;
}

.handle .icon
{
    width: 1rem;
    height: 1rem;
    fill: var(--font-shadow);
}

.card .ctnt
{
    width: calc((100% - 1rem));
    display: flex;
    flex-direction: row;
    padding: 0.625rem 0;
}

.ctnt .pfp
{
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    box-shadow: 0 0 0 0.0625rem var(--bcg-base);
    overflow: hidden;
}

.pfp .img
{
    width: 100%;
    height: 100%;
    font-size: 0.75rem;
    text-align: center;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.ctnt .det
{
    width: calc((100% - 3.75rem));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 0.5rem;
}

.det .mjr
{
    width: 100%;
    font-size: 1.125rem;
    text-align: left;
    color: var(--bcg-base);
}

.det .mnr
{
    width: 100%;
    font-size: 0.875rem;
    text-align: left;
    color: var(--bcg-shade);
}

