/* 
 * Popup styling
 * Width set to max 400px for desktop, scales down to 90% viewport width on smaller screens
 * Background image is sized to contain within popup without cropping.
 * Adjust max-width or background-size if you change the background image or popup content.
 */

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    /* nearly opaque for readability */
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 9999;
    width: 90vw;
    /* 90% of viewport width for responsiveness */
    max-width: 400px;
    /* max width on larger screens */
    font-size: 1.1rem;
    line-height: 1.4;
    color: #fcf9f9;

    background-image: url('https://whff.radio/imagestemplate/blk.png');
    background-size: contain;
    /* fits entire image inside */
    background-repeat: no-repeat;
    background-position: center;
}

/* Style links inside popup */
.popup a {
    color: #007BFF;
    text-decoration: none;
    font-weight: 600;
}

.popup a:hover {
    text-decoration: underline;
}

/* Style close button */
.popup button {
    margin-top: 20px;
    padding: 8px 18px;
    background-color: #007BFF;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup button:hover {
    background-color: #0056b3;
}

/* Responsive font size and padding for smaller screens */
@media (max-width: 480px) {
    .popup {
        font-size: 1rem;
        padding: 20px 15px;
    }
}