:root {
    --bg-color: rgba(255, 255, 255, .05);
    --bg-color-opaque: rgba(255, 255, 255, .1);
    --bg-color-transparent: rgba(255, 255, 255, 0);
}

* {
    box-sizing: border-box;
    list-style: none;
    font-family: Consolas, monaco, monospace;
    /* padding: 0;
    margin: 0; */
    touch-action: manipulation;
    text-decoration: none;
}

a {
    color: white;
    opacity: .5;
    margin: 2px 15px;
    text-align: center;
}

a:hover {
    opacity: 1;
}

body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
}

.container {
    width: 100vw;
    height: 100vh;
}

#canvas {
    width: 100vw;
    height: 100vh;
}

.hud {
    background-color: var(--bg-color);
    padding: 2px;
    display: flex;
    align-items: center;
}

.hide-hud {
    background-color: var(--bg-color);
    position: fixed;
    display: flex;
    top: 1vh;
    right: 1vw;
}

#nav-hud {
    position: fixed;
    top: 1vh;
    left: 5vw;
}

#time-hud {
    position: fixed;
    top: 1%;
    left: 50%;
}

#hud-planets {
    position: fixed;
    flex-direction: column;
    left: 1%;
    top: 15%;
}

#hud-moons {
    position: fixed;
    flex-direction: column;
    left: 130px;
    top: 15%;
    display: none;
}

#hud-suns {
    position: fixed;
    flex-direction: column;
    top: 15%;
    right: 1%;
}

#hud-other {
    position: fixed;
    flex-direction: column;
    top: 60%;
    right: 1%;

}


@media only screen and (max-width: 800px) {
    .hud {
        background-color: var(--bg-color-opaque);
        background-color: var(--bg-color-transparent);
    }

    a {
        opacity: .7;
        padding: 0px;
        background-color: var(--bg-color);
    }

    #nav-hud {
        left: unset;
        top: unset;
        right: 1vw;
        bottom: 1vh;
        flex-direction: column-reverse;
        /* width: 180px; */
        /* max-height: max-content; */
    }

    #hud-planets {
        font-size: small;
        top: 8vh;
        max-height: 34vh;
        overflow: hidden;
        max-width: 65px;
        /* align-items: flex-start; */
    }

    #hud-moons {
        font-size: small;
        left: 72px;
        top: 8vh;
        max-width: 80px;
        padding: 0;
        margin: 0;
    }

    #hud-suns {
        font-size: x-small;
        top: 8vh;
        /* max-width: min-content; */
        /* bottom: 3vh; */
        /* overflow: hidden; */
    }

    #hud-other {
        font-size: x-small;
        top: 50vh;
        /* bottom: 19vh; */
        left: 1vw;
        max-width: 150px;
        overflow-y: hidden;
    }

    #time-hud {
        font-size: small;
        top: 1vh;
        right: 1vh;
        /* max-height: min-content; */
        left: 1vw;
        /* max-height: min-content; */
        /* padding: 0; */

    }

    #plusElement,
    #minusElement {
        padding: 5px 50px;
        /* font-size: 20px; */
    }

    #clockElement {
        margin: 3px;
        width: 400px;
    }

    #stopElement {
        margin: 1px;
    }

    #timeElement {
        width: 150px;
    }

    .hide-hud {
        top: unset;
        bottom: 26vh;
        z-index: 1;
    }
}

@media only screen and (max-height: 600px) {
    .hud {
        background-color: var(--bg-color-opaque);
        padding: 0;
        margin: 0;
        font-size: 12px;
    }

    a {
        opacity: .7;
        padding: 1px;
        background-color: var(--bg-color);
    }

    #nav-hud {
        top: unset;
        left: unset;
        right: 1%;
        bottom: 1%;
        max-width: 330px;
    }

    #hud-planets {
        top: 30vh;
        bottom: 1%;
    }

    #hud-moons {
        top: unset;
        bottom: 1%;
        left: 15%;
    }

    #hud-suns {
        top: 1%;
    }

    #hud-other {
        top: 1%;
        right: 25%;
    }

    #time-hud {
        top: 1%;
        left: 25%;
    }

    #plusElement,
    #minusElement {
        padding: 5px;
        font-size: 20px;
    }

    .hide-hud {
        top: 1%;
        right: unset;
        left: 1%;
    }
}