html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.87);
}

body.dark-mode #app {
    background-color: #1a1a1a;
}

body.dark-mode .mud-main-content {
    background-color: #1a1a1a;
}

body.dark-mode .mud-layout {
    background-color: #1a1a1a;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    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: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNs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5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.env-banner-active {
    --env-banner-height: 7px;
}

.env-warning-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--env-banner-height, 0px);
    z-index: calc(var(--mud-zindex-appbar) + 10);
    background-image: repeating-linear-gradient(45deg, #ffcc00 0, #ffcc00 20px, #1a1a1a 20px, #1a1a1a 40px);
}

.env-banner-active .mud-appbar.mud-appbar-fixed-top {
    top: var(--env-banner-height);
}

.env-banner-active .mud-main-content {
    padding-top: calc(var(--mud-appbar-height) + var(--env-banner-height)) !important;
}

.env-banner-active .mud-drawer-fixed.mud-drawer-responsive.mud-drawer-clipped-always {
    top: calc(var(--mud-appbar-height) + var(--env-banner-height)) !important;
    height: calc(100% - var(--mud-appbar-height) - var(--env-banner-height)) !important;
}

.bball-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding-top: 12vh;
    background: #fff;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

    .bball-loading-overlay.bball-loading-overlay--done {
        opacity: 0;
        pointer-events: none;
    }

body.dark-mode .bball-loading-overlay {
    background: #1a1a1a;
}

.bball-loading {
    width: 14rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bball-hoop {
    width: 11rem;
    height: auto;
    overflow: visible;
}

.bball-backboard {
    fill: #f4f4f4;
    stroke: #c62828;
    stroke-width: 2;
}

.bball-backboard-inner {
    fill: none;
    stroke: #c62828;
    stroke-width: 1.5;
}

.bball-rim {
    fill: none;
    stroke: #ff6a00;
    stroke-width: 3.5;
}

.bball-net {
    fill: none;
    stroke: #cfcfcf;
    stroke-width: 1;
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: bball-net-sway 1.8s ease-in-out infinite;
}

body.dark-mode .bball-backboard {
    fill: #2a2a2a;
    stroke: #ff6b5e;
}

body.dark-mode .bball-backboard-inner {
    stroke: #ff6b5e;
}

body.dark-mode .bball-net {
    stroke: #7a7a7a;
}

.bball-court {
    position: relative;
    width: 100%;
    height: 4.5rem;
}

.bball-shadow {
    position: absolute;
    left: 50%;
    bottom: 0.4rem;
    width: 3rem;
    height: 0.6rem;
    background: #000;
    border-radius: 50%;
    filter: blur(1px);
    transform: translateX(-50%);
    animation: bball-shadow 1.8s ease-in-out infinite;
}

.bball-ball {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffb066, #f4711e 55%, #b6470f 100%);
    box-shadow: inset -6px -6px 10px rgba(0, 0, 0, 0.45), inset 3px 3px 6px rgba(255, 255, 255, 0.35);
    overflow: hidden;
    transform: translateX(-50%);
    animation: bball-bounce 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.bball-seam {
    position: absolute;
    background: #1a1a1a;
}

.bball-seam-v {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.bball-seam-h {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.bball-curve {
    top: -25%;
    width: 100%;
    height: 150%;
    background: transparent;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
}

.bball-curve-left {
    left: -75%;
}

.bball-curve-right {
    left: 25%;
}

.bball-scoreboard {
    position: relative;
    margin-top: 1rem;
    width: 100%;
    height: 1.6rem;
    background: #1a1a1a;
    border: 2px solid #ff6a00;
    border-radius: 0.3rem;
    overflow: hidden;
}

.bball-scoreboard-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--visible-load-percentage, 0%);
    background: #ff6a00;
    opacity: 0.35;
}

.loading-progress-text {
    position: relative;
    display: block;
    text-align: center;
    line-height: 1.6rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: #ff9d4d;
}

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

@keyframes bball-bounce {
    0% {
        transform: translate(-50%, 0) rotate(0deg);
    }

    15% {
        transform: translate(-46%, -155%) rotate(110deg);
    }

    30% {
        transform: translate(-40%, -260%) rotate(220deg);
    }

    45% {
        transform: translate(-46%, -155%) rotate(330deg);
    }

    60% {
        transform: translate(-50%, 0) rotate(440deg);
    }

    70% {
        transform: translate(-52%, -45%) rotate(480deg);
    }

    80% {
        transform: translate(-50%, 0) rotate(510deg);
    }

    100% {
        transform: translate(-50%, 0) rotate(540deg);
    }
}

@keyframes bball-shadow {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.55;
    }

    30% {
        transform: translateX(-50%) scale(0.4);
        opacity: 0.15;
    }

    60% {
        transform: translateX(-50%) scale(1);
        opacity: 0.55;
    }

    70% {
        transform: translateX(-50%) scale(0.75);
        opacity: 0.3;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.55;
    }
}

@keyframes bball-net-sway {
    0%, 22% {
        transform: rotate(0deg);
    }

    28% {
        transform: rotate(-2deg);
    }

    34%, 100% {
        transform: rotate(0deg);
    }
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}