
/********** Common stuff for mobile and desktop version ******/

/** * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/) * http://cssreset.com */ html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed, figure, figcaption, footer, header, menu, nav, output, ruby, section, summary,time, mark, audio, video {	margin: 0;	padding: 0;	border: 0;	font-size: 100%;	font: inherit;	vertical-align: baseline;}/* HTML5 display-role reset for older browsers */article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {	display: block;}body {	line-height: 1;}ol, ul {	list-style: none;}blockquote, q {	quotes: none;}blockquote:before, blockquote:after,q:before, q:after {	content: '';	content: none;}table {	border-collapse: collapse;	border-spacing: 0;}

body {
    background-image: url("background.jpg");
    font-family: 'Noto Sans', sans-serif;
    color: white;

    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select:none;
    user-select:none;
    font-size : 1vw;
}

h1 {
    margin: 5px;
    font-size : 5vw; /* 5% Viewport width */
}

span.Sw_On0, span.Sw_Off0, span.Sw_On1, span.Sw_Off1 {
    margin: 0;
    padding: 0;
    background: lightgrey;
    border: none;
    text-align: center;
    float:left;
    width: 30%;
}

span.Sw_On1 {
    background: green;
}
span.Sw_Off1 {
    background: red;
}

span.value, span.raw {
    font-size: 4vw;
    position: absolute;
    left: 5%;
    top: 20%;
}

span.raw {
    font-size: 2vw;
}

span.unit {
    font-size:2vw;
    position: absolute;
    right: 5%;
    bottom: 10%;
}

div.phone {
    position: absolute;
    border: 1px solid black;
    right: 10%;
    bottom: 45%;
    width: 25%;
    height: 25%;
    background-color: darkgray;
    -webkit-transform: rotateX(0deg) rotateZ(0deg) rotateY(0deg);
}

div.compass {
    position: absolute;
    right: 10%;
    top: 10%;
    width: 40%;
    height: 40%;
}

/* Trick, um Tile-Höhe automatisch der Tile-Breite anzupassen
 * -> siehe http://stackoverflow.com/questions/5445491/height-equal-to-dynamic-width-css-fluid-layout
 * bzw. http://jsfiddle.net/ansciath/B8FU8/
 */
div.tileDummy {
    margin-top: 60%;
}
div.tileElement {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.mapMarkerLabels {
    color: white;
    background-color: red;
    font-family: "Lucida Grande", "Arial", sans-serif;
    font-size: 10px;
    text-align: center;
    width: 10px;
    white-space: nowrap;
}

/********* Mobile Version **********************/
div.Tile, div.RemoteTile, div.Tile2 {
    margin: 1%;
    padding: 1%;
    background: cornflowerblue;
    border: none;
    width: 46%;
    float: left;
    position: relative;
    -webkit-perspective: 500px;
    -webkit-perspective-origin: 50% 50%;
}

div.Tile2 {
    width: 96%;
}

div.RemoteTile {
    background: orange;
}

div.logDiv {
    clear : both;
    margin : 1%;
    padding: 1%;
    width : 96%;
    background: grey;
}

/*********End Mobile Version********************/

/*********Desktop Version**********************/
@media only screen and (min-width:800px) {
    span.value, span.raw {
        font-size: 2.66vw;
        position: absolute;
        left: 5%;
        top: 20%;
    }

    span.raw {
        font-size: 1.5vw;
    }

    span.unit {
        font-size:2vw;
        position: absolute;
        right: 5%;
        bottom: 10%;
    }


    div.Tile, div.RemoteTile, div.Tile2 {
        margin: 1%;
        padding: 1%;
        background: cornflowerblue;
        border: none;
        width: 29%;
        float: left;
        position: relative;
        -webkit-perspective: 500px;
        -webkit-perspective-origin: 50% 50%;
    }


    div.RemoteTile {
        background: orange;
    }
}


