@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --event-duration: 5s;
    --lever-event-duration: 1.5s;
    --event-timing-func: ease-in-out;
    --event-iteration-count: 1;
}

canvas {
    z-index: 2000 !important;
}

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

h1:focus {
    outline: none;
}

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

div {
    color: white;
}

.btn-primary {
    color: #fff;
    background-color: purple;
    border-color: black;
    margin: 1em;
}

    .btn-primary:hover {
        color: #fff;
        margin: 1em;
        background-color: purple;
        border-color: purple;
    }

.btn-outline-primary {
    color: mediumpurple;
    background-color: white;
    border-color: mediumpurple;
    margin: 1em;
}

    .btn-outline-primary:hover {
        color: #fff;
        margin: 1em;
        background-color: forestgreen;
        border-color: forestgreen;
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem purple, 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 {
    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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcD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uMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem 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: #cc8f3a;
            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: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

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

code {
    color: #c02d76;
}

.flex-r-100 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    align-items: center;
}

.flex-r {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.flex-c {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flex-c-start {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

.flex-c-sa {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

button {
    box-shadow: rgba(255, 0, 255, 0.2) 0px 0px 24px, rgba(255, 0, 255, 0.2) 0px 0px 39px, rgba(255, 0, 255, 0.2) 0px 0px 60px;
}

    button:disabled {
        text-decoration: line-through;
    }

a {
    text-decoration: none;
}

.error-highlight {
    border: 3px solid red;
}

.action-btn {
    color: white;
}

.action-danger-btn {
    color: white;
    background-color: red;
}

.action-info-btn {
    color: black;
    background-color: cyan;
}

.action-primary-btn {
    color: white;
    background-color: purple;
}

.action-secondary-btn {
    color: white;
    background-color: gray;
}

.action-warning-btn {
    color: black;
    background-color: yellow;
}

.action-blue-btn {
    color: white;
    background-color: blue;
}

.action-black-btn {
    color: white;
    background-color: black;
}

.even td{
    width:50%;
}

.payout {
    margin-top: 1em;
    table-layout: fixed;
    text-align: center;
}

    .payout td, .payout th {
        border: 2px solid rebeccapurple;
        word-break: break-word;
        padding: 1em;
    }


.modal-stuff {
    color: white;
    background-color: #063658;
}

.play-mat {
    background: rgba(0,0,0, .8);
    padding: 0 .5em;
    border-radius: 5px;
}

    .play-mat h5 {
        color: white;
    }

.play-mat-pretty {
    background: rgba(219, 252, 231, .8);
    padding: 0 .5em;
    border-radius: 5px;
}

.play-mat-pretty-solid {
    background: rgb(219, 252, 231);
    padding: 0 .5em;
    border-radius: 5px;
}

.play-mat-pretty h1, .play-mat-pretty h2,
.play-mat-pretty h3, .play-mat-pretty h4,
.play-mat-pretty h5, .play-mat-pretty span,
.play-mat-pretty table tr {
    color: black;
}

.selected {
    background-color: #fef9c3;
    padding: .5em;
    border-radius: 2em;
}

.draw-box {
    border: 1px solid purple;
    border-radius: 5px;
    padding: .5em;
}

.fade-in {
    animation: fade-in-ani 1s 1 linear;
    opacity: 1;
}

@keyframes fade-in-ani {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.right-to-left {
    animation: right-to-left-ani 1s 1 linear;
}

@keyframes right-to-left-ani {
    0% {
        right: -10%;
    }

    50% {
        right: 25%;
        opacity: 1;
    }
}

.tab-btn {
    flex-grow: 1;
}

/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #203957;
    width: 100%;
}

    /* Style the buttons inside the tab */
    .tab button {
        background-color: inherit;
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 14px 16px;
        transition: 0.3s;
        font-size: 17px;
        color: silver;
    }

        /* Change background color of buttons on hover */
        .tab button:hover {
            background-color: #05DDA9;
            color: black;
        }

        .tab button.active:hover {
            color: silver;
        }

        /* Create an active/current tablink class */
        .tab button.active {
            background-color: #384152;
        }

/* For Cop Car Support */
.sirens {
    position: absolute;
    height: 100vh;
    width: 100vh;
    top: 0;
    transform-origin: center top;
    animation: sirens-flash;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: var(--event-timing-func);
    animation-fill-mode: backwards;
    animation-direction: alternate;
}

@keyframes sirens-flash {
    0% {
        background: repeating-conic-gradient(from 0deg at 50% 0%, transparent 0deg 90deg, rgba(255,0,0,.5) 90deg 180deg);
    }

    25% {
        background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(0,0,255,.5) 0deg 90deg, transparent 90deg 180deg);
    }

    50% {
        background: repeating-conic-gradient(from 0deg at 50% 0%, transparent 0deg 90deg, rgba(255,0,0,.5) 90deg 180deg);
    }

    75% {
        background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(0,0,255,.5) 0deg 90deg, transparent 90deg 180deg);
    }

    100% {
        background: repeating-conic-gradient(from 0deg at 50% 0%, transparent 0deg 90deg, rgba(255,0,0,.5) 90deg 180deg);
    }
}

/* For Prison Support */
.jail-bar {
    position: absolute;
    height: 100%;
    width: 1em;
    top: 0;
    background-color: silver;
}

.jail-support {
    position: absolute;
    width: 100%;
    height: 1em;
    background-color: silver;
}

.sliding-bars {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    animation: bars;
    animation-duration: var(--lever-event-duration);
    animation-iteration-count: var(--event-iteration-count);
    animation-timing-function: var(--event-timing-func);
    animation-fill-mode: backwards;
    animation-direction: alternate;
}

@keyframes bars {
    0% {
        left: -100%;
    }

    90% {
        left: 0%;
    }
}

/* —— Casino Pull Lever —— */
.lever {
    height: 100px;
    perspective-origin: center bottom;
    cursor: pointer;
}

.lever-flashy {
    animation: flash 2s infinite;
}

@keyframes flash {
    50% {
        box-shadow: -3px -3px 10px 5px red, 3px 3px 10px 5px red;
    }
}

.lever-stick {
    position: relative;
    left: 75%;
    width: .5em;
    height: 50%;
    border-radius: 1em;
    padding: 0;
    margin: 0;
    margin-top: -10px;
    background-color: gray;
    border: 2px solid black;
    transform-origin: center bottom;
}

.lever-knob {
    position: relative;
    left: 50%;
    width: 1em;
    height: 1em;
    border-radius: 1em;
    padding: 0;
    margin: 0;
    border: 2px solid black;
    z-index: 1;
    background: radial-gradient(circle at 30% 30%, #f00, #666);
    transform-style: preserve-3d;
}

.knob-no-flash {
    box-shadow: inset -2px -2px 5px rgba(255,0,0,0.6), inset 2px 2px 5px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.5);
}

.lever-stick-move {
    animation: lev-s-down;
    animation-duration: var(--lever-event-duration);
    animation-iteration-count: var(--event-iteration-count);
    animation-timing-function: var(--event-timing-func);
    animation-fill-mode: backwards;
    animation-direction: alternate;
}

@keyframes lev-s-down {
    0% {
        transform: rotateX(0deg);
    }

    50% {
        transform: rotateX(180deg);
        box-shadow: inherit,1px 3px black;
    }

    100% {
        transform: rotateX(0deg);
    }
}

.wheel-container {
    position: relative;
    height: 100px;
    width: 160px;
    margin: 0 auto;
    overflow: hidden;
    border: 6px solid #cc0000;
    background: #111;
    border-radius: 10px;
    margin: 0;
}

.pointer {
    position: absolute;
    top: 50%; /* Vertically center the pointer */
    right: -3px; /* Move the pointer to the right side */
    transform: translateY(-50%); /* Ensure it's centered vertically */
    font-size: 2rem;
    color: red;
    z-index: 10;
}

.wheel {
    display: flex;
    flex-direction: column;
    transition: transform 3s cubic-bezier(0.33, 1, 0.68, 1);
}

.number {
    height: 100px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    background: purple;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

/* For Double Action */
.ambu {
    top: 50%;
    width: 5em;
    transform: scaleX(-1);
    position: absolute;
    display: block;
    animation: speed;
    animation-duration: var(--event-duration);
    animation-iteration-count: infinite;
    animation-timing-function: var(--event-timing-func);
    animation-fill-mode: forwards;
    font-size: 64px;
    font-style: italic;
}

.ambu-text {
    top: 50%;
    width: 2em;
    position: absolute;
    display: block;
    animation: speed;
    animation-duration: var(--event-duration);
    animation-iteration-count: infinite;
    animation-timing-function: var(--event-timing-func);
    animation-fill-mode: forwards;
    font-size: 32px;
    transform: scale(1) rotate(0deg) translate(0px, 0px) skew(30deg, 0deg);
}

@keyframes speed {
    0% {
        left: -500px;
    }

    100% {
        left: 150%;
    }
}

/* For Trailer/Train Action */
.storage {
    top: 50%;
    width: 5em;
    transform: scaleX(-1);
    position: absolute;
    display: block;
    animation: run;
    animation-duration: var(--event-duration);
    animation-iteration-count: infinite;
    animation-timing-function: var(--event-timing-func);
    animation-fill-mode: forwards;
    font-size: 64px;
}

@keyframes run {
    0% {
        left: -500px;
    }

    100% {
        left: 150%;
    }
}

/* For Marry Action */
.heart {
    width: 1em;
    height: 1em;
    position: absolute;
    display: block;
    animation: fall;
    animation-duration: var(--event-duration);
    animation-iteration-count: infinite;
    animation-timing-function: var(--event-timing-func);
    animation-fill-mode: forwards;
    top: -50px;
    font-size: 32px;
}

@keyframes fall {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        top: 210%;
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

/* For Kill Action */
.droplet {
    width: 1em;
    height: .5em;
    border-radius: 50%;
    background-color: #f00;
    position: absolute;
    opacity: 0.5;
    display: block;
    animation: bloodDrop;
    animation-duration: var(--event-duration);
    animation-iteration-count: infinite;
    animation-timing-function: var(--event-timing-func);
    animation-fill-mode: forwards;
}

@keyframes bloodDrop {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.2;
    }
}

.event-msg {
    font-size: 2em;
    opacity: 0;
    animation: eventPop;
    animation-duration: var(--event-duration);
    animation-iteration-count: var(--event-iteration-count);
    animation-timing-function: var(--event-timing-func);
}

@keyframes eventPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.event-msg-back {
    opacity: 0;
    overflow: hidden;
    animation: fade-in-bounce-ani;
    animation-duration: var(--event-duration);
    animation-iteration-count: var(--event-iteration-count);
    animation-timing-function: var(--event-timing-func);
}

@keyframes fade-in-bounce-ani {
    0% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.tee-box {
    position: fixed;
    right: 2em;
    border-radius: 5px;
    margin-top: 1em;
    padding: .5em;
    z-index: 10;
    align-items: center;
}

.modal-content {
    background-color: transparent !important;
}

.gen-modal-dialog {
    margin: 0;
}

.cow-back {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('/images/cowhide.png');
}
