html, body {
    overflow-x: visible!important;
}

h1, h2, p {
    margin-bottom: 0!important;
}

ul li {
    list-style: none!important;
}

/*table*/
table {
    margin: 20px auto!important;
}
table, th, td {
    border: 2px solid #F7F7F7!important;
}

th {
    vertical-align: middle!important;
}

th, td {
    min-width: 94px;
}

caption {
    margin-bottom: 10px!important;
    position: relative;
}

caption span {
    background-color: #F7F7F7;
    position: relative;
    z-index: 1;
}

caption::before {
    content: '';
    width: 100%;
    height: 1px;
    background-color: #555555;
    display: block;
    position: absolute;
    top: 50%;
}

/*universal style*/
.font-title {
    font-size: 2em;
}

.font-heading {
    font-size: 1.5em;
}

.font-body {
    font-size: 1em!important;
}

.font-note {
    font-size: 14px!important;
}

.font-black {
    color: black!important;
}

.font-grey {
    color: #666666;
}

.font-grey-lighter {
    color: #999999;
}

.font-white {
    color: white;
}

.font-blue {
    color: #6DCFF6!important;
}

.font-bold {
    font-weight: bold!important;
}

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

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

.text-align-dynamic {
    text-align: center;
}

.text-align-dynamic span {
    text-align: left;
    display: inline-block;
}

.button-blue, .button-outline, .button-grey {
    background-color: transparent;
    padding: 10px 20px;
    border: 1px solid black;
    display: inline-block;
}

.button-blue {
    background-color: #6DCFF6;
    color: white;
    border-color: #6DCFF6;
}

.button-outline {
    color: black!important;
}

.button-outline.white {
    color: white!important;
    border-color: white;
}

@media screen and (min-width: 992px) {
    .button-outline:hover {
        background-color: black;
        color: white!important;
    }

    .button-outline.white:hover {
        background-color: white;
        color: black!important;
    }
}

.button-grey {
    background-color: #E6E5E5;
    border-color: #E6E5E5;
}

.bg-white {
    background-color: white;
}

.bg-blue {
    background-color: #6CD0F6;
}

.bg-blue-lighter {
    background-color: #DEF1F8;
}

.bg-orange {
    background-color: #FFA600;
}

.bg-orange-lighter {
    background-color: #F8EFDC;
}

.bg-purple {
    background-color: #BB17FF;
}

.bg-purple-lighter {
    background-color: #F3EBF7;
}

.bg-grey {
    background-color: #F7F7F7;
}

.transparent {
    opacity: 0;
}

.max-width {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.margin-top-small {
    margin-top: 10px!important;
}

.margin-bottom-small {
    margin-bottom: 10px!important;
}

.margin-top-large {
    margin-top: 30px!important;
}

.margin-bottom-large {
    margin-bottom: 30px!important;
}

.line-break {
    margin-right: auto;
    margin-left: auto;
    display: block;
}

.clear-float {
    clear: both;
}

.pop-up {
    width: 100%;
    max-width: 750px;
    padding: 20px;
    margin: auto;
}

.pop-up img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.fancybox-lock body {
    overflow: visible!important;
}

.label {
    font-size: 12px;
    color: black;
    margin-left: 3px;
    vertical-align: middle;
}

.label i {
    background-color: #60cff6;
    padding: 2px 5px;
    font-style: normal;
}

.label::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 10px 0 0;
    border-color: #60cff6 transparent transparent transparent;
    display: inline-block;
    margin-bottom:  -5px;
}

.flex-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.flex-box .item {
    flex: 1 2 auto;
}

/*nav*/
.nav-running {
    display: flex;
    flex-direction: row;
    box-shadow: 0 3px 5px rgba(0,0,0,0.08);
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    left: 0;
    z-index: 3;
}

@media screen and (min-width: 768px) {
    .nav-running, main {
        display: inline-block;
        vertical-align: top;
    }

    /*nav*/
    .nav-running {
        width: 300px;
        height: 100vh;
        background-color: white;
        border-bottom: none;
        border-right: 1px solid #DCDCDC;
        overflow-y: auto;
    }
    
    main {
        width: calc(100% - 305px);
    }

    #aem-email {
        clear: both;
    }

    #aem-email input[type="email"] {
        height: 40px;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 767px) {
    .main-category {
        background-color: #333333;
        color: #aeaeae!important;
    }

    .main-category .icon-down-open-big {
        color: #aeaeae!important;
    }
}

.main-category, .main-category:link, .main-category:visited {
    width: calc(100% / 3);
    text-align: center;
    color: black;
    padding: 15px 0;
    position: relative;
    border: none;
}

@media screen and (min-width: 768px) {
    .main-category, .main-category:link, .main-category:visited, .sub-category a, .sub-category a:link, .sub-category a:visited {
        width: 100%;
        text-align: left;
        font-weight: bold;
        padding: 15px 0 15px 30px;
        border-bottom: 1px solid #DCDCDC;
        display: block;
    }
}

/*.main-category::after {
    content: '';
    width: 16px;
    height: 16px;
    background: url(../images/icons/collapse.svg);
    background-size: 100%;
    display: inline-block;
    vertical-align: text-top;
}*/

@media screen and (max-width: 767px) {
    .main-category .icon-down-open-big.active::before {
        -webkit-transform: rotateX(180deg);
        transform: rotateX(180deg);
        -webkit-perspective: 1000;
        perspective: 1000;
        -webkit-transition: 0.6s;
        -o-transition: 0.6s;
        transition: 0.6s;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
}

@media screen and (min-width: 768px) {
    .main-category {
        margin-top: 0;
        line-height: 1;
        cursor: pointer;
    }

    .main-category .icon-down-open-big {
        float: right;
        margin: -5px 30px 0 0;
        -webkit-transform: rotateX(180deg);
        transform: rotateX(180deg);
        -webkit-perspective: 1000;
        perspective: 1000;
        -webkit-transition: 0.6s;
        -o-transition: 0.6s;
        transition: 0.6s;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }

    .main-category .icon-down-open-big.active {
        -webkit-transform: rotateX(0deg);
        transform: rotateX(0deg);
    }
}

.main-category.on {
    color: white!important;
    font-weight: bold;
}

.main-category.on .icon-down-open-big {
    color: white!important;
}

@media screen and (min-width: 768px) {
    .main-category.on {
        background-color: #F7F7F7;
        color: black;
    }
}

/*.main-category.on::after {
    background: url(../images/icons/collapse_white.svg);
    background-size: 100%;
}

@media screen and (min-width: 768px) {
    .main-category.on::after {
        content: '';
        display: none;
    }

    .main-category.expand::after, .main-category.collapse::after {
        content: '';
        width: 24px;
        height: 24px;
        background-image: url(../images/icons/expand.svg);
        background-size: 100%;
        display: inline-block;
        position: absolute;
        top: calc(50% - 12px);
        right: 30px;
    }

    .main-category.collapse::after {
        background-image: url(../images/icons/collapse.svg);
        background-size: 100%;
    }
}*/

@media screen and (max-width: 767px) {
    .sub-category {
        width: 100%;
        height: 0;
        background-color: #333333fa;
        position: absolute;
        top: 54px;
        left: 0;
        overflow: hidden;
        box-shadow: 0 3px 5px rgba(0,0,0,0.08);
        -webkit-transition: 0.6s;
        -o-transition: 0.6s;
        transition: 0.6s;
    }

    .sub-category a {
        color: #d5d5d5!important;
        text-align: center;
        display: block;
        padding: 15px 0;
    }

    .sub-category.active {
        height: auto;
        overflow: visible;
    }
}

@media screen and (min-width: 768px) {
    .sub-category a, .sub-category a:link, .sub-category a:visited {
        color: #666666;
        font-weight: normal;
        padding-left: 40px;
    }

    .sub-category a.subsidiary, .sub-category a.subsidiary:link, .sub-category a.subsidiary:visited {
        padding-left: 50px;
    }

    .sub-category.active {
        height: 0;
        -webkit-transition: 0.6s;
        -o-transition: 0.6s;
        transition: 0.6s;
        overflow: hidden;
    }
}

.sub-category p.on a {
    color: black;
    font-weight: bold;
}

/*section*/
#beforeRunning, #duringRunning, #afterRunning {
    text-align: center;
    margin: 30px auto 60px auto;
}

#beforeRunning, #afterRunning {
    padding-top: 30px;
    overflow: auto;
}

@media screen and (min-width: 992px) {
    #beforeRunning, #duringRunning, #afterRunning {
        margin-top: 60px;
    }

    #beforeRunning, #afterRunning {
        padding-top: 60px;
    }
}

#beforeRunning {
    margin-top: 0;
}
#afterRunning {
    margin-bottom: 0;
}

/*title*/
.heading {
    margin-top: 60px;
    border-bottom: 1px solid #DCDCDC;
}

.heading span::after {
    content: '';
    width: 100px;
    height: 5px;
    background-color: #6DCFF6;
    display: block;
    margin: 0 auto;
}

/*before running*/
.before-running-steps {
    width: calc(100% - 60px);
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin: 30px auto;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.1);
    position: relative;
}

.number {
    font-size: 16px;
    background: black;
    color: #ffffff;
    vertical-align: text-bottom;
    border-radius: 50%;
    padding: 3px 9px;
    margin-right: 3px;
}

.before-running-steps li {
    list-style: none;
}

.before-running-steps li:last-of-type {
    margin-top: 10px;
}

@media screen and (min-width: 992px) {
    .before-running {
        padding: 30px 15px 60px 15px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }

    .before-running-steps {
        width: calc(100% / 3);
        max-width: 270px;
        margin: 0 15px;
        position: relative;
    }

    .before-running-steps:first-of-type li:last-of-type {
        position: absolute;
        right: 0;
        left: 0;
        bottom: 30px;
    }
}

#max-heartrate p:first-of-type {
    line-height: 3;
}

#max-heartrate input {
    width: 200px;
    height: auto;
    font-size: 1em;
    line-height: 2;
    margin-bottom: 0;
    vertical-align: middle;
}

#max-heartrate button {
    margin-left: 10px;
}

#max-heartrate #answer {
    width: 60px;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/*during running*/
article.each-content {
    width: calc(100% - 60px);
    max-width: 900px;
    padding-bottom: 30px;
    margin: 30px 30px 0 30px;
    border-bottom: 1px solid #DCDCDC;
}

@media screen and (min-width: 992px) {
    article.each-content {
        margin: 30px auto 0 auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .content-item {
        max-width: 100%;
    }
}

article.each-content.last {
    border-bottom: none;
    padding-bottom: 0;
}
article.each-content.exception {
    width: 100%;
    padding: 0 30px 30px;
    margin: 30px auto 0 auto;
    border-bottom: 0;
    position: relative;
}

article.each-content.exception::before {
    /*content: '';*/
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(247,247,247,1) 80%, rgba(255,255,255,1) 0%);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}

article.each-content.exception .button-outline {
    margin: 10px auto;
}

article.each-content img {
    margin-bottom: 20px;
}

@media screen and (min-width: 992px) {
    article.each-content .illustration {
        max-width: 420px;
        margin-right: 60px;
    }

    article.each-content.exception {
        display: block;
    }

    article.each-content.exception .illustration {
        max-width: 840px;
        margin-right: 0;
    }
}

.products {
    max-width: 575px;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
}

.products li {
    width: 50%;
    background: white;
    margin: 10px 5px 0 5px;
    padding: 0 10px 10px 10px;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    /*box-shadow: 0 3px 5px rgb(0 0 0 / 8%);*/
    position: relative;
}

.products li img {
    max-width: 70%;
    margin-bottom: 0;
}

.products li:last-of-type p:last-of-type {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 10px;
}

/*after running*/
.switch {
    background-color: #E6E5E5;
    border-radius: 10px;
    display: inline-block;
    margin-top: 30px;
}

.running-performance, .health-status {
    max-width: 50%;
    background-color: #E6E5E5;
    color: #999999!important;
    padding: 10px 30px;
    border: 4px solid #E6E5E5;
    border-radius: 10px;
    display: inline-block;
}

.running-performance::before, .health-status::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url('../images/icons/performance-grey.svg');
    background-size: 100%;
    display: inline-block;
    vertical-align: sub;
    margin-right: 3px;
}

.health-status::before {
    background-image: url('../images/icons/heart-rate-grey.svg');
    background-size: 100%;
}

.running-performance.on, .health-status.on {
    background-color: #6DCFF6;
    color: #FFFFFF!important;
    cursor: default;
}

.running-performance.on::before {
    background-image: url('../images/icons/performance-white.svg');
    background-size: 100%;
}

.health-status.on::before {
    background-image: url('../images/icons/heart-rate-white.svg');
    background-size: 100%;
}

/*training focus*/
.training-focus-note li {
    min-width: 93px;
    margin: 5px auto;
}

.training-focus-note span {
    width: 30px;
    height: 10px;
    border-radius: 10px;
    margin-right: 3px;
    display: inline-block;
}

@media screen and (min-width: 992px) {
    #trainingEffect table {
        margin: 20px 2px!important;
        float: left;
    }
}

/*advanced level*/
.advanced-level {
    background-image: url('../images/hero-2.jpg');
    background-size: cover;
    background-position: center top;
    padding: 150px 0;
    position: relative;
}

.advanced-level::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.advanced-level p {
    position: relative;
    z-index: 1;
}
