/* GLOBAL */
body {
    background: #0d0d0d;
    margin: 0;
    font-family: 'Segoe UI', Tahoma;
    color: #fff;
    text-align: center;
}

h1, h2 {
    color: #00eaff;
    text-shadow: 0 0 10px #00eaff;
}

/* CONTAINER */
.container {
    padding: 20px;
    margin-top: 20px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    margin: 15px;
    background: #111;
    border: 2px solid #00eaff;
    border-radius: 10px;
    color: #00eaff;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}
.btn:hover {
    background: #00eaff;
    color: #000;
    box-shadow: 0 0 20px #00eaff;
}

/* VIDEO & CANVAS */
.video-box {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

video, canvas {
    width: 60vw;              /* Desktop/Laptop size */
    max-width: 550px;
    border-radius: 15px;
    box-shadow: 0 0 20px #00eaff;
}

/* COUNTER */
.counter-box {
    margin-top: 20px;
    font-size: 26px;
    color: #39ff14;
    text-shadow: 0 0 10px #39ff14;
}

/* RESET BUTTON */
.reset-btn {
    margin-top: 15px;
    background: #111;
    border: 2px solid #39ff14;
    color: #39ff14;
    padding: 10px 25px;
    border-radius: 10px;
    font-size: 18px;
}
.reset-btn:hover {
    background: #39ff14;
    color: #000;
    box-shadow: 0 0 20px #39ff14;
}

/* 📱 MOBILE RESPONSIVE FIX (FULL AND CORRECT) */
@media (max-width: 600px) {
    video, canvas {
        width: 90vw;        /* Full mobile width */
        max-width: none;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    .btn {
        width: 80%;
        font-size: 18px;
    }

    .reset-btn {
        width: 70%;
        font-size: 18px;
    }
}
