/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Reset dan Pengaturan Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    overflow: hidden;
}

/* Styling Card Utama */
.card {
    position: absolute; 
    background: white;
    /* PERUBAHAN: Padding diperkecil */
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-align: center;
    /* PERUBAHAN: Lebar maksimal kartu dikurangi */
    max-width: 340px; 
    width: 90%;
    transition: all 0.3s ease;
}

.card-image {
    /* PERUBAHAN: Ukuran gambar disesuaikan */
    max-width: 130px; 
    margin-bottom: 1rem;
}

.card h1 {
    /* PERUBAHAN: Ukuran font judul disesuaikan */
    font-size: 1.4rem; 
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Wrapper untuk Tombol */
.button-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Styling Tombol */
button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#btn-yes {
    background-color: #4CAF50;
    color: white;
}

#btn-yes:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

#btn-no {
    background-color: #f44336;
    color: white;
}

#btn-no:hover {
    background-color: #e53935;
}


/* Styling untuk Modal Pop-up */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.5s ease-out;
}

.modal-image {
    max-width: 120px;
    margin-bottom: 1rem;
}

.modal-content h2 {
    font-size: 1.8rem;
    color: #e91e63;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1.1rem;
    color: #555;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #333;
}

/* Animasi untuk Modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Media Query untuk Tampilan Mobile --- */
@media (max-width: 768px) {
    .card {
        padding: 1.5rem;
    }

    .card-image {
        max-width: 120px;
    }

    .card h1 {
        font-size: 1.3rem; 
        margin-bottom: 1.5rem;
    }

    button {
        padding: 10px 18px; 
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-content h2 {
        font-size: 1.5rem; 
    }

    .modal-content p {
        font-size: 1rem; 
    }
}
