:root {
    /* Colors */
    --color-1: #2c3e50;
    --color-2: #3498db;
    --color-3: #2ecc71;
    --color-4: #e74c3c;
    /* Base Duration */
    --base-duration: 500ms;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    outline: none;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background-color: whitesmoke;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 300;
    line-height: 1.5;
    color: #444;
    background-position: center center;
    background-size: cover;
}

body:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    visibility: hidden;
    transition: background-color var(--base-duration) linear;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: auto;
    margin-top: -18%;
    margin-left: -25%;
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0);
    transition: transform var(--base-duration) ease;
    visibility: hidden;
    z-index: 20;
}

.modal-content .close {
    color: #000;
    /* Change the color as needed */
    position: relative;
    float: right;
    font-size: 12px;
    transition: transform var(--base-duration) ease;
    z-index: 200;
}

.modal-content .close:hover {
    color: var(--color-2);
    /* transform: rotate(540deg); */
    cursor: pointer;
}

.modal-content header {
    padding: 0px;
    position: relative;
    display: block;
    border-bottom: 1px solid #eee;
    background-color: #ffffff;
}

.modal-content header h2 {
    margin: 0 0 10px;
    padding: 0px;
    font-size: 16px;
    font-weight: bold;
}

.modal-content article {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.75;
}

.modal-content footer {
    border-top: 1px solid #ccc;
    /* Adds a line above the footer content */
    padding-top: 15px;
    /* Adds spacing between the line and the buttons */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* This spreads out the buttons */
    width: 100%;
    margin: 0;
    padding: 10px 0 0;
}

.modal-content footer .button {
    /* No margin needed if using justify-content: space-between; */
    position: relative;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
    overflow: hidden;
    /* Your background colors remain the same */
}

.modal-content footer .button.success {
    background-color: var(--color-3);
    cursor: pointer;
    /* margin-right: 10px; */
    /* Adjust value as needed */
    /* Rest of your styles for .success */
}

.modal-content footer .button.danger {
    background-color: var(--color-4);
    cursor: pointer;
    /* margin-left: 10px; */
    /* Adjust value as needed */
    /* Rest of your styles for .danger */
}


.modal-content footer .button:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: width 250ms ease;
    z-index: 0;
}

.modal-content footer .button:hover:before {
    width: 100%;
}

.small-text {
    font-size: 0.8em;
    /* Adjust this value as needed to decrease the font size */
}

.otp-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #00a884;
    text-decoration: none;
    cursor: pointer;
}