export function adjustLandscapeLayout(scale) {
    const topContainer = document.getElementById("top-container");
    const bottomContainer = document.getElementById("bottom-container");

    if (!topContainer) return 0;

    const baseHeight = Math.floor(window.innerHeight - topContainer.offsetHeight);
    const scaledHeight = Math.floor(window.innerHeight / scale - topContainer.offsetHeight);

    if (bottomContainer) bottomContainer.style.height = scaledHeight + "px";

    return baseHeight;
}