/* Main Overlay */
.apn-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    /* Dark overlay */
    z-index: 9999999;
    /* Ensure it stays on top */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    /* Subtle blur effect */
    transition: opacity 0.3s ease;
}

/* Popup Box */
.apn-popup {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 4px;
    /* Sharper corners like image */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    text-align: left;
    /* Left align text */
    max-width: 800px;
    /* Wider */
    width: 90%;
    /* Fix for long content */
    max-height: 90vh;
    /* Increase height slightly */
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    /* Standard web font */
    animation: apn-fade-in 0.3s ease-out;
}

/* Title */
.apn-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 32px;
    /* Larger title */
    font-weight: 400;
    /* Lighter weight */
    color: #333;
    line-height: 1.2;
    flex-shrink: 0;
    text-align: center;
    /* Center the title */
    border-bottom: none;
}

/* Description */
.apn-description {
    margin-bottom: 20px;
    font-size: 14px;
    /* Smaller text */
    color: #333;
    line-height: 1.5;
    overflow-y: auto;
    padding-right: 10px;
    flex-grow: 1;
}

/* List Styling */
.apn-description ul {
    list-style-type: disc !important;
    margin-left: 20px !important;
    margin-bottom: 15px;
    padding-left: 15px !important;
}

.apn-description li {
    margin-bottom: 8px;
}

/* Button */
.apn-button {
    background-color: #5b7bd5;
    /* Match blue from image */
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    align-self: flex-start;
    /* Left align button */
    margin-top: 10px;
}

.apn-button:hover {
    background-color: #4a66b5;
}

.apn-button:active {
    transform: translateY(1px);
}

/* Scrollbar Styling for Webkit */
.apn-description::-webkit-scrollbar {
    width: 6px;
}

.apn-description::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.apn-description::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

/* Animation */
@keyframes apn-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
    .apn-popup {
        padding: 20px;
        max-height: 85vh;
    }

    .apn-title {
        font-size: 24px;
    }

    .apn-description {
        font-size: 13px;
    }

    .apn-button {
        width: auto;
    }
}