/* styles.css */
body {
    font-family: Arial, sans-serif;
}

.message-box {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* Default width for desktop */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
    display: none;
    z-index: 1000; /* Ensure it's above other content */
    box-sizing: border-box; /* Ensure padding is included in the element's total width and height */
    border-radius: 10px; /* Adding a slight border radius for aesthetics */
}

.message-box p {
    margin: 0;
    font-size: 1em; /* Relative unit for better scaling */
}

.message-box a {
    color: #00f; /* Ensure link color is distinguishable */
    text-decoration: underline;
}

.message-box button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5em; /* Increase font size for better visibility */
    cursor: pointer;
    margin-left: 20px;
    padding: 10px; /* Ensure the button is large enough for touch screens */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.message-box .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c82127;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-box .close-btn:hover {
    background-color: #1e2d72;
}

.message-box .cta-btn {
    background-color: #c82127;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.message-box .cta-btn:hover {
    background-color: #1e2d72;
}

.message-box button i {
    pointer-events: none; /* Ensure clicking on the icon itself triggers the button */
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .message-box {
        width: 80%; /* Adjust width for mobile */
        padding: 10px;
    }

    .message-box p {
        font-size: 0.9em; /* Slightly smaller font for small screens */
    }

    .message-box button {
        font-size: 1.2em; /* Adjust font size for small screens */
        padding: 8px;
    }

    .message-box .cta-btn {
        font-size: 1em; /* Adjust font size for small screens */
    }
}
