/* stylelint-disable docusaurus/copyright-header */
/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans:wght@400;700&family=Press+Start+2P&display=swap|');

:root {
    --ifm-color-primary: #ff0077;
    --ifm-color-primary-dark: #1b0d2a;
    --ifm-color-primary-darker: #990077;
    --ifm-color-primary-darkest: #660077;
    --ifm-color-primary-light: #ff1a85;
    --ifm-color-primary-lighter: #ff268b;
    --ifm-color-primary-lightest: #ff4da0;
    --mf-button-primary: #b72886;
    --mf-button-nav: #5a32e6;
    --mf-color-primary-rgb: 27, 13, 42;
    --mf-color-secondary: #261942;
    --mf-color-secondary-rgb: 38, 25, 66;
    --mf-color-wiki-cta: #ff1f82;
    --mf-color-text-body: #a5b9f6;
    --mf-color-link-hover: #392373;
    --mf-color-link-rgb: 255, 0, 119;
    --mf-font-body: 'IBM Plex Sans';
    --mf-font-mono: 'IBM Plex Mono';
    --mf-page-heading-fontsize: 2rem;
    --mf-page-subheading-fontsize: 1.7rem;
    --ifm-code-font-size: 95%;
    --ifm-font-size-base: 17px;
    --ifm-navbar-search-input-icon: url('data:image/svg+xml;utf8,<svg fill="currentColor" alt="Search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" height="16px" width="16px"><path d="M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z" /></svg>');
    --ifm-navbar-height: 60px;
}

body {
    font-size: 14px;
    overflow-x: hidden;

    @media (min-width: 995px) {
        font-size: 17px;
    }

    div {
        // outline: 1px solid red;
    }
}

body,
.main-wrapper {
    color: var(--mf-color-text-body);
    font-family: var(--mf-font-body), sans-serif;

    &:not(body) {
        padding: 0;
        margin-top: -40px;
        padding-top: 40px;
        position: relative; // added for pseudo-element

        // Fixed-position background image
        &::before {
            content: ' ';
            position: fixed; // instead of background-attachment
            width: 100%;
            height: 100%;
            top: 0;
            right: 0;
            background: url('/img/mymeta-bg.jpg') no-repeat center center;
            background-size: cover;
            will-change: transform; // creates a new paint layer
            z-index: -1;
        }

        @media screen and (min-width: 768px) {
            margin-top: -60px;
            padding-top: 60px;
        }
    }
}

h1 {
    font-size: var(--mf-page-heading-fontsize);
}

.wrapper {
    &.home {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-flow: row wrap;
        min-height: 100vh;
    }
}

.inner-wrapper {
    display: flex;
    align-items: center;
    flex-flow: column wrap;
    width: 100%;

    &>div,
    &>main {
        flex: 0 0 100%;
        width: 100%;
    }
}

.main-wrapper [class^='docSidebarContainer'] {
    position: relative;
    // width: 300px;

    @media (min-width: 1024px) {
        border-right: 0;
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: start;
        justify-content: center;
        width: 100vw;
        --remainder: calc(100vw - 680px);
        --max-width: calc(var(--remainder));
        max-width: var(--max-width);
        min-height: 100vh;
    }

    @media (min-width: 1280px) {
        border-right: 0;
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: start;
        justify-content: flex-end;
        width: 100vw;
        --remainder: calc(100vw - 680px);
        --max-width: calc(var(--remainder) / 2);
        max-width: var(--max-width);
        min-height: 100vh;
    }

    [class^='sidebar'] {
        @media (min-width: 1024px) {
            position: sticky;
            border-radius: 6px;
            backdrop-filter: blur(7px);
            background-color: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 2rem rgba(0, 0, 0, 0);
            transition: background-color 0.3s 0.1s ease-in, box-shadow 0.3s ease-in-out;
            margin-top: 10rem;
            width: 100%;
            max-width: 300px;
            height: auto;
            padding: 5px;
            overflow: hidden;
            z-index: 2;

            &.highlight {
                background-color: rgba(255, 255, 255, 0.15);
            }
        }

        @media (min-width: 1280px) {
            position: relative;
            border-radius: 6px;
            margin-top: 10rem;
            width: 100%;
            overflow: hidden;
            z-index: 2;

            &:hover,
            &.highlight {
                box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);

                &:before,
                &:after {
                    transform: translate3d(120%, 0, 0);
                }
            }

            &:before {
                content: '';
                position: absolute;
                display: none;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                transform: translate3d(-120%, 0, 0);
                filter: blur(15px);
                background: linear-gradient(45deg,
                        transparent,
                        rgba(255, 255, 255, 0),
                        rgba(255, 255, 255, 0.06),
                        rgba(255, 255, 255, 0),
                        transparent);
                transition: all 0.4s 0.3s ease-in-out;
                z-index: 1;
            }

            &:after {
                content: '';
                position: absolute;
                display: block;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                transform: translate3d(-120%, 0, 0);
                filter: blur(10px);
                background: linear-gradient(45deg,
                        transparent,
                        rgba(255, 255, 255, 0),
                        rgba(255, 255, 255, 0.04),
                        rgba(255, 255, 255, 0),
                        transparent);
                transition: all 0.3s 0.1s ease-in-out;
                z-index: 1;
            }

            a {
                transition: all 0.2s 0s ease-in;
            }

            .menu--show {
                background-color: var(--mf-color-secondary);
            }
        }

        @media screen and (min-width: 1366px) {
            margin-right: 15px;
            max-width: 330px;
            border-radius: 0 6px 6px 0;

            a {
                font-size: 0.8rem;
            }
        }

        @media (min-width: 1440px) {
            border-radius: 6px;
        }

        @media (min-width: 1600px) {
            // max-width: 350px;
        }

        @media (min-width: 1920px) {
            border-radius: 6px;
            margin-right: 15px;
            max-width: 400px;

            a {
                font-size: 1rem;
            }
        }

        @media (min-width: 2560px) {
            max-height: 80%;
            padding: 25px 0;

            a {
                font-size: 1.2rem;
            }
        }
    }
}

.main-wrapper [class^='docPage'] {
    @media (min-width: 995px) {
        backdrop-filter: blur(5px);
        min-height: 100vh;
    }

    [class^='docMainContainer'] {
        width: 100%;

        @media (min-width: 740px) {
            // max-width: 680px;
        }

        @media (min-width: 1024px) {
            width: 100vw;
            --remainder: calc(100vw - 680px);
            --sb-width: calc(var(--remainder));
            --max-width: calc(100vw - var(--sb-width));
            max-width: 100vw;
        }

        @media (min-width: 1280px) {
            width: 100vw;
            --remainder: calc(100vw - 680px);
            --sb-width: calc(var(--remainder) / 2);
            --max-width: calc(100vw - var(--sb-width));
            max-width: var(--max-width);
        }

        .container {
            margin-left: 0;

            @media (min-width: 1024px) {
                margin-left: auto;
                margin-right: 0;
                max-width: 100vw;
            }

            @media (min-width: 1280px) {
                margin-left: auto;
                margin-right: 0;
                max-width: unset;
                padding-left: 7px;
            }

            .row {
                display: flex;
                flex-flow: column wrap;
                justify-content: center;

                @media (min-width: 995px) {
                    flex-flow: row nowrap;
                    justify-content: flex-start;
                }

                @media (min-width: 1024px) {
                    flex-flow: row-reverse nowrap;
                    justify-content: flex-start;
                }

                @media (min-width: 1280px) {
                    flex-flow: row nowrap;
                    justify-content: flex-start;
                }

                .col {
                    &.col--3 {
                        @media (min-width: 1024px) {
                            position: sticky;
                            left: 0;
                            top: 0;
                            height: 100vh;
                            width: 100%;
                            max-width: unset;
                            --ifm-col-width: 340px;

                            [class^='tableOfContents'] {
                                display: block;
                                position: absolute;
                                left: 20px;
                                top: unset;
                                bottom: 5rem;
                            }
                        }

                        @media (min-width: 1280px) {
                            position: sticky;
                            top: inherit;
                            height: unset;

                            max-height: calc(100vh - (var(--ifm-navbar-height) + 2rem));
                            top: calc(var(--ifm-navbar-height) + 2rem);
                            --ifm-col-width: calc(3 / 12 * 100%);

                            [class^='tableOfContents'] {
                                display: block;
                                position: unset;
                                left: 20px;
                                top: unset;
                                bottom: 5rem;
                            }
                        }

                        @media (min-width: 1366px) {}

                        flex: 0 0 var(--ifm-col-width);
                        max-width: var(--ifm-col-width);
                    }

                    &[class^='col docItemCol'] {
                        width: 100%;

                        @media (min-width: 760px) {
                            margin: 0 auto;
                            min-width: 680px;
                            max-width: 680px !important;
                        }

                        @media (min-width: 1280px) {
                            margin: 0;
                        }

                        [class^='docItemContainer'] {
                            margin: 0 auto;
                            padding: 0 0.5rem;
                        }
                    }
                }
            }
        }
    }
}

[class^='sidebar'] .menu--show {
    background-color: var(--mf-color-secondary);
}
.docs-version-current {
    .navbar {
        &__items {
            justify-content: space-between;
            @media (min-width: 1280px) {
                justify-content: center;
            }
            &::after {
                content: '';
                flex: 0 0 30px;
                @media screen and (min-width: 1280px) {
                    display: none;
                }
            }
        }
    }
}
.navbar {
    background: #2a0c42;
    backdrop-filter: blur(5px);
    border: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    height: 40px;
    max-height: 40px;
    padding: 0 15px;
    text-align: center;

    @media screen and (min-width: 768px) {
        height: 60px;
        max-height: 60px;
        overflow: visible;
    }

    &__items {
        justify-content: center;
        max-height: 40px;
        @media (min-width: 1280px) {
            top: 20%;
        }
        @media (min-width: 1280px) {
            justify-content: center;
            max-height: 60px;
        }

        &--right {
            position: absolute;
            display: block;
            right: 15px;
            top: 7%;
            @media (min-width: 768px) {
                top: 20%;
            }
            @media (min-width: 1280px) {
                top: 20%;
            }
        }
    }
    &__toggle {
        @media (min-width: 768px) {
            margin-top: 15px;
        }
        @media (min-width: 1280px) {
            margin-top: unset;
        }
    }
    &__title {
        position: absolute;
        visibility: hidden;
    }

    &__brand {
        justify-self: center;
        position: relative;
        margin: 15px 0 0;
        text-align: center;
        @media (min-width: 768px) {
            margin-top: 35px;
        }
        @media (min-width: 1280px) {
            margin-top: 20px;
        }
    }

    &__logo {
        width: 100%;
        max-width: 50px;
        height: 55px;
        margin: 0;
        filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.4));
        transition: filter 0.2s ease-in;

        &:hover {
            filter: drop-shadow(0 0 15px #a5b9f680);
        }
        @media screen and (min-width: 768px) {
            width: 100%;
            max-width: 60px;
            height:66px;
        }
        @media screen and (min-width: 1280px) {
            width: 100%;
            max-width: 80px;
            height: 86px;
        }
    }

    &__search {
        flex: 0;
        &-input {
            position: relative;
            background-color: rgba(255, 255, 255, 0.08);
            background-image: none;
            color: #fff;
            font-size: 0.7rem;
            line-height: 1.7rem;
            padding: 0;
            padding-left: 2rem;
            border-radius: 6px;
            box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
            width: 300px;
            max-width: 20px;
            transition: all 0.2s ease-in-out, max-width 0.3s 0.2s ease-in-out;
            z-index: 200;

            &:focus {
                background-color: rgba(255, 255, 255, 0.25);
                box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
                color: #fa85bc;
                max-width: 130px;
                padding-right: 10px;

                &::placeholder {
                    color: #fa85bc;
                }
            }

            &:hover {
                max-width: 130px;
            }

            &::placeholder {
                color: #fa85bc;
                transition: color 0.2s 0.3s ease;
            }

            @media (min-width: 768px) {
                font-size: 0.9rem;
                line-height: 1.6rem;
                padding: 5px 0 5px 40px;
                // padding-left: 2.2rem;
                max-width: 105px;

                &:focus {
                    max-width: 300px;
                }
            }
        }

        &::before {
            content: "🔍";
            display: block;
            position: absolute;
            font-size: 1rem;
            top: 0;
            left: 7px;
            z-index: 0;

            @media (min-width: 760px) {
                left: 12px;
                top: 1px;
                font-size: 1.2rem;
            }
        }

        .search-icon {
            display: none;
        }
    }


    &.navbar-sidebar {
        backdrop-filter: blur(0);
        &--show {
            .navbar-sidebar {
                background: #2a0c42;
                height: 100vh;
                text-align: left;
                z-index: 2000;

                &__brand {
                    justify-content: center;
                    max-height: 40px;
                    .navbar-sidebar__close {
                        position: absolute;
                        left: 15px;
                    }
                }
            }
        }
    }
}

/* Main dropdown wrapper */
.algolia-autocomplete {
    background-color: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
    border-radius: 6px;

    // &:focus {
    //   max-width: 160px;
    // }
    .search-bar {
        width: 300px;
        max-width: 20px;

        &:hover,
        &:focus {
            max-width: 130px;
        }

        @media (min-width: 760px) {
            max-width: 105px;

            &:hover,
            &:focus {
                max-width: 300px;
            }
        }
    }

    .ds-dropdown-menu {
        background-color: rgba(255, 255, 255, 0.02);
        box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
        // backdrop-filter: blur(7px);
        border-radius: 6px;
        width: 500px;
    }

    .algolia-docsearch-suggestion {
        &--category-header {
            color: darkgray;
            border: 1px solid gray;
        }

        &--subcategory-column {
            color: gray;
        }

        &--title {
            font-weight: bold;
            color: #fff;
        }

        &--text {
            font-size: 0.8rem;
            color: gray;
        }

        &--highlight {
            color: #fa85bc;
        }
    }
}


.pagination-nav__link,
.markdown details summary {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(7px);
    border: 0;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0);
    overflow: hidden;
    transition: box-shadow 0.3s 0.1s ease-in-out, background-color 0.2s 0.3s ease-in-out,
        color 0.5s 0.2s ease;
    z-index: 2;
}

.markdown details {
    background: transparent;
    border: unset;
    box-shadow: unset;
    padding: 0;
    transition: opacity 0.3s 0.4s ease-in;
}
.markdown details[open] {
    [class^="collapsibleContent"] {
        border: unset;
        margin-top: 0;
        padding: 15px;

        br:first-of-type {
            display: none;
        }
    }
}

.markdown details summary {
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    padding: 15px;
}

.pagination-nav__link:after,
.markdown details summary:after {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0),
            transparent);
    transition: all 0.4s 0.1s ease-in-out;
    z-index: 2;
}

.pagination-nav__link:before,
.markdown details summary:before {
    content: '';
    position: absolute;
    /* display: none; */
    top: 0;
    left: -150%;
    width: 150%;
    height: 300%;
    /* transform: rotate(-45deg); */
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0),
            transparent);
    transition: position 0.4s 0.2s ease-in-out;
    z-index: 3;
}

.pagination-nav__link:hover,
.markdown details summary:hover,
.markdown details[open] summary {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
    color: #ff3392;
    cursor: pointer;
}

.pagination-nav__link:hover:after,
.pagination-nav__link:hover:before,
.markdown details summary:hover:after,
.markdown details summary:hover:before,
.markdown details[open] summary:before {
    left: 100%;
}

.markdown details a {
    text-decoration: none;
}

.pagination-nav__link .pagination-nav__label {
    font-size: 0.8rem;
}

.main-wrapper [class^='docTitle'] {
    font-size: 1.5rem;

    @media (min-width: 760px) {
        font-size: 2rem;
    }
}

.markdown h2 {
    font-size: 1.2rem;

    @media (min-width: 760px) {
        font-size: 1.7rem;
    }
}

@media (min-width: 1280px) {
    .pagination-nav__link .pagination-nav__label {
        font-size: 0.8rem;
    }
}

a,
.table-of-contents__link {
    transition: color 0.2s ease-in-out;
}

.table-of-contents__link {
    font-size: 0.8rem;
}

@media (min-width: 995px) {
    .table-of-contents__link {
        font-size: 0.8rem;
    }
}

@media (min-width: 1366px) {
    .table-of-contents__link {
        font-size: 0.8rem;
    }
}

@media (min-width: 1920px) {
    .table-of-contents__link {
        font-size: 1rem;
    }
}

.menu__link {
    transition: background 0.2s ease-in;
}

a {
    color: var(--mf-color-wiki-cta);
}

a:hover,
.table-of-contents__link:hover {
    color: var(--ifm-color-primary-lightest);
    text-decoration: none;
}

.table-of-contents__link--active {
    color: var(--mf-color-wiki-cta);
}

.table-of-contents__link--active:hover {
    color: var(--mf-color-wiki-cta);
}

.docusaurus-highlight-code-line {
    background-color: #1b0d2a;
    display: block;
    margin: 0 calc(-1 * var(--ifm-pre-padding));
    padding: 0 var(--ifm-pre-padding);
}

.button {
    background-color: var(--mf-button-primary);
    border: 0;
    color: white;
    font-family: var(--ifm-font-family-monospace);
}

.button:hover {
    color: var(--mf-color-link-hover);
}

.button--primary {
    background-color: var(--mf-button-primary);
}

.button--outline {
    background-color: transparent;
}

.hero .button--primary {
    position: relative;
    background: var(--mf-color-wiki-cta);
    backdrop-filter: blur(5px);
    border: 0;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
    font-family: var(--mf-font-body);
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 26px;
    overflow: hidden;
    padding: 12px 0;
    width: 164px;
    transition: box-shadow 0.2s ease, background-color 0.3s 0.1s ease-in-out,
        color 0.3 ease;
    z-index: 2;
}

@media (min-width: 1366px) {
    .hero .button--primary {}
}

.hero .button--primary:after {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0),
            transparent);
    transition: all 0.4s 0.1s ease-in-out;
    z-index: 2;
}

.hero .button--primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 300%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0),
            transparent);
    transition: position 0.4s 0.2s ease-in-out;
    z-index: 3;
}

.hero .button--primary:hover {
    background-color: #ff1f8299;
    color: #fff;
    // box-shadow: 0 0 5px rgba(0, 0, 0, 0);
}

.hero .button--primary:hover:after,
.hero .button--primary:hover:before {
    left: 100%;
}

/* .pagination-nav__link {
  border-color: var(--mf-button-nav);
  transition: all 0.2s ease-in-out;
} */

.navbar .navbar__items.navbar__items--right {
    flex-grow: 0;
}

.iframe-container {
    overflow: hidden;
    padding-top: 56.25%;
    position: relative;
}

.iframe-container iframe {
    border: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.markdown iframe {
    width: 100%;
}

blockquote {
    border-color: var(--mf-color-wiki-cta);
    color: var(--mf-color-wiki-cta);

    p {}
}

.festWrapper {
    background: black;
    min-height: 750px;
    height: 750px;

    iframe {
        min-height: 100%;
        height: 100vh;
        max-height: 100%;
    }
}
