/* CSS untuk styling bottom navigation bar */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}
/* CSS untuk styling header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #FEC007 0%, #E0A800 100%);    
    color: white;
    padding: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(254, 192, 7, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.header-title {
    text-align: left;
    display: flex;
    align-items: center;
}

.header-title a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-title span.brand-name {
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.header-title span.brand-version {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.9;
}

.header-about {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-about a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: all 0.2s ease;
    opacity: 0.95;
    display: flex;
    align-items: center;
}

.header-about a:hover {
    transform: scale(1.1);
    opacity: 1;
}


/* CSS untuk menggeser konten di bawah header */
/* .container {
    margin-top: 60px; /* Sesuaikan dengan tinggi header Anda */
/* }  */


nav:not(.bottom-nav) {
    background-color: #1976D2;
    color: white;
    text-align: center;
    padding: 10px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 75px; /* Ensure container starts below the 60px fixed header with breathing room */
    margin-bottom: 60px; /* Ensure container ends above the 60px fixed footer */
    padding-top: 15px;
    padding-bottom: 65px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

button {
    background-color: #1976D2;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

button:hover {
    background-color: #1565C0;
}

.card {
    background-color: rgb(251, 250, 250);
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #FEC007 0%, #E0A800 100%);
    color: white;
    text-align: center;
    padding: 0px 0;
    z-index: 999;
    box-shadow: 0 -4px 12px rgba(254, 192, 7, 0.2);
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.bottom-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 9px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
}

.bottom-nav a:hover, .bottom-nav a.active {
    color: #ffffff;
    transform: translateY(-1px);
}

.bottom-nav i {
    font-size: 20px;
    margin-bottom: 3px;
}

/* ... (CSS lainnya) ... */
/* CSS untuk styling kartu */
.group {
    margin-bottom: 2px;
    /* text-align: center; */
}

.group-box {
    background-color: #FEC007FF;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Tambahkan bayangan ke grup-box */
    padding: 1px;
    text-align: center;
}

.group h3 {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}


.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 10px;
    display: flex; /* Membuat elemen card menjadi flex container */
}

.card-img {
    width: 100px; /* Lebar gambar yang lebih kecil */
    margin-right: 10px; /* Jarak antara gambar dan konten teks */
}

.card-img img {
    max-width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding-left: 5px;
    flex-grow: 1; /* Memungkinkan konten teks untuk mengisi ruang yang tersedia */
}

.card h3 {
    font-size: 18px;
    margin: 0;
}

.card p {
    font-size: 14px;
    color: #777;
}

/* CSS untuk popup */
.popup {
    display: none; /* Sembunyikan popup secara default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popup h2 {
    margin-top: 0;
}

.popup button {
    margin-top: 10px;
}

/* Fix overlap on mobile devices */
@media (max-width: 576px) {
    header {
        height: auto;
        min-height: 60px;
        padding: 6px 0;
    }
    .container {
        margin-top: 92px;
    }
}
