@import url('https://fonts.googleapis.com/css2?family=Aleo:wght@300;400;700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,400&display=swap');

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(127,127,127,.75);
    transition: all .5s;
    z-index: 999;
}

.darken {
    background: #111;
}

.imageBox {
    overflow: auto;
}

.preview {
    z-index: 20;
}

.iphone {
    position: relative;
    width: 432px;
    height: 877px;
    background: url('/img/iphone8.png') no-repeat;
    background-size: contain;
}

.iphone-display {
    position: absolute;
    top: 105px;
    left: 28px;
    width: 375px;
    height: 667px;
}

.iphone-tab {
    background: #272727;
    width: 220px;
    height: 35px;
    position: absolute;
    z-index: 5;
    display: inline-block;
    left: calc(50% - 110px);
    border-radius: 0 0 20px 20px;
    opacity: .25;
}

    .iphone-tab:hover {
        opacity: 1;
    }

.iphone-top {
    position: absolute;
    height: 23px;
    width: 100%;
    z-index: 1;
}

    .iphone-top span {
        padding: 0 5px;
        width: 33%;
        cursor: default;
    }

        .iphone-top span.pv-clock {
            font-weight: 600;
        }

        .iphone-top span i {
            font-size: 12px;
            padding: 0 5px;
            position: relative;
            bottom: 2px;
        }

            .iphone-top span i.fas.fa-signal-alt {
                transform: rotateX( 45deg );
                font-size: 16px;
                bottom: 0;
            }

            .iphone-top span i.fas.fa-battery-full {
                font-size: 20px;
                bottom: -1px;
            }

.iphone-nav {
    position: absolute;
    bottom: 0;
    border-top: 1px solid #e3e3e3;
    width: 100%;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    background: #fff;
}

    .iphone-nav div {
        display: inline-block;
        width: 55px;
        height: 55px;
        border-radius: 100px;
        padding-top: 12px;
    }

        .iphone-nav div:nth-child(2) {
            background: #f2f2f2;
            padding-left: 1px;
        }

.pv-top {
    position: relative;
    margin: 32px 0 10px;
}

.pv-back-arrow {
    display: inline-block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 36px;
    text-align: center;
    font-size: 36px;
    color: #33a737;
    cursor: pointer;
}

.pv-title {
    margin: 0;
    font-weight: 400;
    font-size: 18px;
    font-family: Aleo;
}

.pv-day-name {
    color: #fff;
    background-color: #999;
    margin: 0;
    padding: 3px 0 5px;
}

.pv-week-header {
    font-weight: 300;
    font-family: 'Lato';
    font-size: 1.125rem;
    word-spacing: 2.5px;
}

.pv-content {
    overflow-y: scroll;
    overflow-x:hidden;
    height: calc(100% - 119px);
    font-family: 'Lato';
    scrollbar-color: #ccc #fafafa;
}

.pv-workout-parts-container {
    scrollbar-color: #ccc #fafafa;
}

.pv-content::-webkit-scrollbar,
.pv-workout-parts-container::-webkit-scrollbar {
    width: 8px;
}

    .pv-content::-webkit-scrollbar-thumb,
    .pv-workout-parts-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 5px
    }

    .pv-content::-webkit-scrollbar-track,
    .pv-workout-parts-container::-webkit-scrollbar-track {
        background: #fafafa;
    }

.pv-week-container {
    display: flex;
    justify-content: space-between;
    background-color: #eee;
    padding: 0.8rem 0.6rem;
}

.pv-week-nav {
    width: 2rem;
    cursor: pointer;
}

    .pv-week-nav.disabled {
        opacity: .25;
        cursor: default;
    }

    .pv-week-nav i {
        vertical-align: sub;
    }

.pv-workout {
    cursor: pointer;
}

.pv-workout-icon {
    height: 50px;
    width: 50px;
    margin: 12.5px 10px;
    background-color: #a7a7a7;
    color: #fff;
    border-radius: 50%;
    font-size: 26px;
    line-height: 50px;
}

    .pv-workout-icon.tr-type-1,
    .pv-workout-top.tr-type-1 {
        background-color: #2a8f2e;
    }

    .pv-workout-icon.tr-type-2,
    .pv-workout-top.tr-type-2 {
        background-color: #ad3279;
    }

    .pv-workout-icon.tr-type-3,
    .pv-workout-top.tr-type-3 {
        background-color: #3dbcac;
    }

    .pv-workout-icon.tr-type-4,
    .pv-workout-top.tr-type-4 {
        background-color: #3e87a4;
    }

    .pv-workout-icon.tr-type-5,
    .pv-workout-top.tr-type-5 {
        background-color: #adbc49;
    }

    .pv-workout-icon.tr-type-6,
    .pv-workout-top.tr-type-6 {
        background-color: #f4d53a;
    }

    .pv-workout-icon.tr-type-0,
    .pv-workout-icon.tr-type-98,
    .pv-workout-icon.tr-type-99,
    .pv-workout-top.tr-type-0,
    .pv-workout-top.tr-type-98,
    .pv-workout-top.tr-type-99 {
        background-color: #a7a7a7;
    }

.pv-workout-text {
    display: flex;
    min-height: 75px;
    flex-direction: column;
    justify-content: center;
}

    .pv-workout-text > div {
        padding: 2.5px 0;
    }

.pv-workout-wrapper {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #fff;
    padding: 40px 10px 20px;
}

.pv-workout-container {
    height: 100%;
    background-color: white;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 70%);
    border-radius: 15px;
    overflow: hidden;
}

.pv-workout-top {
    min-height: 50px;
}

.pv-sport-icon {
    padding: 10px 15px;
    font-size: 1.4rem;
}

.pv-workout-title {
    font-family: 'Aleo';
    font-size: 1.125rem;
}

.pv-workout-top > span {
    vertical-align: middle;
    display: inline-block;
    color: #fff;
}

.pv-workout-closer {
    padding: 8px 15px;
    font-size: 24px;
    cursor: pointer;
}

.pv-workout-parts-container {
    overflow-y: auto;
    height: calc(100% - 50px);
}

.pv-workout-part {
    background-color: #eee;
    margin: 10px 7px;
    border-radius: 10px;
    padding: 15px 15px 10px;
}

    .pv-workout-part h5 {
        margin: 0;
        font-size: 1rem;
    }

.pv-workout-specs {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #000;
    margin: 8px -5px 0px;
    overflow: hidden;
}

    .pv-workout-specs i {
        padding-right: 5px;
    }

    .pv-workout-specs > div span:not(:first-of-type) {
        display: inline-block;
        padding: 3px 20px 3px 10px;
    }

    .pv-workout-specs > div span:last-of-type {
        padding-right: 0;
    }

.pv-reps-fast-icon,
.pv-reps-slow-icon {
    color: #fff;
    background-color: #888;
    padding-right: 0 !important;
    width: 40px;
    display: inline-block;
    text-align: center;
    padding: 5px;
    margin-right: -5px;
}

.pv-reps-count {
    background-color: #333;
    color: #fff;
    padding: 5px;
}

.pv-reps-slow {
    border-top: 1px solid #999;
}

.pv-reps-count-icon {
    width: 40px;
    display: inline-block;
    font-size: 1.1rem;
}

.pv-reps-count-val {
    width: calc(100% - 85px);
}

.pv-workout-descr {
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

@media only screen and (max-width: 767px) {
    .imageBoxWrapper.plan-preview {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    .plan-preview .imageBoxContainer {
        width: 100%;
        padding: 0;
        left: 0;
        border-radius: 0;
    }

    .plan-preview .imageBox {
        max-height: 100%;
        max-width: 100%;
        display: block;
        overflow: hidden;
    }

    .iphone {
        width: 100%;
        height: 100%;
        background: none;
    }

    .iphone-display {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .iphone-top {
        display: none;
    }

    .pv-back-arrow {
        bottom: 10px;
    }

    .plan-preview .imageBoxContainer .closer {
        right: 5px;
        top: 23px;
    }
}
