html {
    font-size: 13px;
}

@media (min-width: 1200px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1300px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1400px) {
    html {
        font-size: 16px;
    }
}

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

@media (min-width: 1600px) {
    html {
        font-size: 18px;
    }
}

@media (min-width: 1700px) {
    html {
        font-size: 19px;
    }
}

@media (min-width: 1800px) {
    html {
        font-size: 20px;
    }
}

@media (min-width: 1900px) {
    html {
        font-size: 20.5px;
    }
}

@media (min-width: 2000px) {
    html {
        font-size: 21px;
    }
}

@media (min-width: 2100px) {
    html {
        font-size: 21.5px;
    }
}

@media (min-width: 2200px) {
    html {
        font-size: 22px;
    }
}

@media (min-width: 2300px) {
    html {
        font-size: 22.5px;
    }
}

body {
    font-family: "Open Sans", sans-serif;
    color: #0F0B0B;
}

h1:focus {
    outline: none;
}

.fs-edit-menu-popover,
.fs-edit-menu-popover>.mud-list {
    border-radius: 0.8rem !important;
}

/*Overwrrites default values of min-width: 56px*/
.mud-list-item-icon {
    min-width: 2rem !important;
}

.fs-edit-menu-popover {
    border: 2px solid gray;
}

#blazor-error-ui {
    background: lightyellow;
    color: black;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxy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yAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: rgb(240, 240, 240);
}

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

.mud-app-bar {
    background-color: #000000;
    position: relative !important;
}

.mud-tooltip-root.mud-tooltip-inline {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.mud-tooltip {
    z-index: 1500 !important;
}

.mud-layout {
    min-width: 100vw !important;
    min-height: 100vh !important;
    overflow-x: hidden;
    background-color: #F5F5F4 !important;
}

.mud-main-content {
    height: calc(100vh - 4.7rem) !important;
    padding: 0 !important;
}

.mud-toolbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0rem !important;
    margin: 0rem 1rem !important;
}

.mud-toolbar .mud-input {
    min-width: 12rem !important;
    max-width: 15rem !important;
    background-color: white !important;
    border-radius: .5rem !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
}

.edit-entity-button:first-child {
    border-radius: 4px 4px 0 0 !important;
}

.edit-entity-button {
    border-bottom: 1px solid !important;
    background-color: #F5F5F4 !important;
}

.edit-entity-button:last-child {
    border-radius: 0 0 4px 4px !important;
    border-bottom: 0px !important;
}

.mud-input-helper-text.mud-input-error {
    font-size: 0.7rem;
}

.dialog-background-title {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E5E5E5;
}

header {
    pointer-events: none;
}

.mud-toolbar * {
    pointer-events: auto;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.35rem;
    position: relative;
    bottom: 0 !important;
    background-color: rgba(208, 208, 206, 1);
    z-index: 999;
    font-size: .6rem;
    color: rgba(0, 0, 0, 1);
}

.copyright-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.oss-button {
    color: #68b631;
    border: 1px solid #68b631;
    height: auto;
    white-space: normal;
    word-wrap: break-word;
    padding: .8em 2em;
    font-size: .8em;
    line-height: 1.2;
    cursor: pointer;
    -moz-transition: .1s ease;
    -o-transition: .1s ease;
    -webkit-transition: 1s ease;
    transition: .1s ease;
}

    .oss-button:hover {
        color: #fff;
        background-color: #68b631;
    }

.version-number {
    left: 2rem;
}

.tooltip {
    height: 100% !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0.5rem !important;
}

.mud-breadcrumbs {
    font-size: .9rem;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    padding: 0;
}

.mud-breadcrumbs .mud-breadcrumb-item {
    position: relative;
}

/* Breadcrumb tooltip */
.mud-breadcrumbs .mud-breadcrumb-item::before {
    content: attr(data-tooltip);
    color: var(--mud-palette-dark-text);
    background-color: var(--mud-palette-grey-darker);
    border-radius: var(--mud-default-borderradius);
    position: absolute;
    top: 1.6rem;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-weight: 500;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.4em;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mud-breadcrumb-separator {
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mud-stepper .mud-stepper-nav .mud-step {
    padding: 1rem;
}

.breadcrumb-separator {
    min-width: 0.3rem !important;
}

.breadcrumb-container :not(:last-child):hover {
    text-decoration: underline;
}

.breadcrumb-container> :last-child {
    pointer-events: none;
}

.project-view-buttons {
    position: absolute !important;
    left: 50%;
    transform: translateX(-50%) !important;
    top: 3.175rem;
    padding: 0 0.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .25rem;
    padding: .2rem;
    height: 2.15rem;
}

.project-view-button {
    border-left: none !important;
    height: fit-content !important;
    width: 5rem;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: none !important;
}

    .project-view-button:hover {
        background-color: transparent !important;
    }

    .project-view-button.active .name {
        border-bottom: .1rem solid rgba(134, 188, 37, 1) !important;
        font-weight: 700 !important;
        background-image: none;
    }

.name {
    font-size: .8rem;
    border: .1rem solid transparent;
    margin: 0.3rem 0.5rem !important;
}

.add-future-state-menu {
    border-radius: .3rem;
}

    .add-future-state-menu .mud-list {
        border-radius: .3rem;
        border: 1px solid #999;
        padding: .1rem .15rem .1rem .15rem;
    }

    .add-future-state-menu .mud-list-item {
        padding-top: .6rem;
        padding-bottom: .6rem;
    }

        .add-future-state-menu .mud-list-item:not(:last-of-type) {
            border-bottom: 1px solid #999;
        }

        .add-future-state-menu .mud-list-item .mud-list-item-text {
            margin: 0;
        }

            .add-future-state-menu .mud-list-item .mud-list-item-text .mud-typography {
                font-size: .8rem;
                display: flex;
                justify-content: space-between;
            }

.entity-filter-item .mud-list-item-icon {
    min-width: 2rem !important;
}

.mud-list-item.entity-filter-item {
    padding-left: .5rem !important;
    padding-right: .5rem !important;
    padding-top: .3rem !important;
    padding-bottom: .3rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    
}

.mud-tab {
    text-transform: none !important;
}

.mud-grid-spacing-xs-6 {
    width: calc(100% + 1rem);
    margin-left: -1rem;
    margin-top: -1rem;
}

    .mud-grid-spacing-xs-6 > .mud-grid-item {
        padding-left: 1rem;
        padding-top: 1rem;
    }

@keyframes slideUp {
    from {
        bottom: -100%;
    }

    to {
        bottom: 3rem;
    }
}

@keyframes slideDown {
    from {
        bottom: 1rem;
    }

    to {
        bottom: -100%;
    }
}

.required {
    color: #f44336;
}

.spinner {
    border: .6rem solid rgba(205, 205, 205, 0.486);
    border-top: .6rem solid #86BC24;
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

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

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

.loading-progress circle:last-child {
    stroke: #86BC24;
    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(40vh + 3.3rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.export-menu {
    border-radius: .3rem;
}

.export-menu .mud-list {
    border-radius: .3rem;
    border: 1px solid #999;
    padding: .1rem .15rem .1rem .15rem;
}

.export-menu .mud-list-item {
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.export-menu .mud-list-item:not(:last-of-type) {
    border-bottom: 1px solid #999;
}

.export-menu .mud-list-item .mud-list-item-text {
    margin: 0;
}

.export-menu .mud-list-item .mud-list-item-text .mud-typography {
    font-size: .8rem;
    display: flex;
    justify-content: space-between;
}

.export-menu .mud-list-item .mud-list-item-text .mud-typography span {
    flex-grow: 1;
    margin-left: .5rem;
    margin-right: 1.2rem;
}

.close-drawer-button {
    width: 1.5rem;
    height: .5rem;
}

.close-drawer-button>* {
    text-transform: none;
}

.export-drawer-button {
    width: 1.5rem;
    height: .5rem;
}

.export-drawer-button>* {
    text-transform: none;
}

.export-snap-report-button {
    background-color: #86BC24;
    color: #000000;
    height: 2.2rem !important;
    max-height: 2.2rem !important;
    width: 14rem !important;
    border-radius: 0.275rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-snap-report-button:hover {
    background-color: #86BC24;
    color: #000000;
}

.snap-index-marker {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.2rem;
    height: 1rem;
    font-size: .7rem;
    background-color: #000000;
    color: #FFFFFF;
    pointer-events: none;
}

.arrow {
    pointer-events: none;
    cursor: pointer;
    stroke-width: .15rem;
    filter: drop-shadow(0 0 .05rem white);
    fill: none;
}

    .arrow.contrast {
        pointer-events: none;
        stroke: white;
        stroke-width: .3rem;
        stroke-dasharray: none;
    }

.arrow.dashed {
    stroke-dasharray: 8, 4;
}

.arrow__path {
    fill: none;
    pointer-events: stroke;
}

    .arrow__path:hover {
        stroke-width: .3rem;
        filter: drop-shadow(0 0 .1rem white);
    }

.arrow__head line {
    stroke-dasharray: none;
    stroke-width: .15rem;
}

.icon-capsule {
    filter: drop-shadow(0 .1rem 0 rgb(0, 0, 0, .1));
}

.screenshot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 15000;
    pointer-events: none;
    transition: background-color 0.25s ease-in-out;
}

.terms-dialog .mud-dialog-title {
    padding: .795rem 1.195rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E5E5E5;
    font-family: "Open Sans", sans-serif;
    position: sticky;
    top: 0;
}

.terms-dialog .mud-dialog-title h6 {
    color: black;
    font-size: 1.475rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* flows editor styling */
.flow-editor-menu {
    color: white;
    position: absolute;
    width: fit-content;
    height: fit-content;
    background-color: black;
    border: 1px solid white;
    border-radius: 0.25rem;
    padding: 0.6rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 9999;
    overflow-y: auto;
    max-height: 15rem;
}

.flow-editor-menu-option {
    padding: .2rem .3rem;
    font-size: .7rem;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-radius: .1rem;
}

    .flow-editor-menu-option:hover {
        background-color: #53565A
    }

    .flow-editor-menu-option :first-child {
        margin-right: 1rem;
    }

    .flow-editor-menu-option :last-child {
        /*margin-left: 3rem;*/
    }

.flow-editor-menu-divider {
    border-top: 1px solid #5C5C5C;
    margin: 0rem 0.3rem;
}

.flow-editor-link-option {
    color: white;
    font-size: .8rem;
    padding: 5px;
    cursor: pointer;
}

.joint-element {
    cursor: pointer;
}

/* Visual indicator for elements in a group selection */
.joint-element.group-selected {
    filter: drop-shadow(0 0 2px #f700ff);
}

.not-allowed {
    cursor: not-allowed;
}

.flex-col-reverse {
    display: flex;
    flex-direction: column-reverse;
}

/* Example of applying style to Joint.JS type: DrawnRectangle shape */
/*.joint-type-drawnrectangle rect:first-of-type:hover {*/
    /*stroke-width: 6;*/
    /*padding: .2rem;*/
    /*cursor: move;*/
/*}*/

/* Gray the text on hover for textbox and callout shapes */
/*.joint-type-textbox text:hover, .joint-type-callout text:hover {*/
/*    fill: #53565A;*/
/*}*/
/* -------------------- */

.app-version {
    position: absolute;
    right: 1rem;
    color: #000000;
}

