dialog {
    border: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 999;
    position: fixed;
}

/* Style the dialog content */
dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100vw;
    text-align: center;
    z-index: 998;
}

.dialog-content {
    background: white;
    padding: 30px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    margin: auto;
    
    display: flex;
    flex-direction: column;
    align-items: center;

    position: fixed;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%);
    
}