:root {
    --modal-window-border-color: rgb(124, 124, 129);
    --modal-window-background: rgb(26, 26, 30);
    --modal-content-background: rgb(46, 46, 51);
    --modal-text-color: rgb(255, 255, 255);
}

.drui-modal-overlay {
    animation: show-up 0.18s ease-in-out forwards;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.64);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;    
}

@keyframes show-up-scaled {
    0% {
        transform: scale(0.9); /* Окно чуть меньше */
        opacity: 0;
    }   
    100% {
        transform: scale(1); /* Окно чуть меньше */
        opacity: 1;
    }
}

@keyframes show-up {
    0% {
        opacity: 0;
    }   
    100% {
        opacity: 1;
    }
}

.drui-modal-window {
    animation: show-up-scaled 0.18s ease-in-out forwards;
    padding: 24px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 300px;
    background: var(--modal-window-background);
    color: var(--modal-text-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-radius: 4px;
    border: 1px solid var(--modal-window-border-color);
}

.drui-modal-header {
    font-size: 24px;
    font-weight: bolder;
    margin-bottom: 16px;
    user-select: none;
}

.drui-modal-content {
    display: flex;
    flex-direction: column;
    padding: 12px 6px 12px 6px;
    word-wrap: break-word;
    white-space: pre-wrap;    
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-radius: 4px;
    background: var(--modal-content-background);
}