@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400..600&&display=swap&text=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400..600&&display=swap&text=DEMOS1234567890');

.demo-panel,
.annoying-button {
    --panel-color: #0A0F11;
    --header-height: 55px;
    --gutters: 40px;
    --normal-color: #fff;
    --hover-color: #03A9F4;
    --border-color: rgba(255, 255, 255, .2);
    --animation-time: .2s;
    --modal-animation-time: .35s;
    --button-size: 62px;
    --font-primary: 'Figtree', sans-serif;
    --font-decor: 'Outfit', sans-serif;
    --shadow-lite: 0 0 6px rgba(0, 0, 0, .3);
    --shadow-dark: 0 0 6px rgba(0, 0, 0, .6);
}
.demo-panel *,
.annoying-button * {
    box-sizing: border-box;
    text-decoration: none;
    color: var(--normal-color);
}
.demo-panel * {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
}
.annoying-button * {
    font-family: var(--font-decor);
    line-height: 1;
}
.filter-panel a,
.filter-panel button *,
.filter-panel .category-selected {
    color: var(--normal-color);
    fill: currentColor;
    transition: color var(--animation-time);
}
.filter-panel a.act,
.filter-panel a:hover,
.filter-panel button:hover *,
.filter-panel .category-selected:hover {
    color: var(--hover-color);
}

.annoying-button {
    position: fixed;
    bottom: calc(50vh - var(--button-size)/2);
    right: 10px;
    display: block;
    width: var(--button-size);
    height: var(--button-size);
    border: none;
    cursor: pointer;
    z-index: 999;

    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: var(--panel-color);
    box-shadow: var(--shadow-lite);

    visibility: hidden;
    opacity: 0;
    transition: opacity var(--animation-time), visibility var(--animation-time);
    pointer-events: none;
}
.annoying-button.visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.annoying-button .demos-number {
    position: absolute;
    top: calc(var(--button-size)/ 2 - 24px);

    font-size: 40px;
    line-height: 1;
    font-weight: 500;
}
.annoying-button .demos-caption {
    position: absolute;
    top: calc(var(--button-size)/ 2 + 8px);

    font-size: 14px;
    font-weight: 400;

    color: var(--normal-color) !important;
    text-shadow: var(--shadow-dark);
}

/* RGB demos count */
.annoying-button .demos-number {
    background: linear-gradient(90deg,#f79533,#f37055,#ef4e7b,#a166ab,#5073b8,#1098ad,#07b39b,#6fba82,#f79533)
    0 0 / 300%;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
}

/* RGB hover */
@property --a {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false
}
.annoying-button {
    overflow: hidden;
    border-radius: 3px;
}
.annoying-button::before {
    content: '';
    position: absolute;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--animation-time);

    inset: 0px;
    border: solid 2px;
    border-image: conic-gradient(from var(--a),
    #669900, #99cc33, #ccee66,
    #006699, #3399cc, #990066, #cc3399,
    #ff6600, #ff9900, #ffcc00, #669900)
    1;

    filter: blur(0px);
    animation: a 4s linear infinite;
}
@media (hover: hover) {
    .annoying-button:hover::before {
        opacity: .8;
    }
}

/* Preventing epileptic episodes in sensitive individuals */
@media (prefers-reduced-motion: no-preference) {
    @keyframes move-bg {
        to {
            background-position: 300% 0;
        }
    }
    .annoying-button .demos-number {
        animation: move-bg 8s linear infinite;
    }

    @keyframes a { to { --a: 1turn } }
}


.demo-panel {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: scale(.95);

    pointer-events: none;
    overscroll-behavior: contain;

    box-sizing: border-box;
    max-width: none;
    max-height: none;
    width: min(100vw, 1080px);
    height: calc(100dvh - 80px);
    padding: 0;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0, 0, 0, .3);

    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 100000;

    transition: opacity var(--modal-animation-time),
    transform var(--modal-animation-time),
    visibility var(--modal-animation-time),
    overlay var(--modal-animation-time) allow-discrete /* ,
                display var(--modal-animation-time) allow-discrete */;
}
/* Removing margins on smaller screens */
@media screen and (max-width: 1160px) {
    .demo-panel {
        margin: 0;
        width: auto;
        height: auto;
        border-radius: 0;
    }
}
.demo-panel[open] {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: none;
}
@starting-style {
    /* .demo-panel[open] {
        visibility: hidden;
        opacity: 0;
        transform: translate(0, -50px);
        pointer-events: none;
    } */
}

.demo-panel::backdrop {
    position: fixed;
    inset: 0;

    background-color: rgba(255, 255, 255, .5);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    opacity: 0;

    transition: opacity var(--modal-animation-time);
}
.demo-panel[open]::backdrop {
    opacity: 1;
}
@starting-style {
    .demo-panel[open]::backdrop {
        opacity: 0;
    }
}


.content-wrap {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.filter-panel {
    width: 100%;
    height: var(--header-height);
    line-height: 1;
    padding: 0 16px 0 16px;
    background-color: var(--panel-color);
    border-bottom: solid 1px var(--border-color);
}
.filter-panel .content-wrap {
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
}

@media screen and (min-width: 701px) {
    .category-selected,
    .showing-caption {
        display: none;
    }
    .filter-panel .categories-wrap {
        height: 100%;
    }
    .filter-panel nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        height: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-panel nav::-webkit-scrollbar {
        display: none;
    }
    .filter-panel nav > a {
        display: flex;
        white-space: nowrap;
        align-items: center;
        padding: 0 6px 0 6px;
    }
}

@media screen and (max-width: 700px) {
    .category-selected,
    .showing-caption {
        cursor: pointer;
    }
    .showing-caption {
        padding-right: 7px;
    }

    .filter-panel nav {
        display: grid;
        position: absolute;
        z-index: +1;
        background-color: var(--panel-color);
        padding: 15px;
        margin: 10px 0 0 -15px;
        gap: 15px;
        border: solid 1px var(--border-color);

        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transition: all var(--animation-time) ease;
    }
    .filter-panel .is-open nav {
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
    }
}

.close-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.close-panel svg {
    width: 25px;
    height: 25px;
}

.content-panel {
    width: 100%;
    height: calc(100% - var(--header-height));
    padding: var(--gutters);
    background-color: var(--panel-color);
    overflow: hidden;
}
.demo-panel .content-panel {
    overflow: auto;
    overscroll-behavior: contain;
}
.touchevents .content-panel {
    -webkit-overflow-scrolling: touch;
}
.content-panel .content-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    justify-content: center;
    column-gap: var(--gutters);
    row-gap: calc(var(--gutters) + 5px);
}

.demo-thumb {
    display: grid;
    gap: 10px;
    line-height: 16px;
}
.demo-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 1080;
    border-radius: 2px;
    opacity: 0;
    transition: opacity var(--animation-time);
}
.demo-thumb.thumb-loaded img {
    opacity: 1;
    transition: transform var(--animation-time) ease-out;
}
.demo-thumb.thumb-loaded:hover img {
    transform: matrix3d(1.04, 0, 0, 0, 0, 1.04, 0, 0, 0, 0, 1, -2, 0, 0, 0, 1);
}

.demo-thumb .caption-wrap {
    margin-top: 10px;
}
.demo-thumb .tags-wrap {
    font-size: 13px;
    color: #FFFFFF6E;
}

@media screen and (max-width: 470px) {
    .demo-panel {
        --gutters: 30px
    }
    .content-panel .content-wrap {
        /* grid-template-columns: 1fr; */
    }
    .content-panel {
        padding: calc(var(--gutters) + 5px) var(--gutters);
    }
}

/* Custom scroll: begining */
@media (hover: hover) {
    
.the7-scrollbar {
    --scrollbar-thumb-color: rgba(255, 255, 255, 0.4);
    --scrollbar-thumb-hover-color: rgba(255, 255, 255, 0.6);

    scrollbar-color: var(--scrollbar-thumb-color) transparent;
}
.the7-scrollbar:hover {
    scrollbar-color: var(--scrollbar-thumb-hover-color) transparent;
}
.the7-scrollbar::-webkit-scrollbar {
    width: 13px;
    height: 13px;
}
.the7-scrollbar::-webkit-scrollbar-track {
    /* background: rgba(255, 255, 255, 0.15); */
}
.the7-scrollbar::-webkit-scrollbar-thumb {
    border: solid 3px var(--panel-color);
    border-radius: 7px;
    background: var(--scrollbar-thumb-color);
}
.the7-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-color);
}

}
/* Custom scroll: end */