.custom-modal {
    display: none;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
    justify-content: center;
    align-items: center;
    padding-top:80px;
    padding-bottom:40px;
}
.custom-modal-content {
    background-color: white;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    width: 90%;
    max-height: 90%;
}
.custom-modal-sm {
    max-width: 540px;
}
.custom-modal-md {
    max-width: 720px;
}
.custom-modal-lg {
    max-width: 960px;
}
.custom-modal-xl {
    max-width: 1140px;
}
.custom-modal-xxl {
    max-width: 1320px;
}
.custom-modal-header,
.custom-modal-footer {
    background-color: #f1f1f1;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    position: relative;
}
    .custom-modal-header h2 {
        margin: 0;
    }
.custom-modal-header {
    padding: 2rem 3rem 0 3rem;
}
.custom-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}
.custom-modal-header .custom-modal-close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}
    .custom-modal-header .custom-modal-close-btn:hover, .custom-modal-header .custom-modal-close-btn:focus {
        color: black;
        text-decoration: none;
    }
.custom-modal-fullscreen .custom-modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 20px;
    border-radius: 0;
    max-height: none;
    overflow: auto;
}
.custom-modal-content.custom-modal-vibrate {
    animation: custom-modal-vibrate 0.3s ease-out;
}
@keyframes custom-modal-vibrate {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(5px);
    }
}
@media only screen and (min-width: 540px) {
    .custom-modal-content {
        width: 80%;
        max-height: 80%;
    }
}