body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    transition: background 0.3s;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #333;
    color: white;
}

#message-container {
    margin: 20px;
}

textarea {
    width: 80%;
    height: 100px;
    padding: 10px;
}

button {
    padding: 10px;
    background-color: blue;
    color: white;
    border: none;
    cursor: pointer;
}

#theme-selector, #leaderboard {
    margin-top: 20px;
}



.dark-mode {
    background-color: #121212;
    color: black;
}
.modal {
    display: none;
    position: fixed;
    color: black;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: white;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    border-radius: 10px;
}

.modal.active {
    display: block;
}

#qris-payment {
    width: 150px;
    margin: 10px 0;
}

#vip-leaderboard {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

#leaderboard-list {
    list-style: none;
    padding: 0;
}

#leaderboard-list li {
    padding: 8px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

#message-history {
    margin-top: 20px;
    padding: 15px;
    background: #eef2f3;
    border-radius: 10px;
    text-align: center;
}

#history-list {
    list-style: none;
    padding: 0;
}

#history-list li {
    padding: 8px;
    font-weight: normal;
    border-bottom: 1px solid #ccc;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message-item {
    animation: fadeInUp 0.3s ease-in-out;
}

.send-button {
    position: relative;
    overflow: hidden;
}

.send-button:after {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: transform 0.5s ease-out;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
}

.send-button:active:after {
    transform: translate(-50%, -50%) scale(1);
}

/* Efek animasi pesan masuk */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-item {
    opacity: 0;
    animation: fadeInUp 0.3s ease-in-out forwards;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1000;
}

.modal-content {
    text-align: center;
}

.modal button {
    margin-top: 10px;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal button:hover {
    background: #0056b3;
}

/* Gaya untuk Reaksi Emoji dalam Pesan */
.reaction {
    margin-left: 10px;
    font-size: 18px;
}

/* Pastikan Riwayat Pesan Bisa Di-scroll */
#history-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
}

/* Animasi pesan masuk */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi pesan keluar */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Efek untuk pesan baru */
.message-item {
    animation: fadeIn 0.5s ease-in-out;
}

/* Efek untuk menghapus pesan */
.message-item.removed {
    animation: fadeOut 0.5s ease-in-out;
}

/* Animasi Fade In */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animasi Slide In */
@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Animasi Bounce In */
@keyframes bounceIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Terapkan animasi ke pesan */
.fadeIn { animation: fadeIn 0.5s ease-in-out; }
.slideIn { animation: slideIn 0.5s ease-in-out; }
.bounceIn { animation: bounceIn 0.5s ease-in-out; }

/* Efek berkilau untuk VIP */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.vip-message {
    background: linear-gradient(90deg, #ffdd57, #ff9f43, #ff6f61);
    background-size: 400% 400%;
    color: white;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    animation: shimmer 2s infinite linear;
}

#vip-leaderboard {
    margin-top: 20px;
    padding: 10px;
    background: #222;
    color: white;
    border-radius: 10px;
    text-align: center;
}

#leaderboard-list {
    list-style-type: none;
    padding: 0;
}

#leaderboard-list li {
    padding: 5px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(90deg, #ffdd57, #ff9f43);
    margin: 5px;
    border-radius: 5px;
}

/* Efek Blink */
.blink {
    animation: blink-animation 1s infinite;
}
@keyframes blink-animation {
    50% { opacity: 0; }
}

/* Efek Shake */
.shake {
    animation: shake-animation 0.5s ease-in-out infinite;
}
@keyframes shake-animation {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Efek Glow */
.glow {
    text-shadow: 0 0 10px #ff0, 0 0 20px #ff0, 0 0 30px #ff0;
}