* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 62.5%;
  font-family: sans-serif;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  /* display: flex;
  align-items: center;
  justify-content: center; */
  height: 100vh;
  /* background: rgb(15, 141, 218); */
  /* background: linear-gradient(
    180deg,
    rgba(26, 143, 221, 1) 0%,
    rgba(239, 173, 221, 1) 65%,
    rgba(244, 211, 125, 1) 100%
  ); */
}

/* GENERAL MODS */

.flex-alignment {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LOGIN */

.form-container {
  background: #fff;
  width: 40rem;
  max-width: 40rem;
  margin: 1.8rem;
  padding: 3.6rem;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
}

.form-container,
.form-input,
.form-button {
  font: 500 1rem "Quicksand", sans-serif;
}

.form-hidden {
  display: none;
}

.form > *:first-child {
  margin-top: 0;
}

.form > *:last-child {
  margin-bottom: 0;
}

.form-title {
  margin-bottom: 3.6rem;
  text-align: center;
}

.form-message {
  text-align: center;
  margin-bottom: 1.8rem;
}

.form-message_success {
  color: green;
}

.form-message_error {
  color: red;
}

.form-input_group {
  margin-bottom: 1rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  border-radius: 1rem;
  border: 1px solid #ddd;
  outline: none;
  background: #eee;
  transition: background 0.2s, border-color 0.2s;
}

.form-input:focus {
  border-color: rgb(15, 141, 218);
  background: white;
}

.form-input_error {
  color: red;
  border-color: red;
}
.form-input_error_message {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: red;
}

.form-button {
  width: 100%;
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  outline: none;
  cursor: pointer;
  background: rgb(15, 141, 218);
}

.form-button:hover {
  background: rgb(10, 90, 140);
}

.form-button:active {
  transform: scale(0.98);
}

.form-text {
  text-align: center;
}

.form-link {
  color: rgb(10, 90, 140);
  text-decoration: none;
  cursor: pointer;
}

.form-link:hover {
  text-decoration: underline;
}

/* NAVIGATION */

.nav {
  width: 100vw;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 80%
  );
}

.btn,
.line-animation {
  padding: 2rem 6rem;
  cursor: pointer;
  background: white;
  border: none;
}

.btn:hover {
  background-color: #ccc;
  color: rgb(15, 141, 218);
  transition: all 0.3s;
}

.line-animation {
  color: white;
  position: relative;
  display: inline;
  cursor: pointer;
  padding: 0;
  margin: 2rem 4rem;
  background: none;
}

.line-animation::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: white;
  transform: scale3d(0, 1, 1);
  transition: transform 0.4s cubic-bezier(0.58, 0.3, 0.005, 1);
  transform-origin: 100% 50%;
}

.line-animation:hover::after {
  transform: scale3d(1, 1, 1);
  transition: transform 0.4s cubic-bezier(0.58, 0.3, 0.005, 1);
  transform-origin: 0 50%;
}

/* MAIN */

section,
footer {
  height: 100vh;
  /* background: #faebd7; */
  /* border: 1px solid black; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* scroll-snap-align: start; */
}

.started {
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 4rem;
  padding: 0 2rem;
  align-items: center;
  height: 100%;
}

.section-card {
  width: 80vw;
  height: 80vh;
  background: rgba(255, 255, 255, 1);
  border-radius: 0.4rem;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.2);
  padding: 2rem 4rem;
}

.chart-card {
  overflow-y: overlay;
}

.chart-container {
  position: relative;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#form-weight > input {
  width: 50%;
  margin-top: 0.4rem;
}

#weight-chart {
  padding: 0 8rem;
  /* width: 80%; */
}

.start-btn,
.finish-btn,
.cancel-btn {
  border-radius: 1rem;
  padding: 2rem;
  background-color: rgb(15, 141, 218);
  color: white;
  font-weight: 700;
}

.finish-btn {
  background: #2dcd70;
}

.cancel-btn {
  background-color: #ff785a;
}

.timer-tab {
  width: 100%;
}

.workout-title {
  width: 24rem;
  height: 4rem;
  font-size: 2rem;
}

.timer {
  font-size: 10rem;
}

.hidden {
  display: none;
}

/* .main {
  position: relative;
} */

.main-heading {
  font-size: 3rem;
  padding: 2rem;
}

.exercise-tab {
  height: 90%;
  overflow-y: auto;
  display: flex;
  /* align-items: center; */
  justify-content: center;
}

/* .exercise-tab::-webkit-scrollbar {
  display: none; for Chrome, Safari, and Opera
} */

.exercise-sets {
  width: 100%;
}

.exercise-list {
  list-style: none;
  width: 100%;
}

.grid-options {
  display: grid;
  grid-template-columns: 5fr 2fr;
  justify-items: center;
}

.grid-options input {
  width: 100%;
}

.grid-cats {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 1fr 1fr;
}

.grid-fills {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 1fr 1fr;
  justify-items: center;
}

/* CARD */

.card {
  width: 10rem;
  height: 10rem;
  background: brown;
  border-radius: 1rem;
  padding: 1rem;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 1rem;
}

.card-info {
  /* text-overflow: ellipsis; */
  margin-top: 1rem;
}

.hisCard {
  overflow-y: overlay;
}

.history-card {
  width: 20rem;
  background-color: antiquewhite;
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: 3fr 1fr;
  justify-items: start;
  align-items: center;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.span-across {
  grid-column: 1/ -1;
  margin-bottom: 0.6rem;
}

.history-exercise {
  margin: 0.8rem 0;
  font-size: 1.2rem;
}

/* EXERCISES */

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

/* FOOTER */

.footer {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: antiquewhite; */
  font-family: inherit;
}

.footer-wrapper {
  overflow: hidden;
  width: 100%;
}

/* fix font size */

.footer-title {
  font-size: 16rem;
  text-align: center;
  padding: 10rem 0;
  user-select: none;
}

.footer-detail {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 4rem;
  user-select: none;
}

.exercise-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  margin: 1rem 0 1rem 0;
  /* position: relative; */
}

.exercise-title {
  color: rgb(15, 141, 218);
  margin-bottom: 1rem;
  background: none;
  font-size: 1.6rem;
  width: 12rem;
  text-align: start;
}

.grid-fills {
  /* background: red; */
  padding: 0.4rem 0;
}

.add-set,
.remove-exercise,
.add-exercise,
.new-exercise {
  width: 100%;
  padding: 0.4rem;
  background: rgba(0, 0, 0, 0.1);
  color: black;
  font-weight: 700;
  margin-top: 0.4rem;
  border-radius: 0.5rem;
}

.remove-exercise {
  width: 8rem;
  background-color: #ff785a;
  color: white;
  margin: 0;
}

.add-exercise,
.new-exercise {
  background-color: rgb(15, 141, 218);
  color: white;
  padding: 0.8rem;
}

.add-exercise.btn {
  width: 60%;
}

input,
.grid-fills button {
  width: 6rem;
  text-align: center;
  border-radius: 0.5rem;
  outline: none;
  border: none;
  /* background: rgba(0, 0, 0, 0.1); */
  font-weight: 700;
  cursor: pointer;
}

input,
.mark-as-done {
  background: rgba(0, 0, 0, 0.1);
}

.grid-fills button {
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-fills ion-icon {
  pointer-events: none;
}

.marked {
  background-color: rgba(45, 205, 112, 0.2);
}

.changed {
  background: none;
}

.set-input {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.marked-btn {
  background-color: #2dcd70;
  color: white;
}

.test {
  color: red;
  background-color: red;
}

.header-title {
  font-size: 1rem;
}

.alt {
  color: red;
}

.main-exercises {
  position: relative;
}

.modal {
  width: 80vh;
  height: 50vh;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: yellow;
}

.welcome-morning {
  background: linear-gradient(
    180deg,
    rgba(26, 143, 221, 1) 0%,
    rgba(239, 173, 221, 1) 65%,
    rgba(244, 211, 125, 1) 100%
  );

  background-attachment: fixed;
}

.welcome-afternoon {
  background: linear-gradient(
    180deg,
    rgba(19, 132, 227, 1) 0%,
    rgba(105, 212, 255, 1) 75%,
    rgba(255, 255, 255, 1) 100%
  );

  background-attachment: fixed;
}

.welcome-evening {
  /* background: linear-gradient(
    180deg,
    rgba(29, 25, 104, 1) 0%,
    rgba(33, 33, 155, 1) 35%,
    rgba(0, 143, 255, 1) 100%
  ); */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(52, 14, 157, 1) 60%,
    rgba(82, 144, 255, 1) 100%
  );

  background-attachment: fixed;
}

.welcome-user,
.welcome-message {
  font-weight: 700;
  font-size: 4rem;
  color: white;
  font-family: "M PLUS Rounded 1c", sans-serif;
}

.welcome-message {
  font-size: 2rem;
  font-family: "Roboto", sans-serif;
}

option {
  text-align: center;
}

.workout-container {
  display: grid;
}

.presets {
  /* background: white; */
  display: flex;
}

.preset-group {
  background-color: white;
  width: 10rem;
  height: 10rem;
  padding: 1rem;
  border-radius: 10%;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  margin: 2rem;
}

.preset-title {
  color: rgb(15, 141, 218);
}

.preset-exercises {
  color: #777;
}
.preset-previous {
  color: #bbb;
}

.welcome-container {
  background-color: rgba(0, 0, 0, 0);
  box-shadow: none;
}

.weather-container {
  /* width: 200rem; */
  display: flex;
  /* flex-direction: column; */
  /* align-items: stretch; */
  overflow-x: scroll;
  margin: 4rem 0;
  /* border: 0px; */
}

.section-card.welcome-container {
  border: none;
}

.weather-group {
  width: 6rem;
  height: 10rem;
  border-radius: 1.5rem;
  background-color: rgba(0, 0, 0, 0.25);
  color: white;
  display: grid;
  grid-template-rows: 1fr 2fr 1fr;
  justify-items: center;
  align-items: center;
  padding: 1rem;
  margin: 0 1rem;
}

.weather-time {
  display: block;
  height: 1rem;
  /* margin-bottom: 1rem; */
  font-weight: 600;
}

.weather-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: antiquewhite;
  /* padding: 1.4rem 0; */
}

.weather-temp {
  /* margin-top: 0.5rem; */
  font-weight: bold;
}

.hidden {
  display: none;
  position: absolute;
}

/* .food-container {
  height: 90%;
} */

.food-heading {
  display: flex;
  justify-content: space-between;
}

.food-diary {
  /* background: green; */
  width: 100%;
}

.food-scroll {
  /* display: block; */
  overflow-y: overlay;
}

a,
td {
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 300;
  text-align: center;
  /* padding-left: 2rem; */
  background-color: #eee;
}

.nav a {
  color: white;
  background: none;
  font-size: 1.6rem;
}

.nav .header-title a {
  color: #000;
}

.meal-header {
  background-color: white;
  height: 3rem;
}

.primary {
  width: 45%;
  font-size: 2rem;
  font-weight: 700;
  color: rgb(15, 141, 218);

  text-align: start;
}

.alt {
  background-color: white;
}

.nutrient {
  background-color: rgb(15, 141, 218);
  text-align: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
}

.delete {
  /* background-color: white; */
  cursor: pointer;
  width: 4rem;
}

.delete-btn {
  /* vertical-align: bottom; */
  /* text-align: justify; */
  z-index: -1;
  pointer-events: none;
}

.add-food {
  border: none;
  cursor: pointer;
  background-color: white;
  color: rgb(15, 141, 218);
}

.meal-summary td {
  padding-bottom: 1rem;
  background-color: white;
  color: rgb(15, 141, 218);
  font-weight: 600;
}

.weather-container {
  padding-bottom: 1rem;
}

.weather-container::-webkit-scrollbar {
  height: 5px;
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
}

.weather-container::-webkit-scrollbar-track,
.exercise-tab::-webkit-scrollbar-track,
.food-scroll::-webkit-scrollbar-track {
  box-shadow: inset 0 0 0px rgba(0, 0, 0, 0);
}

.weather-container::-webkit-scrollbar-thumb {
  height: 5px;
  background-color: rgb(15, 141, 218);
  border-radius: 1rem;
}

.weather-container::-webkit-scrollbar-thumb:hover,
.exercise-tab::-webkit-scrollbar-thumb:hover,
.food-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgb(15, 141, 218);
}

.weather-container::-webkit-scrollbar:vertical {
  display: none;
}

.exercise-tab::-webkit-scrollbar,
.food-scroll::-webkit-scrollbar {
  width: 5px;
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
}

.exercise-tab::-webkit-scrollbar-thumb,
.food-scroll::-webkit-scrollbar-thumb {
  width: 5px;
  background-color: rgb(15, 141, 218);
  border-radius: 1rem;
}

.section-card {
  border: 4px solid white;
}

.search-bar {
  width: 70%;
}

/* .exercise-tab::-webkit-scrollbar:vertical {
  display: none;
} */

/* .exercise-tab::-webkit-scrollbar{

} */

.preset-group:hover {
  transform: scale(1.05);
  box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, 0.25);
  transition: all 0.3s;
}

.wi {
  color: white;
  font-size: 2rem;
}
