* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
}

body {
    background-color: #98FFD9; /* Warna Hijau Pastel */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    padding: 30px 20px;
    text-align: center;
}

.screen.active {
    display: flex;
}

/* --- ANIMASI SMOOTH SPLASH SCREEN --- */
#splash-screen.active .welcome-text,
#splash-screen.active .main-logo,
#splash-screen.active .brand-text {
    animation: smoothPopOut 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#splash-screen.active .welcome-text { animation-delay: 0.1s; opacity: 0; }
#splash-screen.active .main-logo    { animation-delay: 0.3s; opacity: 0; }
#splash-screen.active .brand-text    { animation-delay: 0.5s; opacity: 0; }

@keyframes smoothPopOut {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.welcome-text {
    font-size: 40px;
    color: white;
    font-weight: bold;
    line-height: 1.3;
}

.brand-text { font-size: 38px; color: #3E8BFF; }
.menu-title { font-size: 32px; color: white; font-weight: bold; }
.main-logo { width: 180px; height: 180px; }

/* Ukuran Logo Utama untuk Tampilan Desktop/Laptop */
.small-logo { 
    width: 150px; 
    height: 150px; 
    margin-top: 10px;
    margin-bottom: -10px;
    object-fit: contain;
}

.mini-logo { width: 55px; height: 55px; }

/* --- GRID MENU UTAMA BARU --- */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 10px;
}

.menu-card {
    font-size: 22px;
    font-weight: bold;
    padding: 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    padding-left: 30px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.menu-card:active { transform: scale(0.95); }

.btn-blue { background-color: #26D7EC; color: white; }
.btn-orange { background-color: #FF9F43; color: white; }
.btn-purple { background-color: #9EA1FF; color: white; }
.btn-back { background-color: #3E8BFF; color: white; }

.btn {
    font-size: 24px;
    padding: 12px 50px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* Container Box untuk Riwayat & Panduan */
.history-box, .help-box {
    width: 100%;
    height: 400px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.history-box h2 { color: #333; margin-bottom: 15px; border-bottom: 2px solid #98FFD9; padding-bottom: 5px; }
.history-box ul { list-style: none; }
.history-box li { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 18px; color: #555; }
.help-box p { font-size: 18px; color: #555; margin-bottom: 15px; line-height: 1.4; }

/* --- KAMERA BOX --- */
.camera-container {
    width: 90%;
    height: 480px;
    background-color: #D9D9D9;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    padding: 15px; 
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    border: 4px solid #26D7EC;
    border-bottom: none;
}

.camera-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background-color: #26D7EC;
    padding: 10px;
    border-radius: 0 0 15px 15px;
    border: 4px solid #26D7EC;
}

#camera-status { font-size: 26px; color: white; }

/* --- GAYA TEKS VERSI APLIKASI DI BAGIAN FOOTER --- */
.app-version {
    font-size: 14px;
    color: #555555;      /* Warna abu-abu gelap agar kontras di latar hijau pastel */
    font-weight: bold;
    margin-top: 15px;    /* Memberi ruang pembatas dari komponen di atasnya */
    margin-bottom: -5px; /* Sinkronisasi batas ujung bawah layar */
    letter-spacing: 0.5px;
    opacity: 0.8;        /* Tampilan transparan minimalis terkesan profesional */
}

/* --- RESPONSIVE MEDIA QUERY UNTUK LAYAR HP --- */
@media screen and (max-width: 600px) {
    /* Logo otomatis membesar secara proporsional dan dominan di HP */
    .small-logo {
        width: 140px;  
        height: 140px;
        margin-top: 20px;
        margin-bottom: -5px;
    }
    
    /* Judul menu disesuaikan ukurannya agar proporsional di smartphone */
    .menu-title {
        font-size: 28px; 
        margin-bottom: 10px;
    }

    /* Menyeimbangkan grid tombol agar mudah diakses oleh jempol pengguna */
    .menu-grid {
        gap: 15px;
        padding: 15px;
    }

    /* Penyesuaian ukuran teks footer agar ideal pada layar smartphone kecil */
    .app-version {
        font-size: 13px;
        margin-top: 10px;
        margin-bottom: 0px;
    }
}