h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
    background-color: white;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    margin: 20vh auto;
    opacity: 0;
    padding: 2rem;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    width: 20rem;
}

#components-reconnect-modal[open] {
    animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s,
        components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal::backdrop {
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.components-reconnect-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    background-color: #6b9ed2;
    border: 0;
    border-radius: 4px;
    color: white;
    padding: 4px 24px;
}

#components-reconnect-modal button:hover {
    background-color: #3b6ea2;
}

.components-rejoining-animation {
    height: 80px;
    position: relative;
    width: 80px;
}

.components-rejoining-animation div {
    animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    border: 3px solid #0087ff;
    border-radius: 50%;
    opacity: 1;
    position: absolute;
}

.components-rejoining-animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes components-reconnect-modal-slideUp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes components-rejoining-animation {
    0%,
    4.9% {
        height: 0;
        left: 40px;
        opacity: 0;
        top: 40px;
        width: 0;
    }

    5% {
        height: 0;
        left: 40px;
        opacity: 1;
        top: 40px;
        width: 0;
    }

    100% {
        height: 80px;
        left: 0;
        opacity: 0;
        top: 0;
        width: 80px;
    }
}

/* Critical main shell sizing. This prevents a visible jump before route CSS hydrates. */
:root {
    --local-layout-width: min(1900px, 100vw);
    --local-left-width: 300px;
    --local-right-width: 300px;
}

html,
body {
    margin: 0;
}

body.local-shell-body {
    background: #090909;
    margin: 0 !important;
    padding: 0 !important;
    transition: none !important;
}

body.local-shell-body .local-shell-wrap {
    position: relative !important;
    box-sizing: border-box !important;
    transition: none !important;
}

body.local-shell-body .local-shell-wrap .top_inner,
body.local-shell-body .local-shell-wrap .top_info_box,
body.local-shell-body .local-shell-wrap .gnb_box,
body.local-shell-body .local-shell-wrap .gnb_menu_box,
body.local-shell-body .local-shell-wrap .snb_left,
body.local-shell-body .local-shell-wrap .bet_slip,
body.local-shell-body .local-shell-wrap .local-shell-contents {
    transition: none !important;
}

@media (min-width: 1200px) {
    body.local-shell-body {
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }

    body.local-shell-body .local-shell-wrap {
        box-sizing: content-box !important;
        width: var(--local-layout-width) !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        height: calc(100vh - 145px) !important;
        min-height: calc(100vh - 145px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding-top: 145px !important;
        overflow: visible !important;
    }

    body.local-shell-body .local-shell-wrap .snb_left {
        position: absolute !important;
        top: 160px !important;
        left: 0 !important;
        width: var(--local-left-width) !important;
        height: calc(100vh - 150px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body.local-shell-body .local-shell-wrap .bet_slip {
        position: absolute !important;
        top: 160px !important;
        right: 0 !important;
        left: auto !important;
        width: var(--local-right-width) !important;
        height: calc(100vh - 140px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body.local-shell-body .local-shell-wrap .logo_gnb {
        margin-top: -39px !important;
    }

    body.local-shell-body .local-shell-wrap .logo_gnb img {
        height: 100px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        transition: none !important;
    }

    body.local-shell-body .local-shell-wrap .local-shell-contents {
        position: relative !important;
        box-sizing: border-box !important;
        width: auto !important;
        height: 100% !important;
        min-height: 0 !important;
        margin-top: 6px !important;
        margin-right: 320px !important;
        margin-left: 320px !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -ms-overflow-style: none !important;
        scrollbar-gutter: auto !important;
        scrollbar-width: none !important;
    }

    body.local-shell-body .local-shell-wrap .local-shell-contents::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

}

@media (max-width: 1199px) {
    body.local-shell-body .local-shell-wrap {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 100vh !important;
        height: auto !important;
        margin: 0 !important;
        padding-top: 80px !important;
        overflow: visible !important;
    }

    html[device-mode="mobile"],
    html[device-mode="mobile"] body.local-shell-body {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    html[device-mode="mobile"]::-webkit-scrollbar,
    html[device-mode="mobile"] body.local-shell-body::-webkit-scrollbar,
    html[device-mode="mobile"] body.local-shell-body:hover::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }
}
