﻿/*modify the base font size for mobile devices*/
 body {
    /*bumping up the font-sizes for higher res displays*/
    font-size: 54%; 
    /*gradient for smartglass UI*/
    background: -webkit-linear-gradient(top, #000000 50%, #323232); /* Safari and Chrome*/
    background: -moz-linear-gradient(top, #000000 50%, #323232);/*Firefox*/
    background: -ms-linear-gradient(top, #000000 50%, #323232);/*IE*/
}

@media (max-width: 336px) {
    body {
        font-size: 44%;
    }

    article.helpMenu li a {
        height: 2.25em;
        line-height: 2.25em;
    }
}

/*for odd Android aspect ratios*/
@media (max-width: 385px) and (min-width:337px) and (max-height:520px)
{
    body {
        font-size: 44%;
    }

    article.helpMenu li a {
        height: 2em;
        line-height: 2em;
    }
}

/*if the element is a main menu or a sub menu hide the placeholder element to the right*/
.helpMenu .helpContent {
    display: none;
}

article .helpContent {
    height: 65%;
    background-color: transparent;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 7em;
    left: 5%;
    width: 90%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    line-height: 1.5em;
}

article .contentPanel {
    width: 96%;
    height: 100%;
    padding: 0 5% 1em 5%;
    overflow: hidden;
}

article .contentPanel .backLink {
    background-position-x: 1em;
    background-position-y: 1em;
    /*need to resize the back button due the change in font size for retina displays*/
    background-size: 75%;
    background-position: 0 .5em;
    height: 2.5em;
    width: 2.5em;
    float: left;
    margin: 0 0 0 0;
}

body.win-gestureactive .contentPanel .backLink:hover, body.win-gestureactive .contentPanel .backLink:active {
    background-image: url(left_arrow_hoverFocus.png);
    background-position-x: 1em;
    background-position-y: 1em;
    /*need to resize the back button due the change in font size for retina displays*/
    background-size: 75%;
    background-position: 0 .5em;
}

.articles article:not(.helpMenu) .articleTitle {
    margin-top: 1.9em;
    height: 2.25em;
}

article .contentPanel .articleTitle {
    margin-top: .25em;
    left: 2em; 
    display: block;
    width: 90%;
    max-height: 3.8em;
    overflow: hidden;  
}

article .contentPanel .navLinks {
    clear: both;
}

.helpMenu li a {
    height: 2.75em;
    line-height: 2.75em;
    margin-top: 0;
}

/*remove controller button states*/
.navLinks a, .navLinks a:focus, .navLinks a:hover:not(:focus) {
    border: none;
    background-color: transparent;
    outline: 0; 
    box-shadow: none; 
}
.contentPanel .navLinks a:hover {
    background-color: rgba(235, 235, 235, 0.7); 
    color: #101010; 
    outline: none;
    border: none;
}

article .contentPanel .panelButtons {
    display: none;
}

.pageCounter {
    display: block;
    position: fixed;
    bottom: .15em;
    right: .5em;
}

body .contentPanel .backLink {
    visibility: visible;
}


/* CONTROLLER - hides controller image */
img.controller {
    display: none;
}
