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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #12100c;
    color: #efe6d6;
    font-family: "IBM Plex Mono", monospace;
}

#app {
    width: 100%;
    height: 100%;
}

a {
    color: #c4a35a;
}

#blazor-error-ui {
    background: #3a2218;
    color: #ffe8d6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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: #b32121;
    padding: 1rem;
    color: white;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

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

.loading-progress circle:last-child {
    stroke: #efe6d6;
    stroke-dasharray: calc(3.14159265359 * 1.6rem), 20rem;
    animation: loading-progress-spinner 1.2s linear infinite;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    font-family: "Share Tech Mono", monospace;
    color: #efe6d6;
}

.loading-progress-text:after {
    content: attr(data-value) "%";
}

@keyframes loading-progress-spinner {
    from { transform: rotate(-90deg); }
    to { transform: rotate(270deg); }
}
