@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

h1, h2, h3, p, div, span {
    outline: none;
}

html, body {
    height: 100%;
    overflow: hidden;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
}

#app {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.loading-progress circle:last-child {
    stroke: #ffd700;
    stroke-dasharray: calc(3.14 * 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 - 0.25rem) 0 auto 0.2rem;
    color: #ffd700;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
}

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

#blazor-error-ui {
    background: #2a0a0a;
    color: #e94560;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    bottom: 0;
    box-shadow: 0 -4px 0 #e94560;
    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-ui .reload {
    color: #ffd700;
}
