/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background: #f5f5f5;
    color: #333;
    overflow-x: hidden; /* Cegah horizontal scroll */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Gunakan min-height agar kompatibel di iOS Safari */
    padding: 20px;
}

/* Background Animasi */
.background-animation {
    position: fixed; /* Gunakan fixed untuk mencegah latar belakang bergeser */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.background-animation .circle {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 255, 0, 0.2);
    border-radius: 50%;
    animation: move 10s infinite ease-in-out;
}

.background-animation .circle:nth-child(2) {
    width: 300px;
    height: 300px;
    background: rgba(0, 128, 255, 0.2);
    animation-delay: 2s;
}

.background-animation .circle:nth-child(3) {
    width: 150px;
    height: 150px;
    background: rgba(255, 0, 128, 0.2);
    animation-delay: 4s;
}

@keyframes move {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(50px) translateX(50px);
    }
}

/* Kontainer Utama */
.container {
    background: white;
    width: 100%; /* Maksimalkan lebar */
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

/* Header */
header h1 {
    font-size: 24px;
    color: #dc3545;
    margin-bottom: 10px;
    word-wrap: break-word; /* Pastikan teks tidak overflow */
}

header p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* QRIS Gambar */
.qris-container {
    margin-bottom: 20px;
}

.qris-image {
    max-width: 100%;
    height: auto;
    border: 3px solid #dc3545;
    border-radius: 8px;
}

.qris-info {
    font-size: 16px;
    margin-top: 10px;
}

/* Footer */
footer p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background: #dc3545;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.cta-button:hover {
    background: #c82333;
}

.whatsapp-button {
    background: #c82333;
}

.whatsapp-button:hover {
    background: #6e0303;
}

/* Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-down {
    animation: slideDown 1.5s ease-in-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-zoom-in {
    animation: zoomIn 1s ease-in-out;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    header h1 {
        font-size: 20px;
    }

    header p {
        font-size: 12px;
    }

    .qris-image {
        max-width: 90%;
    }

    footer p {
        font-size: 12px;
    }

    .cta-button {
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* Safari Compatibility Fix */
@supports (-webkit-touch-callout: none) {
    body {
        height: -webkit-fill-available; /* Gunakan penuh layar untuk Safari */
    }
}
