:root {
    --gradbase-green: #007749;
    --gradbase-blue: #001489;
    --gradbase-red: #E03C31;
    --gradbase-gold: #FFB81C;
}

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mud-layout {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* Force no ALL CAPS on buttons and menu items */
.mud-button-root,
.mud-menu-activator .mud-button-root,
.mud-nav-link,
.mud-appbar .mud-button-root {
    text-transform: none !important;
}

@media (max-width: 960px) {
    .mud-grid > .mud-item:first-child {
        text-align: center;
    }
}

html {
    scroll-behavior: smooth;
}

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

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

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

#blazor-error-ui {
    background: #E03C31;
    color: white;
    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;
    text-align: center;
}

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

*:focus-visible {
    outline: 2px solid var(--gradbase-gold);
    outline-offset: 2px;
}

@media print {
    .mud-drawer, .mud-appbar, #blazor-error-ui {
        display: none !important;
    }
    .mud-main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
}
