.camera-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(0, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 255, 255, 0.1) 50%, rgba(0, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    z-index: -1;
}

.subject-layer, .text-layer{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.scan-button, .upload-button {
    background-color: transparent;
    border: none;
    font-weight: bolder;
    color: #00ffff;
}
.camera-feed {
    position: relative;
    width: 100%;
    padding-top: 100%;
    height: 367px;
    width: 275px;
    margin-bottom: 20px;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px dashed rgba(0, 255, 255, 0.7);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.overlay-guide {
    width: 80%;
    height: 85%;
    border: 2px dashed #FF00FF;
    border-radius: 10px;
}

.open-camera-button {
    padding: 10px 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

.capture-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.capture-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #00ffff;
    color: #1a1a1a;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    margin-top: 20px;
}

    .capture-button:hover {
        transform: scale(1.05);
    }

    .capture-button i {
        margin-right: 10px;
    }


@keyframes snap {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000, #0d0d0d);
    z-index: 1;
    overflow: hidden;
}

.background-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 0, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 0, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: linesAnimation 0.5s linear infinite;
}

@keyframes linesAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0px -20px;
    }
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.matrix-rain .letter {
    position: absolute;
    font-family: monospace;
    font-size: 16px;
    color: #00ff00;
    opacity: 0;
    animation: matrixRain 10s linear infinite;
}

@keyframes matrixRain {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translateY(2000%);
    }
}

