html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: darkseagreen;
    /*background-image: url('/images/JG_BG_Test.webp');*/ /* Adjust the path if hosted elsewhere */
    /*background-size: cover;*/ /* Ensures it covers the screen */
    /*background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; */ /* Keeps it static while scrolling */
/*    TODO: ADD THIS AFTER TESTING IF THE SCROLL BOUNCE STOPS ON IOS WITH THE JS SCRIPT*/
/*    overscroll-behavior-y: none;*/
}

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

.jg-logo {
    width: 90px;
    height: 90px;
    display: block;
    margin: auto;
}

.small-text {
    font-size: 0.8em;
    color: #555; /* Optional: add any additional styling you want */
}

.form-title {
    font-size: 1.5rem; /* Responsive font size */
    font-weight: bold;
    color: #008000;
    text-align: left;
    margin-bottom: 1px;
}

.content {
    padding-top: 1.1rem;
}

/* ============================
   Entry Styles
   ============================ */

.entry-frame {
    width: 100%; /* Ensure the container takes full width */
    margin-bottom: 15px; /* Add some spacing below the input */
}

.entry {
    width: 100%;
    padding: 10px 15px; /* Add padding to make the input feel more spacious */
    border: 1px solid #ddd; /* Light border for the initial look */
    border-radius: 8px; /* Rounded corners for a modern feel */
    font-size: 1rem; /* Comfortable font size */
    outline: none; /* Remove default outline */
    box-shadow: none; /* Remove default box-shadow */
    transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition on focus */
}

    .entry:focus {
        border-color: #348C31; /* Green border on focus */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow on focus */
    }

    .entry::placeholder {
        color: #aaa; /* Slightly lighter placeholder color */
        font-style: italic; /* Optional: Italicize placeholder for a softer look */
    }

/* ============================
   End of Entry Styles
   ============================ */

/* ============================
   Form Footer Styles
   ============================ */

.form-footer-template {
    text-align: center; /* Center align all text */
    padding: 10px;
}

.form-footer-text {
    font-size: 12px;
    padding: 1px 0; /* Spacing between text items */
}

    .form-footer-text.tagline {
        font-size: 10px; /* Smaller font size for the tagline */
        color: #555; /* Optional: Subtle color for tagline */
    }

    .form-footer-text.copyright {
        font-weight: bold; /* Optional: Make copyright text bold */
    }

/* ============================
   End of Form Footer Styles
   ============================ */

/* ============================
   SignUp/SignIn Styles
   ============================ */
.signup-signin-prompt {
    font-size: 12px;
    text-align: center; /* Center text inside the div */
    margin: 2px,0,0,0;
    width: 100%;
}

.signup-signin-link {
    color: #007bff; /* Make it blue like a typical link */
    text-decoration: underline; /* Add underline */
    cursor: pointer; /* Change cursor to pointer on hover */
}

    .signup-signin-link:hover {
        color: #0056b3; /* Darker blue on hover */
        text-decoration: none; /* Remove underline on hover for effect */
    }
/* ============================
   End of SignUp/SignIn Styles
   ============================ */

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiI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2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loading-splash {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Ensure full-screen centering */
}

.splash-image {
    width: 180px;
    height: 180px;
    display: block;
    margin-bottom: 20px; /* Space between image and loading circle */
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
}

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

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.9), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    top: 50%; /* Center the text within the circle */
    left: 50%;
    transform: translate(-50%, -50%);
}

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

code {
    color: #c02d76;
}

/*.phone-container {
    display: flex;
    justify-content: center;
    align-items: center;*/
/*    height: auto;*/
/*}*/

.phone-screen {
    width: 33vw;
    height: auto;
    border: 2px solid #333;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 10px;
    background: linear-gradient(135deg, #e0f7fa, #f5f5f5); /* Light blue to light gray gradient */
    overflow-y: auto;
}

    .phone-screen ul {
        list-style-type: none;
        padding: 0;
    }

    .phone-screen li {
        padding: 10px;
        margin: 10px 0;
        background: #e0e0e0;
        border-radius: 10px;
        text-align: center;
    }

/* Back button */
.back-button {
    background: transparent;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    align-content: end;
    transition: background-color 0.3s ease, transform 0.1s ease; /* Smooth hover effect */
}

    .back-button img.back-icon {
        width: 60px;
        height: auto;
        transition: opacity 0.3s ease;
    }

        .back-button img.back-icon:hover {
            content: url('images/back_icon_hover.png'); /* Image on hover */
            opacity: 0.8; /* Optional: add an effect */
        }

    .back-button:active {
        transform: scale(0.85); /* Scale down slightly when clicked */
    }

.congrats-badge {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFD700; /* Gold */
    color: #fff;
    font-size: 3rem;
    padding: 20px 40px;
    border-radius: 15px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: bounceIn 0.8s ease, glow 1.5s infinite alternate;
}

/* Bounce Animation */
@keyframes bounceIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Glowing Effect */
@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    }
}

.end-round-message {
    position: fixed; /* Stay fixed on the screen */
    bottom: -100px; /* Start below the viewport */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center alignment */
    padding: 10px 20px; /* Extra padding for a better appearance */
    border-radius: 8px; /* Slightly more rounded corners */
    font-size: 1.2rem; /* Adjust font size as needed */
    color: white; /* White text for contrast */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    z-index: 1000; /* Ensure it appears above other elements */
    display: none; /* Hidden by default */
    width: 75%;
    text-align: center;
}

    .end-round-message.animate {
        display: block; /* Make it visible */
        animation: slideInUp 0.6s forwards, fadeOut 0.5s 10s forwards; /* Slide in from below, fade out after 5s */
    }
    /* Green background for win */
    .end-round-message.win {
        background-color: rgba(0, 128, 0, 0.9); /* Dark green for win */
    }

    /* Red background for loss */
    .end-round-message.loss {
        background-color: rgba(255, 0, 0, 0.8); /* Red for loss */
    }

    /* Grayish-blue background for bingo */
    .end-round-message.bingo {
        background-color: rgba(70, 130, 180, 0.9); /* Steel blue for draw */
    }

/* Slide up from the bottom */
@keyframes slideInUp {
    0% {
        bottom: -100px;
        opacity: 0;
    }

    100% {
        bottom: 20px;
        opacity: 1;
    }
}

/* Fade out after showing */
@keyframes fadeOut {
    0% {
        bottom: 20px;
        opacity: 1;
    }

    100% {
        bottom: -100px;
        opacity: 0;
    }
}

/*=========================
    Image Shake
==========================*/
/* Define the shake animation */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

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

/* Style the image and apply the shake effect */
.shake-effect {
    animation: shake 0.5s; /* Animation duration */
}
/*=========================
    Image Shake Ended
==========================*/

.chicken {
    position: absolute;
    bottom: 5px;
    left: 50px;
    width: 89px; /* Width of one frame */
    height: 88px; /* Height of one frame */
    background: url('/images/chicken/yellow_chicken_sprite.png') no-repeat;
    background-size: auto 100%; /* Ensure all frames fit */
    image-rendering: pixelated;*/ /* Prevents blurry frames */
}

.ios-fake-fullscreen {
    position: fixed !important;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #000;
    border: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease-in-out;
}

.no-scroll {
    overflow: hidden;
}

/* Style for smaller devices like phones */
@media (max-width: 600px) {
    .phone-screen {
        width: 100%;
        height: auto;
    }

        .phone-screen li {
            font-size: 1.2em;
        }

    .main-container {
        padding: 5px; /* Adjust padding for small screens */
    }

    .game-card {
        padding: 5px; /* Reduce padding for smaller screens */
    }

        .game-card img.game-image {
            height: 60px; /* Smaller images on small screens */
        }

        .game-card span.game-label {
            font-size: 0.8rem; /* Smaller font size */
        }

        .game-card button.play-button {
            font-size: 0.875rem; /* Smaller button text */
        }
}

/* Prevent zoom on input focus */
@supports (-webkit-overflow-scrolling: touch) {
    /* iOS specific CSS */
    input, textarea, select {
        font-size: 16px !important;
    }
}

.modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background-color: #c3e956;
    border-radius: 4px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: #e0f2e9;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #c3e957;
}

@media (min-width: 768px) {
    /* Hide scrollbar for desktop (md and up) */
    .hide-scrollbar-desktop::-webkit-scrollbar {
        display: none;
    }

    .hide-scrollbar-desktop {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
    }
}

/*NOTE: Commented out because placing it in app.css, is not working for some reason. (Take out time to (app.css) as a whole)*/
/* Overlay container z-index fix */
/*.shepherd-modal-overlay-container {
    z-index: 99999 !important;
}*/

/* Tooltip / Step card z-index fix */
/*.shepherd-element {
    z-index: 100000 !important;
}*/