@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");


body {
    font-family: Arial, sans-serif;
    /* margin: 0;
    padding: 0; */
    background-color: #212121 !important;
    color: #212529;
    box-sizing: border-box;
}

/* .col{
    width: 24% !important;
} */

/* Container for scratch cards */
/* .container {
    margin-top: 20px;
} */


.row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
}


/* Reveal container styles */
.reveal-container {
    position: relative;
    display: flex;
    justify-content: space-evenly !important;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100vw;
    height: 100vw;
    max-width: 200px;
    max-height: 200px;
    /* width: 200px;
    height: 200px; */
    /* padding: 20px; */
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ddd;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Override cursor for modal scratch container */
.reveal-container.modal-scratch-container {
    cursor: default;
}

.reveal-container:hover {
    transform: scale(1.05);
}

/* Modal scratch container styles */
.modal-scratch-container {
    width: 400px;
    height: 400px;
    max-width: 90vw;
    max-height: 90vw;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid #444;
    background: #1a1a1a;
    cursor: default;
}

.modal-scratch-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007bff, #0056b3, #007bff, #0056b3);
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

.modal-scratch-container:hover::before {
    animation-duration: 1.5s;
}

@media screen and (max-width: 615px) {

    /* @media (max-width: 1200px) { */
    .reveal-container {
        width: 100vw;
        height: 100vw;
        max-width: 100px;
        max-height: 100px;
    }

    /* Mobile modal adjustments - Make it much larger */
    .modal-dialog {
        max-width: 95vw !important;
        margin: 0.5rem !important;
    }

    .modal-scratch-container {
        width: 85vw;
        height: 85vw;
        max-width: 450px;
        max-height: 450px;
        min-width: 320px;
        min-height: 320px;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-scratch-container .image-name {
        font-size: 16px;
        padding: 8px 16px;
    }

    /* Larger scratch instruction for mobile */
    .scratch-instruction {
        font-size: 16px;
    }

    /* Better touch targets */
    .btn-close {
        width: 40px;
        height: 40px;
    }

    /* Full-screen modal on very small screens */
    @media screen and (max-width: 480px) {
        .modal-dialog {
            max-width: 100vw !important;
            margin: 0 !important;
            height: 100vh;
        }

        .modal-content {
            height: 100vh;
            border-radius: 0;
        }

        .modal-scratch-container {
            width: 90vw;
            height: 60vh;
            max-width: none;
            max-height: none;
        }

        .modal-body {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
        }
    }
}

/* Hidden image styling */
.hidden-image {
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    object-fit: contain;
    pointer-events: none;
    background: #fff !important;
}

/* Grid items - hide images behind scratch layer */
.reveal-container:not(.modal-scratch-container) .hidden-image {
    opacity: 0;
}

/* Modal hidden image styling */
.modal-scratch-container .hidden-image {
    opacity: 0;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

/* Zoom functionality */
.modal-scratch-container .hidden-image.zoomable {
    cursor: zoom-in;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: pointer;
    pointer-events: auto !important;
}

.modal-scratch-container .hidden-image.zoomed {
    transform: scale(2.5);
    cursor: zoom-out;
    cursor: -webkit-zoom-out;
    cursor: -moz-zoom-out;
    cursor: pointer;
    z-index: 20;
    pointer-events: auto !important;
}

.modal-scratch-container.zoomed {
    overflow: visible;
}

.modal-scratch-container.zoomed .hidden-image.zoomed {
    position: relative;
    z-index: 25;
}

/* Smooth zoom transitions */
.modal-scratch-container .hidden-image {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal {
    background: radial-gradient(#292626, #000000c4);
}

/* Modal image name styling */
.modal-scratch-container .image-name {
    opacity: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    z-index: 9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 86, 179, 0.2));
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.modal-scratch-container .image-name.revealed {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.reveal-container:hover .hidden-image {
    /* add hover effect */
    /* object-fit: cover; */
    /* scale: 1.2; */
}



.image-name {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    bottom: 15%;
    position: absolute;
    /* border: 1px solid rgba(65, 65, 65, 0.493); */
    border-radius: 8px;
    background-color: transparent;
    /* backdrop-filter: blur(2px); */
    word-wrap: break-word;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}



.toggle-container {
    /* margin: 20px 0; */
    text-align: center;
    font-size: 16px;
}

label {
    font-size: 16px;
    color: #007bff;
}

input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.reset-btn-container {
    margin-top: 20px;
    text-align: center;
}

.reset-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.reset-btn:hover {
    background-color: #ff2222;
}


.multiMenu {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.multiMenu .dropdown-toggle::after {
    display: none;
}

.multiMenu .dropdown-toggle {
    height: 50px;
    width: 50px;
    font-size: larger;
    border-radius: 50%;
}

.multiMenuList .bi {
    margin-right: 10px;
}






















svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

text {
    font-family: Arial, sans-serif;
    fill: white;
    /* Text color */
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.text-background {
    fill: rgba(0, 0, 0, 0.6);
    /* Background color for text */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

/* Modal canvas specific styling */
.modal-scratch-container canvas {
    border-radius: 20px;
    cursor: crosshair;
    transition: all 0.3s ease;
    touch-action: none;
    /* Prevent scrolling while scratching */
}

.modal-scratch-container canvas:hover {
    filter: brightness(1.1);
}

/* Mobile-specific canvas improvements */
@media screen and (max-width: 615px) {
    .modal-scratch-container canvas {
        cursor: pointer;
        /* Better for touch devices */
    }
}

/* Modal specific styles */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border: 1px solid #444;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(90deg, #333, #2a2a2a);
    border-bottom: 1px solid #555;
    padding: 1.5rem;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.modal-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-close:hover {
    opacity: 1;
    /* background: rgba(255, 255, 255, 0.2); */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-close:active {
    transform: scale(0.95);
}

.modal-body {
    background: #212121;
    padding: 2rem;
    position: relative;
}

.modal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #555, transparent);
}

/* Modal entrance animation */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Scratch instruction text */
.scratch-instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 12;
    pointer-events: none;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.scratch-instruction.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Loading shimmer effect */
.modal-scratch-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmerLoad 1.5s ease-in-out;
    z-index: 20;
}

@keyframes shimmerLoad {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}