/* Background layer */
#bg-image-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

/* Iframes */
.msgheader-iframe {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 140px;
    border: 0;
    background: transparent;
    z-index: 50;
}

.ytplaylist-iframe {
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    width: 960px;
    aspect-ratio: 16/9;
    border: 0;
    background: transparent;
    z-index: 50;
}

.jaseworld-iframe {
    position: absolute;
    top: 720px;
    left: 50%;
    transform: translateX(-50%);
    width: 960px;
    height: 960px;
    border: 0;
    background: transparent;
    z-index: 50;
}

.desktop-yt-iframe {
    position: absolute;
    top: 160px;
    left: 20px;
    width: 1050px;
    height: 580px;
    border: 0;
    background: transparent;
    z-index: 50;
    display: none;
}

.desktop-jaseworld-iframe {
    position: absolute;
    top: 160px;
    left: 1090px;
    width: 800px;
    height: 740px;
    border: 0;
    background: transparent;
    z-index: 50;
    display: none;
}

/* Clock */
.floating-clock {
    position: absolute;
    top: 750px;
    left: 20px;
    width: 150px;
    height: 150px;
    border: 0;
    background: transparent;
    z-index: 9999;
    opacity: 0.5;
}

/* Weather */
.floating-weather {
    position: absolute;
    top: 750px;
    left: 190px;
    width: 360px;
    height: 150px;
    z-index: 9999;
    opacity: 0.5;
    overflow: hidden;
}

.weather-inner {
    width: 100%;
    height: 100%;
}

/* ⭐ REQUIRED FOR WIDGET TO BE VISIBLE */
.weather-inner iframe {
    transform: scale(0.72);
    transform-origin: top left;
}

/* Controls */
#topleft-controls-wrapper,
#top-right-controls-wrapper {
    position: fixed;
    z-index: 9999;
    display: none;
}

#topleft-controls-wrapper { left: 0; top: 40px; }
#top-right-controls-wrapper { right: 0; top: 0; }

/* Desktop mode */
@media (min-width: 1521px) {
    .desktop-yt-iframe,
    .desktop-jaseworld-iframe {
        display: block;
    }
    .ytplaylist-iframe,
    .jaseworld-iframe {
        display: none;
    }
    #topleft-controls-wrapper,
    #top-right-controls-wrapper {
        display: block;
    }
}

/* Mobile mode */
@media (max-width: 1520px) {
    .floating-clock,
    .floating-weather {
        display: none;
    }
}
