@import url('./common.css');
@import url('./number-picker.css');
:root {
    --icon-offset: 15%;
    --body-background:#8CBDE2;
    --content-home-background:#8CBDE2;
    --content-background: #CEDDE8;
    --light-background: #f4f5f6;
    --body-background-30a:#8CBDE24d;
    --body-background-50a:#8CBDE27d;
    --body-background-75a:#8CBDE2f0;
    --header-background:#6eb4e9;
    --icon-background: #5a5ab666;
    --content-block: #eee;
    --primary-text-color: #30529D;
    --secondary-color: #2121a4aa;
    --secondary-color-75a: #718DCC4f;
    --secondary-color-50a: #718DCC8f;
    --secondary-color-25a: #718DCC40;
    --tertiary-color: rgb(73, 104, 174);
    --tertiary-color-25a: rgba(73, 104, 174, 0.25);
    --tertiary-color-50a: rgba(73, 104, 174, 0.50);
    --tertiary-color-10a: rgba(73, 104, 174, 0.10);
    --task-box-text-color: #2121a4aa;
    --task-box-border-color: #718DCC;
    --task-box-mini-icon-color: #2121a466;
    --box-border-color: #718DCC;
    --forth-color: #3a4b73;
    /* --proteins-background: #399BE0; */
    --proteins-background: #85C689;
    /* --fats-background: #FA67C9; */
    --yellow: #f6ae55;
    --yellow-light: #ffd4a0;
    --fats-background: var(--yellow);
    /* --carbohydrates-background: #4974D4; */
    --carbohydrates-background: #E86668;
    /* --carbohydrates-background: #9EB5E6; */
    --task-box-size: min(38.4vw, 160px);
    --task-row-gap: 2em;
    --platform-width: min(60vw, 230px);
    --tasks-width: calc(var(--task-box-size) * 2 + 6em);
    --desktop-daily-plan-width: min(600px, 66vw) !important;
    --plans-nav-item-size: calc(var(--task-box-size) / 1.5);
    --food-color: #d772de;
    --activity-color: #ff5937;
    --theory-color: #718DCC;
    --water-color: #9cffff;
    --check-green: rgb(147, 199, 102);
    --task-container-height: calc(38.2svw * 2 + 5em);
    --index-size: calc(var(--task-box-size) / 1.5);
}
html, body {
    -webkit-text-size-adjust: none;
    -webkit-touch-callout: none;
    overflow: hidden;
}
* {
    scroll-behavior: smooth;
}
.cursor-pointer {
    cursor: pointer;
}
body.loading{
    position: relative;
}
body.loading::after{
    content: '';
    position: absolute;
    top: calc(50svh - 8svw);
    left: calc(50svw - 8svw);
    width: 16vw;
    height: 16vw;
    animation: 0.5s infinite ease-in-out loading;
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24px' height='24px'><circle cx='12' cy='12' r='12' stroke='%23718DCC' fill='none' stroke-width='4' stroke-dasharray='20 5'/></svg>");
    background-repeat: no-repeat;
    background-position: 0% 0%;
    background-size: 100% 100%;
    z-index: 1000000;
}
.loading-box {
    display: block;
    margin-inline: auto;
    width: 16vw;
    height: 16vw;
    animation: 0.5s infinite ease-in-out loading;
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24px' height='24px'><circle cx='12' cy='12' r='12' stroke='%23718DCC' fill='none' stroke-width='4' stroke-dasharray='20 5'/></svg>");
    background-repeat: no-repeat;
    background-position: 0% 0%;
    background-size: 100% 100%;
}
@keyframes size-pulse {
    from {
        width: calc(100% + 10px);
        height: calc(100% + 10px);
        transform: translate(-50%, -50%);
    }
    to {
        width: calc(100% + 15px);
        height: calc(100% + 15px);
        transform: translate(-50%, -50%);
    }
}
@keyframes loading {
    from {
        rotate: 0deg;
    }
    to {
        rotate: 360deg;
    }
}
body.pwa-fitness-body{
    display: flex;
    min-height: 100svh;
    flex-flow:column nowrap;
    justify-content: space-between;
    color: var(--primary-text-color) !important;
    font-weight: 300;
}
body.pwa-fitness-body .home::before{
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    z-index: -2;
}
.messages {
    position: fixed;
    top: 3em;
    left: 0;
    width: 100vw;
    z-index: 10000000000;
}
.pwa-fitness-navbar{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-content: center;
    margin: 0 1em;
    padding: 0.2em;
}

.burger{
    content: "";
    position: absolute;
    left: 0;
    display: block;
    width: 16px;
    top: 0;
    height: 0;
    -webkit-box-shadow: 1px 10px 1px 1px #69737d,1px 16px 1px 1px     #69737d,1px 22px 1px 1px #69737d;
    box-shadow: 0 10px 0 1px #69737d,0 16px 0 1px #69737d,0 22px 0 1px #69737d;
}
main.pwa-fitness-content .avatar{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    border-radius: 100%;
    transition: all 1s ease-in-out;
}

main.pwa-fitness-content .avatar img{
    position: relative;
    top: 3.26vh;
    left: 50svw;
    transform: translate(-50%);
    height: 51.8vh;
    transition: all 1s ease-in-out;
    filter: drop-shadow(0 0 20px white);
}


main.pwa-fitness-content .platform {
    position: absolute;
    width: var(--platform-width);
    height: 7vh;
    bottom: calc(43vh);
    left: 50svw;
    transform: translate(-50%);
    background: radial-gradient(89% 72% at 50% 40%,var(--secondary-color) 0, #F9FDFF 51%, #9090ff 60%, var(--body-background) 65%);
    border-radius: 50%;
    z-index: -10;
    transition: all 1s ease-in-out;
    opacity: 100%;
}
/* @media (max-width: 480px){ */
    body.pwa-fitness-body{
        width: 100svw;
        height: 100svh;
        position: relative;
        background: var(--content-background);
    }
    body:has(.home){
        height: 100svh;
        overflow: hidden;
        background: var(--content-home-background);
    }
    .pwa-fitness-footer{
        display: none;
    }
    main.pwa-fitness-content {
        order:10;
        overflow: hidden;
        position: relative;
        width: calc(100vw);
        display: flex;
        flex-flow: column nowrap;
        row-gap: 1.5em;
        margin-top: 2.5em;
        height: calc(100svh - 8.2svh - 65px);
    }
    main.pwa-fitness-content:has(.calendar) {
        overflow: hidden;
    }
    main.pwa-fitness-content .content-block{
        width: 100%;
        border: 0;
        border-radius: 1em;
        min-height: 3em;
        background-color: var(--content-block);
        overflow: hidden;
    }
    main.pwa-fitness-content .content-block .lesson-content .title, main.pwa-fitness-content .content-block .recipe-content .title{
        font-size: 1em;
        margin: 0;
    }
    main.pwa-fitness-content .meals {
        position: relative;
        height: 100%;
    }
    main.pwa-fitness-content .meals:not(.viewed-dishes) .content-block {
        position: sticky;
        width: calc(100% - 2em);
    }
    main.pwa-fitness-content .meals.viewed-dishes {
        width: 100%;
        display: flex;
        flex-flow: column;
        gap: 8px;
    }
    .meals.viewed-dishes > .title {
        font-weight: 300;
        font-size: 20px;
    }
    main.pwa-fitness-content .meals .content-block {
        background: transparent;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        gap: 0.5em;
        top: 3em;
        border: 1px solid var(--secondary-color);
        color: var(--secondary-color);
        padding: 0.5em;
        box-sizing: border-box;
    }
    /* Если нет пагинации слайдов, то контент-блок на самом вверху*/
    .meals:has(.swiper-container .swiper-pagination-lock) .content-block {
        top: 1em;
    }
    main.pwa-fitness-content .meals .content-block .text-content{
        font-size: 16px;
        flex: 1 0 100px;
        text-align: left;
        color: var(--secondary-color)
    }
    .meals .content-block {
        overflow: hidden;
    }
    main.pwa-fitness-content .content-block .image img{
        width: 100%;
        object-fit: cover;
    }
    .meals .content-block .left-column {
        display: flex;
        flex-flow: column wrap;
        justify-content: space-between;
        align-content: center;
    }
    .meals .content-block .left-column .image-container {
        flex-grow: 1;
        display: flex;
        flex-flow: column;
        justify-content: center;
        padding-bottom: 0;
    }
    .meals .content-block .portion{
        width: 100%;
    }
    .meals .content-block .portion .title {
        font-weight: 400;
        font-size: 16px;
        margin: 0;
    }
    .input-group .btn, .input-group input{
        height: 100%;
        border-radius: 20px !important;
    }
    .meals .content-block .image {
        flex: 0 0 100px;
        padding: 0.25em;
        border-radius: 50%;
        width: 100px;
        height: 100px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-content: center;
    }
    .input-group .btn {
        padding: 0.25em 1em;
    }
    /* .meals .content-block .portion input{
        margin: 0 0.3em;
    } */
    .input-group {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-content: center;
        gap: 0.5em
    }
    .meals .content-block .image img{
        margin: 0.25em;
    }
    .pwa-fitness-header{
        position: fixed;
        top:0;
        left: 0;
        width: 100vw;
        z-index:10000;
        display:flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-content: center;
        padding:0;
    }
    .pwa-fitness-header .navbar{
        width: 100%;
        height: 2.5em;
        padding: 0 0;
        background: var(--content-background);
        /* border-bottom: 1px solid var(--forth-color); */
    }
    body:has(.home) .pwa-fitness-header .navbar {
        background: var(--content-home-background);
    }
    .pwa-fitness-header .navbar-header-wrapper {
        width: 100%;
        padding: 0 1em;
        display: flex;
        justify-content: space-between;
        height: 100%;
        position: relative;
    }
    .pwa-fitness-header .navbar-header-wrapper a.previous{
        position: absolute;
        left: 2em;
        top: 50%;
        width: 10%;
        height: 50%;
        transform: translate(-50%, -50%);
    }
    .pwa-fitness-header .navbar-header-wrapper .navbar-index-wrapper{
        height: 100%;
        display: flex;
        flex-flow: column;
        justify-content: center;
    }
    .pwa-fitness-header .navbar-header-wrapper .navbar-brand {
        position: absolute;
        margin: 0;
        top:0;
        padding-top: 1px;
        left: 50%;
        transform: translate(-50%);
        color: var(--primary-text-color);
        font-weight: 400;
        font-size: 24px;;
    }
    .pwa-fitness-header .navbar-toggler {
        border: 0;
        padding: 0;
        position: absolute;
        right: 0.5em;
        top: 0.25em;
    }
    .navbar-light .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,<svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'><path stroke='%232121a4aa' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>");
    }
    .pwa-fitness-header #navbarNav{
        padding: 0;
    }
    .pwa-fitness-header .nav-item{
        background: #fffd;
        border-bottom: 1px solid gray;
        padding: 0.25em 1em;
        cursor: pointer;
    }
    .pwa-fitness-header .nav-item:hover{
        background: #eeed;
    }
    .pwa-fitness-navbar{
        position: fixed;
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-content: center;
        margin: 0;
        bottom: 0.5em;
        left: 0;
        width: calc(100% - 0em);
        z-index:1000000;
        padding: 0.5em 1em;
        row-gap: 1em;
    }
    .icon-wrapper{
        display: block;
        position: relative;
        transition: all 0.5s ease-in;
    }
    .indexes .index-box {
        transform: translateX(-50%);
        margin-left: calc(var(--task-box-size) / 2);
    }
    col
    .indexes .index-box .icon-wrapper:hover {
        background-color: var(--secondary-color);
    }
    .pwa-fitness-navbar .icon-wrapper{
        border-radius: 50%;
    }
    .indexes .icon-wrapper, .pwa-fitness-navbar .icon-wrapper{
        border: 0;
        background-color: var(--icon-background);
        overflow: hidden;
        transition: all 0.3s ease-in-out;
    }
    /* .pwa-fitness-navbar .icon-wrapper:before {
        content: "";
        position: absolute;
        height: 150px;
        width: 50px;
        background : #fff;
        left: -55px;
        top: -40px;
        transform: rotate(37deg);
        transition: all .3s;
        opacity: 0.3;
    } */

    .pwa-fitness-navbar .icon-wrapper:hover {
        background-color: var(--secondary-color);
    }
    .pwa-fitness-navbar:has(.icon-wrapper:hover) .icon-wrapper:not(:hover) {
        background-color: var(--icon-background);
    }
    /* .pwa-fitness-navbar .icon-wrapper:hover:before {
    left:95%;
    } */
    .pwa-fitness-navbar .icon-wrapper.active {
        background: var(--secondary-color);
    }
    .pwa-fitness-navbar .icon-wrapper {
        width: 8.2svh;
        height: 8.2svh;
    }
    .indexes .icon-wrapper {
        aspect-ratio: 1;
        border-radius: 50%;
        width: 14.2svw;
        /* height: 18.2svw; */
    }
    .task-box {
        position: relative;
        backdrop-filter: blur(10px);
        font-weight: 400;
        border-radius: 25%;
        width: var(--task-box-size);
        height: var(--task-box-size);
        border: 2px solid var(--task-box-border-color);
        color: var(--task-box-text-color);
        font-weight: 500;
        background: radial-gradient(circle at 25% 25%, #cae8ff88, transparent 300%);
        box-shadow: 5px 5px 15px -7px #69737d;
        overflow: hidden;
        
    }
    .task-box .clip-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 25%;
        z-index: 0;
        overflow: hidden;
    }
    .task-box .progress-bar {
        position: absolute;
        z-index: -1;
        top: 80%;
        left: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
        content: '';
        opacity: 70%;
        translate: 0 0;
        transition: all 1s ease-in-out;
    }
    .task-box .progress-bar.waves{
        width: 300%;
        height: 300%;
        translate: -50% 0;
        border-radius: 50%;
    }
    @keyframes bubble {
        0% {
            rotate: 0;
            filter: hue-rotate(0);
            opacity: 70%;
        }
        33% {
            rotate: 5deg;
            filter: hue-rotate(5deg);
            opacity: 60%;
        }
        55% {
            rotate: 0;
            filter: hue-rotate(5deg);
            opacity: 60%;
        }
        66% {
            rotate: -5deg;
            filter: hue-rotate(5deg);
            opacity: 60%;
        }
        100% {
            rotate: 0;
            filter: hue-rotate(0);
            opacity: 70%;
        }
    }
    .task-box .progress-bar.waves.left{
        left: 0;
        transition: all 0.5s ease-in-out;
        animation: 1s ease-in-out 0s alternate bubble;
    }
    .task-box .progress-bar.waves.center{
        left: 50%;
        width: 400%;
        height: 300%;
        transition: all 1s ease-in-out;
        animation: 3s ease-in-out 0s infinite bubble;
    }
    .task-box .progress-bar.waves.right{
        left: 100%;
        transition: all 1.5s ease-in-out;
        animation: 1s ease-in-out 0s infinite bubble;
    }
    .PWA-mode .task-box.install {
        display: None;
    }
    .task-box.water .progress-bar{
        background-color: var(--water-color);
    }
    .task-box.activity .progress-bar{
        background-color: var(--activity-color);
    }
    .task-box.ration .progress-bar{
        background-color: var(--food-color);
        /* Начинается как зелёный, постепенно становится оранжевым, потом красным */
    }
    .task-box.theory .progress-bar{
        background-color: var(--theory-color);
    }
    .task-box .task-mini-icon {
        position: absolute;
        top: 0.75em;
        left: calc(100% - 1.75em);
        transform: translate(-50%);
        width: 2em;
        height: 2em;
        border-radius: 50%;
        background-color: var(--task-box-mini-icon-color);
        overflow: visible;
    }
    .task-box.weight::after{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 100%;
        background-image: url('/static/fitness/icons/png/weight-scale.png');
        background-size: 48px auto;
        background-position: calc(50%) 5px;
        background-repeat: no-repeat;
    }
    .task-box.weight .task-mini-icon,
    .task-box.weight .task-mini-icon:before,
    .task-box.weight .task-mini-icon:after {
        background-color: transparent;
        border: none;
    }
    .task-box .task-mini-icon::before{
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        height: 75%;
        width: 75%;
        transform: translateX(-50%) translateY(-50%);
        background-position: 0 0;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
    .task-box .task-mini-icon::after{
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        height: 125%;
        width: 125%;
        transform: translateX(-50%) translateY(-50%);
        border: 2px solid var(--icon-background);
        border-radius: 100%;
    }
    .task-box.ration .task-mini-icon::before{
        background-image: url('/static/fitness/icons/png/dinner_1.png');
        width: 75%;
        height: 75%;
    }
    .task-box.activity .task-mini-icon::before{
        background-image: url('/static/fitness/icons/png/flame_color_1.png');
        filter: contrast(0.5) brightness(1.4) saturate(0.9)
    }
    .task-box.water .task-mini-icon::before{
        background-image: url('/static/fitness/icons/png/water_glass_1.png');
    }
    .task-box.sleep .task-mini-icon::before {
        content: var(--fa);
        font-size: 24px;
        color: var(--body-background);
        font-weight: 100;
    }
    .task-box.weight .task-mini-icon::before {
        width: 90%;
        height: 90%;
    }
    .task-box.theory .task-mini-icon::before{
        background-image: url('/static/fitness/icons/png/book_1.png');
        width: 90%;
        height: 90%;
    }
    .task-box.install .task-mini-icon::before{
        background-image: url('/static/fitness/icons/png/arrow_down.png');
        width: 70%;
        height: 60%;
    }
    .task-box .task-index{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        text-align: center;
        line-height: 1em;
        width: 100%;
        font-size: 1.5em;
    }
    .task-box .task-index .value{
        font-weight: 500;
    }
    .task-box .task-target{
        position: absolute;
        bottom: 1em;
        width: 100%;
        left: 50%;
        text-align: center;
        transform: translate(-50%);
        font-size: 14px;
    }
    .icon, .icon {
        width: 100%;
        height: 100%;
        display: block;
        position: relative;
    }
    .icon::before{
        content: '';
        position: absolute;
        top: var(--icon-offset);
        left: var(--icon-offset);
        width: calc(100% - var(--icon-offset) * 2);
        height: calc(100% - var(--icon-offset) * 2);
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    .home {
        display: flex;
        flex-flow: column;
        gap: 3em;
        padding: 0;
        width: 100%;
    }
    .pwa-fitness-content .background {
        position: fixed;
        top: 0;
        height: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(50svw 50svw at 50svw 36svh,#fff, var(--content-background));
        background-position: 50% 6.26%;
        z-index: -100;
    }
    body:has(.home) .pwa-fitness-content .background {
        background: radial-gradient(50svw 50svw at 50svw 36svh,#fff, var(--content-home-background));
    }
    .home .indexes {
        position: absolute;
    }
    .home .indexes, .home .tasks {
        padding: 0 1rem;
        display: flex;
        flex-flow: row wrap;
        justify-content: space-around;
        align-content: start;
        column-gap: 3em;
        row-gap: var(--task-row-gap);
        width: calc(100%);
        transition: all 1s ease-in-out;
    }
    .home .tasks {
        position: absolute;
        z-index: 20;
    }
    .home .indexes {
        height: 50svh;
        justify-content: space-between;
    }
    .home .tasks .task-title{
        text-align: center;
        margin-top: 0.25em;
    }
    .home .indexes .index-data {
        text-align: center;
        margin-top: 0;
        position: absolute;
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 15px;
    }
    .home.task-focus  .indexes {
        height: 30svh;
    }
    .home.task-focus .platform {
        opacity: 0;
        width: 180vw;
        height: 21vw;
        bottom: -123vh;
    }
    .home.task-focus .avatar{
        width: 100vw;
        height: 40vh;
        border-radius: 50%;
        transition: all 1s ease-in-out;
    }
    
    .home.task-focus .avatar img{
        top: 3.26svh;
        height: 165svh;
        transition: all 1s ease-in-out;
    }
    .home.task-focus .tasks {
        top: calc(100% - var(--task-container-height));
    }
    .content_plan {
        overflow: hidden;
        display: flex;
        flex-flow: column nowrap;
        justify-content: start;
        width: 100%;
    }
    .content_plan .calendar{
        display: flex;
        flex-flow: column wrap;
        justify-content: start;
        align-content: center;
    }
    .content_plan .calendar div.month table{
        margin-top: 15px;
        border-spacing: 0.25em;
        border-collapse: separate;
    }
    .content_plan .calendar div.month th.weekday{
        text-align: center;
        font-weight: 300;
    }
    .content_plan .calendar div.month th.month {
        font-size: 1.2em;
        font-weight: 300;
    }
    .content_plan .calendar div.month td {
        position: relative;
        width: 45px;
        height: 30px;
        text-align: center;
        z-index: 20;
        font-weight: 300;
    }
    .content_plan .calendar div.month th {
        position: relative;
        width: 45px;
        height: 25px;
        text-align: center;
        padding: 0;
        z-index: 20;
    }
    .content_plan .calendar div.month td a{
        position: relative;
        z-index: 100;
    }
    
    .content_plan .calendar div.month td.available {
        background: #ffe0e0;
        font-weight: bold;
    }
    .content_plan .calendar div.month td.today::before {
        position: absolute;
        content: '';
        top:-2px;
        left:-2px;
        width: calc(100% + 4px);
        height: calc(100% + 4px);
        z-index: 10;
    }
    .content_plan .calendar div.month div.today {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 2px solid var(--secondary-color);
        display: flex;
        flex-flow: column wrap;
        justify-content: center;
        align-content: center;

    }
    .content_plan .calendar div.month td.in-plan {
        background: white;
    }
    .content_plan .calendar div.month td.selected::before {
        position: absolute;
        content: '';
        top: -3px;
        left: -3px;
        width: calc(100% + 6px);
        height: calc(100% + 6px);
        border: 4px solid var(--yellow-light);
        z-index: -1;
    }
    .content_plan .calendar div.month td.in-plan:not(.available) {
        background: var(--tertiary-color-10a);
    }

    .content_plan .calendar div.month td.in-plan.today {
        background: #0047FF;
        color: white;
    }
    .content_plan .calendar div.month td.weekend, .content_plan .calendar div.month th.weekend {
        /* border: 2px solid var(--yellow-light); */
        filter: hue-rotate(100deg);
    }

    .diet-daily_plan{
        width: 100%;
        flex-grow: 1;
        display: flex;
        flex-flow: column nowrap;
        padding: 0;
        justify-content: space-between;
        height: 100%;
        gap: 2em;
        overflow: auto;
    }
    .diet_plan .content_plan {
        gap:1em;
    }
    .diet-daily_plan .meal_time {
        background: transparent;
        width: 100%;
        display: flex;
        flex-flow: column wrap;
        justify-content: space-between;
        align-content: center;
    }
    .diet-daily_plan .meal_time .title{
        text-align: center;
        margin-bottom: 0.5em;
        font-weight: 400;
        font-size: 24px;
    }
    .diet-daily_plan .meal_time .image{
        width: 100%;
        text-align: center;
    }
    .diet-daily_plan .meal_time .image img {
        width: 19svh;
        height: 19svh;
    }
    .diet_plan .diet-daily_plan .meal_time .image img,
    .diet_plan .diet-daily_plan .meal_time .image.add-dish{
        width: 16vw;
        height: 16vw;
    }
    .diet_plan .diet-daily_plan .meal_time .image.add-dish {
        border-radius: 50%;
        overflow: hidden;
        color: var(--proteins-background);
        background-color: var(--secondary-color-25a);
        position: relative;
    }
    .diet_plan .diet-daily_plan .meal_time .image.add-dish .fa{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 8vw;
    }
    .diet_plan .diet-daily_plan .meal_time .text-content .title {
        font-size: 18px;
        margin-bottom: 0;
        font-weight: 300;
    }

    
    .meals .content-block > .text-content > .title {
        margin: 0 !important;
        line-height: 1.2em;
        text-align: left;
        margin: 0;
        font-size: 17px;
        font-weight: 500;
        color: var(--secondary-color);
    }
    .meals .content-block > .text-content > .nutrients > .title{
        font-weight: 400;
        font-size: 16px;
        margin: 0 !important;
        padding: 0;
    }
    .meals .content-block .nutrients {
        display: flex;
        flex-flow: column wrap;
        align-content: center;
        justify-content: space-between;
        gap: 1em;
        width: 100%;
    }
    .meals .content-block .nutrient {
        display: flex;
        flex-flow: row wrap;
        align-content: center;
        justify-content: space-between;
        gap: 1em;
        width: 100%;
    }
    .meals .content-block .nutrient .quantity {
        flex: 0 0 5em;
        text-align: left;
    }
    .meals .details {
        width: 100%;
        margin-top: 1em;
        overflow-y: auto;
        flex: 1 0;
        font-weight: 400;
    }
    
    .meals .details .instruction {
        margin-top: 2em;
        margin-bottom: 1em;
    }
    .meals .details > * > .title{
        text-align: center;
        font-size: 24px;
        font-weight: 400;
        margin-bottom: 0.25em;
    }
    
    .meals .details > .image {
        display: flex;
        flex-flow: column wrap;
        align-content: center;
        justify-content: space-between;
        gap: 1em;
        width: calc(100% - 4em);
        height: 29.3svh;
        padding: 0 2em 0em 2em;
        margin-top: 0.5em;
    }
    .meals .details > .image img {
        height: 100%;
    }
    .meals .details .ingredients {
        display: flex;
        font-size: 16px;
        margin-left: 1em;
        flex-flow: column wrap;
        align-content: center;
        justify-content: space-between;
        gap: 0.33em;
        width: calc(100% - 6em);
        padding: 0 2em;
        margin-top: 0.5em
    }
    .meals .details .ingredients .ingredient{
        display: flex;
        position: relative;
        flex-flow: row wrap;
        align-content: top;
        justify-content: start;
        gap: 1em;
        width: 100%;
    }
    .meals .details .ingredients .ingredient::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -1em;
        transform: translate(-50%, -50%);
        width: 0.25em;
        height: 0.25em;
        border-radius: 50%;
        background-color: var(--secondary-color);
    }
    .meals .details .ingredients .ingredient .name{
        flex: 1 0;
        text-align: left;
    }
    .meals .details .ingredients .ingredient .quantity{
        display: flex;
        flex-flow: row wrap;
        align-content: top;
        justify-content: end;
        gap: 0.25em;
    }
    .meals .details .instruction {
        width: 100%;
    }
    .meals .details .instruction .step {
        font-size: 16px;
        list-style: decimal;
        padding: 0 2em 0.5em 0.25em;
        text-align: left;
        position: relative;
    }
    /* .meals .details .instruction .step::before {
        content: '';
        position: absolute;
        top: -0.085em;
        left: -1.7em;
        width: 1.5em;
        height: 1.5em;
        border-radius: 50%;
        border: 2px solid var(--secondary-color);
    } */
    .meals .details .instruction .step::marker {
        font-weight: 500;
    }

    .meals .details .instruction .text
    .meals .swiper-pagination-bullet {
        width: 1em;
        height: 1em;
        background: var(--secondary-color);
        position: relative;
    }
    .meals .swiper-pagination-bullet-active::after {
        background: transparent;
        /* content: ''; */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0.75em;
        height: 0.75em;
        border: 1px solid var(--body-background);
        border-radius: 50%;
        z-index: 100;
    }
    .meals .swiper-container{
        width: 100dvw;
        height: 100%;
        display: flex;
        flex-flow: column;
        justify-content: start;
    }
    .meals .swiper-wrapper {
        height: unset !important;
        max-height: calc(100% - 35.2px);
        flex: 1 1;
    }
    .meals .swiper-pagination{
        position: sticky;
        margin-left: auto;
        margin-top: 0.5em;
        margin-right: auto;
        padding: 0.1em;
        top: 0.5em;
        width: max-content;
        border-radius: 1em;
    }
    .meals .swiper-slide {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        text-align: center;
        height: 100%;
    }
    .diet-calculator, .diet-today-intake {
        padding: 0 20px;
        position: absolute;
        border-radius: 0.5em 1em;
        margin: 0;    
        height: 100%;
        flex: 1;
        overflow: hidden;
        width: calc(100%);
        gap: 0.25em;
    }
    .total_nutrients {
        font-weight: 300;
        display: flex;
        flex-flow: column nowrap;
        gap: 0.5em;
        transition: all 0.3s ease-in-out;
    }
    
    .meals .meal .total_nutrients .calories {
        gap: 0.25em;
    }
    .diet-calculator .top .right-column {
        flex: 0 0 25%;
        display: flex;
        flex-flow: row wrap;
        justify-content: end;
        align-content: start;
    }
    .diet-today-intake .total_nutrients .calories, .diet-calculator .total_nutrients .calories {
        margin-top: 20px;
    }
    .diet-calculator .product-info .total_nutrients .calories {
        margin-top: 0;
    }
    .total_nutrients .calories {
        border-radius: 20px;
        border: 3px solid;
        border-color: var(--secondary-color);
        display: flex;
        justify-content: space-between;
        padding: 0.2em 1em;
        width: 100%;
        box-shadow: 5px 5px 15px -7px #69737d;
    }
    .total_nutrients .calories .amount{
        display: flex;
        flex-flow: row nowrap;
        gap: 0.1em;
        font-size: 32px;
    }
    .total_nutrients .calories .units {
        font-size: 32px;
    }
    .diet-today-intake .search{
        width: 100%;
        flex-grow: 1;
        overflow: hidden;
        display: flex;
        flex-flow: column nowrap;
        justify-content: start;
    }
    .diet-today-intake .search .hint{
        font-weight: 400;
        font-size: 18px;
    }
    .diet-today-intake .search .magnifier {
        flex-grow: 1;
        max-height: calc(100% - 4em);
        opacity: 75%;
        text-align: center;
    }
    .diet-today-intake .search img{
        height: 100%;
        position: relative;
        top: -20px;
        animation: 1.5s ease-in-out 0s infinite alternate magnifier-animation;
    }
    @keyframes magnifier-animation {
        from {
          /* pushes the sun down past the viewport */
          transform: rotate(-5deg);
        }
        to {
          /* returns the sun to its default position */
          transform: rotate(5deg);
        }
      }
    .diet-today-intake .search .tags{
        display: flex;
        flex-flow: row wrap;
        justify-content: start;
        row-gap: 2em;
        column-gap: 1em;
        padding: 1em 0;
    }
    .diet-today-intake .search .tags .tag {
        border-radius: 20px;
        padding: 0.25em 1em;
        border: 2px solid var(--forth-color);
    }
    .diet-today-intake .search .tags .tag.active{
        background: var(--secondary-color);
    }

    .total_nutrients .macros {
        display: flex;
        justify-content: space-between;
        padding: 0.5em 0em;
        width: 100%;
    }
    .total_nutrients .macros .nutrient{
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-content: center;
        gap: 0.2em;
    }
    .total_nutrients .macros .nutrient .amount{
        height: min-content;
        color: var(--secondary-color);
    }
    .diet-calculator .macros{
        color: white;
        text-align: center;
    }
    .diet-today-intake .macros .nutrient{
        font-size: 1.25em;
        min-width: max-content;
    }
    .diet-calculator .dishes .dish .macros {
        border-radius: 20px;
        overflow: hidden;
        margin: 0.1em;
        background: #add1eb;
        width: calc(100% - 0.2em) !important;
        display: flex;
        justify-content: start;
    }
    .diet-calculator .dishes .dish .macros .amount{
        font-size: 0.75em;
    }
    .total_nutrients .macros .nutrient .amount {
        font-size: 28px;
    }
    .total_nutrients .macros .nutrient .circle{
        border-radius: 50%;
        font-weight: 600;
        position: relative;
        width: 1.5em;
        height: 1.5em;
    }
    .total_nutrients .macros .nutrient .circle{
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    .total_nutrients .macros .nutrient .circle .letter{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #FDFDFF;
    }
    .total_nutrients .macros .nutrient.proteins .circle,
    .diet-calculator .dishes .dish .macros .nutrient.proteins{
        background-color: var(--proteins-background);
    }
    .total_nutrients .macros .nutrient.fats .circle,
    .diet-calculator .dishes .dish .macros .nutrient.fats{
        background-color: var(--fats-background);
    }
    .total_nutrients .macros .nutrient.carbohydrates .circle,
    .diet-calculator .dishes .dish .macros .nutrient.carbohydrates{
        background-color: var(--carbohydrates-background);
    }
    .diet-calculator .dishes .dish .macros .nutrient.calories {
        flex-grow: 1;   
    }
    .meals .meal .total_nutrients .calories {
        border: none;
        box-shadow: none;
        padding: 0;
        display: flex;
        flex-flow: row wrap;
        row-gap: 0.25em;
        margin-top: 0;
        overflow: hidden;
    }
    .meals .meal .total_nutrients .title {
        flex-basis: 0;
        margin: 0;
        flex: 1;
    }
    .meals .meal .total_nutrients .title, .meals .meal .total_nutrients .amount, .meals .meal .total_nutrients .units {
        font-size: 16px;
        font-weight: 400;
    }
    .meals .meal .total_nutrients .macros {
        padding: 0;
    }
    .meals .meal .total_nutrients .nutrient {
        justify-content: start;
        gap: 0.5em
    }
    .meals .meal .total_nutrients .nutrient .circle {
        width: 20px;
        height: 20px;
    }
    .meals .meal .total_nutrients .nutrient .circle .letter {
        font-size: 16px;
    }
    .meals .meal .total_nutrients .nutrient .amount {
        position: relative;
        transform: translateY(-2px);
    }
    .diet-calculator .form {
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        gap: 0;
    }
    .diet-calculator .form label[for="search-dish-name"]{
        font-size: 18px;
        font-weight: 500;
    }
    .dish-search .input {
        padding-left: 1em;
        padding-right: 1em;
        border-radius: 6px;
        border: 1px solid var(--secondary-color);
        background-color: white;
        color: var(--secondary-color);
    }
    .dish-search .product-info .input-group {
        display: flex;
        flex-flow: row nowrap;
        gap: 1em;
        justify-content: space-around;
        position: relative;
    }
    .dish-search #dish-weight-input {
        text-align: right;
    }
    .dish-search #cancel-search {
        position: absolute;
        top:50%;
        right: 3em;
        transform: translateY(-50%);
        z-index: 10000;
    }
    .dish-search {
        margin-bottom: 1.5em;
    }
    .dish-search .product-info .product-found {
        width:100%;
    }
    .dish-search .product-info .input-group .btn {
        flex-grow: 1 1 33%;
    }
    .dish-search .product-info .input-group.weight {
        gap: 0.5em;
    }
    .dish-search .product-info .input-group.weight *{
        margin-block: auto;
    }
    .diet-calculator .dishes{
        display: flex;
        flex-flow: column nowrap;
        justify-content: start;
        gap: 0.25em;
        flex: 1 0;
        overflow: hidden;
    }

    .diet-calculator .dishes .title {
        font-size: 20px;
        font-weight: 350;
        margin:0;
        color: #30519c;
    }
    
    .diet-calculator .dishes .list{
        display: flex;
        flex-flow: column nowrap;
        justify-content: start;
        flex: 1 0;
        gap: 0.25em;
        overflow-y: auto;
        padding: 0 0.25em;
    }
    
    .diet-calculator .dishes .list *{
        max-width: 100%;
    }
    .diet-calculator .dishes .list .dish {
        gap: 0;
        margin: 0;
    }
    .diet-calculator .dishes .list .dish .btn {
        box-shadow: none;
    }
    .diet-calculator .dishes .list .dish .top{
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 8px;
        padding-bottom: 0.2em;
        margin-bottom: 6px;
        gap: 1em;
        border-radius: 0;
        margin: 0;
    }
    .diet-calculator .dishes .list .dish .macros .nutrient {
        min-width: 2em;
        max-width: 50%;
    }
    .diet-calculator .dishes .list .name{
        flex-grow:1;
    }
    
    /* .diet-calculator .dishes .list .dish:nth-child(odd) {
        background-color: transparent;
    }
    .diet-calculator .dishes .list .dish:nth-child(even) {
        background-color: #e1e9f977;
    } */
    
    .diet-calculator .dishes .list .dish {
        display: flex;
        flex-direction: row;
    }
    
    .remove-button {
        background: none;
        border: none;
        color: #cc0000;
        font-size: 16px;
        cursor: pointer;
    }
    
/* } */
@media (min-width: 480px){
    .pwa-fitness-header .navbar-brand{
        position: absolute;
    }
    .pwa-fitness-footer{
        order:100;
        width: 100vw;
        flex-flow: row nowrap;
        justify-content: space-around;
        align-content: center;
        flex: 0 0 2em;
    }
}
.icon-arrow-left.icon::before{
    background-image: url('/static/fitness/icons/svg/arrow-left.svg');
}
.icon-achieve.icon::before{
    background-image: url('/static/fitness/icons/png/achieve_2.png');
}
.icon-home.icon::before{
    background-image: url('/static/fitness/icons/svg/house-chimney.svg');
}
.icon-trainings.icon::before{
    background-image: url('/static/fitness/icons/png/training.png');
}
.icon-diet.icon::before{
    background-image: url('/static/fitness/icons/png/dinner.png');
}
.icon-theory.icon::before{
    background-image: url('/static/fitness/icons/png/theory.png');
}
.icon-progress.icon::before {
    background-image: url('/static/fitness/icons/png/progress_2.png');
    background-size: 90%;
    background-position-x: 5px;
}
.icon-profile.icon::before {
    background-image: url('/static/fitness/icons/png/profile.png');
}
.icon-gear.icon::before{
    background-image: url('/static/fitness/icons/svg/gear.svg');
}
.daily-video .reward, .activity .MET {
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    position: relative;
}
.daily-video .reward .text, .activity .MET .text {
    position: relative;
    top:50%;
    transform: translateY(-50%);
    height: max-content;
}
.daily-video .reward .icon, .activity .MET .icon {
    height: 33.6px;
    width: 32px;
    display: inline-block;
}
.daily-video .reward .icon:before, .activity .MET .icon::before {
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.icon-MET.icon::before{
    background-image: url('/static/fitness/icons/png/flame_color_1.png');
}
.icon-brain.icon::before{
    background-image: url('/static/fitness/icons/png/flame_color_1.png');
}
.btn, .btn:hover, .btn:focus {
    background-color: var(--secondary-color);
}
.btn-danger, .btn-danger:hover, .btn-danger:focus {
    color: #fff;
    background-color: #e69abd;
    border-color: #e69abd;
}
.btn-success, .btn-success:hover, .btn-success:focus{
    color: #fff;
    background-color: #28a78d;
    border-color: #28a78d;
}
.btn-glyph {
    font-size: 1em !important;
    border-radius: 50%;
    padding: 0;
}
.diet-calculator .btn-glyph {
    height: 2em !important;
    width: 2em !important;
    padding: 0;
}
.btn-glyph-medium {
    font-size: 1em !important;
    height: 2em !important;
    width: 2em !important;
    border-radius: 50%;
    padding: 0;
}
.btn-glyph-small {
    font-size: 0.75em !important;
    height: 2em !important;
    width: 2em !important;
    border-radius: 50%;
    padding: 0;
}
.meals .btn-glyph {
    height: 32.8px !important;
    width: 32.8px !important;
    padding: 0;
}
.daily-video {
    padding: 1em;
    overflow-y: auto;
}
.daily-video .glyph {
    margin: 0.5em 0.25em 0.5em 0;
}
.daily-video .icon {
    margin-right: 0.5em;
}
.daily-video .title {
    margin-bottom: 0.5em;
    text-align: center;
}
.daily-video .controls {
    position: relative;
    margin-top: 0.25em;
    display: flex;
    flex-flow: row;
    justify-content: space-around;
    gap: 1em;
    transition: ease-in-out all .3s;
}
.activity-control-btn {
    flex: 1 1;
    transition: ease-in-out all .3s;
}
.end-activity-btn {
    flex: 0.5 1 0;
    transition: ease-in-out all .3s;
}
.end-activity-btn .hidden{
    flex: 0 1 0;
}
.daily-video .controls .btn {
    padding: 0.25em;
    box-shadow: 0px 5px 5px rgba(33, 118, 255, 0.35);    ;
}
.daily-video .mbr-embedded-video, .lesson .mbr-embedded-video{
    width: 100%;
    aspect-ratio: 16 / 9 !important;
}
.daily-video .text-content ul.exercises, .daily-video .text-content ul.exercises li{
    list-style: disc !important;
}
.text-content ul.exercises li {
    margin-left: 1em;
}

.product-info, .product-info .product-found {
    display: flex;
    flex-flow: column;
    width: 100%;
    gap: 0.5em;
}
.product-info .title.found-product-message, .product-info .title.dish-search-message {
    font-size: 16px;
    font-weight: 400;
    margin: 8px 0 2px 0;
}
.product-info .title.found-product-message #product-name {
    font-weight: 700;
}
.product-info .title.dish-search-message{
    margin-top: 8px;
}
.product-info .title.dish-search-message .dish-message {
    margin-block: 1em;
}
.product-info .total_nutrients {
    padding: 0 0em;
}
.product-info .total_nutrients .macros {
    padding: 0;
}
.product-info *:not(.btn) {
    font-size: 16px !important;
    color: var(--secondary-color);
    font-weight: 400;
}
.product-info #add-product {
    color: white;
}
.product-info .calories {
    border: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    gap: 0.25em;
}
.product-info .circle {
    width: 24px !important;
    height: 24px !important;
}
.hidden, .necessary-data {
    display: none !important;
}
.zero-height {
    height: 0 !important;
    overflow: hidden !important;
}
.btn-warning, .btn-warning:hover, .btn-warning:focus {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}
.daily-video .controls .message {
    position: absolute;
    bottom: calc(100% + 1em);
    width: calc(100%);
    padding: 1em 0.5em;
    background: #faffb8;
    border-radius: 20px;
    border: 1px solid var(--secondary-color);
    background: var(--content-block);
}
.daily-video .controls .message:after {
    height: 2em;
    width: 2em;
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    translate: -50% -50%;
    rotate: 45deg;
    background: var(--content-block);
    border-right: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}
.daily-video .controls .message.storing-error {
    background: #e69abd;
    color: white;
}
.daily-video .controls .message.storing-error:after {
    background: #e69abd;
}
.app-profile {
    overflow-y: auto;
    height: calc(100%);
    padding: 1em;
    display: flex;
    flex-flow: column nowrap;
    gap: 1em;
    justify-content: start;
    position: relative;
    scrollbar-width: none !important;
}
.app-profile input, .form-control input {
    border-radius: 5px !important;
}
.login-form {
    background: transparent;
    color: var(--secondary-color);
}
.login-form * {
    background: transparent;
    color: var(--secondary-color);
}
.login-form input {
    border-radius: 20px;
    padding: 0.5em;
}
.login-form button {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
}
.profile-item-link {
    transition: 0.1s;
}

.profile-item-link:hover {
    font-weight: 500;
    cursor: pointer;
}
.gap-025em {
    gap: 0.25em; 
}
.gap-05em {
    gap: 0.5em; 
}
.gap-1em {
    gap: 1em; 
}
.gap-1_5em {
    gap: 1.5em; 
}
.gap-2em {
    gap: 2em; 
}
.pwa-install-indicator{
    position:absolute;
    bottom:0px;
    right:0px;
    width:10px;
    height:10px;
    background:#ff9f9f;
    border-radius:50%;
}
.pwa-install-button {
    font-weight: 600;
}
.ios-pwa-help-text {
    overflow: hidden;
    border-radius: 20px;
    font-weight: 400;
    margin: 10px 0;
}
.navbar-nav .ios-pwa-help-text {
    border: 1px solid var(--secondary-color);
}
.ios-pwa-help-text .help-text{
    padding: 1em;
}
.ios-pwa-help-text ol {
    display: flex;
    flex-flow: column;
    gap: 0.5em;
    margin-top: 0.5em;
}
.ios-pwa-help-text li{
    position: relative;
}
.ios-pwa-help-text li svg{
    position: absolute;
    top: 0;
    left: -2.5em;
    height: 2em !important;
    width: 2em !important;
}
.ios-pwa-help-text li svg.share-icon{
    height: 2.5em !important;
}
.calories.indicator {
        position: relative;
        z-index: 0;
        overflow: hidden;
}
.total_nutrients .calories.indicator .progress_bar {
    position: absolute;
    z-index: -1;
    width: 20%;
    height: 100%;
    border-radius: 30px;
    top: 0;
    left: -10%;
    opacity: 50%;
    transition: all 2s ease-in-out;
}
@keyframes border-alert-red {
    to {
        border: 3px solid rgb(171, 45, 45);
    }
}
@keyframes border-alert-green {
    to {
        border: 3px solid rgb(96, 219, 123);
    }
}
@keyframes border-alert-yellow {
    to {
        border: 3px solid rgb(220, 216, 87);
    }
}
.input-popover {
    width: calc(80%) !important;
}
.input-popover .driver-popover-navigation-btns{
    justify-content: space-between;
    flex-flow: row-reverse;
}
.input-popover * {
    scrollbar-width: none !important;
}
.input-popover .driver-popover-navigation-btns button{
    width: 45%;
    text-align: center;
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    * {
        scrollbar-width: none !important;
    }
    .home .indexes {
        justify-content: end;
        width: 100%;
        padding: 0 1rem;
    }
    .home .indexes .column {
        flex: 0 0 50%;
        position: relative;
        display: flex;
        justify-content: end;
    }
    .home .indexes .column .index-box {
        margin: 0;
        transform: translateX(0);
        width: min-content;
        position: relative;
    }
    * ::-webkit-scrollbar {
    display: none !important;
    }
    .home .tasks {
        position: absolute;
        top: calc(100% - 200px);
        height: var(--task-container-height);
        overflow: hidden;
        scroll-snap-stop: always;
        overscroll-behavior: auto;
    }
    .task-box .invisible {
        visibility: hidden;
    }
    .meals .meal .total_nutrients {
        gap: 0;
    }
}
.profile-card .date-input-group input.date-day, .driver-popover .date-input-group input.date-day {
    width: 2.8em;
}
.profile-card .date-input-group input.date-month, .driver-popover .date-input-group input.date-month {
    width: 2.8em;
}
.profile-card .date-input-group input.date-year, .driver-popover .date-input-group input.date-year {
    width: 3.5em;
}

/* Small devices (portrait tablets and large phones, 600px and up) */

@media only screen and (min-width: 600px) and (max-width: 1100px){
    .app-profile .profile-card {
        margin-left: auto;
        margin-right: auto;
    }
}
@media only screen and (orientation: landscape) and (min-width: 1100px){
    .app-profile {
        flex-flow: column wrap;
        column-gap: 2vw;
        align-content: space-around;
    }
}

@media only screen and (min-width: 600px) {
    :root {
        --task-box-size: min(38.4vw, 140px);
    }
    .home {
        flex-flow: row nowrap;
        gap: 1em;
    }
    .app-profile {
        column-gap: 2vw;
        row-gap: 2vw;
        scrollbar-width: thin;
        overflow-x: auto;
    }
    * {
        scrollbar-width: thin !important;
    }
    .app-profile .profile-card {
        width: 500px;
        max-height: max-content;
    }
    .app-profile .chart {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        max-height: 300px;
    }
    .app-profile .chart .chart-canvas {
        max-height: 100%;
    }
    .profile-card .date-input-group input.date-day, .driver-popover .date-input-group input.date-day {
    width: 3.5em;
    }
    .profile-card .date-input-group input.date-month, .driver-popover .date-input-group input.date-month {
        width: 4em;
    }
    .profile-card .date-input-group input.date-year, .driver-popover .date-input-group input.date-year {
        width: 4.5em;
    }
    .home .indexes {
        width: var(--index-size);
        right: 2em;
        margin-top: 2em;
    }
    .home .indexes .index-box {
        margin-left: 0;
        transform: none;
    }
    .home .indexes .index {
        width: var(--index-size);
        height: var(--index-size);
    }
    .home .indexes .index .icon-wrapper{
        width: var(--index-size);
        height: var(--index-size);
    }
    .home .tasks {
        margin-top: 2em;
        top: 0;
        column-gap: calc(100% - var(--task-box-size) * 2);
        width: var(--tasks-width);
        height: 100%;
        margin-left: 5vw;
    }
    .task-box{
        transition: 0.3s ease-in-out;
    }
    .task-box:hover {
        cursor: pointer;
        background-color: var(--tertiary-color-25a);
    }
    .pwa-fitness-navbar{
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-content: center;
        margin: 0 1em;
        margin-left: 7vw;
        margin-right: 7vw;
        width: 86vw;
        padding: 0 1em;
    }
    
    .pwa-fitness-navbar .icon-wrapper{
        width: var(--plans-nav-item-size);
        height: var(--plans-nav-item-size);
        transition: 0.3s ease-in-out;
    }
    .pwa-fitness-navbar .icon-wrapper:hover {
        background: var(--tertiary-color-25a);
    }
    main.pwa-fitness-content .avatar{
        left: calc(var(--task-box-size) * 2 + 6em + 5vh);
        transform: none;
        width: calc(100vw - var(--tasks-width) - 10vh);
        border-radius: 0;
        overflow: visible;
    }
    main.pwa-fitness-content .avatar img {
        left: 50%;
        height: 70vh;
    }
    main.pwa-fitness-content .avatar .platform {
        left: 50%;
        bottom:25vh
    } 
    .diet-today-intake .total_nutrients, .total_nutrients {
        flex-flow: row nowrap;
        gap: 2em;
    }
    .diet-today-intake .total_nutrients .macros, .total_nutrients .macros  {
        justify-content: space-between;
        width: unset;
        flex: 0 1 12em;
        gap: 1.5em;
    }
    .meals .meal .nutrient {
        width: unset;
    }
    .meals .meal .total_nutrients .calories {
        width: max-content;
        flex-flow: row nowrap;
    }
    .meals .meal .total_nutrients .calories .title{
        flex-grow: 0;
        margin-right: 2em;
    }
    .meals .meal .total_nutrients .macros {
        justify-content: start;
        gap: 1.5em;            
    }
    .lesson .title br {
        display: none;
    }
    
    .daily-video .mbr-figure{
        text-align: center;
    }
    .daily-video .mbr-embedded-video, .mbr-embedded-video {
        max-width: var(--desktop-daily-plan-width);
        aspect-ratio: 16 / 9 !important;
        height: unset;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .daily-video .controls, .controls, .text-content {
        max-width: var(--desktop-daily-plan-width);
        margin-left: auto;
        margin-right: auto;
    }
    .daily-video .text-content {
        margin-bottom: 1em;
    }
    main.pwa-fitness-content{
        height: calc(100% - var(--plans-nav-item-size) - 60px);
    }
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .diet-today-intake, .diet-calculator{
        .total_nutrients .macros {
            justify-content: end;
            gap: 1.5em;
        }
    }
    .btn {
        width: 768px;
    }
    
    .daily-video .title, .lesson .title {
        font-size: 24px;
        font-weight: 500;
    }
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .pwa-fitness-header .navbar-header-wrapper .navbar-brand  {
        flex: 1 0;
        transform: none;
        left: 7vw;
    }
    .navbar-collapse .navbar-nav {
        margin-right: 1em;
    }
    .navbar-collapse .navbar-nav .nav-item{
        background: transparent;
        border: 0;
        width: max-content;
    }
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

}
.text-align-left {
    text-align: left !important;
}
.date-navigator{
    position: relative;
    transition: all 0.3s ease-in-out;
}
.navigation-btn {
    position: relative;
    height: 1em;
    text-align: center;
    display: inline-block;
    aspect-ratio: 1;
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}
.navigation-btn:not(.fa)::before {
    height: 100%;
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.navigation-btn::after{
    position: absolute;
    width: min-content;
    text-align: center;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.prev-month.navigation-btn::after{
    content: '\00AB';
}
.next-month.navigation-btn::after{
    content: '\00BB';
}
.next-day.navigation-btn::after{
    content: '\203A';
}
.prev-day.navigation-btn::after{
    content: '\2039';
}
.navigation-btn:not(.fa, .active) {
    visibility: hidden;
}
.date-navigator {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    width: 100%;
}
.date-navigator .title{
    width: 100%;
    margin:0 !important;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    margin: 8px 0 4px 0;
}
.diet_plan {
    overflow-y: auto;
    gap: 1em;
}
.macros .substances {
    display: flex;
    flex-flow: row nowrap;
    flex: 1 1 10em;
}
.driver-popover {
    font-size: 16px;
    display: flex !important;
    flex-flow: column;
    color: var(--secondary-color);
}
.driver-popover .driver-popover-description {
    font-weight: 300;
    display: flex !important;
    flex-flow: column;
    gap: 1em;
}
.driver-popover .title.greeting {
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    margin: 0;
}
.driver-popover ul {
    list-style: disc;
    margin-left: 2em;
}
.driver-popover ul li {
    list-style: disc outside;
}
.driver-popover .tour-avatar{
    width: 200px;
    height: 200px;
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    overflow: hidden;
    position: relative;
    margin: 0 auto 1em auto;
    border-radius: 50%;
    border: 1px solid var(--secondary-color);
}
.driver-popover .tour-avatar .tour-avatar-img{
    position: absolute;
    left: 50%;
    -ms-transform: translate(-50%,10px);
    -webkit-transform: translate(-50%,10px);
    transform: translate(-50%,10px);
}
.driver-popover button:not(.driver-popover-close-btn) {
    border-radius: 30px;
    background-color: var(--secondary-color);
    padding: 0.5em 1em;
    text-shadow: none;
    color: white;
}
.driver-popover button.driver-popover-close-btn{
    top: 10px;
    right: 10px;
    width: 1.5em;
    height: 1.5em;
    font-size: 16px;
    color: white;
    aspect-ratio: 1;
    padding: 0;
    background: var(--secondary-color-50a);
    border-radius: 50%;
}
.driver-popover .tour-start-btn {
    margin: 0 auto;
    font-size: 20px;
    
}
body:has(.driver-popover) .dishes:has(#remove-dish.highlighted), .dishes *:has(#remove-dish.highlighted) {
    overflow: visible;
}
body:has(.driver-popover) #remove-dish.highlighted {
    position: relative;
    overflow: visible;
}
body:has(.driver-popover) #remove-dish.highlighted:before{
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border: 2px solid var(--yellow);
    border-radius: 50%;
    z-index: 1000;
    animation: 1s ease-in-out 0s infinite alternate size-pulse;
}
#payWidget{
    position: absolute;
}
.app-profile .profile-card {
    border: 2px solid var(--secondary-color);
    box-shadow: 5px 5px 15px -7px #69737d;
    border-radius: 20px;
    display: flex;
    flex-flow: column wrap;
    padding: 1em;
    gap: 0.5em;
    justify-content: start;
    position: relative;
}
.app-profile .profile-card .submit.btn {
    cursor: pointer;
}
.app-profile .profile-card .edit {
    position: absolute;
    top:15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.rotate-360-3s-1-time {
    animation: 3s ease-in-out 0s 1 rotate-360;
}
@keyframes rotate-360 {
    to {
        transform: rotate(360deg);
    }
}
.app-profile .profile-card .header {
    display: flex;
    flex-flow: row wrap;
    padding: 0;
    gap: 0.25em;
    justify-content: start;
}
.app-profile .profile-card .header .image{
    flex: 0 0 50px;
    height: 50px;
    overflow: hidden;
    position: relative;
    object-fit: cover;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
}
.app-profile .profile-card.person .header .image{
    flex: 0 0 100px;
    height: 100px;
}
.app-profile .profile-card.person .header .image{
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
}
.app-profile .profile-card .header .image img, .app-profile .profile-card .header .image .fa{
    height: 100%;
    aspect-ratio: 1;
}
.app-profile .profile-card .header .image .fa::before {
    font-size: 35px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.app-profile .profile-card .header .title {
    margin: 0;
    font-weight: 300;
    flex: 1 0;
    display: flex;
    flex-flow: column;
    justify-content: space-around;
}

.app-profile .profile-card .header .title .main-title {
    font-size: 18px;
    text-wrap: wrap;
    margin: auto 0.25em;
}
.app-profile .profile-card .header .title .sub-title {
    font-size: 14px;
}
.app-profile .profile-card hr{
    width: 100%;
    margin: 0;
    height: 0px;
    border: 1px solid var(--secondary-color-25a);
}
.data-table{
    display: flex;
    flex-flow: column wrap;
    gap: 2px;
    justify-content: start;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}
.profile-card.collapsed .data-table, .profile-card.collapsed hr, .profile-card.collapsed .chart{
    display: none;
}
.data-table .data-row{
    display: flex;
    flex-flow: row wrap;
    padding: 0.125em;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 400;
    min-height: 31.5px;
}
.data-table .data-row:nth-child(even){
    background-color: var(--secondary-color-25a);
}
.data-table .data-row .data-name{
    flex: 2 0 100px;
    text-align: left;
    text-wrap: balance;
    margin: auto 0;
}
.data-table .data-row .data-name::after{
    content: ':';
}
.data-table .data-row .data-value{
    flex: 1 0 100px;
    text-align: right;
    min-width: max-content;
    margin: auto 0;
}
.profile-card .chart{
    height: 66vw;
    color: var(--secondary-color)
}
.profile-card div:not(.date-input-group) input, .profile-card select, .profile-card textarea  {
    width: 8em;
}
.profile-card.account input {
    width: 100% !important;
}
.date-input-group{
    display: flex;
    flex-flow: row nowrap;
    gap: 0.5em;
    justify-content: right;
}
.profile-card input, .profile-card select, .profile-card textarea, .date-input-group input {
    background: var(--light-background);
    border-radius: 5px;
    padding: 2px 0.5em;
    outline: auto;
    color: var(--tertiary-color)
}
.profile-card input[type="checkbox"] {
    outline: none;
}
.driver-popover input, .driver-popover select {
    background: white;
    border-radius: 5px;
    padding: 2px 0.5em;
    outline: auto;
    color: var(--tertiary-color);
    height: 2em;
}
.profile-card input:disabled, .profile-card select:disabled, .profile-card textarea:disabled, .date-input-group input:disabled, .driver-popover input:disabled, .driver-popover select:disabled {
    background-color: transparent;
    outline: none;
    border: none;
}
.driver-popover .date-input-group {
    justify-content: start;
}
.driver-popover p.hint {
    color: grey;
    font-size: 13;
}
.profile-card input, .profile-card select {
    height: 2em;
}
.profile-card input[type=number] {
    text-align: right;
}
.profile-card.person .name *{
    font-size: 16px;
}
.profile-card textarea {
    resize: vertical;
    display: block;
    overflow: auto;
    max-height: 6em;
}
.profile-card .input-100w input, .profile-card .input-100w select, .profile-card .input-100w textarea {
    width: 100%;
}
.profile-card .btn {
    padding: 0.25em 0.5em;
    width: max-content;
    margin: 0.5em auto;
}

.content-card {
    border: 2px solid var(--secondary-color);
    box-shadow: 5px 5px 15px -7px #69737d;
    border-radius: 20px;
    display: flex;
    flex-flow: column nowrap;
    gap: 0.5em;
    width: 100%;
    max-width: 500px;
    justify-content: space-between;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}
.content_plan.theory_plan {
    gap: 1em;
}
.content_plan.theory_plan .card-list {
    gap: 2em;
    display: flex;
    flex-flow: column nowrap;
}
.content_plan {
    overflow: auto;
    display: flex;
    flex-flow: column nowrap;
    padding: 0.5em;
}
.diet_plan .content_plan {
    overflow: visible !important;
}
.content_plan .plan_title {
    margin: 0em 1em 0em 1em;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    line-height: 1em;
}
.image-container {
    width: 100%;
    aspect-ratio: 411/233;
}
.content-card .image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 85%;
    object-fit: cover;
    overflow: hidden;
    text-align: left;
    z-index: -1;
    overflow: hidden;
    border-radius: 20px;
}
.content-card .image-background img {
    width: 100%;
    min-height: 233px;
    aspect-ratio: 411/233;
    object-fit: cover;
    object-position: left;
}
.content-card.unavailable .image-background img {
    opacity: 50%;
}
.content_plan .info {
    position: absolute;
    bottom: 0.5em;
    left: 20px;
    font-size: 18px;
    line-height: 1.25em;
    width: 80%;
}
.content-card .passed {
    position: absolute;
    bottom: 0.5em;
    right: 0.5em;
    font-size: 25px;
    border-radius: 50%;
    color: var(--check-green);
    background-color: white;
    padding: 5px;
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary-color);
}
.content-card .passed .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.content-card.available:hover {
    cursor: pointer;
}
.content-card.unavailable:hover {
    cursor: normal;
}
.driver-popover.input-popover input {
    width: 4em;
    margin: 0.5em 0;
    text-align: center;
}
.driver-popover .task-box.weight {
    background-image: none;
}
.driver-popover .task-box.weight .task-index {
    top: 5%;
    transform: translate(-50%, 0);
}


.number-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: sans-serif;
}

.number-picker .wheel {
  width: 50px;
  height: 120px;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  border: 1px solid #ccc;
  border-radius: 10px;
  scrollbar-width: none; /* Firefox */
  position: relative;
}
.dish-create-form .wheel-picker-label {
    padding: 2px 5px;
    border-radius: 1em;
    width: 80px;
    font-size: 13px;
    font-weight: 500;
}
.dish-create-form .wheel-picker-label.proteins{
    color: white;
    background-color: var(--proteins-background);
}
.dish-create-form .wheel-picker-label.carbohydrates{
    color: white;
    background-color: var(--carbohydrates-background);
}
.dish-create-form .wheel-picker-label.fats{
    color: white;
    background-color: var(--fats-background);
}

.dish-create-form .calories .value:after {
    content: '';
    height: 1.3em;
    width: 2em;
    top: 0.25em;
    position: relative;
    display: inline-block;
    background-image: url('/static/fitness/icons/png/flame_color_1.png');
    background-position: center; 
    background-repeat: no-repeat;
    background-size: 1em;
    opacity: 90%;
}
.dish-create-form .number-picker .wheel {
    width: 50px;
}
.dish-create-form .wheel-picker-container {
    display: flex;
    flex-flow: column;
    gap: 1em;
    position: relative;
    border-radius: 1em;
}
.dish-create-form .wheel-picker-container:after{
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border-radius: 1em;
    border: 2px solid lightgray;
    z-index: -1;
    box-shadow: 2px 2px 5px 2px #eee;
}
/* .dish-create-form .number-picker#proteinPicker .wheel{
    border-color: var(--proteins-background);
}
.dish-create-form .number-picker#carbohydratePicker .wheel{
    border-color: var(--carbohydrates-background);
}
.dish-create-form .number-picker#fatPicker .wheel{
    border-color: var(--fats-background);
} */
.dish-create-form .nutrition-value{
    display: flex;
    flex-flow: column;
    gap: 0.75em;
    margin-top: 0.5em;
}
.dish-create-form{
    display: flex;
    flex-flow: column;
    gap: 0.5em;
    margin: 1em 0 2em 0;
}
.dish-create-form .wheel-picker-label {
    text-align: center;
}
.dish-create-form .form-row{
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
}
.dish-create-form .form-row * {
    margin-block: auto;
}
.dish-create-form .form-row label {
    flex: 0 0 7em;
    text-align: left;
}
.dish-create-form .form-row input {
    flex: 1;
    text-align: right;
}
@media screen and (max-width: 400px){
    .driver-popover {
        padding: 0.5em 1em;
        max-width: calc(100% - 2em);
        border-radius: 8px;
        gap: 5px;
    }
    .app-profile .chart {
        max-height: 175px;
    }
}
@media screen and (min-width: 400px){
    .driver-popover {
        gap: 1em;
        padding: 1em 2em;
        max-width: min(calc(100% - 2em), 450px);
        border-radius: 20px;
    }
}