.control.popup {
    position: fixed;
    background: #fff;
    color: #000;
    left: 145%;
    top: 256px;
    border-radius: 5px;
    box-shadow: rgba(128, 128, 128, 0.8) 0 0 10px;
    border: 1px solid silver;
    opacity: 0;
    transition: border-color .2s, opacity .2s;
    display: none;
    flex-direction: column;
    max-width: 90%;
    max-height: 90%;
    z-index: 9999999;
}

.control.popup:hover {
    border-color: rgba(0, 139, 139, 0.7);
}

.control.popup-screen {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 888888;
    backdrop-filter: blur(3px);
    transition: .5s;
}

.control.popup > .caption {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(180deg, #e0e0e0 0%, #fff 100%);
    transition: background-color .2s;
    border-radius: 5px 5px 0 0;
}

.control.popup > .caption:hover {
    background: linear-gradient(180deg, #d0d0d0 0%, #fff 100%);
}

.control.popup > .caption > h2 {
    padding-right: 16px;
}

.control.popup > .caption > button {
    border: none;
    background: none;
    transition: background-color .2s, color .2s;
    width: 28px;
    height: 28px;
}

.control.popup > .caption > button:hover {
    background: rgba(255, 0, 0, 0.75);
    color: #fff;
}

.control.popup > .content {
    padding: 16px;
    overflow: auto;
}

.control.popup > .buttons {
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    background: #fbfbfb;
}

.control.popup > .buttons > button {
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, .05);
    transition: background-color .2s;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

.control.popup > .buttons > button:hover {
    background-color: rgba(0, 0, 0, .15);
}

.control.popup > .buttons > button:active {
    background-color: rgba(0, 0, 0, .2);
}