@import 'layout/mainlayout';
@import 'layout/markdown';
@import 'layout/updateAvaibleDetector';
@import 'components/docssection';
@import 'components/docspage';

.master-loader {
    height: 100%;
    width: 100%;
    margin: 0;
    position: fixed;
}

.logo-loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

@mixin responsive-box($height) {
    position: relative;

    &::before {
        content: '';
        display: block;
        padding-top: $height;
    }
}

.loader-box {
    @include responsive-box(100%);

    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    padding: 25px;
    overflow: hidden;

    .loader-image {
        height: 100%;
        position: absolute;
        inset: 0;
        padding: 20px;

        &:nth-child(1) {
            filter: grayscale(1);
            z-index: 1;
        }

        &:nth-child(2) {
            z-index: 2;
            width: var(--blazor-load-percentage, 0%);
            object-fit: cover;
            object-position: 0% 0%;
        }
    }

    .loader-text {
        $loader-text-size: #{"clamp(16px, calc(24px + (48 - 16) * (100vw - 280px)/(1920 - 280)), 48px)"};

        position: absolute;
        z-index: 3;
        text-align: center;
        font-weight: bold;
        inset: calc(50% - (#{$loader-text-size} / 2)) 0 auto 0;
        font-size: $loader-text-size;
        font-family: Roboto, Helvetica, Arial, sans-serif;

        &::after {
            content: var(--blazor-load-percentage-text, "0%");
        }
    }
}

.no-select {
    user-select: none;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgb(0 0 0 / 20%);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHht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zk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=") no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

@keyframes flow {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.text-gradient {
    animation-duration: 15s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
    animation-name: flow;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 1px;

    &.index-title {
        font-size: #{"clamp(16px, calc(24px + (48 - 16) * (100vw - 280px)/(1920 - 280)), 48px)"};
    }
}

.divider {
    animation-duration: 10s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
    animation-name: flow;
    background: linear-gradient(90deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    height: 6px;
}

.button-gradient {
    position: relative;
    animation-duration: 10s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
    animation-name: flow;
    background-size: 400% 400%;
    background-image: linear-gradient(82deg, #e73c7e 0%, #23a6d5 100%, #e73c7e 200%);
}

.button-gradient:hover {
    box-shadow: 0.3px 0.5px 0.4px hsl(200deg 100% 38% / 62%), 0.3px 0.6px 0.5px -0.7px hsl(200deg 100% 38% / 54%), 0.8px 1.6px 1.3px -1.4px hsl(200deg 100% 38% / 46%), 2px 4.1px 3.4px -2.1px hsl(200deg 100% 38% / 38%), 4.5px 9px 7.5px -2.9px hsl(200deg 100% 38% / 31%), 8.5px 17.1px 14.3px -3.6px hsl(200deg 100% 38% / 23%), 14.6px 29.2px 24.5px -4.3px hsl(200deg 100% 38% / 15%), 23px 46px 38.6px -5px hsl(200deg 100% 38% / 8%);
}

.cropper-error-load {
    max-height: inherit;
    max-width: 100%;
}

.support-ukraine {
    display: flex;
    width: 30px;
    height: 20px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAwIDgwMCI+DQo8cGF0aCBmaWxsPSIjM2E3NWM0IiBkPSJtMCwwaDEyMDB2ODAwaC0xMjAweiIvPg0KPHBhdGggZmlsbD0iI2Y5ZGQxNiIgZD0ibTAsNDAwaDEyMDB2NDAwaC0xMjAweiIvPg0KPC9zdmc+DQo=");
    background-color: initial;
    border-radius: 4px;
    box-sizing: border-box;
}

.cropper-container {
    max-height: inherit;
}

.cropped-canvas-dialog .mud-dialog-title {
    padding-bottom: 0;
}

.cropper-face {
    opacity: 0.1;
}

.img-container.cropper-face-close .cropper-container .cropper-crop-box .cropper-face {
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}

.img-container.cropper-face-arrow .cropper-container .cropper-crop-box .cropper-face {
    clip-path: polygon(40% 0%, 40% 40%, 100% 40%, 100% 60%, 40% 60%, 40% 100%, 0% 50%);
}

.img-container.cropper-face-circle .cropper-container .cropper-crop-box .cropper-face {
    border-radius: 50%;
}

.img-container.cropper-face-pentagon .cropper-container .cropper-crop-box .cropper-face {
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
