﻿.vivid-window {
    width: auto; /* Allow width to grow with content up to max-width */
    max-width: 90%; /* Maximum width */
    height: auto; /* Allow height to grow with content up to max-height */
    max-height: 90vh; /* Maximum height */
    overflow: hidden; /* Adjust or remove if needed */
    background-color: #05192f;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1060;
    display: none; /* Initially hidden */
    opacity: 0; /* Window starts as invisible */
    transition: opacity 0.5s ease; /* Adjust the duration as needed */
    border-radius: 10px;
    /*overflow-y: auto;*/ /* Change from scroll to auto */
    min-height: 100px; /* Minimum height to prevent very small windows */
    min-width: 300px; /* Minimum width to prevent very small windows */
}

.vivid-window-header {
    background-color: var(--vz-primary-bg-subtle) !important;
    color: #fff;
    padding: 1rem !important;
    font-size: 18px;

}

.vivid-window-content {
    padding: 30px 15px;
    overflow-y: visible;
    max-height: calc(100vh - 120px); /* Adjust the max height as needed */
}

.vivid-window-close {
    position: absolute;
    top: 15px;
    right: 10px;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
}

    /* Close button hover effect */
    .vivid-window-close:hover {
        color: #7a5cb8; /* Adjusted for darken effect */
    }


/* Overlay */
.vivid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050; /* Below the modal */
    display: none;
}

.no-scroll {
    overflow: hidden;
    height: 100%;
}