.modal-contain {
    position: fixed;
    inset: 0 0 0 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow-y: hidden;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    min-width: 500px;
    max-width: 50%;
    height: fit-content;
    min-height: 50%;
    max-height: 90%;
    padding: 10px;
    background-color: var(--main-back);
    overflow: auto;
}

.modal-content.x-large {
    max-width: 80% !important;
    width: 100%;
}

.modal-content.large {
    max-width: 70% !important;
    width: 100%;
}