@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100;200;300;400;500;600&family=Inconsolata:wght@300&display=swap');
* {
    font-family: "Heebo";
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}
input, select {
    box-sizing: border-box;
}
strong {
    font-weight: bold;
}
body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}
h1 {
    text-align: center;
}
label {
    font-weight: bold;
}
.normal-text {
    font-weight: normal;
}
/* title css */
#title {
    position: relative;
    z-index: 1001;
}
#title-start {
    margin-top: 0;
    background-color: white;
    text-align: center;
    position: relative;
    z-index: 1001;
    margin-right: 0;
    display: inline;
}
#title-top {
    height: 60px;
    background-color: white;
    position: relative;
    z-index: 1001;
}
#title-container {
    position: relative;
    text-align: center;
}
.hide-overflow {
    overflow: hidden;
}
#dropdown-title {
    cursor: pointer;
    color:rgb(255, 115, 0);
    display: inline;
    position: relative;
    transition: all 0.2s linear;
}
#dropdown-title h1 {
    position: relative;
    z-index: 1002;
    display: inline;
    background-color: white;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
#title-overlay {
    background-color: white;
    position: absolute;
    height: 130px;
    left: 0;
    right: 0;
    z-index: 1001;
}
#dropdown-title h1:hover {
    color: rgb(171, 80, 5);
    border-bottom: 3px solid rgb(171, 80, 5);
}
.active-dropdown {
    color: rgb(171, 80, 5);
    border-bottom: 3px solid rgb(171, 80, 5) !important;
}
#down-caret {
    font-size: 45px;
    position: relative;
    bottom: 15px;
    right: 8px;
    pointer-events: none;
}
#dropdown-title-list {
    position: absolute;
    right: 0;
    width: 100%;
    text-align: center;
    list-style-type: none;
    background-color: white;
    border-radius: 5px;
    margin: 0;
    padding: 0;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    z-index: 1000;
    transition: top 0.5s linear;
}
.hide-dropdown {
    top: -94px;
}
.show-dropdown {
    top: 180%;
}
#dropdown-title-list li a {
    display: block;
    padding: 10px 5px;
    font-size: 27.25px;
    text-decoration: none;
    color: black;
}
#dropdown-title-list li:first-of-type a {
    border-radius: 5px 5px 0 0;
}
#dropdown-title-list li:last-of-type a {
    border-radius: 0 0 5px 5px;
}
#dropdown-title-list li a:hover {
    background-color: #e6e6e6;
}
.blank-td {
    background-color: white;
    border: none;
    width: 30%;
}
.swipe-row th {
    width: 30%;
    color: white;
    background-color: dodgerblue;
}
.inline {
    display: inline;
}
.center {
    text-align: center;
}
.left {
    text-align: left;
}
.no-margin {
    margin: 0;
}
.right {
    text-align: right;
}
.error-msg {
    color: red;
    font-size: 14px;
    display: block;
}
.invalid ~ span {
    display: block !important;
}
.large-input {
    flex-basis: 100%;
    width: 100%;
}
#user-bar {
    background-color: dodgerblue;
    color: white;
    font-size: 15px;
    position: fixed;
    z-index: 10000;
    box-shadow: 0px 10px 10px -15px #111; 
}
#logout {
    border: none !important;
    display: inline-block;
    text-decoration: none;
    background-color: #ff7300;
    cursor: pointer;
    font-size: 15px !important;
    color: white;
    padding: 8px;
    border-radius: 0 !important;
    margin: 0 !important;
    outline: none !important;
    transition: all 0.5s;
}
#logout:hover {
    background-color: #e76800;
}
.flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    position: relative;
}
.desktop-flex-row {
    flex-direction: row;
    gap: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.flex-row {
    flex-direction: row;
    gap: 40px;
}
.flex-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
h1 {
    font-size: 50px;
}
h2 {
    font-size: 30px;
}
h3 {
    margin: 0;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-container {
    width: 195px;
    border-radius: 10px;
}
.measurement-input-container {
    width: 100%;
    max-width: 250px;
    height: 80px;
    margin-bottom: 45px;
}
.measurement-input-container label {
    font-size: 20px;
    color: #ff7300;
}

#weight, .weight-form-input {
    background-color: #dddddd;
    width: 59%;
    position: relative;
    text-align: right;
    font-size: 40px;
    border: none;
    border-radius: 10px 0 0 10px;
    padding-bottom: 6px;
    float: left;
    padding: 10px 0;
    padding-right: 5%;
}
#weight:focus {
    outline: none;
}
.body-fat-percentage {
    text-align: center;
}
.body-fat-button {
    padding: 10px;
    background-color: #ff7300;
    color: white;
    cursor: pointer;
    border-radius: 30px;
}
.button-wrapper {
    position: relative;
}
.mobile-button-wrapper {
    display: none;
}
.hr {
    color: white;
    width: 85%;
    border-bottom: 2px solid white;
    margin: 3px auto;
}
.circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    color: white;
    border-radius: 50%;
    background: dodgerblue;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.5s;
    background-color: rgb(255, 115, 0);
    box-shadow: 0 0 0 4px dodgerblue;
    border: 2px solid white;
}
.average-container:hover {
    background: #ff7300;
}
.confetti-button {
    background-color: dodgerblue;
    box-shadow: 0 0 0 4px #ff7300;
}
.average {
    display: none;
}
/* popup css */
.popup-container {
    justify-content: center;
    position: fixed;
    z-index: 1100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.316);
}
.popup {
    color: black;
    width: 400px;
    max-width: 100%;
    max-height: 80vh;
    flex-grow: 0 !important;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    background-color: white;
    position: relative;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 20px;
    overflow: auto;
}
.active {
    animation: fadein 0.4s;
}
@keyframes fadein {
    0% { opacity: 0; bottom: -100px; }
    100% { opacity: 1; bottom: 0; }
}
.popup-content {
    text-align: left;
    width: 100%;
}
.edit-form {
    width: 130px;
    margin: auto;
    color: black;
}
.edit-form input:not([type=date]) {
    width: 65px;
}
.measurement-entry .edit-form {
    width: 165px;
}
.close-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
}
.close-button {
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    top: 3px;
    right: 3px;
    transition: width 0.2s, height 0.2s;
}
.close-button:hover {
    height: 17px;
    width: 17px;
}
.close-button:active {
    top: 4px;
}
.no-button, .yes-button {
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    cursor: pointer;
}
.no-button {
    background-color: rgb(152, 0, 0);
    margin-right: 40px;
}
.no-button:hover {
    background-color: rgb(95, 0, 0);
}
.yes-button {
    background-color: rgb(0, 105, 25);
}
.yes-button:hover {
    background-color: rgb(0, 73, 17);
}
#label-after {
    font-size: 40px;
    width: 36%;
    float: left;
    background-color:rgb(255, 115, 0);
    color: white;
    border-radius: 0 10px 10px 0;
    padding: 10px 0;
    text-align: center;
}
.pagination {
    list-style-type: none;
    text-decoration: none;
    margin-top: 10px;
    padding: 0;
}
.pagination li {
    float: left;
    margin: 0 6px;
}
.disabled a {
    cursor: default !important;
}
.first:hover {
    content: url("../images/first-hover.png");
}
.last:hover {
    content: url("../images/first-hover.png");
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}
.next {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}
.last {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}
.next:hover {
    content: url("../images/prev-hover.png");
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}
.prev:hover {
    content: url("../images/prev-hover.png");
}
.disabled .first {
    content: url("../images/first-disabled.png");
}
.disabled .last {
    content: url("../images/first-disabled.png");
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}
.disabled .next {
    content: url("../images/prev-disabled.png");
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}
.disabled .prev {
    content: url("../images/prev-disabled.png");
}

.paginate-footer {
    width: 100%;
    display: flex;
    position: relative;
    flex-direction: row;
    justify-content: center;
    height: 100px;
}
#item-count {
    position: absolute;
    left: 2px;
    bottom: 1px;
}
.horizontal-line {
    border-left: none;
    border-bottom: 2px solid black;
    width: 95%;
}
.history {
    overflow: hidden;
}
#table {
    margin: 25px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid dodgerblue;
}
table {
    border-collapse: collapse;
    font-size: 0.9em;
    font-family: sans-serif;
    width: 100%;
    min-width: 400px;
    position: relative;
}
thead tr {
    background-color: dodgerblue;
    color: #ffffff;
    text-align: left;
}
td {
    padding: 2px 5px;
}
th {
    padding: 12px 15px;
}
.swipe-row {
    border-bottom: 1px solid #dddddd;
    position: relative;
    left: 0px;
    transition: left 0.5s;
}
td.delete {
    position: absolute;
    padding: 0;
    right: -70px;
}
.delete-icon, .edit-button {
    padding: 10px;
}
.delete-button {
    display: inline-block;
    width: 40px;
    padding: 12px 15px;
    background-color: red;
    color: white;
    text-decoration: none;
}
.hide {
    display: none;
}
.swipe-row:nth-of-type(even) tr {
    background-color: #f3f3f3;
}
.error {
    position: relative;
    padding: 10px;
    margin: 15px auto;
    border-radius: 15px;
    border: solid 2px #960000;
    background-color: #ffadad;
    color: #960000;
    font-weight: bold;
    animation: fadein 0.5s;
}
#body-fat-submit {
    border: none;
    background-color: dodgerblue;
    color: white;
    padding: 10px;
    cursor: pointer;
}
@keyframes fadein {
    0% { opacity: 0; bottom: -100px; }
    100% { opacity: 1; bottom: 0; }
}
.body-fat-result-container {
    position: relative;
    overflow: hidden;
    width: 90%;
    height: 130px;
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}
.body-fat-result-container h3 {
    background-color: dodgerblue;
    color: white;
    border: 2px solid white;
    box-shadow: 0 0 0 4px #ff7300;
    border-radius: 30px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.5s;
    margin: 10px;
    text-align: center;
}
.body-fat-result-container h3:hover {
    background-color: #ff7300;
}
.body-fat-result {
    color: white;
    font-weight: 500;
    width: 65%;
    margin: 10px;
    border: 2px solid white;
    border-radius: 15px;
    box-shadow: 0 0 0 4px #ff7300;
    padding: 10px;
    background-color: dodgerblue;
    justify-content: center;
    align-items: center;
}
.body-fat-result label {
    font-weight: 300;
}
.running-img-container {
    width: calc(100% + 100px);
    position: absolute;
    left: -100px;
    top: 0px;
    pointer-events: none;
}
.running-img-container img {
    width: 100px;    
}
.slide-in {
    -webkit-animation: slide 2.2s forwards;
    animation: slide 2.2s forwards;
    background-color: white;
}
.swipe {
    left: -70px;
}
@-webkit-keyframes slide {
    100% { left: 100%; }
}

@keyframes slide {
    100% { left: 100%; }
}
.shake {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}
  
@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}
.hidden {
    display: none;
}
#date_entered, #date_measured, #date_calculated {
    border: none;
    background-color: #dddddd;
    border-radius: 10px;
    padding: 5px;
}
.measurements-table {
    margin: 25px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid dodgerblue;
}
.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
}
.measurement-entry {
    margin-bottom: 15px;
}
.top-row {
    background-color: #ff7300;
    color: white;
    padding: 0 10px;
}
.flex-row:nth-of-type(even):not(.top-row) {
    background-color: #f3f3f3;
}
.flex-td {
    flex-grow: 1;
}
.label-td {
    text-transform: uppercase;
    font-weight: bold;
    text-align: left;
}
.measurement-td {
    text-align: right;
}
.login-form {
    flex-direction: row;
    width: 950px;
    max-width: 100%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    margin: 0 auto 20px;
    gap: 20px;
    flex-wrap: wrap;
    padding: 25px;
    box-sizing: border-box;
}
.login-form.login {
    width: 400px;
}
.login-form input[type=submit]{
    padding: 5px 15px;
    font-size: 18px;
}
.login-form input:not([type=submit], [type=radio]) {
    width: 100%;
}
.logo {
    width: 100px;
    max-width: 100%;
}
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 5px 15px;
    background-color: #ff7300;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.back-button:hover {
    background-color: #ca5b00;
}
.left-arrow {
    width: 17px;
}
.small-input, .large-input {
    flex-grow: 1;
}
.small-input {
    flex-basis: 350px;
}
.large-input {
    flex-basis: 100%;
}
.logo-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2%;
}
.login .logo-header {
    flex-direction: column;
}
.flex-radio {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
input[type=radio] {
    margin: 7px;
}
.container {
    padding: 4% 15px;
}
@media (max-width: 990px){
    .login-form {
        width: 500px;
        max-width: 100%;
    }
}
@media (max-width: 880px){
    table {
        min-width: 300px;
    }
    .popup {
        width: 50%;
    }
}
@media (max-width: 601px){
    .desktop-button-wrapper {
        display: none;
    }
    .mobile-button-wrapper {
        display: block;
    }
    .slide-in {
        -webkit-animation: slide 1.8s forwards;
        animation: slide 1.8s forwards;
    }
    .popup {
        width: 80%;
        margin: 0;
    }
    .login-form {
        width: 100%;
    }

}