﻿.modal-main {
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    max-width: 90%;
    width: 600px;
    min-width: 60%;
    z-index: 1000;
    background: #24253A;
    border: 1px solid #24253A;
    overflow: auto; /* enables scrolling inside modal */
    border-radius: 8px;
    max-height: 90%;
}

    .modal-main.active {
        top: 50%; /* Slide up into view */
        opacity: 1; /* Fade in */
    }

.modal-title {
    display: flex;
    flex-direction: row;
    direction: rtl;
    justify-content: space-between;
}

.modal-body {
    gap: 1rem;
    display: flex;
    padding: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.modal-content {
    width: 100%;
    padding:4px;
}

.modal-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-content: center;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.modal-size {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4rem;
}

.modal-footer-content {
    width: 100%;
    display: flex;
    direction: rtl;
    justify-content: space-between;
}

.modal.show {
    transform: translateY(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(1rem);
    z-index: 999;
    border: none;
    user-select: none;
    cursor: default;
}

.modal-title-text {
    margin-left: 5rem;
}

.base-modal-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 12px;
    white-space: nowrap;
}

.base-modal-footer-button {
    max-width: 250px;
    width: 50% !important;
}

.modal-context {
    padding: 32px 4px 8px 4px;
}

.modal-bold-context {
    padding: 32px 4px 16px 4px;
    align-items: center;
    gap: 16px;
    font-weight: 900;
}

.modal {
    backdrop-filter: blur(1rem);
}

.modal-main-img {
    width: 80px;
    height: auto;
}
