/*
    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
 *
 **************************************************************/



/**************************************************************
 * 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;
}


/*
 * Images in links are vertically aligned
 */

a img{
    vertical-align: middle;
}

/*
 * "invisible" elements, simply hidden (they still take all the space)
 */
.invisible{
    display: none;
}

.ym-g10
{
    width: 10%;
}

.ym-g15
{
    width: 15%;
}

.align-right
{
    text-align: right;
}

.sortable-settings
{
    border: 1px solid black;
}

.sortable-settings-drag
{
    padding-left: 1em;
    padding-right: 1em;
    background-color: #babdb6;
    border-bottom:1px solid black;
}

/*
 * Set a more appropriate cursor to the drag'n'drop handle on the
 * workout view
 */
.dragndrop-handle{
    cursor:move
}


/*
 * Hide the edit options (edit, delete) on tables, only show them when the mouse is over the row
 */
.editoptions
{
    visibility: hidden;
}

/*
 * Images inside a link are set to greyscale till mouseover
 */
/*
a img
{
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
}

a:hover img
{
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    -ms-filter: grayscale(0%);
    -o-filter: grayscale(0%);	
}
*/

/*
 * Set the sizes for the background where the muscles are shown on the exercise view page
 */
div.muscle-background
{
    width: 200px;
    height: 369px;
    background-repeat: no-repeat;
}

/*
 * Set an additional padding to the generated DIV on the edit set page
 */
#exercise-search-log{
    padding-left: 1em;
}



/**************************************************************
 * 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;
}



/**************************************************************
 * Classes Error form
 **************************************************************/

/*
 * 'form-error' is inserted by the JQuery form validator and the styling
 * is copied from the yaml ones, for consistency
 */
.ym-form .form-error {
    color: #880000;
}
.ym-form label.form-error {
    font-weight: bold;
}

.ym-form input.form-error {
    box-shadow: none;
    background-color: #880000;
    color: black;
}


/*
 * Workout log entry page needs the horizontal space
 */
.workout-log-table .narrow-input
{
    width: 3em;

}

.ym-form .workout-log-table div.ym-fbox-text{
    padding: 0em;
}

.ym-form .workout-log-table td{
    padding-left: 0em;
    padding-right: 0em;
}


/**************************************************************
 * Header
 **************************************************************/

/*
 * Add a shadow to the application name
 */
header h1{
    text-shadow: 2px 3px 3px #292929;
    font-family: "Open Sans Bold", Arial, Helvetica, sans-serif;
    font-weight: 300;
}

header a{
    color:white;
    font-size:90%;
}

header span.name{
    text-shadow: 2px 3px 3px #292929;
    font-family: "Open Sans Bold", Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size:   350%;
    color:       white;
}


header span.regular{
    text-shadow: 2px 3px 3px #292929;
    font-family: "Open Sans Light", Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size:   350%;
    color:       white;
}

/*
 * Make more space for the page title
 */
#page-title{
    margin-top: 0px;
}

#content-wrapper{
    padding-top: 0.8em;
}


/*
 * Links in warning boxes get a different style, the default blue doesn't match
 * well with orange
 */
div.success a, div.success a:hover, div.success a:active,
div.warning a, div.warning a:hover, div.warning a:active,
div.info a, div.info a:hover, div.info a:active{
    color: black;
    text-decoration: underline;
    background-color: transparent;
}


/**************************************************************
 * Autocompleter
 **************************************************************/
/*
 * Category heading for the ajax autocompleter
 */
.ui-autocomplete-category {
    margin:0;
    text-align: center;
    zoom: 1;
    float: left;
    clear: left;
    width: 100%;
    font-weight: bold;
    background-color: #D3D7CF;
    border-bottom: 1px solid #888a85;
}

/*
 * Give the result list from the autocompleter a maximum size
 */
.ui-autocomplete {
    max-height: 500px;
    max-width: 500px;
    overflow-y: auto;
    overflow-x: hidden; /* prevent horizontal scrollbar */
}

/*
 * Give odd child's a different background colour (thanks CSS3!)
 */
.ui-autocomplete li.ui-menu-item:nth-child(odd)
{
    background: #eeeeec;
}


/**************************************************************
 * Pagination styles
 **************************************************************/
.pagination a:hover
{
    color:black;
}

ul.pagination li{
    margin: 0;
    padding: 0;
    list-style: none;
    margin-right: 0.5em;
}

ul.pagination .deactivated,
ul.pagination a{
    margin-right: 0.5em;
}

ul.pagination .active{
    background: #204a87;
    color: white;
    font-weight: bold;
    display: block;
    float: left;
    padding: 3px 9px;
    border-radius: 3px;
    border: 1px solid black;
}

ul.pagination .deactivated{
    background: #D3D7CF;
    color: #555753;
    display: block;
    float: left;
    padding: 3px 9px;
    border-radius: 3px;
    border: 1px solid #D3D7CF;
}


ul.pagination a:link,
ul.pagination a:visited {
    box-shadow: 0 0 4px #EEEEEE inset;
    color: #0e509e;
    display: block;
    float: left;
    padding: 3px 9px;
    border-radius: 3px;
    border: 1px solid #d3d7cf;
}

ul.pagination a:hover
{
    border: 1px solid #2e3436;
    box-shadow: 0 0 4px #3465a4 inset;
}


/**************************************************************
 * 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;
}

/*
 * Definition for extra-bold fonts
 */
.extra-bold{
    font-family: "Open Sans Bold", Arial, Helvetica, sans-serif;
    font-weight: 300;
}

/**************************************************************
 * Set edit window
 **************************************************************/
#formsets input{
    max-width: 5em;
}
#slider{
    width: 91%;
    float: right;
    margin-right: 1em;
}
#formset .ym-fbox-text{
    /*float: none;*/
}
