/* sensorer.css mats@klarare.se */
/*
Sand Tan: #e1b382
Sand Tan Shadow: #c89666
Night Blue: #2d545e
Night Blue Shadow: #12343b
*/
:root {
    --outerbox-color: #c89666;
    -+outerbox-color:  rgb(220,200,220);
    --tehum-color:  rgb(210,230,210);
    -+box-color:  rgb(100,150,200);
    --box-color:  #e1b382;
    --server-color: rgb(200,100,100);
    --services-color:  rgb(210,230,210);
    --pane-color: #e1b382;;
    -+pane-color: rgba(200,200,200,.9);
    --outerbox-label-font:'Comic Sans MS', cursive, sans-serif;
    $outerbox-label-font:'Lucida Sans', cursive, sans-serif;
    --h3-font:'Comic Sans MS', normal, sans-serif;
}

/* reset to my defaults, not browsers */
body, html {height:100%;}

body, html, div, blockquote, img, label, p, h1, h2, h3, h4, h5, h6, pre, ul, ol,
li, dl, dt, dd, form, a, fieldset, input, th, td {
    margin: 0; padding: 0; border: 0; outline: none;
}

body {
    line-height: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    padding: .6em 0;
    margin: 0 15px;
}

ul, ol {
    list-style: none;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* end reset */

@media (orientation:portrait) {
    .pane {
        height:auto;
        width:100%;
    }
    .outerbox {width:98%;}
}
@media (orientation:landscape) {
    .Zpane {
    }
    .outerbox {width:32%;}
}

body, html {
    font-family: serif;
    font-size: 16px;
    background: #12343b;
}

.pageheader {
    position: relative;
    display:inline-flex;
    justify-content: space-between;
    align-items: center;
    width:calc(100% - 1em);
    /*height:2.2em;*/
    border-width:5px;
    border-color: #e1b382;
    padding:0.5em;
    background-color: rgba(0,0,0,.20);
    clear: both;
}

.serverbox {
    height:1.5em;
    display: inline-grid;
    grid-template-columns: repeat(6, 1.1em);
    grid-gap: .2em;
}
.Zweatherbox {
    min-height:1.5em;
    display: inline-grid;
    grid-template-columns: repeat(5, 10.1em);
    grid-gap: .2em;
}


.outerbox {
    position:relative;
    float:left;
    background-color: var(--outerbox-color);
    padding:.01em;
    margin:.5em;
    margin-top:37px;
    border-radius: 0 5px 5px 5px;
}

.outerbox:before {
    content: attr(id);
    position: absolute;
    top: -1.3em;
    left: 0;
    padding-left:4px;
    padding-right:8px;
    padding-bottom: 4px;
    padding-top: 1px;
    font-family: var($outerbox-label-font);
    font-size:1em;
    font-weight: bold;
    background-color: inherit;
    border-radius: 0 5px 0 0;
}

.outerbox > text:first-of-type  {
    float:left;
    font-family: var(--outerbox-label-font);
    font-weight: bolder;
    background-color: inherit;
    padding:2px;
    width:calc(100% - 20px);
    zoom:1; /* For IE 6/7 (trigger hasLayout) */
}


.outerbox > text:first-of-type:before,
.outerbox > text:first-of-type:after {
  content:"";
  float:left;
  display:block;
  clear:both;
}

.Zbox button {
    min-width: 5em;
    min-height: 2em;
}

.Zbox, .box {
    width:100%;
    height:auto;
    display: inline-block;
    /*
    margin:5px;
    border: 5px inset silver;
    grid-template-columns: repeat(auto-fill, minmax(10em, 1fr));
    grid-gap:10px;
    grid-row-gap: 10px;
    grid-auto-flow: row;
    width: calc(100% - 5px); */
}

@media screen and (min-width: 30em) {
    .mbox {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (min-width: 50em) {
    .mbox {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media screen and (min-width: 70em) {
    .mbox {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.pane {
    position: relative;
    background-color: var(--pane-color);;
    margin:.125em;
    border: 5px inset #e1b382;
}
.panetop {
    height: 1.5em;
    width:100%;
}
.panebtn {
    float:right;
    height: 2em;
    width: 5em;
}
.paneimg {
    position:relative;
    display:block;
    height:auto;
    width:100%;
}

.videoplayer {
    position: absolute;
    top: 100px;
    bottom: 100px;
    left:100px;
    right:100px;
    height:240px;
    width:320px;
}
.panevideoplayer {
    width:100%;
    height:100%;
}
.video button {
    position: absolute;
    right:10px;
    height:10px;
    width:10px;
}

.Zvideo {
    position:relative;
    height:auto;
    width:100%;
    border: 5px inset #e1b382;
}

.bildspel {
    background-image: url('img/bildspel.png');
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    text-align: left;
    height:10em;
    width:95%;
    border: 5px inset #e1b382;
}

.bildspel, button, .paneimg {cursor:pointer;}

.mbox {
    margin:5px;
}

.mbox .bildspel {
    display:inline-block;
    height: auto;
    width: 30%;
}

.mbox .video {
    display:inline-block;
    height: auto;
    width: 30%;
}

.server {
    display:inline-block;
    background-color: var(--server-color);
    background-image: url('img/server.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    height:1.8em;
    width:1.2em;
    margin:0 .2em;
    cursor:pointer;
    vertical-align: baseline;
}

.value {
    border: 1px solid black;
    font-style:normal;
    padding:2px;
    margin-right: 5px;
}

.label {
    font-style:italic;
    padding: 2px;
    margin-left: 5px;
}

/* miljö instrument */
.instr {
    float:left;
    background: linear-gradient(to right, var(--outerbox-color), var(--box-color));
    border-radius:.2em;
    padding:.3em;
}

.instrlabel {
    display: inline-block;
    width: 3em;
}

.temp {
    display:inline-block;
}
.temp::before {
    content: "\1F321";
    display: inline;
    padding-right: .1em;
}

.temp::after {
    content: "\2103";
    display: inline;
    padding-right: .2em;
}

.fukt {
    display:inline-block;
}
.fukt::before {
    content: "\1F4A7";
    display: inline;
    padding-right: .1em;
}
.fukt::after {
    content: "%";
    display: inline;
    padding-right: .1em;
}
.dark,
.light {
    padding-left: 1em;
}
/* slut instrument */
.bad {background-color: rgb(255,0,0)}
.good {background-color: rgb(0,255,0)}

/* popup notes down right */
.notes {
    position:absolute;
    bottom: 3px;
    right: 4px;
    height: auto;
    width: 25%;
    padding: 0px;
    margin: 5px;
    border-radius: 5px;
    background-color: rgb(180,120,120);
    transition:ease-in-out;
    transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
}

.noteNode {
    position:relative;
    float:left;
    font-size: 12px;
    font-family: monospace;
    padding:0px;
    margin-top:3px;
    margin-right:3px;
    width:100%;
    height:auto;
    border-radius: 5px;
    border: 2px black solid;
    background-color: rgb(200,220,180);
    transition:ease-in-out;
    transition-timing-function: cubic-bezier(0, 0, 0.58, 1);
}

.fullText {
    border: 0px solid black;
    background-color: white;
}
.fullText .noteNode {
    top:0;
    height:auto;
    left:0;
    width:auto;
}

.noteHdr {
    width: 100%;
    height: 1.5em;
    font-family: cursive;
    font-weight: bold;
    padding-left:5px;
}

.noteClose {
    float:right;
    font-size: 8px;
    text-align: left;
    vertical-align: top;
    margin-left:1px;
    margin-right: 5px;
    width:10px;
    height:auto;
}

.noteText {
    position:relative;
    float:left;
    clear:both;
    width:90%;
    padding:6px;
    margin:0px;
    background-color: rgb(210,200,180);
}
/* slut notes */
