:root {
    --sky: #1ea7e1;
    --sky2: #36b9ef;
    --ink: #223;
    --muted: #667;
    --line: #dde5ee;
    --page: #f3f8fc;
    --accent: #e8503a;
    --ok: #2fae4e;
    --bad: #e23b2e;
    --font: "Nunito", "Segoe UI", system-ui, sans-serif;
}

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

html,
body {
    margin: 0;
    font-family: var(--font);
    font-size: 18px;
    color: var(--ink);
    background: var(--page);
}

a {
    color: #1f6fb5;
}

#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;
}

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

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

.loading-progress circle:last-child {
    stroke: var(--sky);
    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: 800;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Betöltés");
}

.btn {
    font: inherit;
    font-weight: 800;
    min-height: 48px;
    padding: 0.5rem 1.4rem;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.btn:hover {
    background: #eef5fb;
}

.btn.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    font-size: 1.3rem;
    min-height: 60px;
    padding: 0.6rem 2.4rem;
}

.btn.primary:hover {
    background: #d6432e;
}

.btn:disabled,
.btn.primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
