* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background: #ebebeb;
    font-family: 'Helvetica Neue', sans-serif;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 40%;
    float: left;
}

.absensi {
    width: 60%;
    float: left;
}

.tamu {
    width: 80%;
    float: left;
    padding-left: 20%;
}

.smallContain {
    margin: 10px;
    background: #fff;
    border-radius: 20px;
}

.container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.absensi{
    display: flex;
    flex-direction: column;
}

.smallContain button{
    width: 480px;
    margin: 10px;
    padding: 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}
.logoImg {
    padding: 10px;
    float: left;
    width: 250px;
}


.tablist {
    border-collapse: collapse; /* Merge table borders */
    width: 100%;
}

.tablist th, .tablist td {
    padding: 10px;
    border: 1px solid #e0e0e0; /* Modern border style */
    text-align: center;
}

.tablist th {
    background-color: #0070de; /* Header background color */
    color: #fff; /* Header text color */
}

.tablist tr:nth-child(even) {
    background-color: #f2f2f2; /* Even row background color */
}

.tablist tr:nth-child(odd) {
    background-color: #fff; /* Odd row background color */
}

.tablist td img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}




.form {
    border-radius: 4px;
    margin: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.input {
    width: 100%;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fafafe;
    color: #0f0f0f;
}

.btn {
    background-color: #0eb50e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}

.btn:hover {
    background-color: #087508;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .container,
    .absensi {
        width: 100%;
        float: none;
    }

    .smallContain {
        margin: 10px 8px;
    }

    .smallContain button,
    .btn {
        width: 100%;
    }

    .logoImg {
        float: none;
        display: block;
        margin: 0 auto;
        width: 180px;
    }

    #my_camera {
        width: 100% !important;
        max-width: 100%;
    }

    #my_camera video,
    #my_camera object,
    #my_camera embed {
        width: 100% !important;
        height: auto !important;
    }
}

/* ====================== MODE KARTU UNTUK TABEL DI HP ====================== */
@media (max-width: 600px) {
    .tablist,
    .tablist tr,
    .tablist td {
        display: block;
        width: 100%;
    }

    .tablist tr:first-child {
        display: none; /* sembunyikan header lama */
    }

    .tablist tr {
        margin-bottom: 12px;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #e0e0e0;
    }

    .tablist td {
        text-align: left;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 8px 12px;
    }

    .tablist td:last-child {
        border-bottom: none;
    }

    .tablist td[data-th]::before {
        content: attr(data-th);
        display: block;
        font-size: 11px;
        font-weight: bold;
        color: #0070de;
        text-transform: uppercase;
        margin-bottom: 3px;
    }

    .tablist td img {
        max-width: 220px;
    }
}

.camera-wrapper {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 560 / 420;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: #000;
    border-radius: 12px 12px 0 0; /* opsional, biar nyambung sama form di bawahnya */
}

#my_camera {
    position: absolute;
    top: 0;
    left: 0;
    width: 560px;
    height: 420px;
    transform-origin: top left;
}