.modal {
position: fixed;
inset: 0;
z-index: 1055;
display: none;
overflow-x: hidden;
overflow-y: auto;
outline: 0;
background: rgba(0, 0, 0, 0.5);
padding: 1rem;
}
.modal.show {
display: block;
}
.modal-dialog {
position: relative;
width: auto;
max-width: 500px;
margin: 1.75rem auto;
pointer-events: none;
transform: translateY(-20px);
transition: transform 0.2s ease-out;
}
.modal.show .modal-dialog {
transform: translateY(0);
}
.modal-dialog-centered {
min-height: calc(100% - 3.5rem);
display: flex;
align-items: center;
}
.modal-content {
position: relative;
display: flex;
flex-direction: column;
width: 100%;
pointer-events: auto;
background: #fff;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.175);
border-radius: 0.5rem;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
outline: 0;
}
.modal-header,
.modal-footer {
display: flex;
align-items: center;
padding: 1rem;
}
.modal-header {
justify-content: space-between;
}
.modal-footer {
justify-content: center;
gap: 0.5rem;
}
.modal-body {
position: relative;
flex: 1 1 auto;
padding: 1rem;
}
.modal-title {
margin: 0;
font-size: 1.25rem;
line-height: 1.5;
}
.btn-close {
appearance: none;
border: 0;
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") no-repeat center center;
width: 24px;
height: 24px;
line-height: 1;
cursor: pointer;
padding: 0.25rem 0.5rem;
}
.btn-close:hover {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}
body.modal-open {
overflow: hidden;
} .modal-dialog.modal-sm {
max-width: 300px;
}
.modal-dialog.modal-lg {
max-width: 800px;
}
.modal-dialog.modal-xl {
max-width: 1140px;
}
@media (max-width: 575.98px) {
.modal {
padding: 0.5rem;
}
.modal-dialog {
margin: 0.5rem auto;
max-width: 100%;
}
}