@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

body {
    margin: 0;
    font-family: 'Arial Black', Gadget, sans-serif;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
    box-sizing: border-box;
}

.app-container {
    width: 100%;
    max-width: 700px;
    background-color: rgba(17, 17, 17, 0.8);
    background-image: url('/descarga (2).jpg');
    background-size: cover;
    background-position: center center;
    background-blend-mode: overlay;
    border: 3px solid #ffcc00;
    border-radius: 15px;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 1;
    border-radius: inherit;
}

h1, .subtitle, #userIdInput, .options-list, .obtain-button {
    position: relative;
    z-index: 2;
}

h1 {
    color: #ffcc00;
    text-align: center;
    font-family: 'Anton', sans-serif;
    font-size: 2.5em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.subtitle {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    line-height: 1;
}

.subtitle .gratis {
    color: #fff;
    background-color: #ff0000;
    padding: 5px 15px;
    border-radius: 8px;
    font-weight: normal;
    font-family: 'Anton', sans-serif;
    font-size: 1.8em;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    animation: pulseEffect 1.5s infinite ease-in-out;
}

@keyframes pulseEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255,0,0,0.7);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 15px rgba(255,0,0,1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255,0,0,0.7);
    }
}

.subtitle .site-tag {
    color: #ffcc00;
    font-weight: bold;
    margin-left: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

#userIdInput {
    width: calc(100% - 20px);
    padding: 15px 20px;
    margin-bottom: 30px;
    background-color: #2a2a2a;
    border: 2px solid #666;
    border-radius: 10px;
    color: #fff;
    font-size: 1.2em;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease, background-color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

#userIdInput::placeholder {
    color: #999;
    font-style: italic;
    opacity: 0.8;
}

#userIdInput:focus {
    outline: none;
    border-color: #00e5ff;
    background-color: #333;
    box-shadow: 0 0 20px rgba(0, 230, 255, 0.8), inset 0 2px 4px rgba(0,0,0,0.5);
    transform: scale(1.02);
}

#userIdInput::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(90deg, #ffcc00, #ffeb3b, #ff5722, #ffcc00);
    background-size: 400% 400%;
    border-radius: 13px;
    z-index: -1;
    opacity: 1;
    animation: borderAnimate 4s linear infinite;
}

#userIdInput:focus::before {
    background: linear-gradient(90deg, #00ffff, #00e5ff, #007bff, #00ffff);
    animation: borderAnimateFocus 3s linear infinite;
    background-size: 400% 400%;
}

@keyframes borderAnimate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes borderAnimateFocus {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.options-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.option-item {
    background-image: url('/JWDP5CVDAJBNLJIISCOE2B7YJE.avif');
    background-size: cover;
    background-position: center;
    color: #fff;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    font-size: 1.4em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 80px;
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.option-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.option-item span {
   position: relative;
   z-index: 3;
}

/* Watermark text on each option (more subtle) */
.option-item::after {
    content: "NM01.SITE";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-18deg) scale(1.18);
    font-size: 1.8em; /* larger for visibility */
    color: rgba(255, 238, 88, 0.98); /* warm yellow for contrast */
    opacity: 0.28; /* reduced to be more transparent */
    pointer-events: none;
    z-index: 2;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    /* layered text-shadow for depth and legibility on varied backgrounds */
    text-shadow:
        0 1px 0 rgba(255,255,255,0.12),
        0 3px 8px rgba(0,0,0,0.65),
        0 0 18px rgba(255,238,88,0.14);
    transition: opacity 0.18s ease, transform 0.25s ease;
    mix-blend-mode: normal; /* consistent legibility */
    transform-origin: center;
}

/* Slightly stronger watermark on selected state (still subtle) */
.option-item.selected::after {
    opacity: 0.12;
    transform: translate(-50%, -50%) rotate(-18deg) scale(1.04);
}

.option-item:hover {
    transform: scale(1.04);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.option-item:hover::before {
     background-color: rgba(0, 0, 0, 0.3);
}

.option-item.selected {
    border: 5px solid #ffeb3b;
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255, 235, 59, 0.9);
}

.option-item.selected::before {
    background-color: rgba(0, 0, 0, 0.1);
}

.diamond-icon {
   display: none;
}

.obtain-button {
    background-color: #ffcc00;
    color: #000;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 15px 40px;
    font-family: 'Anton', sans-serif;
    font-size: 1.8em;
    font-weight: normal;
    text-transform: uppercase;
    cursor: pointer;
    width: 90%;
    max-width: 350px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 1.5px;
    margin-top: 10px;
}

.obtain-button:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.animation-container {
    color: #ffcc00;
    text-align: center;
    font-size: 1.5em;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Tap hint: large, pulsing, high-contrast instruction */
.tap-hint {
    margin-top: 18px;
    background: linear-gradient(90deg, rgba(255,204,0,0.95), rgba(255,120,0,0.95));
    color: #111;
    font-weight: 900;
    font-family: 'Anton', sans-serif;
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(255,140,0,0.35), 0 0 30px rgba(255,204,0,0.12) inset;
    transform-origin: center;
    z-index: 5;
    pointer-events: none; /* clicks propagate to container */
    animation: tapPulse 1.2s ease-in-out infinite, tapFloat 3.6s ease-in-out infinite;
    letter-spacing: 0.6px;
    font-size: 1.05em;
    text-transform: uppercase;
    text-align: center;
}

/* subtle scale pulse and glow */
@keyframes tapPulse {
    0% { transform: scale(1); box-shadow: 0 6px 18px rgba(255,140,0,0.24); }
    50% { transform: scale(1.06); box-shadow: 0 10px 30px rgba(255,170,0,0.4); }
    100% { transform: scale(1); box-shadow: 0 6px 18px rgba(255,140,0,0.24); }
}

/* slow vertical float for attention */
@keyframes tapFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

/* ETA line style */
.eta-text {
    margin-top: 8px;
    color: #00e5ff;
    font-weight: 800;
    font-family: 'Anton', sans-serif;
    text-shadow: 0 0 8px rgba(0, 230, 255, 0.28);
    font-size: 1.05em;
}
#generatingTitle {
    margin-bottom: 20px;
    font-family: 'Anton', sans-serif;
    font-size: 1.8em;
}

#statusText {
    color: #ddd;
    font-size: 1.1em;
    margin-top: 20px;
    min-height: 1.2em; /* Prevents layout shift */
    transition: opacity 0.3s ease-in-out;
}

.search-tip {
    margin-top: 25px;
    color: #fff;
    font-family: 'Anton', sans-serif;
    font-size: 1.3em;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.google-logo {
    height: 1.1em;
    width: auto;
}

.search-tip span {
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.7);
}

.progress-bar-container {
    width: 100%;
    height: 28px;
    background-color: #333;
    border-radius: 16px;
    border: 2px solid #666;
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.6);
    position: relative;
    margin-top: 6px;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #ffcc00, #ffeb3b, #ffd54a);
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.75), inset 0 1px 6px rgba(255,255,255,0.03);
    transition: width 420ms cubic-bezier(.2,.9,.3,1);
    will-change: width, box-shadow;
}

/* small glow pulse class applied when progress increases */
.progress-bar.glow {
    box-shadow: 0 0 28px rgba(255, 204, 0, 0.95), 0 0 12px rgba(255, 238, 139, 0.35) inset;
}

/* percentage label centered above the bar */
.progress-percent {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Anton', sans-serif;
    color: #111;
    background: rgba(255,255,255,0.92);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    z-index: 5;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
}

/* Enhanced tap pulse, layered glows, spark trails and diamond glints */
.tap-pulse {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(255,245,180,0.98) 0%, rgba(255,210,60,0.9) 35%, rgba(255,150,20,0.25) 65%, transparent 80%);
    filter: blur(6px) saturate(1.05);
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.95;
    pointer-events: none;
    z-index: 4;
    animation: pulseExpanseModern 820ms cubic-bezier(.16,.9,.3,1);
}

/* inner ripple for extra depth */
.tap-pulse::after {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.85), rgba(255,230,120,0.0) 60%);
    filter: blur(2px);
    transform: scale(0.98);
    opacity: 0.9;
}

/* tiny shimmer diamond that flashes and drifts upward */
.tap-shimmer {
    position: absolute;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #fff, #a8f0ff 45%, #00e5ff 100%);
    transform: translate(-50%, -50%) rotate(20deg) skewX(-8deg);
    clip-path: polygon(50% 0%, 65% 25%, 100% 35%, 72% 60%, 80% 100%, 50% 80%, 20% 100%, 28% 60%, 0 35%, 35% 25%);
    filter: drop-shadow(0 0 6px rgba(0,230,255,0.6));
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    animation: shimmerFloat 900ms cubic-bezier(.2,.9,.25,1);
}

/* spark particle with trail */
.spark {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #ffd54a 35%, rgba(255,140,0,0.95) 65%, rgba(255,140,0,0.0) 100%);
    box-shadow: 0 0 12px rgba(255,200,60,0.95), 0 0 6px rgba(255,140,0,0.6) inset;
    opacity: 0.95;
    transform: translate(-50%,-50%) scale(0.6);
    pointer-events: none;
    z-index: 5;
    will-change: transform, opacity;
    animation: sparkTrail 900ms cubic-bezier(.18,.9,.35,1);
}

/* smoother, more natural pulse expansion */
@keyframes pulseExpanseModern {
    0% { transform: translate(-50%, -50%) scale(0.48); opacity: 0.98; filter: blur(3px) saturate(1.05); }
    45% { transform: translate(-50%, -50%) scale(1.02); opacity: 0.9; filter: blur(4px) saturate(1.05); }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; filter: blur(8px) saturate(1.02); }
}

/* shimmer diamond floats upward & fades */
@keyframes shimmerFloat {
    0% { transform: translate(-50%, -50%) rotate(20deg) scale(0.6); opacity: 1; }
    50% { transform: translate(-50%, -120%) rotate(10deg) scale(1); opacity: 0.95; }
    100% { transform: translate(-50%, -240%) rotate(-6deg) scale(0.8); opacity: 0; }
}

/* sparks follow an eased upward arcing path and fade */
@keyframes sparkTrail {
    0% { transform: translate(-50%,-50%) scale(0.45) translateY(0) translateX(0); opacity: 1; filter: blur(0px); }
    40% { transform: translate(-50%,-160%) scale(1.05) translateX(-8px); opacity: 0.92; filter: blur(0.6px); }
    100% { transform: translate(-50%,-320%) scale(0.3) translateX(-18px); opacity: 0; filter: blur(1.8px); }
}

@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.diamond-spinner, .diamond-spinner .diamond, @keyframes spin, @keyframes pulse {
    display: none;
}

.success-message {
    display: none;
    background-color: #222;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #ffcc00;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
    position: relative;
    z-index: 110;
    width: 80%;
    max-width: 400px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
}

.success-message h2 {
    color: #ffcc00;
    font-family: 'Anton', sans-serif;
    font-size: 2em;
    margin-bottom: 15px;
}

.success-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.success-image-container {
    background-image: url('/JWDP5CVDAJBNLJIISCOE2B7YJE.avif');
    background-size: cover;
    background-position: center;
    color: #fff;
    border: 3px solid #00ddff;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    font-size: 1.4em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 150px;
    min-height: 80px;
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 8px rgba(0, 255, 255, 0.4) inset;
    animation: diamondPulse 1.5s infinite alternate;
}

/* Watermark on the success diamond display (more subtle) */
.success-image-container::after {
    content: "NM01.SITE";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-14deg) scale(1.12);
    font-size: 1.45em; /* increased size for clarity */
    color: rgba(255,255,255,0.98);
    opacity: 0.24; /* lowered opacity for a subtler watermark */
    pointer-events: none;
    z-index: 2;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.1),
        0 3px 10px rgba(0,0,0,0.6),
        0 0 10px rgba(0, 220, 255, 0.06);
    mix-blend-mode: normal;
    transition: opacity 0.2s ease, transform 0.25s ease;
    transform-origin: center;
}

.success-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    z-index: 1;
}

.success-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    z-index: 1;
}

@keyframes diamondPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 8px rgba(0, 255, 255, 0.4) inset;
        border-color: #00ddff;
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(0, 255, 255, 1), 0 0 15px rgba(0, 255, 255, 0.8) inset;
        border-color: #0ff;
    }
}

#successAmountText {
   position: relative;
   z-index: 2;
   color: #fff;
   text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

.success-message p {
    font-size: 1.2em;
    margin-bottom: 0;
    color: #ddd;
}

.success-message button {
    background-color: #ffcc00;
    color: #000;
    border: 2px solid #000;
    border-radius: 5px;
    padding: 10px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.success-message button:hover {
    background-color: #e6b800;
}

@media (max-width: 600px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 0;
    }
    .app-container {
        padding: 15px;
        border-width: 0;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    .subtitle {
        margin-bottom: 15px;
    }

    .subtitle .gratis {
        font-size: 1.3em;
        padding: 3px 10px;
    }

    .subtitle .site-tag {
        margin-left: 4px;
    }

    #userIdInput {
        font-size: 1.1em;
        padding: 12px 15px;
        margin-bottom: 25px;
        width: calc(100% - 10px);
    }

    .options-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 20px;
        width: 100%;
    }

    .option-item {
        font-size: 1.2em;
        padding: 15px 10px;
        min-height: 60px;
        border-width: 2px;
    }

    .option-item.selected {
        border-width: 4px;
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 235, 59, 0.8);
    }

    .obtain-button {
        font-size: 1.5em;
        padding: 12px 25px;
        width: 100%;
        border-width: 2px;
        margin-top: 5px;
        max-width: 90%;
    }

    .overlay {
        border-radius: 0;
        padding: 15px;
    }
    .animation-container {
        font-size: 1.2em;
        width: 90%;
    }
    .progress-bar-container {
        height: 20px;
    }

    .success-message {
        padding: 20px;
        width: 90%;
    }
    .success-message h2 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }
    .success-display {
        margin-bottom: 15px;
    }
    .success-image-container {
        font-size: 1.2em;
        padding: 15px 10px;
        min-height: 60px;
        width: 120px;
        margin-bottom: 10px;
        border-width: 2px;
    }

    .success-message p {
        font-size: 1em;
    }

    .success-message button {
        font-size: 1em;
        padding: 8px 20px;
    }
}

.lateral-gallery, .main-content, #main-display, #selected-image-view, .send-button, .image-list, .image-item, .image-item svg, .image-item:hover, .image-item.selected {
    display: none;
}