#preview {
    z-index: 1;
    height: 420px;
    width: 427px;
    margin: 0px auto;
}

.card {
    display: grid;
    background: white;
}

.card .wrapper {
    background-image: url("https://i.hizliresim.com/p6gcx5c.png");
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

.wrapper .scanner {
    animation-play-state: running !important;
    z-index: 2;
}

.scanner {
    width: 100%;
    height: 3px;
    background-color: rgb(0, 13, 255);
    opacity: 0.7;
    position: relative;
    box-shadow: 0px 0px 8px 10px rgba(11, 38, 170, 0.49);
    top: 50%;
    animation-name: scan;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused !important;
}

@keyframes scan {
    0% {
        box-shadow: 0px 0px 8px 10px rgba(14, 11, 170, 0.49);
        top: 50%;
    }
    25% {
        box-shadow: 0px 6px 8px 10px rgba(11, 22, 170, 0.49);
        top: 5px;
    }
    75% {
        box-shadow: 0px 6px 8px 10px rgba(11, 40, 170, 0.49);
        top: 98%;
    }
}

/* Tambahkan media queries untuk layar yang lebih kecil */
@media (max-width: 768px) {
    #preview {
        height: 300px !important;
        width: 320px !important;
    }

    .card .wrapper {
        background-size: contain;
    }

    .scanner {
        height: 2px;
    }
}

@media (max-width: 480px) {
    #preview {
        height: 300px !important;
        width: 100% !important;
    }

    .card {
        padding: 10px;
    }

    .scanner {
        height: 2px;
    }
}
