* {
    font-family: "Source Sans 3", sans-serif;;
}

#transitionOverlay{
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    position:absolute;
    left:0;
    top:0;
    z-index:1;
    background:#000;
}

html,body,#renderCanvas{
    width:100vw;
    height:100vh;
    margin:0;
    padding:0;
    overflow:hidden;
    background:#000
}

#popUpBG{
    position: absolute;
    width:100vw;
    height:100vh;
    left: 0;
    top: 0;
    margin:0;
    padding:0;
    z-index: 10 !important; /* Allows the popup to display on top of everything*/
    background:#0000004c;

    display: flex;
    justify-content: center;
    align-items: center;
}

#popUpBox{
    width: 300px;
    height: 300px;
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 8px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}

#popUpBox:has(.popUpMediaZone){
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
}

.popUpMediaZone{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.popUpMediaZone img,
.popUpMediaZone video{
    display: block;
    max-width: 85vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.popUpMediaZone iframe{
    width: min(85vw, 1000px);
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
}
#popUpHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#popUpTitle {
    font-weight: bolder;
    font-size: 18px;
}

#popUpCloseBtn {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background-color: #000b1b;
    color: white;
    font-weight: bolder;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
}

#popUpCloseBtn img {
    width: 10px;
    height: 10px;
}

#popUpTextZone{
    flex: 1;
    min-height: 0;
    word-break: break-word;
    overflow-y: auto;
}

#popUpTextZone p {
    margin: 0;
}

#cursorTooltip {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(15px, 15px);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.15s;
}

#cursorTooltip.visible {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-in-element {
    animation: fadeIn 0.4s ease-in forwards;
}

.fade-out-element {
    animation: fadeOut 0.4s ease-out forwards;
}

@keyframes slideUp {
    from { transform: translate(0); }
    to { transform: translateY(-100vh); }
}

@keyframes slideDown {
    from { transform: translateY(-100vh); }
    to { transform: translate(0); }
}

.fade-in-element #popUpBox {
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-out-element #popUpBox {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}