/******************************************** Flex containter **************************************************
 ***************************************************************************************************************/

.popup main .flex-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    height: inherit;
    box-sizing: border-box;
    overflow-x: hidden;
}

.flex-container .section {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    /* for Firefox */
    min-height: 0;
}

.flex-container .wrapper {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0 1rem;
}

.wrapper .close-icon-screenspace {
    z-index: 3004;
    opacity: 1;
    cursor: pointer;
    position: fixed;
    right: 50px;
    content: url(../Assets/Images/Icons/Close_white.svg);
    width: 30px;
    height: 30px;
}

.flex-container .wrapper .close-icon-screenspace, h1 {
    align-self: center;
}

.flex-container .scrollable-content {
    flex-grow: 1;
    overflow: auto;
    /* for Firefox */
    min-height: 0;
    text-align: left;
    color: #9A999E;
    font-size: 23px;
    font-weight: 400;
    margin-top: 1.5rem;
}

/******************************************** Popup ************************************************************
 ***************************************************************************************************************/

.popup {
    background-color: #1C1C1E;
    height: 100%;
    margin: 0;
    border-radius: 10px;
    line-height: 1.4;
    /*box-sizing: border-box;
    padding: 0 0 1.5rem;*/
}

.popup main {
    width: 50%;
    height: 100%;
    float: right;
    overflow: auto;
    padding: 50px 0;
    transform: translate3d(0, 0, 0.1px);
}

.popup aside {
    width: 50%;
    height: 100%;
    float: left;
    overflow: hidden;
}

.popup main:only-child {
    width: 100%;
}

.popup main > * {
    padding-left: 50px;
    padding-right: 50px;
}

.popup .header {
    justify-content: space-between;
    margin: 2rem 0 1rem;
}

.popup .header .close-icon-screenspace, h1 {
    align-self: center;
}

.popup h1 {
    color: #ffffff;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 30px 1rem 0;
}

.popup h2 {
    text-align: left;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 2rem;
}

.popup .header-line {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 2px solid #232323;
}

.popup p {
    text-align: left;
    color: #9A999E;
    font-size: 1rem;
    font-weight: 400;
    margin: 1rem 0 0;
}

.popup p strong {
    color: #ffffff;
    font-weight: 700;
}

.popup .sidebar-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup .sidebar-controls {
    position: absolute;
    width: 50%;
    text-align: center;
    bottom: 20pt;
    height: 50pt;
}

.popup .sidebar-controls > * {
    display: inline-block;
    height: 100%;
    margin-left: 4vw;
}

.popup .sidebar-controls > *:first-child {
    margin-left: 0;
}

.popup-container-worldspace > *:not(.popup-worldspace) {
    display: none;
}

.popup-container-worldspace p {
    font-weight: normal;
}

.popup.screenspace-panel iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    padding: 0;
}

/******************************************** Html panel *******************************************************
 ***************************************************************************************************************/

.worldspace-container {
    width: 650px;
    height: auto;
    background-color: #1C1C1E;
    line-height: 1.4;
    position: fixed;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    overflow: hidden;
    touch-action: pinch-zoom;
    pointer-events: none;
}

.loaded-inner-html {
    padding: 0;
    border-width: medium;
    position: relative;
    height: 100%;
    width: 100%;
}

.bundle {
    display: inline-block;
}
