
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

html {
    overflow-x: hidden;
}

html.desktopmode {
    overflow-y: scroll;  /* make the scrollbar always appear */
}

body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */

    color: var(--fg-a);
    background-color: var(--bg-a);
    z-index: -4;

    font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
    font-size: 1em;
    font-weight: 400;

    margin:0px;
    padding:0px;
    width: 100%;
    overflow-x: hidden;
}

#app {
    min-height: 100%;    
    transition: translate 0.065s;
}

.appheader {
    background-color: var(--bg2-a);
    display: none;
    box-shadow: 0 0 3vw 0.3vw var(--shadow);
    z-index: 2;
    height: 4em;
    justify-content: space-between;
}

.appheader .headerlogo {
    transition: all 0.2s;
    display: flex;
    margin: auto 2vw;
    height: 100%;
    align-items: center;
}

.appheader .headerlogo:active {
    filter: opacity(0.5);
}

.appheader .headerlogo img {
    max-height: 80%;
}

.appfooter .navbutton {
    transition: filter 0.15s, transform 0.15s;
}

#navback, #navforward, #navback img, #navforward img {
    display: flex;
    align-items: center;
    width: 2.5em;
    height: 2.5em;
}

#homebutton, #homebutton img{
    transition: all 0.2s;

    display: flex;
    width: 3em;
    align-items: center;
    justify-content: center;
}

#navback .navbutton:active {
    filter: opacity(0.5);
    transform: scale(1.3, 1.3);
}

#navforward .navbutton:active {
    filter: opacity(0.5);
    transform: scale(-1.3, 1.3);
}

#homebutton:active {
    filter: opacity(0.5);
    /* negative x-scale here was causing some kind of race condition / clicking bug, where sometimes the home button wouldn't work */
    transform: scale(1.3, 1.3);
}


.appfooter {
    transition: all 0.25s ease-out;

    position: fixed;
    display: none;
    bottom: 0vw;
    text-align: center;

    background-color: var(--bg-c);
    filter: opacity(0.95);
    right: 0vw;
    left: 0vw;
    height: 3em;
    justify-content: space-evenly;
}

.connectionbar{

}

.navbarsection {
    display: flex;
    justify-content: center;
    align-items: center;
}

.connectionbar .progressIndicator {
    transition: margin 0.2s;
    margin: auto;
}

#homebutton_sync{
    transition: 0.2s;
    position: absolute;
    display: flex;
    top: -.35vh;
    height: .35vh;
    background-color: var(--accent);
}

#progressImage {
    height: 6vw;
    width: 6vw;
}

#connectioninfo {
}

#navbar {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
    margin-right: 2vw;
}

.homebutton {
}

.appfooterspacing {
    height: 4em;
}

#bg_color {
    position: fixed;
    top: 0em;
    height: 100%;
    width: 100%;
    z-index: -3;
}

#bg_image {
    position: fixed;
    top: 0em;
    height: 100%;
    width: 100%;
    z-index: -3;
}
