/* Overriding bootstrap defaults */
* {
    color: rgb(51,51,51);
    font-family: 'Open Sans', 'Roboto', sans-serif;
    font-size: 18px;
    box-sizing: border-box;
}

html, body {
    background-color: white !important;
}

body {
    margin-bottom: 80px;
}

ul > li > strong {
    display: block;
}

ul.simple {
    list-style: none;
    padding-left: 0;
}

a {
    color: #0070c9;
    text-decoration: none;
}

a:hover {
    color: #0070c9;
    text-decoration: none;
}


b {
    font-weight: 600;
}

p {
    color: inherit;
}

span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

 h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
 }

 @media (min-width: 768px) and (max-width: 992px) {
    .container {
        width: 94%;
    }
 }

/* flexbox stuff */

.row-flex {
    /*Makes the columns of row same height*/
    display: flex;
}
@media (max-width: 768px) {
    .row-flex {
        display: block;
    }
}

.flexbox, .flexbox-center-vh {
    display: flex;
}

.flexbox {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.flexbox-center-vh {
    justify-content: center;
    align-items: center;
}

/* overriding bootstrap */

label {
    font-weight: 600;
}

.glyphicon-text {
    font-size: 0.8em;
    margin-left: 5px;
    margin-right: 5px;
    color: inherit;
}

.bold {
    font-weight: 700;
}

.primary-color {
    color: #009688;
}

.img-center {
    display: block;
    margin: auto;
}

.block-link {
    position: relative;
}

.block-link > a:first-child {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    opacity: 0;
    color: inherit;
    text-decoration: none;
}

.btn-fill {
    width: 100%;
    border: none;
    border-radius: 0;
}

.btn-primary {
    border-radius: 2px;
    border: 1px solid #3079ed;
    color: #fff;
    text-shadow: 0 1px rgba(0,0,0,0.1);
    background-color: #4d90fe;
}

.btn-primary:hover {
    border: 1px solid #2f5bb7;
    color: #fff;
    text-shadow: 0 1px rgba(0,0,0,0.3);
    background-color: #357ae8;
}

.btn-primary:focus {
    border: 1px solid white;
    background-color: #357ae8;
    /*outline: none !important;*/
}

.btn-flat {
    background: transparent;
    border: none;
    color: #4d90fe;
}

.btn-flat:hover,
.btn-flat:active {
    background-color: rgba(153, 153, 153, 0.2);
    color: #4d90fe;
}

.btn-flat:focus {
    color: #4d90fe;
}

.btn-flat:focus,
.btn-flat:focus:active {
    outline: none;
}

.btn-remove {
    background: url('/images/remove-grey.svg') no-repeat;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: block;
}

.btn-remove:hover {
    opacity: 0.54;
}

/* navbar */

@media (max-width: 768px) {
    .navbar-right {
        margin-top: 20px;
        background-color: #fafafa;
        box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.12);
        border-radius: 10px;
    }
}

.nav>li>a:focus, .nav>li>a:hover {
    background-color: initial;
}

.navbar-nav > li {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    /*text-transform: uppercase;*/
}

ul.navbar-nav {
    text-align: center;
}

.navbar-custom {
    padding-top: 24px;
    background-color: white;
    border-width: 0;
    border-radius: 0;
    margin-left: auto;
    margin-right: auto;
}

#navbar-brand-custom {
    color: rgba(0,0,0,0.87);
}

.navbar-brand {
    text-transform: uppercase;
    font-family: 'Crimson Text', serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 1px;
}

.navbar-brand p {
    font-size: 12px;
}

@media (max-width: 478px) {
    .navbar-brand {
        font-size: 24px;
    }
    .navbar-brand p {
        font-size: 8px;
    }
}

#logo-dot {
    /*background-color: #009688;*/
    background-color: rgb(0, 68, 177);
    width: 10px;
    height: 10px;
    margin-left: 2px;
    margin-right: 6px;
    display: inline-block;
}


/* Shared properties between site-content and page-content*/
#site-contet #page-content {
    padding-left: 16px;
    padding-right: 16px;
}

/* Article container */
.article-container {
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
    width: 890px;
    padding-left: 20px;
    padding-right: 20px;
}


article {
    font-weight: 400;
    font-size: 18px;
    margin-top: 40px;
}

article section {
    padding: 20px;
    margin-top: 64px;
    margin-bottom: 64px;
}

article header h1 {
    line-height: 2;
    text-align: center;
    margin-top: 32px;
    margin-bottom: 32px;
}

article h1 {
    font-size: 48px;
}

article h2 {
    font-size: 32px;
}

article h3 {
    font-size: 22px;
}

@media only screen and (max-width: 1068px) {

    article section {
        padding: 15px;
        margin-top: 48px;
        margin-bottom: 48px;
    }

    article h1 {
        font-size: 40px;
    }

    article h2 {
        font-size: 28px;
    }

    article h3 {
        font-size: 20px;
    }

    .article-container {
        margin-left:auto;
        margin-right: auto;
        width: 692px
    }
}

/* using 768px since navbar changes on that */
@media only screen and (max-width: 768px) {

    article {
        margin-top: 12px;
    }

    article header h1 {
        margin-top: 0;
    }
}

@media only screen and (max-width: 735px) {

    article section {
        padding: 10px;
        margin-top: 32px;
        margin-bottom: 32px;
    }

    article h1 {
        font-size: 31px;
    }

    article h2 {
        font-size: 24px;
    }

    article h3 {
        font-size: 19px;
    }

    .article-container {
        margin-left:auto;
        margin-right: auto;
        width: 87.5%;
        padding-left: 0;
        padding-right: 0;
    }

}

/* article styles */

.obesity-article {
    max-width: 900px;
}

.obesity-article .gradient, .about-article .gradient {
    margin-top: 22px;
    margin-bottom: 22px;
}

.about-article section {
    margin-top: 0 !important;
    margin-bottom: 0!important;
}

/* Containers */
.img-container {
    display: inline-block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 40px;
    background-color: #f5f5f5;
    text-align: center
    /*border: 1px solid rgba(0,0,0,0.05);*/
}

.img-container > img {
    margin: 0 auto;
}

.img-container > .subheader {
    display: inline-block;
    color: rgba(0,0,0,0.54);
    font-weight: 700;
    font-size: 0.88em;
    padding-left: 2px;
}

@media only screen and (max-width: 735px) {
    img.pull-right {
        float: initial !important;
    }
}

/* Sources and references */
.source {
    font-size: 14px;
    color: rgba(0,0,0,0.54);
}

/* Page navigation */
ul.page-navigation {
    margin-top: 24px;
}

@media (max-width: 478px) {
    ul.page-navigation > li {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

ul.page-navigation > li {
    width: 300px;
    line-height: 2.625em;
    background-color: #f5f5f5;
    margin: 8px;
}

ul.page-navigation > li > a {
    display: block;
    padding-left: 8px;
    padding-right: 8px;
}

ul.page-navigation > li > a span.glyphicon {
    color: #337ab7;
}

ul.page-navigation > li > a > span.glyphicon.glyphicon-chevron-left {
    padding-right: 22px;
}


/* Table of Content - TOC*/
.toc {
    width: 280px;
    padding: 10px;
    margin-top: 1em;
    background-color: #fafafa;
    /*border: 1px solid rgba(0,0,0,0.12);*/
}

.toc-header {
    color: #54585a;
    font-size: 1.125em;
    line-height: 1.8em;
}

.toc > ul {
    padding-left: 40px;
    list-style: none;
}

.toc > ul > li {
    list-style-type: initial;
    line-height: 2em;
}

/* Form */
.form-control {
    font-size: 16px;
    height: 36px;
    border-radius: 2px;
    border-top: 1px solid #c0c0c0
}

.form-control:focus {
    border: 1px solid #4d90fe;
    outline: none;
    box-shadow: none;
}

.input-group.form-control {
    border-radius: 2px 0px 0px 2px;
}

.input-group-addon {
    border-top: 1px solid #c0c0c0;
    border-radius: 0px 2px 2px 0px;
}

/* Map Canvas */
#map-canvas {
    width: 100%;
    height: 400px;
}

/* BMI TABLE */
#bmi-table {
    max-width: 400px;
    margin-top: 48px;
    font-size: 14px !important;
}

#bmi-table th, #bmi-table td {
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
}

/* BMI Calculator */

#bmi-calculator {
    max-width: 320px;
}

#bmi-calculator md-input-container {
    margin: 5px 0;
}

table#bmi-calculator-category {
    min-height: 72px;
    width: 100%;
    padding: 16px;
    border-radius: 3px;
}

table#bmi-calculator-category tr {
}

table#bmi-calculator-category td {
    padding-top: 15px;
    padding-bottom: 15px;
}

#bmi-calculator-category div, #bmi-calculator-category span {
    color: white;
}

#bmi-calculator-result {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding-top: 8px;
    margin-bottom: 12px;
}

#bmi-calculator-result-heading {
    visibility: hidden;
    font-size: 18px;
    font-weight: 700;
}

/* Loader */
#loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('images/page-loader.gif') 50% 50% no-repeat rgb(249,249,249);
}

/* YouTube */
.video-container {
    display: block;
    max-width: 560px;
    width: 100%;
    height: 315px;
    margin: 20px auto 40px auto;
}

.video-container > .video-responsive {
    width: 100%;
    height: 100%;
}

@media (max-width: 735px) {
    .video-container {
        height: 288px;
    }
}

@media (max-width: 542px) {
    .video-container {
        height: 271px;
    }
}

@media (max-width: 460px) {
    .video-container {
        height: 248px;
    }
}

@media (max-width: 384px) {
    .video-container {
        height: 192px;
    }
}

/* Footer */
#footer {
    border-top: 1px solid #e3e3e0;
    margin-top: 60px;
    padding-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 20px;
}

#footer p, #footer a {
    font-size: 14px;
}

#footer ul {
    padding-left: 0;
    list-style-type: none;
}

#footer a, #footer a:hover {
    color: #717268;
    text-decoration: underline;
}

/* Angular Material Theme ngMaterial */
md-content {
    background-color: transparent;
}

.inline-md {
    display: inline-block;
}

.md-button {
    font-weight: 600;
    font-size: 16px;
}

.md-radio-thick > div > span {
    font-size: 16px;
    font-weight: 400;
}


/* Social / share buttons */
.fa {
    font-size: 1.6em;
    width: 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    color: inherit;
}

.addthis_inline_share_toolbox {
    margin-bottom: 15px;
    min-height: 47px;
}

.share-section {
    background-color: #f5f5f5;
}

.share-section > #share-this {
    display: inline-block;
    margin: auto 15px auto 15px;
}

.share-button {
    display: inline-block;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: auto 15px auto 15px;
}

@media only screen and (max-width: 735px) {
    .share-section > #share-this {
        width: 100%;
        margin-bottom: 10px;
    }
    .share-button {
        margin: auto 5px auto 5px;
    }
}

.share-button > div {
    display: block !important;
}

.share-button.whatsapp-share-button {
    width: 30px;
    height: 30px;
    background: url(https://www-cdn.whatsapp.net/img/v4/whatsapp-logo.svg);
    background-size: cover;
}

.share-button.fb-messenger-share-button {
    width: 28px;
    height: 28px;
    background: url('/images/icons/fb_messenger.png');
    background-size: cover;
}

/* general minor styles and gradients */

ul.nostyle > li {
    list-style-type: none;
}

.link {
    color: #0070c9 !important;
}

/*.link:hover {color: #6bf !important; }
*/
.round-button.round-button-default {
    opacity: 1;
    background-color: #f0f1f6;
    padding: 10px 25px 10px 25px;
}

.round-button.round-button-default:hover {
    background-color: #e1e2ea;
}

.round-button, .round-button-lg {
    color: #027afe;
    display: block;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    opacity: 0.87;
    transition: all 0.4s ease;
    border-radius: 30px;
}

.round-button-lg {
    /*width: 80%;*/
    padding: 5px 25px 5px 25px;
    margin-top: 15px;
    min-height: 40px;
    background-color: rgba(255, 255, 255, 0.70);
}

.round-button-lg:hover {
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.92);
}

.division {
    width: 87.5%;
    height: 1px;
    margin: 0 auto;
    background-color: #a48e75;
}

.rounded {
    border-radius: 10px;
}

.gradient {
    width: 100%;
    height: 2px;
}

.gradient.gradient-green {
    background-color: #1fb897; /* old browser fallback */
    background: linear-gradient(to right, #1fb897 0%, #30b951 100%);
}

.gradient.gradient-red {
    background-color: #ff9b31; /* old browser fallback */
    background: linear-gradient(to right, #4800ff 0%, #966dc8 27%, #ff4200 55%, #ff9b31 100%);
}

.gradient.gradient-light-blue {
    background-color: #0cf; /* old browser fallback */
    background: linear-gradient(to right, #00efff 0%, #0cf 100%);
}

.gradient.gradient-blue {
    background-color: #0084ff; /* old browser fallback */
    background: linear-gradient(to right, #00b8ff 0%, #0084ff 100%); 
}

.gradient.gradient-greenblue {
    background-color: #4dc9d4; /* old browser fallback */
    background: linear-gradient(to right, #4dc9d4 0%, #a5ccdf 100%);
}

.box-shadow {
    box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.box-shadow:hover {
    box-shadow: 0px 2px 15px 0px rgba(0, 0, 0, 0.15);
}
