body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Camera container */
.camera-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Make video as big as possible */
video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
/*background: rgba(0, 0, 0, 0.2);*/

}

/* Scanner box (camera shutter style with 4 corners) */
.scan-box {
    position: absolute;
    width: 70vw;
    height: 70vw;
    max-width: 350px;
    max-height: 350px;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 100px #000;
    pointer-events: none;

    /* 4 corner accents */
    background:
        linear-gradient(#00ffcc, #00ffcc) top left,
        linear-gradient(#00ffcc, #00ffcc) top left,
        linear-gradient(#00ffcc, #00ffcc) top right,
        linear-gradient(#00ffcc, #00ffcc) top right,
        linear-gradient(#00ffcc, #00ffcc) bottom left,
        linear-gradient(#00ffcc, #00ffcc) bottom left,
        linear-gradient(#00ffcc, #00ffcc) bottom right,
        linear-gradient(#00ffcc, #00ffcc) bottom right;

    background-size:
        40px 12px, 12px 40px,
        40px 12px, 12px 40px,
        40px 12px, 12px 40px,
        40px 12px, 12px 40px;

    background-repeat: no-repeat;
}

/* Output area */
#output,
#debug {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 8em;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-family: courier;
    font-size: 1.4em;
    color: #fff;
}
