/* Фон у всех блоков и цвет текста */
:root {
    --userBoxColor: white;
    --darkTextColor: #404040;
}

/* Отключение плавной прокрутки на странице */
html {
    scroll-behavior: unset !important;
}

/* Основной шрифт во всём проекте */
@font-face {
    font-family: Roboto;
    src: url("/fonts/Roboto-Regular.woff2");
}

body {
    background: #F8F9FA;
    background-image: url("../img/bg.png"); /* Замени "путь_к_картинке.jpg" на путь к твоему изображению */
    /*background-size: contain;*/ /* Растянуть картинку на весь экран */
    background-repeat: repeat; /* Картинка будет повторяться */
}

.boxesContainer {
    width: 1094px;
    height: 14px;
    /*padding-left: 8px;*/
    margin-left: auto;
    margin-right: auto;
    fill: #FFF;
    white-space: nowrap;
    overflow: hidden;
}

.chartBox {
    width: 10px;
    height: 10px;
    /*margin: 0px;*/
    border-radius: 0px;
    padding: 0px;
    margin-top: 2px;
    /*border-bottom: 2px solid #FFF;
    border-left: 0px solid #FFF;
    border-right: 0px solid #FFF;*/
}

.chartBox::before {
    content: attr(title);
    opacity: 0;
    position: fixed;
    background-color: rgba(255, 255, 255, 1); /* Белый фон с непрозрачностью 80% */
    padding: 1px 10px; /* Добавим немного отступа */
    border-radius: 0px; /* Закруглим углы */
    transition: opacity 0s ease-in-out;
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%);
    top: 48px; /* Adjust top margin as needed */
}

.chartBox:hover::before {
    opacity: 1;
    outline: 1px solid black; /* Отображается контур при наведении */
}

.chartBox:hover {
    outline: 2px solid black; /* Отображается контур при наведении */
    z-index: 9999;
}

.chartBoxGoldDouble {
    background: url(/img/goldDouble.png);
}

.chartBoxGoldTriple {
    background: url(/img/goldTriple.png);
}

.calendarChart {
    padding: 0px;
    margin: auto;
    padding-bottom: 3px;
}

/* Стили для меню быстрого перехода в статистике */
a.active {
    margin-left: 10px;
    margin-right: 10px;
    -webkit-box-shadow: -10px 0px 0px 0px rgba(34, 60, 80, 1);
    -moz-box-shadow: -10px 0px 0px 0px rgba(34, 60, 80, 1);
    box-shadow: -10px 0px 0px 0px rgba(34, 60, 80, 1);
    background-color: rgba(230, 230, 230) !important;
}
.nav-link active {
    padding: 2px;
}
.navbar-nav {
    --bs-nav-link-padding-x: 0;
    --bs-nav-link-padding-y: 2px;
}
.offcanvas-body {
    padding: 5px;
}

/* Стиль для окошка выбора даты в статистике */
input[type="date"]::-webkit-calendar-picker-indicator {
    color: transparent;
    background: transparent;
    bottom: 0;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Стили для блоков пользователя и упражнений в статистике */
.userBox {
    height: 250px;
    flex-shrink: 0;
    position: relative;
    border-radius: 0px;
    background: var(--userBoxColor);
    margin-top: 3px;
    margin-bottom: 0px;
    fill: #FFF;
    stroke-width: 1px;
    stroke: #DDD;
}
.userProgressBar {
    height: 5px;
    width: 66px;
    top: 28px;
    left: 77px;
    position: absolute;
    flex-shrink: 0;
}
.notEngageText {
    display: flex;
    width: 160px;
    height: 205px;
    top: 0px;
    left: 0px;
    margin-bottom: 20px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    font-family: Roboto;
    font-size: 21px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.boxSkip {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+1,ffeaea+20,e0897d+49,dd1900+52,ff6b6b+75,ff7272+100 */
    background: linear-gradient(135deg, rgba(255,255,255,1) 1%,rgba(255,234,234,1) 20%,rgba(224,137,125,1) 49%,rgba(221,25,0,1) 52%,rgba(255,107,107,1) 75%,rgba(255,114,114,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

    filter: drop-shadow(-10px 0px 0px #FF0000) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}
.boxWeekend {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,99b752+50,97bf6d+51,efffcc+100 */
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgba(153,183,82,1) 50%,rgba(151,191,109,1) 51%,rgba(239,255,204,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

    filter: drop-shadow(-10px 0px 0px #00AA00) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}
.weekendText {
    display: flex;
    width: 160px;
    height: 115px;
    flex-direction: column;
    justify-content: flex-end;
    flex-shrink: 0;
    color: #FFF;
    text-align: center;
    font-family: Roboto;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.skipAlarmTextPropusk {
    display: flex;
    width: 160px;
    height: 85px;
    flex-direction: column;
    justify-content: flex-end;
    flex-shrink: 0;
    color: #FFF;
    text-align: center;
    font-family: Roboto;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.skipAlarmTextCount {
    width: 160px;
    height: 85px;
    flex-shrink: 0;
    color: #FFF;
    text-align: center;
    font-family: Roboto;
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.boxHeader {
    display: flex;
    width: 152px;
    height: 20px;
    top: 8px;
    left: 12px;
    position:relative;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    font-family: Roboto;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.userPhoto {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    left: 22px;
    top: 53px;
    position: absolute;
    border-radius: 0px;
}
.userName {
    display: flex;
    width: 120px;
    height: 17px;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    left: 24px;
    top: 216px;
    position: absolute;
    color: var(--darkTextColor);
    text-align: center;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.userPlace1 {
    display: flex;
    width: 67px;
    height: 55px;
    top: 0px;
    left: 23px;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: var(--darkTextColor);
    text-align: left;
    font-family: Roboto;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.userPlace2 {
    position: absolute;
    top: 31px;
    left: 70px;
    width: 100px;
    color: var(--darkTextColor);
    font-family: Roboto;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.userLevel {
    display: flex;
    width: 90px;
    height: 38px;
    top: -1px;
    left: 60px;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: var(--darkTextColor);
    text-align: center;
    font-family: Roboto;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.userProgressBarBack {
    width: 66px;
    height: 2px;
    top: 27px;
    left: 72px;
    position: absolute;
    flex-shrink: 0;
    background: #EAECEF;
}

.userProgressBarFront {
    height: 2px;
    top: 27px;
    left: 72px;
    position: absolute;
    flex-shrink: 0;
    background: #408558;
}

.userMedals {
    display: flex;
    justify-content: center;
    width: 115px;
    top: 182px;
    left: 25px;
    position: absolute;
    flex-shrink: 0;
}

.todayCount {
    display: flex;
    width: 76px;
    height: 29px;
    top: 25px;
    left: 10px;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: var(--darkTextColor);
    font-family: Roboto;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.boxMain {
    filter: drop-shadow(-0px 0px 0px #B8B8B8) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}
.header191 {
    color: #E4463B;
}
.box191 {
    filter: drop-shadow(-10px 0px 0px #E4463B) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}
.header194 {
    color: #b57900;
}
.box194 {
    filter: drop-shadow(-10px 0px 0px #DBB31F) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}
.header197 {
    color: #3172B5;
}
.box197 {
    filter: drop-shadow(-10px 0px 0px #3172B5) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}
.header3449 {
    color: #14A330;
}
.box3449 {
    filter: drop-shadow(-10px 0px 0px #7FB23F) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}
.header11945 {
    color: #8767BF;
}
.box11945 {
    filter: drop-shadow(-10px 0px 0px #8767BF) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}
.statusPic{
    width: 52px;
    height: 76px;
    flex-shrink: 0;
    left: 9px;
    top: 31px;
    position: absolute;
}
.clock
{
    background: url(/img/Medals/Clock.png)
}
.ok
{
    background: url(/img/Medals/Ok.png)
}
.alarm
{
    background: url(/img/Medals/Alarm.png)
}
.gold{
    background: url(/img/Medals/Gold.png)
}
.silver{
    background: url(/img/Medals/Silver.png)
}
.bronze{
    background: url(/img/Medals/Bronze.png)
}
.userBoxGold {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#f9f9f9+0,f7de9e+50,f2cf7d+51,fff6e0+100 */
    background: linear-gradient(135deg, rgba(249,249,249,1) 0%,rgba(247,222,158,1) 50%,rgba(242,207,125,1) 51%,rgba(255,246,224,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}
.userBoxSilver {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,ededed+50,d8d8d8+52,f4f4f4+100 */
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgba(237,237,237,1) 50%,rgba(216,216,216,1) 52%,rgba(244,244,244,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}
.userBoxBronze {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,e5ded0+50,e2d6bc+51,f7f7f7+100 */
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgba(229,222,208,1) 50%,rgba(226,214,188,1) 51%,rgba(247,247,247,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}
.medalGoldSm {
    width: 25px;
    height: 16px;
    flex-shrink: 0;
    left: 106px;
    top: 40px;
    position: absolute;
    background: #FFD766;
    border-radius: 5px 5px 0px 0px;
    border: 1px solid #454545;
}
.medalGoldSmCount {
    display: flex;
    width: 23px;
    height: 14px;
    left: 107px;
    top: 26px;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: var(--darkTextColor);
    text-align: center;
    font-family: Roboto;
    font-size: 12px;
}
.medalSilverSm {
    width: 23px;
    height: 12px;
    flex-shrink: 0;
    left: 84px;
    top: 44px;
    position: absolute;
    background: #B2C5E4;
    border-radius: 5px 0px 0px 0px;
    border: 1px solid #454545;
}
.medalSilverSmCount {
    display: flex;
    width: 23px;
    height: 14px;
    left: 84px;
    top: 30px;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: var(--darkTextColor);
    text-align: center;
    font-family: Roboto;
    font-size: 12px;
}
.medalBronzeSm {
    width: 23px;
    height: 8px;
    flex-shrink: 0;
    left: 130px;
    top: 48px;
    position: absolute;
    background: #D9612B;
    border-radius: 0px 5px 0px 0px;
    border: 1px solid #454545;
}
.medalBronzeSmCount {
    display: flex;
    width: 23px;
    height: 14px;
    left: 130px;
    top: 34px;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: var(--darkTextColor);
    text-align: center;
    font-family: Roboto;
    font-size: 12px;
}
.exerciseText {
    display: flex;
    width: 152px;
    height: 160px;
    left: 12px;
    top: 70px;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: var(--darkTextColor);
    font-family: Roboto;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Стиль блока с графиками */
.chart {
    height: 300px;
    border-radius: 0px;
    background: var(--userBoxColor);
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 0px;
    margin-left: auto;
    margin-right: auto;
    fill: #FFF;
    stroke-width: 1px;
    stroke: #DDD;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}

/* Стили ползунка под графиком */
.rangeBlock {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}
.rangeSelector {
    position:relative;
    width: 105%;
}
.rangeLabel {
    font-family: Roboto;
    font-size: 18px;
    font-style: normal;
}
.col-10 {
    padding-top: 3px; /* Отступ ползунка от графиков */
}

/* Подкрашивание зелёным недели, месяца и рекорда */
.success {
    color: #27A700;
}

/* Подкрашивание зелёным недели, месяца и рекорда */
.trainerSuccess {
    color: #27A700;
    text-decoration: line-through;
}

/* Разделитель между пользователями */
.devider {
    text-align: center;
    font-size: 20px;
    color: #9B9B9B;
    margin-top: 20px;
    margin-bottom: 30px;
}

.trainer {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 0px;
    margin-bottom: 10px;
}

@media screen and (min-width: 0px){
    .container {
        width: 374px;
    }
    .chart {
        width: 350px;
    }
    .rangeSelector {
        position: relative;
        width: 111%;
    }
    .offcanvas.offcanvas-end {
        width: 245px !important;
    }
    .col-6 {
        width: 170px;
        margin-left: auto;
        margin-right: auto;
        padding: 3px;
    }
    .calendarChartPart1 {
        display: none;
    }
    .calendarChartPart2 {
        display: none;
    }
    .calendarChartPart3 {
        display: inline-block;
    }
    .notInExercise{
        display: none;
    }
}

@media screen and (min-width: 554px) {
    .container {
        max-width: 554px;
        width: 554px;
    }
    .chart {
        width: 532px;
    }
    .rangeSelector {
        position: relative;
        width: 118%;
    }
    .offcanvas.offcanvas-end {
        width: 245px !important;
    }
    .calendarChartPart1 {
        display: none;
    }
    .calendarChartPart2 {
        display: inline-block;
    }
    .calendarChartPart3 {
        display: inline-block;
    }
    .notInExercise {
        display: block;
    }
}

@media screen and (min-width: 1086px) {
    .container {
        max-width: 1094px;
        width: 1094px;
    }
    .chart {
        width: 1074px;
    }
    .rangeSelector {
        position: relative;
        width: 126%;
    }
    .offcanvas.offcanvas-end {
        width: 245px !important;
    }
    .calendarChartPart1 {
        display: inline-block;
    }
    .calendarChartPart2 {
        display: inline-block;
    }
    .calendarChartPart3 {
        display: inline-block;
    }
    .notInExercise {
        display: block;
    }
}