/*******************************************************
 * Styling of the "background blur on scroll" page
 * 
 * @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: #000000;
    --bcg-bright: #ffffff;
    --bcg-btn: #ffffff10;
    --bcg-handle: #71717171;
    --bcg-shade: #000000c3;
    --bcg-trpnt: #00000000;
    --font-clr-heavy: #ffffff;
    --font-clr-mid: #cccccc;
    --font-clr-light: #ffffff88;
    --font-shadow: #39393939;
    --transition-flow: 250ms;
    --mvs_mrgn_hrtl: 1rem;
    --mvs_mrgn_btm: 0.75rem;
    --mvs_bdr_rad: 0.625rem;
}

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);
    }
}




.wrapper
{
    width: 100%;
}

.wrapper .base
{
    position: relative;
    width: 100%;
    z-index: 2;
}

.base::before
{
    --base-color: rgba(0, 0, 0, calc(0.65 * var(--ac-effect-multiplier)));
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    background-position: center;
    background-size: cover;
    background-clip: border-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: linear-gradient(var(--base-color), var(--base-color)), 
        linear-gradient(#000000cc, #00000000 35%, #00000000 80%, #00000099 100%), 
        url('images/base.png');
    filter: blur(calc((var(--ac-effect-multiplier) * 2.5rem)));
    pointer-events: none;
    z-index: -1;
}



/* ======== STICKY SECTION ======== */
.base .sticky_sect_bdr
{
    position: sticky;
    top: calc((100vh - var(--ac-fixed-ctnt-h)));
    width: 100%;
    min-height: 100vh;
    filter: blur(calc((var(--ac-effect-multiplier) * 2.5rem)));
    opacity: calc((1 - var(--ac-effect-multiplier)));
    z-index: 3;
}

.sticky_sect_bdr .sticky_sect_box
{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    display: grid;
    place-items: center;
    align-self: center;
    padding: var(--mvs_mrgn_hrtl);
    gap: 0.3125rem;
}

.sticky_sect_box .sticky_sect_text
{
    width: 100%;
    text-align: center;
}

.sticky_sect_text.mjr
{
    color: var(--font-clr-heavy);
    font-size: 1.875rem;
}

.sticky_sect_text.mnr
{
    color: var(--font-clr-mid);
    font-size: 1rem;
}

.sticky_sect_box .sticky_sect_icon
{
    width: 1.875rem;
    height: 1.875rem;
    animation: sticky_sect_icon_anm 1000ms linear infinite;
}

@keyframes sticky_sect_icon_anm 
{
    0%
    {
        transform: translateY(0%);
    }
    70%
    {
        transform: translateY(25%);
    }
    100%
    {
        transform: translateY(0%);
    }
}

.sticky_sect_icon .sticky_sect_svg
{
    width: 100%;
    height: 100%;
    fill: var(--font-clr-mid);
}



/* ======== MOVING SECTIONS ======== */
.base .moving_sect_bdr
{
    position: relative;
    max-width: 100%;
    min-height: 100vh;
    padding: 6.25rem var(--mvs_mrgn_hrtl);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.moving_sect_bdr .moving_sect_box
{
    width: 100%;
    max-width: 37.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.moving_sect_box .mvs_bdr
{
    width: 100%;
}

.mvs_bdr .mvs_box
{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--mvs_mrgn_hrtl);
    gap: 0.5rem;
    border-radius: var(--mvs_bdr_rad);
    background-color: var(--bcg-btn);
}

.mvs_box .mvs_thumb_bdr
{
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: var(--mvs_mrgn_btm);
    border-radius: calc((var(--mvs_bdr_rad) * 0.75));
    backdrop-filter: blur(6.25rem);
    background-color: var(--font-shadow);
    pointer-events: none;
    overflow: hidden;
}

.mvs_thumb_bdr .mvs_thumb_box
{
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bcg-trpnt);
}

.mvs_thumb_box.failed
{
    display: none;
}

.mvs_thumb_box::after
{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 0.125rem solid var(--font-shadow);
    border-top-color: var(--bcg-trpnt);
    translate: -50% -50%;
    pointer-events: none;
    animation: mvs_thumb_box_anm 1000ms linear infinite;
}

@keyframes mvs_thumb_box_anm 
{
    from
    {
        rotate: 0deg;
    }
    to
    {
        rotate: 360deg;
    }
}

.mvs_thumb_box.loaded::after
{
    display: none;
    animation: none;
}

.mvs_thumb_box .mvs_thumb_img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-flow) ease-in-out;
}

.mvs_thumb_box.loaded .mvs_thumb_img
{
    opacity: 1;
    visibility: visible;
}

.mvs_box .mvs_sub_bdr
{
    width: 100%;
}

.mvs_sub_bdr .mvs_sub_box
{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
    flex-wrap: wrap;
    gap: 0 0.3125rem;
}

.mvs_sub_box .mvs_sub_txt
{
    color: var(--font-clr-light);
    font-size: 0.8125rem;
    font-weight: 500;
}

.mvs_box .mvs_ttl_bdr
{
    width: 100%;
}

.mvs_ttl_bdr .mvs_ttl_box
{
    width: 100%;
}

.mvs_ttl_box .mvs_ttl_txt
{
    color: var(--font-clr-heavy);
    font-size: 1rem;
}

.mvs_box .mvs_lnk
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
}




/* =========== RESPONSIVENESS =========== */
@media only screen and (max-width: 30.3125rem)
{
    html:root
    {
        --mvs_mrgn_hrtl: 0.75rem;
    }
}

