﻿.centered-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    border: 2px solid var(--bs-primary);
    border-radius: 15px;
    padding: 4rem;
    background-color: rgba(0, 0, 0, 0.85);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
}

/* Container that wraps heading and button */
.header-wrapper {
    display: block;
    width: 100%;
    text-align: center;
}

    /* Make button take full width of the wrapper */
    .header-wrapper .btn {
        width: 100%;
    }

/* Mobile adjustments */
@media (max-width: 576px) {
    .centered-content {
        padding: 2rem 1.5rem;
        border-radius: 10px;
        width: 90%;
    }
}

.msgbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.msgbox-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 2px solid #2196F3;
}

.msgbox-header {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1rem;
}

.msgbox-body {
    margin-bottom: 20px;
}

.msgbox-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.msgbox-btn {
    padding: 6px 16px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .msgbox-btn:hover {
        background-color: #0b5ed7;
    }

/* Mobile adjustments for msgbox */
@media (max-width: 576px) {
    .msgbox-container {
        width: 92%;
        max-width: 92%;
        padding: 16px;
    }

    .msgbox-footer {
        flex-direction: column;
        gap: 8px;
    }

    .msgbox-btn {
        width: 100%;
        padding: 10px;
    }
}
