/* CSS untuk loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Warna gelap, ubah alpha menjadi lebih tinggi */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner loading */
.loading-spinner {
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #0099ff; 
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

/* Animasi spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Penghalang di atas chat icon saat loading */
.overlay-chat {
    display: none; /* Awalnya disembunyikan */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Latar belakang transparan putih */
    z-index: 999; /* Pastikan overlay berada di atas konten lain, tetapi di bawah loading */
}

/* Gaya Pengumuman */
.announcement {
    display: none; /* Awalnya disembunyikan */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #005ea3;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 9999; /* Pengumuman harus berada di atas konten lain, tetapi di bawah loading */
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

/* Animasi untuk pengumuman muncul */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi untuk pengumuman hilang */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

 /* Style untuk gambar di sebelah kiri tombol titik tiga */
.header-icons-menu img {
    width: 300px;  /* Ukuran gambar 80px, sesuaikan dengan ukuran yang diinginkan */
    height: auto; /* Menjaga rasio aspek gambar */
    border-radius: 50%; /* Menjaga gambar tetap berbentuk lingkaran */
}

/* Body halaman */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #e5f7ff;
}

/* HEADER DENGAN FITUR CARI */
.header {
    background-color: #0099ff;
    padding: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header input {
    width: 60%;
    padding: 10px;
    border-radius: 20px;
    border: none;
}

/* Posisi Ikon Menu di atas kanan */
.header-icons-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons-menu img {
    width: 30px;  /* Ukuran ikon */
    height: 30px; /* Ukuran ikon */
}

/* Ikon Chat di pojok kanan bawah dengan lingkaran biru */
.header-icons-chat {
    position: fixed; /* Menjaga ikon tetap di tempat */
    bottom: 20px;    /* Jarak 20px dari bawah */
    right: 20px;     /* Jarak 20px dari kanan */
    z-index: 1000;   /* Pastikan berada di atas konten lainnya */
}

.chat-icon-container {
    background-color: #0099ff;  /* Warna biru */
    border-radius: 50%;          /* Membuat bentuk lingkaran */
    padding: 10px;               /* Memberikan ruang di sekitar ikon */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Efek bayangan */
}

.chat-icon-container img {
    width: 30px;  /* Ukuran ikon chat */
    height: 30px; /* Ukuran ikon chat */
}

/* Konten */
.content {
    text-align: center;
    padding: 20px;
}

.banner {
    background-color: #005ea3;
    color: white;
    padding: 0;            /* Menghapus padding untuk gambar penuh */
    margin-bottom: 15px;
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;    /* Mengubah rasio gambar menjadi 16:9 */
    overflow: hidden;      /* Menyembunyikan bagian gambar yang melampaui */
}

.banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pastikan gambar tetap memenuhi rasio 16:9 */
}

.menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.menu-item {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    width: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-item a {
    text-decoration: none;
    color: black;
}

.menu-item img {
    width: 50px;
}

.promo {
    background-color: white;
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

.referral {
    background-color: #005ea3;
    color: white;
    padding: 20px;
    border-radius: 10px;
}

/* Styling untuk menu titik tiga */
.header-icons-menu {
    position: relative;
    display: inline-block;
}

/* Dropdown menu */
.dropdown-menu {
    display: none;  /* Awalnya disembunyikan */
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #005ea3;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;  /* Animasi saat muncul dan hilang */
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.dropdown-menu a:hover {
    background-color: #0099ff;
}

/* Menampilkan dropdown dengan animasi */
.dropdown-menu.show-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);  /* Mengembalikan posisi saat dropdown muncul */
}

/* Popup Tentang DitzStore */
.about-store {
    display: none; /* Sembunyikan popup secara default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 300px;
    text-align: center;
}

/* Konten dalam popup */
.about-content {
    text-align: center;
}

.about-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.about-content p {
    font-size: 18px;
}

button {
    background-color: #FF5733;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #c94d2c;
}

/* Overlay */
.overlay-chat {
    display: none; /* Sembunyikan overlay secara default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Pastikan overlay di atas elemen lainnya */
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 50px;
  font-size: 14px;
  color: #FFFFFF;
}

/* Gaya link Privacy Policy */
.privacy-link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #0099ff;
  text-decoration: none;
}

/* Atur body */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    position: relative;
}

/* Overlay untuk background */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Tetap di belakang konten */
    background-image: url('assets/gambar/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay hitam dengan transparansi */
    mix-blend-mode: darken; /* Alternatif efek gelap */
}

.privacy-link:hover {
  text-decoration: underline;
}