.top-10 {margin-top: 10px;}
.top-20 {margin-top: 10px;}  .top-30 {margin-top: 30px;}
.fa-15x {
  font-size: 1.5em;
}

/*     General overwrite     */

html, body
{
    height: 100%;
    min-height:100vh;
}

/*           Animations              */
.form-control, .input-group-addon{
    -webkit-transition: all 300ms linear;
    -moz-transition: all 300ms linear;
    -o-transition: all 300ms linear;
    -ms-transition: all 300ms linear;
    transition: all 300ms linear;
}

.btn{
    border-width: 2px;
    background-color: rgba(0,0,0,.0);
    font-weight: 400;
    opacity: 0.8;
    padding: 8px 16px;
}
.btn-round{
    border-width: 1px;
    border-radius: 30px !important;
    opacity: 0.79;
    padding: 9px 18px;
}

.btn-default{
    color: #777777;
    border-color: #999999
}
.btn-primary {
    color: #3472F7;
    border-color: #3472F7;
}
.btn-info{
     color: #2CA8FF;
    border-color: #2CA8FF;
}
.btn-success{
    color: #05AE0E;
    border-color: #05AE0E;
}
.btn-warning{
    color: #FF9500;
    border-color: #FF9500;
}
.btn-danger{
    color: #FF3B30;
    border-color: #FF3B30;
}
.btn:hover{
    background-color: rgba(0,0,0,.0);
    opacity: 1;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary {
    color: #1D62F0;
    border-color: #1D62F0;
    background-color: rgba(0,0,0,.0);
}
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info {
    color: #109CFF;
    border-color: #109CFF;
    background-color: rgba(0,0,0,.0);
}
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success {
    color: #049F0C;
    border-color: #049F0C;
    background-color: rgba(0,0,0,.0);
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning {
    color: #ED8D00;
    border-color: #ED8D00;
    background-color: rgba(0,0,0,.0);
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger {
    color: #EE2D20;
    border-color: #EE2D20;
    background-color: rgba(0,0,0,.0);
}
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
    color: #666666;
    border-color: #888888;
    background-color: rgba(0,0,0,.0);
}
.btn:active, .btn.active {
    background-image: none;
    box-shadow: none;

}
.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
    opacity: 0.45;
}
.btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary.active[disabled], fieldset[disabled] .btn-primary.active {
    background-color: rgba(0, 0, 0, 0);
    border-color: #3472F7;
}
.btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info.active[disabled], fieldset[disabled] .btn-info.active {
    background-color: rgba(0, 0, 0, 0);
    border-color: #2CA8FF;
}
.btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success.active[disabled], fieldset[disabled] .btn-success.active {
    background-color: rgba(0, 0, 0, 0);
    border-color: #05AE0E;
}
.btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger.active[disabled], fieldset[disabled] .btn-danger.active {
    background-color: rgba(0, 0, 0, 0);
    border-color: #FF3B30;
}
.btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning.active[disabled], fieldset[disabled] .btn-warning.active {
    background-color: rgba(0, 0, 0, 0);
    border-color: #FF9500;
}


/* navbar */
.navbar {
    margin: 0px 0px;
}

.navbar a.navbar-brand {
    height: auto;
    width: 315px;
}

.navbar a.navbar-brand img {
    width: 60px;
    height: 60px;
}

.navbar .btn-navbar {
    margin-top: 3px;
    margin-right: 15px;
    margin-left: 0;
}

.navbar a.navbar-brand span.logo_title {
    font-size: 20px;
}

.navbar .nav {
    margin: 0px 0 0 0;
}

.navbar .nav li .fullname {
    margin: 0 3px;
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .navbar-nav .dropdown-menu {
        right: 0;
        left: auto;
    }
}

@media only screen and (max-width: 767px) {
    .navbar a.navbar-brand {
    width: 280px;
        margin: 0px 0 0px 15px;
    }
}

@media only screen and (max-width: 480px) {
    .navbar {
        margin-bottom: 0px;
        margin-top: 5px;
    }

    .navbar .btn-navbar {
        margin-top: 0px;
        margin: 0 15px;
        display: block;
        width: auto;
        clear: none;
    }

    .navbar-toggle {
        position: relative;
        float: right;
        padding: 9px 10px;
        margin-top: 8px;
        margin-right: 15px;
        margin-bottom: 8px;
        background-color: transparent;
        background-image: none;
        border: 1px solid transparent;
        border-radius: 4px;
        clear: none;
    }

    .navbar a.navbar-brand {
      margin: 0px 0;
      padding: 0px;
      overflow: hidden;
      width: 220px;
      height: 60px;
    }
}

/* END NAVBAR */
/*     END General overwrite     */


/* left-side-menu */

.left-side-menu {
    float: left;
    width: 120px;
    height:100%; display:block;
    background-color: #5b88c5;
}

.left-side-menu ul {
    list-style-type: none;
    padding-left: 0px;
}

.left-side-menu ul li {
    text-align: center;
}

.left-side-menu ul li.active {
    text-align: center;
    background-color: #6e96cd;
}

.left-side-menu img {
    width: 32px;
    height: 32px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.left-side-menu ul li.active a::after, .left-side-menu ul li.active a::before {
    position: absolute;
    content: "";
    left:112px;
}

.left-side-menu ul li.active a::after {
    border-right: 8px solid #ffffff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-top: 26px;
}

.left-side-menu ul li.active.dashboard a::after {
    border-right: 8px solid #5b88c5;
}


.left-side-menu ul li:hover {
    background-color: #6e96cd;
    text-align: center;
}

.left-side-menu ul li i {
    line-height: 60px;
    color: #ffffff;
}

/* END of left-side-menu */


.master-wrapper {
    overflow:hidden;
    background-color: #5b88c5;
    min-height: 100vh;
}

.main {
    float: left;
    width: calc(100% - 120px);
    background-color: #ffffff;
    min-height: 100vh;
}

.main .upload-data {
    margin-top: 30px;
}

.main.login {
    float: none;
    width: 100%;
    background-color: #ffffff;
    min-height: inherit;
}

/* Notification bar */

.notification-bar {
    width: 100%;
    background-color: #5b88c5;
    color: #ffffff;
    line-height: 60px;
    font-size: 12px;
}

.notification-bar::after, .notification-bar::before {
    position: absolute;
    content: "";
}

.notification-bar::after {
    border-top: 10px solid #5b88c5;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    left: calc(50%);
    display: inline-block;
}

.notification-bar .icon > h3 > img {
    width: 32px;
    height: 32px;

}
.notification-bar .icon > h3 {

}

.stats-bar span.circle {
  border-radius: 3em;
  -moz-border-radius: 3em;
  -webkit-border-radius: 3em;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  line-height: 3em;
  margin-right: 5px;
  text-align: center;
  width: 3em;
}

.stats-bar span.square {
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  line-height: 3em;
  margin-right: 5px;
  text-align: center;
  width: 3em;
}


.stats-bar span.number {
    font-weight: bold;
}

.stats-bar span.bg { background: navy; }
.stats-bar span.sd { background: orange; }
.stats-bar span.a1c { background: #ffffff; color: #5b88c5;}

/* End stats bar */

/* choose workout */

div.options > div > label > input {
    visibility: hidden;
}

div.options > div > label {
    display: block;
    margin: 0 0 0 -10px;
    padding: 0 0 48px 0;
    height: 20px;
    width: 100%;
    text-align: center;
    border: none;
}

div.options > div > label > img {
    display: inline-block;
    margin: 10px 10px;
    height: 90px;
    width: 90px;

}

div.options > div.light > label > img {
    background: url('/static/img/light-intensity.png') no-repeat center center;
    background-size:64px 64px;
}

div.options > div.moderate > label > img {
    background: url('/static/img/moderate-intensity.png') no-repeat center center;
    background-size:64px 64px;
}

div.options > div.vigorous > label > img {
    background: url('/static/img/vigorious-intensity.png') no-repeat center center;
    background-size:64px 64px;
}



div.options > div > label > input:checked + img {
    border: 3px solid #5cb85c;
    border-radius: 50%;
}

#slider-minutes .slider-selection {
	background: #BABABA;
}

span.estimated_carbs {
    display: block;
    height: 60px;
    width: 60px;
    line-height: 60px;

    border: 2px solid #5b88c5;
    border-radius: 60px;
    -moz-border-radius: 60px;
    -webkit-border-radius: 60px;
    text-align: center;
    font-size: 20px;

    margin-right: auto;
    margin-left: auto;
}

/*.food-equivalence table {
    width: 100%;
}

.food-equivalence table img {
    width: 32px;
    height: 32px;
}*/

span.accuracy {
    font-size: 10pt;
}

.workout.summary th {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

.workout.summary table {background-color: transparent;}

.workout.summary table td { text-align: center; width: 25%;}

.workout.summary table td.image {
    line-height: 36px;
    width: 15%;
}

.workout.summary table td.description {
    line-height: 36px;
    font-size: 14px;
    text-transform: uppercase;
    color: #5b88c5;
    text-align: left;
}

.workout.summary table td.image > img {
    height: 37px;
    width: 37px;
    padding: 5px 5px;
    background-color: #5b88c5;
    border-radius: 3em;
    -moz-border-radius: 3em;
    -webkit-border-radius: 3em;
}

.workout.summary table tfoot td.image > img {
    background-color: #ff0000;
}

.workout.summary table td.image {
    text-align: center;
}
.workout.summary table td.image > span {
    height: 32px;
    width: 32px;
    display: block;
    color: #ffffff;
    float: left;
    background-color: #5b88c5;
    border-radius: 3em;
    -moz-border-radius: 3em;
    -webkit-border-radius: 3em;
}
.workout.summary table td.value { text-align: left;}

.workout.summary table .value {
    font-size: 22px;
    color: #000000;
}
.workout.summary table .unit {
    font-size: 14px;
    color: #c0c0c0;
}

.workout.summary table tfoot td.value {
    font-size: 14px;
}

.workout.summary {
    position: relative;
}

.workout.summary .robot-background::after {
    background-color: transparent;
    background: url("/static/img/robot/robot.png") no-repeat bottom right;
    background-size: 150px 150px;
    opacity: 0.1;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

}

/* Text over image */

.carbs div.estimation {
    position: relative;}

.carbs .estimation > span {
   position: absolute;
   font-size: 50px;
   line-height: 52px;
   top: calc(50% - 26px); /* 50% - half of a line height */
   color: #ffffff;
   left: 0;
   width: 100%;
}

.carbs th {
    text-align: center;
    font-size: 18px;
}

.carbs td {
    font-size: 18px;
    color: #c0c0c0;
}

.carbs td span.value {
    color: #5b88c5;
    font-weight: 400;
}

.finished-workout button {
    width: 100%;
}

.disclaimer .reject, .disclaimer .accept {
    float: left
    text-align: center;
}

/* helpers */

.carousel-indicators > li {
    border-color: #5b88c5;
}
.carousel-indicators > li.active {
    border-color: #5b88c5;
    background-color: #5b88c5;
}

.carousel-inner > div > img {
    margin-left: auto;
    margin-right: auto;
}

.registration.info {
    background: -webkit-linear-gradient(#1077A1, #032F40); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(#1077A1, #032F40); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(#1077A1, #032F40); /* For Firefox 3.6 to 15 */
    background: linear-gradient(#1077A1, #032F40); /* Standard syntax */
}

button.registration.info {
    background: red;
    color: #ffffff;
    width: 100%;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 40px;
}

/* lightbox */
#fade{
    display: none;
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index:1001;
    -moz-opacity: 0.8;
    opacity:.80;
    filter: alpha(opacity=80);
}
#light{
    display: none;
    position: absolute;
    top: calc(50% - 190px);
    left: calc(50% - 190px);
    width: 380px;
    height: 380px;
    z-index:1002;
    overflow:visible;
}

a.explain-me {
    color: #c0c0c0;
}

/* end choose workout */

.charts-container {
    margin-top: 20px;
}

.starter-template {
  padding: 40px 15px;
  text-align: center;
}


#chart_glucose {
  width: 100%;
  height: 350px;
}

#chart_profiles {
  width: 99.4%;
  height: 300px;
}

 #chart_activity {
    width:100%;
    height:300px;
 }


#glucose_legend {
  width: 100px;
  height: 20px;
  font-size: 10px;
  float: right;
}

#insulin_legend {
  width: 100px;
  height: 20px;
  font-size: 10px;
  float: right;
}

.settings .btn {
    width: 100%;
}

.social-accounts span {
    font-size: 20px;
}


.amcharts-graph-g2 .amcharts-graph-stroke {
  stroke-dasharray: 3px 3px;
  stroke-linejoin: round;
  stroke-linecap: round;
  -webkit-animation: am-moving-dashes 1s linear infinite;
  animation: am-moving-dashes 1s linear infinite;
}

@-webkit-keyframes am-moving-dashes {
  100% {
    stroke-dashoffset: -31px;
  }
}
@keyframes am-moving-dashes {
  100% {
    stroke-dashoffset: -31px;
  }
}


.lastBullet {
  -webkit-animation: am-pulsating 1s ease-out infinite;
  animation: am-pulsating 1s ease-out infinite;
}
@-webkit-keyframes am-pulsating {
  0% {
    stroke-opacity: 1;
    stroke-width: 0px;
  }
  100% {
    stroke-opacity: 0;
    stroke-width: 50px;
  }
}
@keyframes am-pulsating {
  0% {
    stroke-opacity: 1;
    stroke-width: 0px;
  }
  100% {
    stroke-opacity: 0;
    stroke-width: 50px;
  }
}

.amcharts-graph-column-front {
  -webkit-transition: all .3s .3s ease-out;
  transition: all .3s .3s ease-out;
}
.amcharts-graph-column-front:hover {
  fill: #496375;
  stroke: #496375;
  -webkit-transition: all .3s ease-out;
  transition: all .3s ease-out;
}

.amcharts-graph-g3 {
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 500%;
  stroke-dasharray: 0 \0/;    /* fixes IE prob */
  stroke-dashoffset: 0 \0/;   /* fixes IE prob */
  -webkit-animation: am-draw 40s;
  animation: am-draw 40s;
}
@-webkit-keyframes am-draw {
    0% {
        stroke-dashoffset: 500%;
    }
    100% {
        stroke-dashoffset: 0px;
    }
}
@keyframes am-draw {
    0% {
        stroke-dashoffset: 500%;
    }
    100% {
        stroke-dashoffset: 0px;
    }
}
/* OVERWRITE OUR MAIN STYLE */
.demo-flipper-front.demo-panel-white, body {
  /*background-color: #161616;*/
  background-color: #ffffff;
}

@media only screen and (max-width: 750px) {
    #id_start_date {
        width: 45%;
        float: left;
        margin: 5px 5px;
    }

    #id_end_date {
        margin: 5px 5px;
        width: 45%;
        float:left;
    }

}

@media only screen and (max-width: 480px) {
    .left-side-menu {
        float: none;
        width:100%;
    }

    .left-side-menu ul {
        width: 100%;
    }

    .left-side-menu li {
        float: left;
        width: 50%;
    }

    .left-side-menu li.desktop-only {
        display: none;
    }

    .left-side-menu ul li.active a::after, .left-side-menu ul li.active a::before {
        position: absolute;
        content: "";
    }

    .left-side-menu ul li.active.dashboard a::after {
        border-bottom: 8px solid #5b88c5;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        left: auto;
        margin-left: -20px;
        margin-top: 44px;
    }

    .left-side-menu ul li.active a::after {
        border-bottom: 8px solid #5b88c5;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        left: auto;
        margin-left: -20px;
        margin-top: 44px;
    }

    .main {
        float: none;
        width: 100%;
    }

    .notification-bar::after {
        left: calc(50% - 10px);
        display: inline-block;
    }

    #id_start_date {
        width: 45%;
        float: left;
        margin: 5px 5px;
    }

    #id_end_date {
        margin: 5px 5px;
        width: 45%;
        float:left;
    }

    /* text over image */
    .finished-workout div.cloud span {
       top: 50px;
       font-size: 8pt;
    }

    .carbs .estimation > span {
        line-height: 36px;
        font-size: 34px;
        top: calc(50% - 18px);
    }

    header div.container {
        display: none;
    }

    #chart_glucose {
        width:100%;
        height: 200px;
        margin-bottom: -31px;
        /*margin-left: 20px;*/
        font-size: 1px;
    }

    #chart_profiles {
        width:100%;
        height:165px;
    }

    #chart_activity {
        width: 100%;
        height: 165px;
        margin-top:-31px;
    }
}