/* Animasi untuk loading screen */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 2s forwards;
    animation-delay: 3s; /* Durasi loading screen */
}

/* Efek fade out setelah 3 detik */
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

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

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

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

/* Header dengan Search Bar */
.header {
    background-color: #0099ff;
    padding: 15px;
    text-align: center;
}

.search-bar {
    width: 70%;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* Container untuk produk */
.container {
    padding: 20px;
    text-align: center;
}

/* Produk */
.product {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    border-radius: 10px;
    background-color: white;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 150px;
    margin-right: 20px;
}

.product-info {
    text-align: left;
}

.product-name {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.access-button {
    padding: 12px 25px;
    background-color: #0099ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
}

.access-button:hover {
    background-color: #007bb5;
}

/* 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('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;
}