html,
body {
    margin: 0;
    padding: 0;
    -webkit-touch-callout: none !important;}
body {
    font-family: Verdana, sans-serif;}
a {
    color: #00b6df;
    cursor: pointer;
    -webkit-user-select: none !important;}
a:hover {
    color: #007f9b;}
p {
    margin: 0;
    padding: 0;}
.t-left {
    text-align: left;}
.t-center {
    text-align: center;}
.t-right {
    text-align: right;}
.f-left {
    float: left;}
.f-right {
    float: right;}


/* Wrapper */
div#wrapper {
    margin: 0 auto;
    padding: 30px;
    width: 256px;
    height: 627px;
    position: relative;}


/* Strip */
a#strip {
    margin: 20px auto 0;
    width: 36px;
    height: 177px;
    display: block;
    position: relative;
    top: 0;
    z-index: 10;}
a#strip.test {
    top: -90px;}


/* Fill */
div#fill {
    width: 18px;
    height: 0;
    position: absolute;
    bottom: 135px;
    left: 149px;}
div#fill.filled {
    height: 10px;}
div#fill.control {
    background: #09f;}
div#fill.blood {
    background: #d00;}
div#fill.mystery {
    background: #fc0;}

/* Drop */
a.drop {
    border-radius: 12px;
    width: 24px;
    height: 24px;
    position: absolute;
    bottom: 70px;
    display: block;
    display: none;
    z-index: 5;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;}
a.drop.apply {
    width: 12px;
    height: 12px;
    left: 152px !important;
    bottom: 115px;}
a.drop.test {
    width: 12px;
    height: 12px;
    left: 152px !important;
    bottom: 125px;}
a#control {
    background: #09f;
    left: 100px;}
a#blood {
    background: #d00;
    left: 146px;}
a#mystery {
    background: #fc0;
    left: 192px;}


/* Device */
#device {
    background: url('../images/wolverine.png') no-repeat;
    width: 256px;
    height: 430px;
    position: relative;
    z-index: 20;}
#device #screen {
    background: url('../images/screens.png') no-repeat 0 0;
    width: 256px;
    height: 268px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;}
#device.negative {
    color: #FFF;}
#device.negative #screen {
    background-position: 0 0;}
#device.positive {
    color: #000;}
#device.positive #screen {
    background-position: 0 -268px;}
#device.positive.light #screen {
    background-position: 0 -536px;}
#device.positive.green #screen {
    background-position: 0 -804px;}
#device.positive.yellow #screen {
    background-position: 0 -1072px;}
#device.positive.red #screen {
    background-position: 0 -1340px;}
img#glass {
    width: 256px;
    height: 268px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 40;}
#display {
    font-smooth: never;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: none;
    font-size: 16px;
    font-weight: bold;
    width: 128px;
    height: 160px;
    position: absolute;
    top: 78px;
    left: 64px;
    overflow: hidden;
    z-index: 50;}
#buttons {
    width: 174px;
    height: 86px;
    position: absolute;
    top: 268px;
    left: 41px;}
#buttons a.button {
    width: 56px;
    display: block;
    position: absolute;}
#buttons a.button:hover {
    background: rgba(255, 255, 255, 0.05);}
#buttons.three a#one,
#buttons.four a#one {
    background-image: url('../images/button-left.png');
    background-position: center 14px;
    background-repeat: no-repeat;
    border-radius: 4px 4px 4px 60px;
        -webkit-border-radius: 4px 4px 4px 60px;
        -moz-border-radius: 4px 4px 4px 60px;
        -o-border-radius: 4px 4px 4px 60px;
    height: 81px;
    top: 0;
    left: 0;}
#buttons.three a#two {
    background-image: url('../images/button-check.png');
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px 4px 8px 8px;
        -webkit-border-radius: 4px 4px 8px 8px;
        -moz-border-radius: 4px 4px 8px 8px;
        -o-border-radius: 4px 4px 8px 8px;
    height: 86px;
    top: 0;
    left: 60px;}
#buttons.four a#two {
    border-radius: 4px 4px 0 0;
        -webkit-border-radius: 4px 4px 0 0;
        -moz-border-radius: 4px 4px 0 0;
        -o-border-radius: 4px 4px 0 0;
    height: 43px;
    top: 0;
    left: 59px;}
#buttons.four a#three {
    border-radius: 0 0 8px 8px;
        -webkit-border-radius: 0 0 8px 8px;
        -moz-border-radius: 0 0 8px 8px;
        -o-border-radius: 0 0 8px 8px;
    height: 43px;
    top: 43px;
    left: 59px;}
#buttons.three a#three,
#buttons.four a#four {
    background-image: url('../images/button-right.png');
    background-position: center 14px;
    background-repeat: no-repeat;
    border-radius: 4px 4px 60px 4px;
        -webkit-border-radius: 4px 4px 60px 4px;
        -moz-border-radius: 4px 4px 60px 4px;
        -o-border-radius: 4px 4px 60px 4px;
    height: 81px;
    top: 0;
    right: 0;}
#buttons.three a#four {
    display: none;}


/* Highlight (knockout) text and Icons */
.highlight {
    padding: 0 3px;}
#device.negative .highlight {
    color: #121212;
    background: #FFF;}
#device.positive .highlight {
    color: #c0c4bd;
    background: #000;}
#device.positive.light .highlight {
    color: #c6e7e5;}
#device.positive.green .highlight {
    color: #72e76f;}
#device.positive.yellow .highlight {
    color: #e6e74c;}
#device.positive.red .highlight {
    color: #e64e89;}
#device.negative .highlight.blink {
    color: #FFF;}
#device.positive .highlight.blink {
    color: #000;}

i.icon {
    margin-bottom: -1px;
    width: 13px;
    height: 13px;
    display: inline-block;}
i.icon-drop {
    background: url('../images/icon-drop.png') no-repeat;}
i.icon-calendar {
    background: url('../images/icon-calendar.png') no-repeat;}
i.icon-warning {
    background: url('../images/icon-warning.png') no-repeat;
    margin-bottom: -3px;
    margin-right: 5px;
    width: 18px;
    height: 17px;
    display: inline-block;}
#device.negative i.icon,
#device.negative i.icon-warning {
    background-position: 0 0;}
#device.negative .highlight i.icon,
#device.positive i.icon{
    background-position: 0 -13px;}
#device.positive .highlight i.icon {
    background-position: 0 -26px;}
#device.positive.light .highlight i.icon {
    background-position: 0 -39px;}
#device.positive.green .highlight i.icon {
    background-position: 0 -52px;}
#device.positive.yellow .highlight i.icon {
    background-position: 0 -65px;}
#device.positive.red .highlight i.icon {
    background-position: 0 -78px;}
#device.positive i.icon-warning {
    background-position: 0 -17px;}


/* Screens */
.page {
    height: 100%;
    display: none;}
.top {
    font-size: 14px;
    line-height: 1.5em;
    text-transform: uppercase;}
.top.border {
    border-bottom: 1px solid;}
.bottom {
    width: 100%;
    position: absolute;
    bottom: 0;}
.bottom.border {
    border-top: 1px solid;}

/* Results / Slides */
.result {
    width: 100%;
    position: absolute;
    top: 33px !important;}
.result .number {
    font-family: Lato, Verdana, sans-serif;
    font-size: 62px;
    line-height: 55px;
    display: block;}
.warn-low .result .number,
.warn-high .result .number {
    text-indent: -9999px;
    background: url('../images/result-warning.png') no-repeat;
    margin: 0 auto;
    width: 80px;
    height: 48px;}
#device.negative .warn-low .result .number {
    background-position: 0 0;}
#device.negative .warn-high .result .number {
    background-position: -80px 0;}
#device.positive .warn-low .result .number {
    background-position: 0 -48px;}
#device.positive .warn-high .result .number {
    background-position: -80px -48px;}
.result .measurement {
    font-family: Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.2em;
    display: block;}
.result img.loading {
    margin-top: 15px;
    display: none;}
.slide {
    width: 100%;
    height: 100%;
    position: absolute;}

/* Errors */
a#error-temp {
    width: 17px;
    height: 36px;
    display: block;
    position: absolute;
    top: 581px;
    left: 60px;}
a#error-low-bat {
    width: 47px;
    height: 18px;
    display: block;
    position: absolute;
    top: 505px;
    left: 60px;}
a#error-no-bat {
    width: 47px;
    height: 22px;
    display: block;
    position: absolute;
    top: 541px;
    left: 60px;}
#error .result .no-bat,
#error .result .low-bat {
    background: url('../images/battery.png') no-repeat;
    margin: 15px auto 0;
    width: 98px;
    height: 45px;}
#device.negative #error .result .no-bat {
    background-position: 0 0;}
#device.negative #error .result .low-bat {
    background-position: -98px 0;}
#device.positive #error .result .no-bat {
    background-position: 0 -45px;}
#device.positive #error .result .low-bat {
    background-position: -98px -45px;}
#error .result .temp {
    background: url('../images/temperature.png') no-repeat;
    margin: 3px auto 0;
    width: 34px;
    height: 72px;}
#device.negative #error .result .temp {
    background-position: 0 0;}
#device.positive #error .result .temp {
    background-position: 0 -72px;}

/* Menu graphics */
#menu .arrows {
    background: url('../images/menu-arrows.png') no-repeat;
    width: 128px;
    height: 9px;
    position: absolute;
    top: 67px;}
#device.negative #menu .arrows {
    background-position: 0 0;}
#device.positive #menu .arrows {
    background-position: 0 -9px;}
#menu .graphic {
    background: url('../images/menu-graphics.png') no-repeat;
    margin: 23px auto 0;
    width: 80px;
    height: 50px;}
#device.negative #menu .logbook .graphic {
    background-position: 0 0;}
#device.positive #menu .logbook .graphic {
    background-position: 0 -50px;}
#device.negative #menu .averages .graphic {
    background-position: -80px 0;}
#device.positive #menu .averages .graphic {
    background-position: -80px -50px;}
#device.negative #menu .set-ranges .graphic {
    background-position: -160px 0;}
#device.positive #menu .set-ranges .graphic {
    background-position: -160px -50px;}
#device.negative #menu .set-timedate .graphic {
    background-position: -240px 0;}
#device.positive #menu .set-timedate .graphic {
    background-position: -240px -50px;}
#device.negative #menu .set-color .graphic {
    background-position: -320px 0;}
#device.positive #menu .set-color .graphic {
    background-position: -320px -50px;}
#device.negative.no-color #menu .set-color .graphic {
    background-position: -400px 0;}
#device.positive.no-color #menu .set-color .graphic {
    background-position: -400px -50px;}

/* Averages */
#avg .top {
    width: 100%;
    position: absolute;
    top: 0;}

/* BG Ranges */
#ranges .range {
    margin: 9px 0 18px;
    width: 100%;
    clear: both;
    overflow: auto;}
#ranges .range.target .name {
    position: relative;
    top: 0.5em;}

/* Time & Date */
#timedate .dataset {
    margin: 18px 0 0;}
