html {
    background: #FF4321;
}


.background {
    background: #FF4321;
}

/*.page-background-class {*/
/*    background-image: url(img/Background.jpeg);*/
/*    background-repeat: space;*/
/*}*/

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #4087D1;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #37ff21;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "загрузка");
    }

.logo-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 30%;
}


/* reset */
* {
    box-sizing: border-box;
}


.fixed {
    height: 0;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
}

/* keyframes */
@keyframes fidgetspin {
    0% {
        transform: scale(0.7) rotate(0);
    }

    100% {
        transform: scale(0.7) rotate(1440deg);
    }
}

@keyframes circlemzoom {
    0% {
        transform: scale(0.6);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.6);
    }
}


@keyframes fidgetcolor1 {
    25% {
        border-color: #F08080;
    }

    50% {
        border-color: #40E0D0;
    }

    75% {
        border-color: #4682B4;
    }

    100% {
        border-color: #778899;
    }
}


/* container :: loader */
#loader {
    flex-direction: column;
    display: flex;
    place-content: normal;
    align-items: normal;
}

/* mask */
.loader-mask {
    background: #fafafa;
    z-index: 1000;
    opacity: 0;
}

/* loader open */
#loader[data-loadervisible="true"] {
    height: 100%;
    width: 100%;
}

    #loader[data-loadervisible="true"] .loader-mask {
        height: 100%;
        width: 100%;
        transition: opacity 0.6s;
        opacity: 1;
    }

/* fidget */
.loaderShadow { /* remove this if it cause performance issue */

    filter: drop-shadow(10px 10px 7px rgba(0, 0, 0, .2));
    position: relative;
    z-index: 1001;
}

.loader {
    z-index: 1001;
    position: relative;
    animation: fidgetspin 5s ease-in-out infinite;
}

.circle {
    height: 64px;
    width: 64px;
    border: 7px solid #b0b0b0;
    border-radius: 50%;
    position: absolute;
}

    .circle:before {
        content: "";
        width: 64px;
        height: 64px;
        position: absolute;
        top: 19px;
        transform: rotate(47deg);
        left: 50px;
        border-radius: 50%;
        box-shadow: -8px 35px 0 -8px #b0b0b0;
    }

    .circle:nth-child(2) {
        top: 7px;
        left: 64px;
    }

    .circle:nth-child(3) {
        top: 94px;
        left: 14px;
        transform: rotate(240deg);
    }

    .circle:nth-child(4) {
        top: 94px;
        left: 114px;
        transform: rotate(-240deg);
    }

    .circle span {
        height: 42px;
        width: 42px;
        position: absolute;
        top: 4px;
        left: 4px;
        border: 11px solid #b0b0b0;
        border-radius: 50%;
        animation: fidgetcolor1 8s cubic-bezier(0.07, 1.21, 0.72, 0.46) infinite;
    }

.circleM {
    height: 54px;
    width: 54px;
    position: absolute;
    top: 69px;
    left: 69px;
    z-index: 1;
    background: #fafafa;
    border-radius: 50%;
}

    .circleM span {
        height: 44px;
        width: 44px;
        background: #b0b0b0;
        border-radius: 50%;
        display: block;
        margin: 5px;
        animation: circlemzoom 2s cubic-bezier(1, 0.45, 0.47, 0.7) infinite;
    }


.object-center {
    object-position: center top;
}

.object-cover {
    object-fit: scale-down;
    aspect-ratio: auto !important;
}

/* TicketChat.razor */
.chat-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 65vh;
    min-height: 65vh;
    padding: 10px;
}

.message-container {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .message-container.my-message {
        align-items: flex-end;
    }

.message-body {
    border-radius: 5px;
    word-break: break-word;
    min-width: 0;
    margin-bottom: 10px;
}

.my-message .message-body {
    margin-left: auto;
}

.message-header {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.message-sender {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 1rem;
}

.message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
}

.message-container.my-message .message-content {
    align-items: flex-end;
}

.download-button {
    margin-left: 0;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.message-image {
    width: calc(50% - 5px);
    height: auto;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.image-grid > div {
    clear: both;
}

/* BOOBLE for TicketChat.razor */
.imessage {
    display: flex;
    flex-direction: column;
    font-family: "SanFrancisco";
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    max-width: 600px;
    padding: 0.5rem 1.5rem;
}

    .imessage p {
        border-radius: 1.15rem;
        line-height: 1.25;
        max-width: 75%;
        padding: 0.5rem .875rem;
        position: relative;
        word-wrap: break-word;
    }

        .imessage p::before,
        .imessage p::after {
            bottom: -0.1rem;
            content: "";
            height: 1rem;
            position: absolute;
        }

p.from-me {
    align-self: flex-end;
    background-color: #e5e5ea;
    color: #000;
    max-width: 600px;
}

    p.from-me::before {
        border-bottom-left-radius: 0.8rem 0.7rem;
        border-right: 1rem solid #e5e5ea;
        right: -0.35rem;
        transform: translate(0, -0.1rem);
    }

    p.from-me::after {
        background-color: var(--mud-palette-background);
        border-bottom-left-radius: 0.5rem;
        right: -40px;
        transform: translate(-30px, -2px);
        width: 10px;
    }

p[class^="from-"] {
    margin: 0.5rem 0;
    width: fit-content;
}

p.from-me ~ p.from-me {
    margin: 0.25rem 0 0;
}

    p.from-me ~ p.from-me:not(:last-child) {
        margin: 0.25rem 0 0;
    }

    p.from-me ~ p.from-me:last-child {
        margin-bottom: 0.5rem;
    }

p.from-them {
    align-items: flex-start;
    background-color: #248bf5;
    color: #fff;
    max-width: 600px;
}

    p.from-them:before {
        border-bottom-right-radius: 0.8rem 0.7rem;
        border-left: 1rem solid #248bf5;
        left: -0.35rem;
        transform: translate(0, -0.1rem);
    }

    p.from-them::after {
        background-color: var(--mud-palette-background);
        border-bottom-right-radius: 0.5rem;
        left: 20px;
        transform: translate(-30px, -2px);
        width: 10px;
    }

p[class^="from-"].emoji {
    background: none;
    font-size: 2.5rem;
}

    p[class^="from-"].emoji::before {
        content: none;
    }

.no-tail::before {
    display: none;
}

.margin-b_none {
    margin-bottom: 0 !important;
}

.margin-b_one {
    margin-bottom: 1rem !important;
}

.margin-t_one {
    margin-top: 1rem !important;
}

@font-face {
    font-family: "SanFrancisco";
    src: url("https://cdn.rawgit.com/AllThingsSmitty/fonts/25983b71/SanFrancisco/sanfranciscodisplay-regular-webfont.woff2") format("woff2"), url("https://cdn.rawgit.com/AllThingsSmitty/fonts/25983b71/SanFrancisco/sanfranciscodisplay-regular-webfont.woff") format("woff");
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: normal;
    margin: 0;
}

.container {
    margin: 0 auto;
    max-width: 600px;
    padding: 1rem;
}

h1 {
    font-weight: normal;
    margin-bottom: 0.5rem;
}

h2 {
    border-bottom: 1px solid #e5e5ea;
    color: #666;
    font-weight: normal;
    margin-top: 0;
    padding-bottom: 1.5rem;
}

.comment {
    color: #222;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 100%;
    padding: 0;
}

@media screen and (max-width: 800px) {
    body {
        margin: 0 0.5rem;
    }

    .container {
        padding: 0.5rem;
    }

    .imessage {
        font-size: 1.05rem;
        margin: 0 auto 1rem;
        max-width: 600px;
        padding: 0.25rem 0.875rem;
    }

        .imessage p {
            margin: 0.5rem 0;
        }
}

.resize-handle {
    width: 20px;
    cursor: col-resize;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.handle-stripe {
    width: 2px;
    height: 30px;
    background-color: #888;
    margin: 0 1px;
    border-radius: 1px;
}

.full-cell-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

