/* Popup Container */
.popup-container {
    display: none; /* Hidden by default */
    position: fixed; /* Stays in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* Popup Content */
.popup-content {
    background-color: #fefefe;
    margin: auto; /* For older browsers / fallback */
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 450px; /* Max width of the popup */
    text-align: center;
    position: relative; /* Needed for absolute positioning of close button */
    animation: fadeInScale 0.3s ease-out; /* Simple animation */
}

/* Close Button */
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1; /* Adjust vertical alignment */
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* Text Styling */
.popup-content h2 {
    color: #d9534f; /* A common color for warnings/alerts */
    font-size: 24px;
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 25px;
}

/* Button Styling */
.popup-button {
    background-color: #007bff; /* Bootstrap primary blue */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    text-decoration: none; /* Remove underline from link */
    display: inline-block; /* Allows padding and margin */
    transition: background-color 0.3s ease;
}

.popup-button:hover {
    background-color: #0056b3;
    color: white; /* Ensure text remains white on hover */
}

/* Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}