* {
    box-sizing: border-box;
}

body {
    height: 0px;
    margin: 0;
    padding: 0;
    background-color: rgb(49, 50, 49);
    color: rgb(242, 199, 77);
    font-size: 14px;
    user-select: none;
}


.login {
    position: fixed;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    flex-direction: column;
    background-color: #0000006b;
    backdrop-filter: blur(20px);
    z-index: 100;
}

.login .window {
    margin-top: 150px;
    height: 130px;
    width: 350px;
    padding: 10px;
    color: var(--title-color);
    background: var(--panel-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
}

.login .window .login-title {
    font-size: 22px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.login .window .login-buttons {
    display: flex;
    font-size: 22px;
    justify-content: space-around;
}

.login .window .login-buttons .button {
    height: 40px;
    width: 120px;
    padding: 5px;
    color: var(--text-color);
    background: var(--border-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.login .window .login-buttons .button:hover {
    background: var(--logo-color);
    border-radius: 5px;
}

/* HEADER */
.header {
    margin-top: -20px;
    width: 100%;
    height: 100px;
    position: fixed;
    overflow: hidden;
    padding: 12px 0 0 0;
}

.header .wave {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 50%;
    width: 200%;
    height: 100px;
    background: var(--panel-color);
    opacity: 0.7;
    border-radius: 100%;
    animation: wave 8s infinite linear;
}

.header .wave:nth-child(2) {
    animation-delay: -2s;
    opacity: 0.6;
}

.header .wave:nth-child(3) {
    animation-delay: -4s;
    opacity: 0.4;
}

.header .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* NAV */
.header .nav-menu nav {
    max-width: 800px;
    width: 100%;
    display: flex;
    position: relative;
    color: var(--logo-color);
    font-size: 20px;
    font-weight: bold;
    z-index: 100;
    justify-content: space-around;
}

.header .nav-menu nav * {
    height: 35px;
    padding: 13px 12px 3px 12px;
    transition: 0.3s ease;
    border-radius: 0px;
}

.header .nav-menu nav .shine {
    display: flex;
    height: 60px;
    padding-top: 15px;
    background: var(--title-color);
    border: 0px solid var(--border-color);
    border-radius: 0 0 20px 20px;
    color: var(--panel-color);
    align-items: flex-end;
    padding-bottom: 10px;
}
/* END HEADER */


/* MAIN */
main {
    position: absolute;
    padding-top: 90px;
    overflow: hidden;
    width: 100%;
    z-index: -1;
}
main .container {
    display: flex;
    width: 100%;
}

main .container .slide {
    min-width: 100%;
    max-width: 100%;
    padding: 5px;
    contain: content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main .container .slide .content {
    max-width: 800px;
    color: white;
    width: 100%;
}

.big {
    max-width: 800px;
}

.mid {
    max-width: 400px;
}

.flex-down {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: column;
    width: 100%;
}

.flex-right {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: row;
}

.flex-center {
    justify-content: space-evenly !important;
}
/* END MAIN */



.generated {
    position: relative;
}
  
.generated .info {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}
  
.generated:hover .info {
    visibility: visible;
    opacity: 1;
}

.stats {
    font-size: 18px;
    display: flex;
    flex-direction: column;
}

title {
    font-size: 20px;
    border-bottom: 1px solid var(--border-color);
    padding: 7px 7px 0 7px;
    margin: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
}

.to-right {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

@keyframes wave {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* main {
    display: flex;
    padding-top: 90px;
    flex-direction: row;
    flex-wrap: nowrap;
} */

main .panel {
    width: 100vw;
    contain: content;
    border: 1px solid black;
    transition: 1s;
}

main .active {
    width: 100vw;
}


.collapse {
    /* height: 300px; */
    contain: content;
    border-bottom: 2px solid var(--border-color);
    transition: 1s;
}



.data-item {
    margin-bottom: 10px;
}

table {
    width: 100%;
    max-width: 800px !important;
    border-collapse: collapse;
    font-weight: bold;
    font-size: 16px;
}

.name {
    width: 100%;
}

th, td {
    border: 1px solid rgb(49, 80, 90);
    padding: 8px;
    text-align: left;
}

th {
    background-color: rgb(49, 50, 90);
}

.flex {
    display: flex;
}

.vertical-text {
    width: 30px;
    max-width: 30px;
    position: relative;
    text-align: center;
    color:#a1a1a1;
    transform: rotate(270deg);
    margin: 0px;
    padding: 0px;
    font-size: 13px;
    z-index: -2;
}

.calendars .calendarDay {
    height: 40px;
}

.calendars .calendarBox {
    display: flex;
}

.calendars .calendarBox .activSum {
    width: 100%;
    padding: 1px 2px 0 0;
    contain: content;
    text-align: right;
    font-size: 15px;
    font-weight: lighter;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}
.calendars .training {
    outline: 1px solid var(--calendar-color);
    outline-offset: -1px;
    background: var(--bodyL-color);
}

.trainingDate {
    border-right: 1px solid var(--calendar-color);
    border-bottom: 1px solid var(--calendar-color);
    background: var(--bodyL-color);
}

.calendars td {
    padding: 0px;
    align-content: flex-start;
    width: 14% !important;
    max-width: 14%;
    height: 70px;
}

.calendars th {
    text-align: center;
    width: 14% !important;
    max-width: 14%;
}

date {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    padding: 2px;
    height: 22px;
    width: 22px;
    background: var(--title-color);
    justify-content: center;
}

.todayB {
    outline: 1px solid var(--panel-color) !important;
}

.today {
    background: var(--panel-color);
    color: var(--body-color);
    font-weight: bold;
}

activ {
    min-height: 30px;
    width: 100%;
    padding: 5px 2px 5px 2px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 1px dotted var(--calendar-color);
}

activ .activity {
    color: var(--text-color);
    font-size: 14px;
    font-weight: lighter;
}

kmh::after {
    font-size: 12px;
    content: " km/h";
}

km::after {
    font-size: 12px;
    content: " km";
}

kcal::after {
    font-size: 12px;
    content: " kcal";
}

hour::after {
    font-size: 12px;
    content: " h";
}

litr::after {
    font-size: 12px;
    content: " litra";
}

/* For mobile phones: */
@media only screen and (max-width: 800px) {
	body { font-size: 12px; }
    .header .nav-menu nav { font-size: 16px; }
    table { font-size: 11px; font-weight: normal; }
    th { font-size: 9px; }
    th, td { padding: 3px 2px 3px 2px; }
    .vertical-text { font-size: 8px; }
    kmh::after { font-size: 5px; }
    km::after { font-size: 5px; }
    kcal::after { font-size: 5px; }
    litr::after { font-size: 5px; }
    hour::after { font-size: 5px; }
    .task { font-size: 10px; font-weight: normal !important;}
    .task .task-data .data .small { font-size: 7px; }
    .task-user { max-width: 100px; max-height: 100px; }
    .task-user-info { font-size: 10px !important; }
    title { font-size: 12px; }
    #PopularDiagram {
        width: 130px !important;
        height: 130px !important;
    }
    #userCanvas {
        height: 150px !important;
    }
    date { font-size: 12px; }
    .title-name { font-size: 8px; padding: 0px; margin: 0px;}
    .calendars .calendarDay { width: 20px !important; }
    .calendars .calendarBox .activSum { font-size: 9px; }
    .calendars activ .activity { font-size: 9px; font-weight: lighter;}
    .calendars td { height: 50px; }
}

#PopularDiagram {
    margin-top: 15px;
    border: 0px solid black;
    width: 250px;
    height: 250px;
}

#userCanvas {
    border: 0px solid black;
    width: 100%;
    height: 250px;
}



.task {
    width: 100%;
    display: flex;
    margin-bottom: 15px;
    flex-direction: column;
    font-weight: bold;
    flex: 1;
}

.task .task-data {
    width: 100%;
    display: flex;
}
.task .task-data .time {
    color: var(--body-color);
    width: 100px;
    padding: 5px;
    border-radius: 10px 0 0 10px;
    background: var(--panel-color);
    align-content: center;
    text-align-last: center;
}
.task .task-data .data {
    display: flex;
    padding: 5px;
    width: 100%;
    border: 1px solid var(--border-color);
    flex-direction: row;
    justify-content: space-between;
}
.task .task-data .data .row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.task .task-data .data .small {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.task .task-data .data .row div {
    flex: 1;
}


.task .task-bar {
    background: var(--border-color);
    border-radius: 0 0 5px 5px;
    margin-left: 40px
}

.task .task-bar .bar {
    background: var(--calendar-color);
    height: 18px;
    border-radius: 0 5px 5px 5px;
}

.task .task-bar .bar .bar-value {
    padding: 2px 2px 2px 5px;
    position: absolute;
}

.task-user {
    height: 150px;
    width: 150px;
    padding: 2px 2px 2px 5px;
    color: var(--body-color);
    background: var(--panel-color);
    border-radius: 50%;
    margin-left: 15px;
    align-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
}

.task-user-info {
    padding: 2px 2px 2px 5px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    color: var(--calendar-color);
}

.task-user .userN {
    
}

.task-user .userP {
    font-size: 25px;
}