.popup-canvas-container
{
    display: none; /* Hidden by default */

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;

    /* Item Alignment */
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex: 1;

    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
}

.popup-canvas
{
    display: flex;
    flex-direction: column;
    
    position: relative;
    width: 65%;
    height: 95%;
    background-color: rgba(60, 60, 65, 1);
    border-radius: 16px;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: white;

    background: linear-gradient(rgb(12, 12, 14) 50%, rgba(26, 26, 32) 100%);

    overflow: hidden;

    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.5);
}

.popup-canvas-title-bar
{
    background-color: rgb(43, 43, 43);
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    overflow: hidden;
}

.popup-canvas-title-bar-overlay
{
    display: flex;

    background: radial-gradient(ellipse at center, var(--overlay-color) 10%, var(--overlay-color-dark) 100%);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    
    font-size: 54px;
    font-family: var(--top-bar-font);
    font-weight: bold;
    text-decoration: underline;
    
    align-items: center;
    justify-content: center;
    text-align: center;
    
    text-decoration: underline;
}

.popup-canvas-content
{
    flex-grow: 1;
    overflow: auto;

    max-height: 100%;
    max-width: 100%;

    margin: 8px;
    padding: 8px;
}

.popup-canvas-footer
{
    background-color: #292929;
    height: 30px;
    flex-shrink: 0;
}

.close-btn
{
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0);
    color: rgb(231, 16, 9);
    font-size: 16px;
    font-weight: bold;
    border: 2px inset white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: 0.1s ease;
}

.close-btn:hover
{
    background-color: rgb(231, 16, 9);
    border: 4px outset white;
	color: white;
}

.close-btn:active
{
    background-color: rgb(155, 25, 5);
    transform: scale(0.95);
    border: 6px groove black;
}