﻿/*
 * Body Temperature
 * Copyright 2013 CET
 *
 */

/* ==========================================================================
   General styles
   ========================================================================== */

.he,
.ar {
  text-align: right;
  direction: rtl;
}
.en,.vi {
  text-align: left;
  direction: ltr;
}

.container {
  color:#fff;
  height: 100%;
  background: #679cd1; /* Old browsers */
  background: -moz-linear-gradient(top, #679cd1 0%, #285179 70%, #3376b8 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#679cd1), color-stop(70%,#285179), color-stop(100%,#3376b8)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #679cd1 0%,#285179 70%,#3376b8 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #679cd1 0%,#285179 70%,#3376b8 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #679cd1 0%,#285179 70%,#3376b8 100%); /* IE10+ */
  background: linear-gradient(to bottom, #679cd1 0%,#285179 70%,#3376b8 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#679cd1', endColorstr='#3376b8',GradientType=0 ); /* IE6-9 */
}

.container ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Structure
   ========================================================================== */

#col1,
#col2 {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#col1 {
  float: right;
  margin: 3.1875em 0 0;
  padding: 1em 2em;
  width: 42%;
  border-left: 1px solid rgba(255,255,255, .5);
}

body.en #col1 , body.zh #col1, body.vi #col1 {
  right:50%;
  float:left;
  border-right: 1px solid rgba(255,255,255, .5);
  border-left: none;
}

#col2 {
  position:relative;
  float: left;
  margin-top:1em;
  padding: .1875em 2em 1.25em .625em;
  width: 58%;
}

/* ==========================================================================
   First column
   ========================================================================== */

#menu {
  padding: 1em;
  height: 11.875em;
  border-radius: .5em;
  background: #84aacf; /* Old browsers */
  background: -moz-linear-gradient(-45deg, #84aacf 0%, #9ab2c9 50%, #4a6d91 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#84aacf), color-stop(50%,#9ab2c9), color-stop(100%,#4a6d91)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(-45deg, #84aacf 0%,#9ab2c9 50%,#4a6d91 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(-45deg, #84aacf 0%,#9ab2c9 50%,#4a6d91 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(-45deg, #84aacf 0%,#9ab2c9 50%,#4a6d91 100%); /* IE10+ */
  background: linear-gradient(135deg, #84aacf 0%,#9ab2c9 50%,#4a6d91 100%); /* W3C */
  box-shadow: 0 .125em .5em .375em rgba(0,0,0, .1);
  text-align: center;
  -webkit-text-shadow: 0 0 .375em #000;
  text-shadow: 0 0 .375em #000;
  line-height: 1.1;
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#84aacf', endColorstr='#4a6d91',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
body.en #menu , body.zh #menu, body.vi #menu{
  
  height:200%;
}
.load{white-space:nowrap;}

.btn-load {
  display: inline-block;
  width: 6.3125em;
  vertical-align: top;
  font-weight: 500;
}


.btn-load > img{
  position:relative;
  z-index:500;
  width:4em;
  height:4em;
  margin:0 auto;
  cursor:pointer;
}

.btn-load:before {
  position: relative;
  z-index:300;
  top: .625em;
  right: 4.5em;
  display: block;
  float: right;
  margin-right: -2.625em;
  width: 2.625em;
  height: 2.625em;
  border-radius: 50%;
  box-shadow: 0 0 .75em .25em rgba(0,0,0, .25);
  content: "";
}

.btn-load:hover:before {
  box-shadow: none;
}

#activity {
  margin-top: .625em;
  padding-top: .9375em;
  border-top: 1px solid rgba(255,255,255, .5);
}

#activity > li {
  float: right;
  width: 33%;
}

.en #activity > li, .vi #activity > li {
  float: left;
  width: 33%;
}


#activity > li:last-of-type {
    margin: 0;
  }

#activity > li img {
  margin: 0 0 .3125em;
  height: 3.125em;
  border-radius: .75em;
  box-shadow: 0 0 .25em .125em rgba(0,0,0, .25);
  cursor: pointer;
}

#activity > li img:hover {
    box-shadow: none;
  }


#activity > li span {
   font-size: .75em;
  }  


/* ==========================================================================
   Second column
   ========================================================================== */

 #col2 h1 {
  font-size: .875em;
  padding:0 1em .875em 0;
 }

#graph {
  position: relative;
  margin: 0 0 .625em;
  width: 26.5em;
  height: 17.5em;
}

#graphs {
  position: relative;
  overflow: hidden;
  width: 23.3125em;
  height: 14.125em;
  border:1px solid #ccc;
  background: #ccc; /* Old browsers */
  background: -moz-linear-gradient(top, #cccccc 0%, #fefefe 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cccccc), color-stop(100%,#fefefe)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #cccccc 0%,#fefefe 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #cccccc 0%,#fefefe 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #cccccc 0%,#fefefe 100%); /* IE10+ */
  background: linear-gradient(to bottom, #cccccc 0%,#fefefe 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#fefefe',GradientType=0 ); /* IE6-9 */
}

body.en #graphs , body.zh #graphs, body.vi #graphs {
  left:12%;
}

#graphs > div {
  position: absolute;
  left: 0;
  bottom:5.375em;
  overflow: hidden;
  direction:ltr;
  width:0;
}

#graphs > div > img{ width:23.5em;}

#light-load-rest{bottom:5.1875em !important;}
#light-load-rest img {
 height:.5em;
}

#light-load-moderate img {
 height:2.1285em;
}

#light-load-intense img{
 height:4.25em;
}

#heavy-load-rest img {
 height:.5em;
}

#heavy-load-moderate img {
 height:2.8125em;
}

#heavy-load-intense img{
 height:8.4375em;
}

#chir-y{
  width:3.125em;
  height:15.5em;
  position: absolute;
  top: -.4375em;
  left: 0;
}

#chir-y > img{width:100%; height:100%;}


#chir-x{
  width:24.5em;
  height:3.125em;
  position: absolute;
  right: -.9375em;
  bottom: .25em;
}

#chir-x> img{width:100%; height:100%;}


#desc-y{position: absolute;top: 7.5em; left: -3.5em; width:8em; font-weight:bold;
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);}

body.en #desc-y {
   width:9em;
height:7%;
top: 6.8em;
}

body.vi #desc-y {
   width:9em;
height:7%;
top: 6.8em;
}

body.zh #desc-y {
   width:9em;
height:7%;
top: 4em;
}
#desc-x { position: absolute; bottom: .5em; left:7.5em; width:7em; font-weight: bold; }

#desc-y > span, #desc-x > span{ font-size:80%;}


#col2 ul {
  float: right;
  margin-right: .5em;
  margin-left: 2.5em;
  width: 15em;
  font-size: .75em;
}
body.en #col2 ul , body.zh #col2 ul {
   margin-left: 2em;
}

 body.vi #col2 ul {
   margin-left: 0em;
   width: 17em;
   margin-right: 0.6em;
   float: left;
}

  #col2 ul:last-of-type {
    margin: 0;
  }

#col2 li:before {
  position: relative;
  right: -.5em;
  display: inline-block;
  width: .375em;
  height: .375em;
  border: 1px solid #fff;
  content: "";
}

body.en #col2 li:before, body.zh #col2 li:before , body.vi #col2 li:before {
  right: 0.5em;
}

#light-1:before {
  background: #0099ff;
}

#light-2:before {
  background: #0033ff;
}

#light-3:before {
  background: #000066;
}

#heavy-1:before {
  background: #c8c800;
}

#heavy-2:before {
  background: #ff7d00;
}

#heavy-3:before {
  background: #ff0000;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  text-align: left;
}

  footer button {
    margin: .25em;
    border: 1px solid #313050;
    background: #0072bb;
    font-weight: 700;
  }

    footer button:hover {
      background: #0099ff;
    }

/* ==========================================================================
   Helper classes
   ========================================================================== */

.clearfix:before,
.clearfix:after {
  display: table;
  content: " ";
}

.clearfix:after {
  clear: both;
}

.active > img {
  cursor: default !important;
}

.btn-load.active:before {
  box-shadow: 0 0 .875em .375em #fff !important;
}

li.active > img {
  box-shadow: 0 0 .875em .25em #fff !important;
}
