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

body {
    margin: 0;
}

.pickpocket-ui {
    display: none;
    overflow: hidden;
    background-color: rgba(26, 26, 26, 0.82);
    font-family: 'Orbitron', sans-serif;
    color: white;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.pickpocket-ui.show {
    display: flex;
}

#container {
    text-align: center;
}

.title {
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.subtitle {
    font-size: 15px;
    color: #aaf8aa;
    margin-bottom: 20px;
}

.locks {
    display: flex;
    margin-bottom: 20px;
    position: relative;
    width: 350px;
    height: auto;
    background: none;
}

.lock {
    width: 60px;
    height: 60px;
    margin: 0 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.767);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: 0.3s ease;
    position: relative;
}

.lock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background-image: url('img/lock.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}

.lock.has-zone {
    position: relative;
}

.lock.has-zone::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background-image: var(--item-image);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.lock.has-zone .count::after {
    content: attr(data-count) "x";
    position: absolute;
    bottom: 2px;
    right: 2px; 
    font-size: 12px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.lock.has-zone .money::after {
    content: "$" attr(data-count);
    position: absolute;
    bottom: 2px;
    left: 50%; 
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: rgb(0, 216, 0);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.lock.unlocked::before {
    background-image: none;
}

.lock.unlocked {
    background-color: transparent;
    animation: unlockPop 0.3s ease;
}

.bar-container {
    width: 350px;
    margin: 0 auto;
    position: relative;
}

.bar {
    position: relative;
    width: 100%;
    height: 10px;
    background-color: #922;
}

.zone {
    position: absolute;
    height: 100%;
    background-color: green;
}

.arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid white;
    top: 10px;
    animation: moveArrow 2s infinite linear;
}

@keyframes moveArrow {
    0% { left: 0%; }
    50% { left: 100%; }
    100% { left: 0%; }
}

.space {
    margin-top: 15px;
    font-size: 14px;
    color: #f5f5f5;
    opacity: 0.85;
    text-shadow: 0 0 5px rgba(255,255,255,0.1);
}

.blur-red-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 220px;
    background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0.4) 0%, rgba(255, 0, 0, 0) 70%, transparent 100%);
    border-radius: 16px;
    z-index: 99;
    opacity: 0;
    animation: blurFade 0.6s ease forwards;
    pointer-events: none;
}


@keyframes blurFade {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
