@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600;1,700;1,900&display=swap');


html, body {
    font-family: 'Source Sans Pro', sans-serif;
}

main {
    padding-bottom: 60px;
}

a, .btn-link {
    color: #006bb7;
}

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

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5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em;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.ticket-card {
    border: 2px solid #6c757d; /* dashed edges for ticket look */
    border-radius: 12px;
    position: relative;
}

/* Hide spinner arrows in Chrome, Edge, Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide spinner arrows in Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.number-entry{
    width: 85px;
}

/*.ticket-card::before,
    .ticket-card::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 20px;
        height: 20px;
        background: white;
        border: 2px solid #6c757d;
        border-radius: 50%;
        transform: translateY(-50%);
    }

    .ticket-card::before {
        left: -12px;
    }

    .ticket-card::after {
        right: -12px;
    }*/

.number-box {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    padding: 0;
    background-color: white;
    color: black;
    border: 2px solid black; /* black border */
    border-radius: 6px; /* optional, can remove for sharp edges */
}

    /* Hide spinner arrows in Chrome, Edge, Safari */
    .number-box::-webkit-outer-spin-button,
    .number-box::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Hide spinner arrows in Firefox */
    .number-box[type=number] {
        -moz-appearance: textfield;
    }

.display-box {
    display: flex; /* centers number vertically */
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: white;
    color: black;
}

.clear-btn {
    font-size: 1.5rem; /* bigger × */
    padding: 0 8px; /* bigger touch area */
    line-height: 1;
    min-width: 30px; /* ensures clickable on mobile */
    min-height: 30px;
    border-radius: 50%; /* optional: round button */
}

.ticket-display {
    border: 1px solid black;
    display: inline-flex;
    padding: 10px;
    position: relative;
    height: 220px;
    width: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .ticket-display.large-ticket {
        height: 250px;
        width: 250px;
    }

    .ticket-display.has-operations {
        height: 260px;
    }

    .ticket-display.large-ticket.has-operations {
        height: 290px;
    }

    .ticket-display.is-winner {
        background-color: #2b8cff;
        color: white;
    }

    .ticket-display .ticket-branding {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center;
    }

    .ticket-display .ticket-name {
        text-align: center;
        font-weight: bold;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .ticket-display .ticket-operations {
        position: absolute;
        display: flex;
        gap: 3px;
        bottom: 0;
        left: 0;
        width: 100%;
        justify-content: space-between;
        padding: 5px;
        
    }

    .has-winners h3 {
        color: #1B5E20;
        font-weight: bold;
    }

.ticket-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap; /* Prevent wrapping */
}

    .ticket-numbers .number {
        border: 1px solid black;
        display: flex;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

        .ticket-numbers .number.highlighted {
            border: 2px solid #1B5E20;
            font-weight: bold;
        }

.ticket-display.is-winner .ticket-numbers .number {
    border-color: white;
}

.two-numbers-list {
    margin: 0 auto;
    max-width: 400px;
    font-size: 1.25rem;
    text-align: left;
}

    .two-numbers-list tr td:first-child{
        padding-right: 10px;
    }
    /*

.ticket-display {
    border: 2px solid black;
    padding: 12px;
    width: 220px;
    text-align: center;
    margin: 10px auto;
    font-family: Arial, sans-serif;
    position: relative;
}

    .ticket-display .ticket-header {
        font-size: 0.9rem;
        position: absolute;
        top: 0;
        left:0;
        width: 100%;
        text-align: center;
    }

    .ticket-display .ticket-name {
        font-size: 1.2rem;
        font-weight: bold;
        margin: 10px 0;
    }

    .ticket-display .ticket-numbers {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .ticket-display .number {
        border: 2px solid black;
        padding: 10px 15px;
        font-size: 1.2rem;
        font-weight: bold;
        width: 40px;
        text-align: center;
    }
             */
    .draw-results-container {
        display: flex;
        flex-direction: column; /* stack items vertically */
        align-items: center; /* center everything horizontally */
        text-align: center; /* center inline text inside */
    }

.winning-ticket-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.lotto-balls {
    display: flex;
    gap: 3px;
    justify-content: center;
    flex-wrap: nowrap; /* no wrapping */
    width: 177px;
    position: relative;
}

.card .lotto-balls {
    width: unset;
    display: inline-flex;
    gap: 10px;
}

.lotto-ball {
    width: 55px; /* smaller */
    height: 55px; /* smaller */
    background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0);
    color: black;
    font-weight: bold;
    font-size: 1.25rem; /* slightly smaller font */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #aaa;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3), inset -2px -2px 4px rgba(255,255,255,0.6);
    position: relative;
}

    .lotto-ball.animated {
        top: -51px;
        opacity: 0; /* also fade in */
    }

    .lotto-ball.revealed {
        top: 0px;
        opacity: 1; /* also fade in */
        transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out, transform 0.5s ease-in-out, order 0.5s ease-in-out; /* animate reordering */
    }

.ball-box {
    width: 55px;
    height: 55px;
    position: relative;
}

.card .lotto-balls .lotto-ball{
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin:0px;
}

.lotto-ball.highlighted {
    background: radial-gradient(circle at 30% 30%, #1a3c8a, #0b1f4a); /* dark blue gradient */
    color: white; /* white number */
    border: 2px solid #07204a; /* darker border for contrast */
}

/*Home Page*/
.home-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.home-title {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.home-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.home-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .home-card:active {
        transform: scale(0.97);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.home-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.home-card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.home-card-description {
    font-size: 0.95rem;
    text-align: center;
    color: #666;
}


/* Modal Dialogs */

/* Modal fade + slide down + scale */
.modal.fade {
    opacity: 0;
    transform: translateY(-20px) scale(0.95); /* slightly above and smaller */
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

    .modal.fade.show {
        opacity: 1;
        transform: translateY(0) scale(1); /* slide to center, full size */
    }

/* Backdrop fade */
.modal-backdrop.fade {
    display: none; /* hide by default */
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

    .modal-backdrop.fade.show {
        display: block; /* show when active */
        opacity: 0.5; /* default Bootstrap opacity */
    }


/* Optional: nearly full-width modal on small screens */
@media (max-width: 576px) {
    .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
}

.flashing-text {
    font-size: 2rem;
    animation: pulseGlow 0.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px #28a745, 0 0 10px #28a745, 0 0 20px #28a745;
    }

    50% {
        opacity: 0.5;
        text-shadow: 0 0 2px #28a745, 0 0 5px #28a745, 0 0 10px #28a745;
    }
}

/* site.css */
.page-content-wrapper {
    position: relative; /* needed for the overlay to stay inside */
}

.page-content {
    position: relative; /* normal content */
}

.page-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.2);
    z-index: 9999;
    pointer-events: none;
}

