@import "fonts.css";
@import "utils.css";
@import "mud-overrides.css";

#app {
    overflow: hidden !important;
}

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
    font-size: 14px;
    font-family: 'Telegraf', sans-serif;
    overflow: hidden;
}

html.app-loaded, body.app-loaded {
    overflow: unset;
}

#blazor-error-ui {
    background: lightyellow;
    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;
}


#app #loading-container {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#app #loading-container #logo {
    width: 12.5rem;
    height: 12.5rem;
    padding-bottom: 1rem;
    display: flex;
    align-items: end;
    justify-content: center;
}

#app #loading-container #loading-text {

    margin: 1.5rem 1rem 1rem 1rem;
    text-align: center;
    font-family: 'Telegraf', sans-serif;
    color: #777777;
    font-size: 22px;
}

#app #loading-container #loading-text h1 {
    margin-bottom: 0.25rem;
    font-size: 28px;
    font-weight: 900;
}

@keyframes simple_pulse_animation {
    from {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

@keyframes pulse_animation {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.08);
    }
    50% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    70% {
        transform: scale(1.05);
    }
    80% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.simple-pulse {
    transform-origin: center;
    animation-name: simple_pulse_animation;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

.pulse {
    transform-origin: center !important;
    animation-name: pulse_animation;
    animation-duration: 2300ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.km_pophover {
    max-width: 69px !important;
    white-space: nowrap !important;
}

/* Fullscreen Loader Container */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* Hide loader when class is set */
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Spinner Style */
.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-top-color: #777777;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}