*, *::before, *::after {
    box-sizing: border-box;
}

h1:focus {
    outline: none;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #0d1117;
    color: #ffffff;
}

a {
    color: #e05252;
    text-decoration: none;
}

a:hover {
    color: #ff7070;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin-top: 0;
}

.btn-primary {
    background-color: #7c3aed;
    border: none;
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #6d28d9;
    color: #ffffff;
}

/* Blazor error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: #7f1d1d;
    color: #ffffff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    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: #7f1d1d;
    padding: 1rem;
    color: white;
    border-radius: 6px;
}

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

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

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

.loading-progress circle:last-child {
    stroke: #7c3aed;
    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;
    color: #ffffff;
}

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