function drawInterface() {
    openMenuButton.style.position = 'absolute'
    openMenuButton.style.top = height * 0.14 + 'px'
    // buttons closer to center on large screens
    if (width < 1050) {
        openMenuButton.style.left = width * 0.10 + 'px'
    } else {
        openMenuButton.style.left = width * 0.3 + 'px'
    }
    openMenuButton.style.width = height * 0.16 + 'px'
    openMenuButton.style.height = height * 0.07 + 'px'
    openMenuButton.style.borderRadius = height * 0.04 + 'px'
    openMenuButton.style.fontSize = height * 0.04 + 'px'

    // height is already at 0.7
    YButton.style.position = 'absolute'
    YButton.style.top = height * 0.08 + 'px'
    if (width < 1050) {
        YButton.style.left = width * 0.75 + 'px'
    } else {
        YButton.style.left = width * 0.65 + 'px'
    }
    YButton.style.width = height * 0.08 + 'px'
    YButton.style.height = height * 0.08 + 'px'
    YButton.style.borderRadius = height * 0.04 + 'px'
    YButton.style.fontSize = height * 0.065 + 'px'

    XButton.style.position = 'absolute'
    XButton.style.top = height * 0.13 + 'px'
    if (width < 1050) {
        XButton.style.left = width * 0.55 + 'px'
    } else {
        XButton.style.left = width * 0.65 - 125 + 'px'
    }
    XButton.style.width = height * 0.08 + 'px'
    XButton.style.height = height * 0.08 + 'px'
    XButton.style.borderRadius = height * 0.04 + 'px'
    XButton.style.fontSize = height * 0.065 + 'px'

    menuButtons = {
        buttonWidth: width * 0.8,
        buttonHeight: height * 0.1,
        x: width * 0.1,
        y1: height * 0.05,
        y2: height * 0.1 + height * 0.1,
        y3: height * 0.15 + height * 0.2,
        y4: height * 0.2 + height * 0.3
    }
}
// note that menu and interface (menu button + x + y) are separate
note that menu and interface (menu button + x + y) are separate
note that menu and interface ( menu button + x + y ) are separate
function drawInterface() {
    openMenuButton.style.position = 'absolute'
    openMenuButton.style.top = height * 0.14 + 'px'
    if (width < 1050) {
        openMenuButton.style.left = width * 0.10 + 'px'
    } else {
        openMenuButton.style.left = width * 0.3 + 'px'
    }
    openMenuButton.style.width = height * 0.16 + 'px'
    openMenuButton.style.height = height * 0.07 + 'px'
    openMenuButton.style.borderRadius = height * 0.04 + 'px'
    openMenuButton.style.fontSize = height * 0.04 + 'px'
    YButton.style.position = 'absolute'
    YButton.style.top = height * 0.08 + 'px'
    if (width < 1050) {
        YButton.style.left = width * 0.75 + 'px'
    } else {
        YButton.style.left = width * 0.65 + 'px'
    }
    YButton.style.width = height * 0.08 + 'px'
    YButton.style.height = height * 0.08 + 'px'
    YButton.style.borderRadius = height * 0.04 + 'px'
    YButton.style.fontSize = height * 0.065 + 'px'
    XButton.style.position = 'absolute'
    XButton.style.top = height * 0.13 + 'px'
    if (width < 1050) {
        XButton.style.left = width * 0.55 + 'px'
    } else {
        XButton.style.left = width * 0.65 - 125 + 'px'
    }
    XButton.style.width = height * 0.08 + 'px'
    XButton.style.height = height * 0.08 + 'px'
    XButton.style.borderRadius = height * 0.04 + 'px'
    XButton.style.fontSize = height * 0.065 + 'px'
    menuButtons = {
        buttonWidth: width * 0.8,
        buttonHeight: height * 0.1,
        x: width * 0.1,
        y1: height * 0.05,
        y2: height * 0.1 + height * 0.1,
        y3: height * 0.15 + height * 0.2,
        y4: height * 0.2 + height * 0.3
    }
}
function drawInterface ( ) { openMenuButton . style . position = 'absolute' openMenuButton . style . top = height * 0.14 + 'px' if ( width < 1050 ) { openMenuButton . style . left = width * 0.10 + 'px' } else { openMenuButton . style . left = width * 0.3 + 'px' } openMenuButton . style . width = height * 0.16 + 'px' openMenuButton . style . height = height * 0.07 + 'px' openMenuButton . style . borderRadius = height * 0.04 + 'px' openMenuButton . style . fontSize = height * 0.04 + 'px' YButton . style . position = 'absolute' YButton . style . top = height * 0.08 + 'px' if ( width < 1050 ) { YButton . style . left = width * 0.75 + 'px' } else { YButton . style . left = width * 0.65 + 'px' } YButton . style . width = height * 0.08 + 'px' YButton . style . height = height * 0.08 + 'px' YButton . style . borderRadius = height * 0.04 + 'px' YButton . style . fontSize = height * 0.065 + 'px' XButton . style . position = 'absolute' XButton . style . top = height * 0.13 + 'px' if ( width < 1050 ) { XButton . style . left = width * 0.55 + 'px' } else { XButton . style . left = width * 0.65 - 125 + 'px' } XButton . style . width = height * 0.08 + 'px' XButton . style . height = height * 0.08 + 'px' XButton . style . borderRadius = height * 0.04 + 'px' XButton . style . fontSize = height * 0.065 + 'px' menuButtons = { buttonWidth : width * 0.8 , buttonHeight : height * 0.1 , x : width * 0.1 , y1 : height * 0.05 , y2 : height * 0.1 + height * 0.1 , y3 : height * 0.15 + height * 0.2 , y4 : height * 0.2 + height * 0.3 } }
note that menu and interface (menu button + x + y) are separate
note that menu and interface ( menu button + x + y ) are separate
// buttons closer to center on large screens // height is already at 0.7