/* CSS for the dialog */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Class to apply Flexbox when dialog is visible */
.dialog.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog-inner {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    width: 600px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Responsive design for small devices */
@media (max-width: 600px) {
    .dialog-inner {
    width: 95%; 
    padding: 15px;
    max-width: 100%; 
    }
}

/* Button styling */
.open-dialog {
    font-size: 16px;
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 4px;
}