/*
    This file is part of Workout Manager

    Workout Manager is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Workout Manager is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.
*/

/**************************************************************
 *
 * This file contains custom classes and styles for both mobile and desktop version
 *
 **************************************************************/



/**************************************************************
 * Font definitions
 **************************************************************/

/* font-face kit by Fonts2u - http://www.fonts2u.com */
@font-face {
    font-family:"Open Sans Light";
        src:url("/static/fonts/OpenSans-Light.eot?") format("eot"),
            url("/static/fonts/OpenSans-Light.woff") format("woff"),
            url("/static/fonts/OpenSans-Light.ttf") format("truetype"),
            url("/static/fonts/OpenSans-Light.svg#OpenSans-Light") format("svg");
    font-weight:normal;
    font-style:normal;
}


@font-face {
    font-family:"Open Sans";
        src:url("/static/fonts/OpenSans-Regular.eot?") format("eot"),
            url("/static/fonts/OpenSans-Regular.woff") format("woff"),
            url("/static/fonts/OpenSans-Regular.ttf") format("truetype"),
            url("/static/fonts/OpenSans-Regular.svg#OpenSans") format("svg");
    font-weight:normal;
    font-style:normal;
}


@font-face {
    font-family:"Open Sans Bold";
        src:url("/static/fonts/OpenSans-Bold.eot?") format("eot"),
            url("/static/fonts/OpenSans-Bold.woff") format("woff"),
            url("/static/fonts/OpenSans-Bold.ttf") format("truetype"),
            url("/static/fonts/OpenSans-Bold.svg#OpenSans-Bold") format("svg");
    font-weight:normal;
    font-style:normal;
}





/* Use Open Sans for the body text */
.ui-body-c,
.ui-body-c input,
.ui-body-c select,
.ui-body-c textarea,
.ui-body-c button {
    font-family: "Open Sans Light", Arial, Helvetica, sans-serif;
    font-weight: 300;
}
.ui-body-c .ui-link{
    font-weight: normal;
}



/**************************************************************
 * Styling for the SVG elements on the weight chart
 **************************************************************/

.axis path, .axis line {
    fill: none;
    stroke: #000;
    shape-rendering: crispEdges;
}

.area {
    fill: lightsteelblue;
}

.line {
    fill: none;
    stroke: steelblue;
    stroke-width: 1.5px;
}

.dot {
    fill: white;
    stroke: steelblue;
    stroke-width: 1.5px;
}

circle:hover{
    fill: #204a87;
    stroke: #204a87;
}

circle{
    cursor: pointer;
}

.brush .extent {
  stroke: #fff;
  fill-opacity: .125;
  shape-rendering: crispEdges;
}

/* Color series from d3.scale.category10() */
circle.color-1f77b4:hover
{
    fill: #1f77b4;
}

circle.color-ff7f0e:hover
{
    fill: #ff7f0e;
}

circle.color-2ca02c:hover
{
    fill: #2ca02c;
}

circle.color-d62728:hover
{
    fill: #d62728;
}

circle.color-9467bd:hover
{
    fill: #9467bd;
}

circle.color-8c564b:hover
{
    fill: #8c564b;
}

circle.color-e377c2:hover
{
    fill: #e377c2;
}

circle.color-7f7f7f:hover
{
    fill: #7f7f7f;
}

circle.color-bcbd22:hover
{
    fill: #bcbd22;
}

circle.color-17becf:hover
{
    fill: #17becf;
}


/**************************************************************
 * Muscle overview
 **************************************************************/
.muscle-list, .exercise-overview{
    list-style-type: none;
    margin-left: 0px;
}

.muscle-list .muscle, .exercise-overview .exercise{
    line-height:2em;
    margin-left: 0px;
    padding-left: 0.3em;
    cursor: pointer;
}

.muscle-list .muscle-inactive{
    background-color: transparent;
    font-weight: normal;
    border: 1px solid transparent;
    box-shadow: none;
    border-radius: 0px;
}

.muscle-list .muscle-active{
    font-weight: bold;
    background-color: #eeeeec;
    border: 1px solid #babdb6;
    box-shadow: inset 0 0 4px #d3d7cf;
    border-radius: 3px;
}


.muscle-list .muscle{
    line-height:2em;
    margin-left: 0px;
    padding-left: 0.3em;
    cursor: pointer;
}


/**************************************************************
 * Image gallery for exercises
 **************************************************************/
.image-gallery {
       overflow: hidden;
       margin: 10px;
}

.image-box {
   float: left;
   position: relative;
   width: 20%;
   padding-bottom: 20%;
}
.boxInner {
   position: absolute;
   left: 10px;
   right: 10px;
   top: 10px;
   bottom: 10px;
   overflow: hidden;
   text-align: center;
}
.boxInner img.gallery-image {
   max-height:100%;
   max-width:100%;
}
.boxInner .titleBox {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   margin-bottom: -60px;
   background: #000;
   background: rgba(0, 0, 0, 0.8);
   color: #FFF;
   padding: 10px;
   text-align: center;
   -webkit-transition: all 0.3s ease-out;
   -moz-transition: all 0.3s ease-out;
   -o-transition: all 0.3s ease-out;
   transition: all 0.3s ease-out;
}
body .boxInner:hover .titleBox, body.touch .boxInner.touchFocus .titleBox {
   margin-bottom: 0;
}

.titleBox{
    font-size: 80%;
}

.titleBox a, .titleBox .ui-link {
    color: white;

    text-shadow: none;
}
@media only screen and (max-width : 480px) {
   /* Smartphone view: 1 tile */
   .image-box {
      width: 100%;
      padding-bottom: 100%;
   }
}
@media only screen and (max-width : 650px) and (min-width : 481px) {
   /* Tablet view: 2 tiles */
   .image-box {
      width: 50%;
      padding-bottom: 50%;
   }
}
@media only screen and (max-width : 1050px) and (min-width : 651px) {
   /* Small desktop / ipad view: 3 tiles */
   .image-box {
      width: 33.3%;
      padding-bottom: 33.3%;
   }
}
@media only screen and (max-width : 1290px) and (min-width : 1051px) {
   /* Medium desktop: 3 tiles */
   .image-box {
      width: 33.3%;
      padding-bottom: 33.3%;
   }
}
@media only screen and (min-width : 1290px) {
   /* Big desktop: 3 tiles */
   .image-box {
      width: 33.3%;
      padding-bottom: 33.3%;
   }
}

/**************************************************************
 * Weight log calendar
 **************************************************************/
 th.month, th.month:hover{
    text-align: center;
    background-color: #d3d7cf;
    border-bottom: 2px solid black;
}
td.filled, td.filled:hover{
    background-color: #ad7fa8;
}

td.filled a:hover{
    /*background-color: inherit;*/
}

table.month tbody tr:hover td.filled{
    background-color: #ad7fa8;
}
table.month td.filled a{
    display: block;
    height:100%;
    width:100%;
    color: black;
}
table.month td a{
    color: black;
    text-shadow: none;
    text-decoration: none;
}
table.month td{
    padding: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left:7px;
    margin-right:7px;
}
table.month th{
    text-align: center;
}
table.month th {
    height: 2em;
}

table.month td {
    height: 4em;
    width: 14.2857%;
    text-align: center;
    vertical-align: middle;
}

td.today, table.month tbody tr:hover td.today{
    font-weight: bold;
}
.calendar-log-data{
    display:none;
}

.calendar-log-data ul.grouper-list > li{
    float:left;
    list-style:none;
    margin-left:0px;
    height: 120px;
    clear: right;
}

@media only screen and (max-width : 480px) {
   /* Smartphone view: 1 tile */
   .calendar-log-data ul.grouper-list > li {
      width: 100%;
   }
}
@media only screen and (max-width : 650px) and (min-width : 481px) {
   /* Tablet view: 3 tiles */
   .calendar-log-data ul.grouper-list > li {
      width: 33.3%;
      /*height: 33.3%;*/
   }
}
@media only screen and (max-width : 1050px) and (min-width : 651px) {
   /* Small desktop: 4 tiles */
   .calendar-log-data ul.grouper-list > li {
      width: 25%;
      /*height: auto;*/
   }
}
@media only screen and (max-width : 1290px) and (min-width : 1051px) {
   /* Medium desktop: 5 tiles */
   .calendar-log-data ul.grouper-list > li {
      width: 20%;
      /*height: 20%;*/
   }
}
@media only screen and (min-width : 1290px) {
   /* Big desktop: 5 tiles */
   .calendar-log-data ul.grouper-list > li {
      width: 20%;
      /*height: 20%;*/
   }
}


/* Timeline with years and months with logs */

.timeline-log span{
    margin-left: 1em;
}