/* Modal background overlay */
#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9998;
}

#modalOverlay.show {
    display: block;
    opacity: 1;
}

/* Modal Box */
.feature-modal {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease-in-out;
}

/* Fade in modal for Desktop */
.feature-modal.fade-in {
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* Mobile: Slide up effect */
@media (max-width: 768px) {
    .feature-modal {
        bottom: -100%;
        left: 0;
        width: 100%;
        transform: none;
        border-radius: 16px 16px 0 0;
        opacity: 1; /* No fade on mobile */
        transition: bottom 0.3s ease-in-out;
    }

    .feature-modal.slide-up {
        bottom: 0;
    }
}

/* Modal Content */
.modal-content {
    text-align: center;
}

.modal-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.modal-description {
    margin-top: 15px;
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}
