


body {
    font-family: Arial, sans-serif;
    padding: 10px;
    margin: 0;
    background: #f9f9f9;
}

h2 {
    text-align: center;
    color: #333;
}

.nav-links {
    text-align: center;
    margin-bottom: 15px;
}

.nav-links a {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.nav-links a:hover {
    background-color: #2980b9;
}

#container {
    
    max-width: 100%;
    width: 100%;
    padding: 10px;
    box-sizing: border-box; /* pastikan padding tidak mengurangi lebar */
}

p {
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
}

th, td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: center;
}

th {
    background-color: #2ecc71;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

td img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

td img:hover {
    transform: scale(1.1) rotate(10deg);
    opacity: 0.9;
}

.zoom-img {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    max-width: 90%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 9999;
    border: 5px solid white;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background: white;
    animation: fadeIn 0.3s ease, rotateIn 0.5s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rotateIn {
    from { transform: translate(-50%, -50%) rotate(-20deg) scale(0.6); }
    to { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

@media screen and (max-width: 480px) {
    th, td {
        font-size: 12px;
        padding: 4px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 6px 8px;
    }

    table {
        font-size: 12px;
    }

    p {
        font-size: 12px;
    }
}


/* Reset margin dan padding untuk semua elemen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mengatur font dasar untuk seluruh halaman */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Pengaturan header */
h1, h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Styling untuk tabel */
table {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* Styling untuk tombol */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #0056b3;
}

/* Form Input */
input[type="text"], input[type="radio"] {
    padding: 8px;
    margin: 5px;
    font-size: 16px;
    width: 100%;
}

input[type="radio"] {
    width: auto;
}

label {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

/* Responsif untuk layar kecil */
@media screen and (max-width: 600px) {
    table {
        width: 100%;
        font-size: 14px;
    }

    th, td {
        padding: 10px 8px;
    }

    button {
        width: 100%;
        padding: 12px 20px;
    }
}
