

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



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

/* font-face kit by Fonts2u - http://www.fonts2u.com */
/* by ATS */
@font-face {
  font-family: 'BYekan';
  src: url('/static/fonts/BYekan.woff') format('woff'),   /* پشتیبانی گسترده */
       url('/static/fonts/BYekan.ttf') format('truetype'),/* برای مرورگرهای قدیمی‌تر */
       url('/static/fonts/BYekan.eot');                   /* فقط برای IE خیلی قدیمی */
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirmatnFD;
  src: url('/static/fonts/vazir/Vazirmatn-FD-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirmatnFD;
  src: url('/static/fonts/vazir/Vazirmatn-FD-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirmatnFD;
  src: url('/static/fonts/vazir/Vazirmatn-FD-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirmatnFD;
  src: url('/static/fonts/vazir/Vazirmatn-FD-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirmatnFD;
  src: url('/static/fonts/vazir/Vazirmatn-FD-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirmatnFD;
  src: url('/static/fonts/vazir/Vazirmatn-FD-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirmatnFD;
  src: url('/static/fonts/vazir/Vazirmatn-FD-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirmatnFD;
  src: url('/static/fonts/vazir/Vazirmatn-FD-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirmatnFD;
  src: url('/static/fonts/vazir/Vazirmatn-FD-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}






/**************************************************************
 * 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 {
    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: 50%;
      padding-bottom: 50%;
   }
}
@media only screen and (min-width : 1290px) {
   /* Big desktop: 3 tiles */
   .image-box {
      width: 50%;
      padding-bottom: 50%;
   }
}

/**************************************************************
 * Weight log calendar
 **************************************************************/
table.month td{
    height: 4em;
    text-align: center;
}

table.month td {
    width: 14.285%;
}

table.month th.month{
    text-align: center;
    background-color: #eeeeec;
}

table.month a.calendar-link{
    height:100%;
    line-height: 1;
}

table.month td.session-bad {
    background-color: #F2DEDE;
}
table.month td.session-bad:hover {
    background-color: #C9302C;
}

table.month td.session-neutral {
    background-color: #F5F5F5;
}
table.month td.session-neutral:hover {
    background-color: #babdb6;
}

table.month td.session-good {
    background-color: #dff0d8;
}

table.month td.session-good:hover {
    background-color: #449D44;
}


/*
 * Autocompleter
 */
.autocomplete-wrapper {
    margin: 44px auto 44px;
    max-width: 600px;
}

.autocomplete-wrapper label {
    display: block;
    margin-bottom: .75em;
    color: #3f4e5e;
    font-size: 1.25em;
}
.autocomplete-wrapper .text-field {
    padding: 0 15px;
    width: 100%;
    height: 40px;
    border: 1px solid #CBD3DD;
    font-size: 1.125em;
}
.autocomplete-wrapper ::-webkit-input-placeholder,
.autocomplete-wrapper :-moz-placeholder,
.autocomplete-wrapper ::-moz-placeholder,
.autocomplete-wrapper :-ms-input-placeholder {
    color: #CBD3DD;
    font-style: italic;
    font-size: 18px;
}
.autocomplete-suggestions {
    overflow: auto;
    border: 1px solid #CBD3DD;
    background: #FFF; }

.autocomplete-suggestion {
    overflow: hidden;
    padding: 5px 15px;
    white-space: nowrap;
}

.autocomplete-selected {
    background: #F0F0F0;
}

.autocomplete-suggestions strong {
    color: #3465a4;
    font-weight: bold;
}

.autocomplete-group {
    background-color: #d3d7cf;
}
.autocomplete-group strong {
    color: black;
    font-weight: bold;
}

/**************************************************************
 * Checkboxes that doesn't show materialized.
 **************************************************************/
.mycheckbox input[type=checkbox] {
  display: inline-block;
  position: absolute;
  right: 25px;
  content: "";
  background-color: rgba(0, 0, 0, 0.84);
  height: 20px;
  width: 20px;
  margin-top: 0px;
  border-radius: 100%;
  z-index: 1;
}
.mycheckbox label {
 padding-right: 40px;
}

@media only screen and (max-width : 480px) {
   /* Fix Smartphone View*/
  .mycheckbox input[type=checkbox] {
      margin-top: 0px;
	  display: inline-block;
   }
}

/*
 * Added by MTS
 */
html {
  font-family: "VazirmatnFD", "Open Sans Light", Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
}
.exercise-sets {
    direction: ltr;
    float: left;
}

/**************************************************************
 * Persian datePicker font.
 **************************************************************/
.datepicker-container .datepicker-plot-area{
    font-family: "VazirmatnFD", "Open Sans Light";
}

/**************************************************************
 * Go to top button.
 **************************************************************/
#gotop {
  display: inline-block;
  text-align: center;
  border-radius: 4px;
  position: fixed;
  bottom: 60px;
  right: 30px;
  transition: background-color .3s,
    opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}
#gotop::after {
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  font-size: 2em;
  line-height: 50px;
  color: #fff;
}
#gotop:hover {
  cursor: pointer;
}

#gotop.show {
  opacity: 1;
  visibility: visible;
}

/**************************************************************
 * Center items
 **************************************************************/
.center {
    float: none;
    margin: 0 auto;
}
