/*! GLOBAL */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-family: "Lato", sans-serif;
}
:root {
  --floralwhite: #fcf8f3;
  --lightblue: #aedadd;
  --darksalmon: #db996c;
  --lightslategray: #6e7da2;
  --red: #d72626bb;
  --green: #99c817bb;
  --transparent: rgba(0, 0, 0, 0.5);
  --gradient: linear-gradient(165deg, #6e7da2, #8badc2, #aedadd);
  --radialGradient: radial-gradient(
    circle at 50% 50%,
    #95a2c4,
    #818fb4,
    #6e7da2
  );
  --barWidth: 10%;
}

html {
  height: 100%;
}

body {
  background: linear-gradient(120deg, var(--lightblue), var(--darksalmon));
  background-repeat: no-repeat;
  height: 100%;
}

.global-container {
  width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media all and (min-width: 1024px) {
  body {
    overflow-y: hidden;
  }
  .global-container {
    width: 50vw;
    height: 90vh;
    margin: 5vh auto;
  }
  .modal {
    max-width: 49vw;
  }
}

@media all and (max-width: 350px), (max-height: 550px) {
  * {
    font-size: 14px;
  }
  .login-or {
    display: none;
  }
  .reg-paragraph {
    display: none;
  }
  .radial-container * {
    margin: 0 !important;
  }
  .input {
    padding-left: 0 !important;
  }
  .modal-edit-acc-profile {
    min-width: 310px !important;
  }
  .btn,
  .input {
    height: 32px !important;
    min-height: 32px !important;
  }
  .dropdown-options-list {
    top: 50px !important;
  }
  .dropdown-options-list-filter {
    top: 33px !important;
  }
}

@supports (-webkit-touch-callout: none) {
  .modal,
  .modal-trophy {
    height: fit-content;
    min-height: 95vh;
    overflow-y: auto;
  }
  .btn-close-model-home-tutorial {
    min-height: 48px;
  }
  .btn-close-model-home-tutorial-wrapper {
    min-height: 48px;
  }
  .modal-exit-workout {
    min-height: 60vh;
  }
}

.BG-whitish {
  background-color: var(--floralwhite);
}

.BG-gradient {
  background: var(--gradient);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.2rem;
}
h3 {
  font-size: 1.6rem;
}
h4 {
  font-size: 1.2rem;
}

p {
  text-align: justify;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/*! HELPERS */

.hidden {
  visibility: hidden;
}

.display-none {
  display: none;
}

.rotate180 {
  transform: rotate(180deg);
}

/*! ANIMATIONS */

@keyframes translateY {
  from {
  }
  to {
    transform: translateY(25%);
  }
}

@keyframes rotate {
  from {
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/*! BUTTONS */

.input {
  width: 91%;
  min-height: 48px;
  border-radius: 5px;
  padding-left: 0.5rem;
  border: 1px solid var(--lightslategray);
  color: var(--lightslategray);
}

.input-error {
  border: 1px solid var(--red);
}

.input-error::placeholder {
  color: var(--red);
}

.input:focus,
.input:active {
  outline: none;
  border: 1px solid var(--darksalmon);
}

.btn {
  min-height: 48px;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.btn:focus,
.btn:active {
  outline: none;
  border: 1px solid var(--lightslategray);
  -webkit-tap-highlight-color: transparent;
}

.btn-33 {
  width: 100%;
  margin: 0 1vw;
}

.btn-50 {
  width: 45%;
  margin: 0.5vh 0.5% 0 0.5%;
}

.btn-100 {
  width: 91%;
  margin-top: 2.5vh;
}

.btn-white {
  color: var(--lightslategray);
  border: 1px solid var(--lightslategray);
  background-color: var(--floralwhite);
}

.btn-orange {
  color: var(--floralwhite);
  border: 1px solid var(--floralwhite);
  background-color: var(--darksalmon);
}

.btn-navy {
  color: var(--floralwhite);
  border: 1px solid var(--floralwhite);
  background-color: var(--lightslategray);
}

.btn-navy:focus,
.btn-navy:active {
  outline: none;
  border: 1px solid var(--floralwhite);
}

.btn-red {
  color: var(--floralwhite);
  border: 1px solid var(--floralwhite);
  background-color: var(--red);
  opacity: var(--transparent);
}

.btn-green {
  color: var(--floralwhite);
  border: 1px solid var(--floralwhite);
  background-color: var(--green);
}

/*! HEADER */

.header {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;

  background-color: var(--lightslategray);
  color: var(--floralwhite);
}

.header-buttons {
  grid-column: 1 /2;
  justify-self: start;
  align-self: start;
  display: flex;
  padding-left: 2rem;
  margin-top: 11.5px;
}

.header-buttons-svg {
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1 /1;
  height: 1.8rem;
  cursor: pointer;
}

.back-button {
  background-image: url(./src/abadonTraining.svg);
}

.tutorial-button {
  background-image: url(./src/help_FILL0_wght400_GRAD0_opsz48.svg);
}

.logout-button {
  background-image: url(./src/profile/logout.svg);
}

.header-text {
  grid-column: 2/3;
  justify-self: center;
  color: var(--floralwhite);
  vertical-align: center;
}

/*! NAVIGATION */

.navigation {
  height: 50px;
  background-color: var(--lightslategray);
  display: flex;
}

.nav-tile {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% / 3);
  height: 100%;
  border-bottom: 2px solid var(--lightslategray);
  cursor: pointer;
}

.active path,
.nav-tile:hover path {
  fill: var(--lightblue);
}

ul > .active,
ul > .nav-tile:hover {
  border-bottom: 0px;
  border-bottom: 2px solid var(--lightblue);
}

/*! MAIN */

.main-content {
  height: 100%;
  margin: 0.5vh 5vw 2.5vh 5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: auto;
}

/*! MAIN HOME*/

.workout-parameters-container {
  display: flex;
  flex-direction: column;
}

.workout-parameters-container li {
  width: 100%;
  display: flex;
  justify-content: center;
}

.workout-parameters-text {
  text-align: center;

  color: var(--floralwhite);
}

.workout-parameters {
  display: flex;
  margin-top: 1rem;
  justify-content: center;
}

.start-container {
  height: 33%;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.start-cloud {
  background-image: url(src/START.svg);
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 2 /1;
  height: 40%;
  animation: translateY 2s cubic-bezier(0.47, 1.19, 1, 0.43) infinite alternate;
  cursor: pointer;
}

.start-button {
  background-image: url(src/Button\ start\ 3d.svg);
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1 /1;
  height: 60%;
  cursor: pointer;
}

/*! MAIN WORKOUT*/

.workout-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.progress-bar {
  width: 75%;
  height: 32px;
  border: 2px solid var(--lightslategray);
  border-radius: 10px;
  padding: 2px;
  display: flex;
  align-items: center;
}

.progress-bar::before {
  content: "";
  display: flex;
  align-items: center;
  color: var(--floralwhite);
  background: var(--gradient);
  border-radius: 7px;
  height: 1rem;
  width: var(--barWidth);
  padding: 3px;
  padding-left: 1rem;
}

.workout-card-container {
  color: var(--floralwhite);
  background: var(--radialGradient);
  width: 100%;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;
  margin: 2.5vh 0;
  border-radius: 5px;
  padding-bottom: 2.5vh;
  overflow-y: auto;
}

.exercise-YT-container {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  margin: 0.5rem;
  height: 84px;
}

.exercise-name-text {
  width: 100%;
  text-align: center;
  height: 84px;
  margin-right: calc(32px + 1rem);
  overflow-y: auto;
}

.instruct-svg-container {
  background-image: url(./src/info.svg);
  aspect-ratio: 1 /1;
  height: 32px;
  border-radius: 100%;
  margin-left: 1rem;
  cursor: pointer;
}

.muscle-text {
  margin-bottom: 0.5vh;
  text-align: center;
  color: var(--transparent);
}
.set-text {
  text-align: center;
}

.reps-weight-container {
  display: flex;
  width: 250px;
  justify-content: center;
  margin: 1vh 0;
}

.reps-container {
  width: 50%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid black;
  align-items: center;
}

.weight-container {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid var(--transparent);
}

.reps-weight-text {
  color: var(--transparent);
  margin-bottom: 0.5vh;
}

.modify-next-set-text {
  color: var(--lightslategray);
}

.red-green-btn-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-done {
  margin-top: 1vh;
}

/*! MAIN SPINNER*/

.main-spinner-container {
  height: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.spinner-wrapper {
  display: flex;
  aspect-ratio: 1 / 1;
  justify-content: center;
  align-items: center;
}

.spinner-logo {
  position: absolute;
  background-image: url(src/buddyLogoFlat.svg);
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1/1;
  width: 40vh;
  transform: scale(0.8, 0.8);
  z-index: 2;
}

.spinner-circle {
  position: absolute;
  border-radius: 100%;
  background-image: url(src/loader.svg);
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1/1;
  width: 40vh;
  z-index: 1;
  overflow: hidden;
  animation: rotate 2s cubic-bezier(0.29, 0.6, 0.54, 0.89) infinite
    alternate-reverse;
}

/*! MODAL */

.modal {
  padding: 0.5rem;
  width: fit-content;
  margin: auto;
  overflow: auto;
}

.modal-white {
  background-color: white;
  color: var(--lightslategray);
}

.modal-navy {
  background-color: var(--lightslategray);
  color: var(--floralwhite);
}

.modal::backdrop {
  background: linear-gradient(165deg, #6e7da2, #8badc2, #aedadd);
  opacity: 0.3;
}

.modal-content-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.modal-content-wrapper span {
  margin-bottom: 1rem;
}

/*! MODAL INSTRUCTION*/

.modal-instructions h2 {
  margin-bottom: 1rem;
}

.instruction-content {
  overflow-y: auto;
  max-height: 40vh;
  padding-right: 0.5rem;
  margin: 0.5rem 0;
}

.Eq-header {
  margin-top: 2vh;
}

.eq-img {
  max-height: 10vh;
  margin-bottom: 1rem;
}

/*! MODAL TROPHY*/

.trophy {
  background-image: url(src/trophy.svg);
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  min-height: 10vh;
}

.modal-trophy-finished {
  text-align: center;
  margin-bottom: 0.5rem;
}

.trophy-modal-exercise-item {
  text-align: center;
  margin-bottom: 0.5rem;
}

.trophy-modal-exercise-parameters {
  text-align: center;
}

/*! MODAL TUTORIAL HOME*/

.modal-home-tutorial {
  overflow-y: hidden;
}

.modal-home-tutorial-content {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.modal-tutorial-home-parameter {
  margin-bottom: 2vh;
}

.modal-tutorial-home-parameter h3 {
  color: var(--darksalmon);
}

.modal-tutorial-home-parameter h3,
h4 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.modal-tutorial-home-parameter li {
  list-style: disc;
  margin-left: 2.5vw;
}

.btn-close-model-home-tutorial-wrapper {
  margin-top: 0.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

/*! MODAL EXIT WORKOUT*/

.exit-workout-content {
  margin: 2rem 0;
  width: 91%;
}

/*! PROFILE VIEW */

.avatar-name-experience-container {
  display: flex;
  justify-content: center;
  align-items: start;
  height: fit-content;
  margin-top: 2rem;
}

.avatar-name-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--lightslategray);
  margin-right: 1rem;
}

.avatar {
  background-repeat: no-repeat;
  aspect-ratio: 1/1;
  height: 10vh;
  margin-bottom: 0.5rem;
}

.avatar-man {
  background-image: url(src/profile/avatar-man.svg);
}

.avatar-woman {
  background-image: url(src/profile/avatar-woman.svg);
}

.name-edit-container {
  display: flex;
}

.edit-user {
  background-image: url(src/profile/edit.svg);
  background-repeat: no-repeat;
  aspect-ratio: 1/1;
  width: 16px;
  margin-left: 0.5rem;
  cursor: pointer;
}

.experience-active-btn {
  color: var(--floralwhite);
  margin: 0;
  width: 100%;
}

.dropdown-options-list {
  background-color: var(--floralwhite);
  position: absolute;
  border: 1px solid var(--lightslategray);
  border-radius: 5px;
  padding: 0.5rem;
  width: 122px;
  top: 69px;
  z-index: 5;
}

.dropdown-options-item {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 5px;
  color: var(--lightslategray);
  -webkit-tap-highlight-color: transparent;
}

.dropdown-options-item:hover,
.dropdown-options-item:active {
  color: var(--floralwhite);
  background-color: var(--lightslategray);
  -webkit-tap-highlight-color: transparent;
}

.dropdown-options-item:first-child {
  margin-bottom: 0.3rem;
}

.parameters-meter-bmi-container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 60%;
  overflow: hidden;
  color: var(--lightslategray);
}

.user-parameters-container {
  display: flex;
  justify-content: center;
}

.bmi-meter-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  height: 15vh;
  width: 100%;
  margin-bottom: 5vh;
}

.bmi-meter {
  background-image: url(src/profile/meter-colors.svg);
  background-repeat: no-repeat;
  background-position: center;
  height: 15vh;
  width: 80vw;
}

.bmi-meter-arrow {
  position: absolute;
  background-image: url(src/profile/arrow-meter.svg);
  background-repeat: no-repeat;
  background-position: center;
  top: 2rem;
  height: 20vh;
  width: 30vw;
  min-width: 140px;
  max-width: 190px;
}

.bmi-number {
  text-align: center;
}

.dropdown-experience-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 124px;
  margin-left: 1rem;
}

.dropdown-experience-container span {
  color: var(--lightslategray);
  margin-bottom: 0.2rem;
}

.dropdown-experience-current-container {
  display: flex;
  justify-content: end;
  align-items: center;
  margin: 0;
  padding: 0 1rem;
  height: 48px;
}

.dropdown-arrow {
  background-image: url(src/profile/keyboard_arrow_down.svg);
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1/1;
  height: 100%;
  width: 16px;
  margin-left: 0.5rem;
}

.modal-edit-acc-profile {
  min-width: 345px;
}

.profile-edit-label {
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.profile-edit-form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 91%;
  margin: 1rem 0;
}

.profile-edit-form-container .input {
  width: 100%;
  margin-bottom: 0.5rem;
}

.radial-edit-container {
  width: 100% !important;
}

.modal-delete-acc {
  width: 27.5vw;
  min-width: 350px;
}

.modal-delete-acc p {
  margin: 1rem 0;
  width: 91%;
}

/*! Login VIEW */

.svg-login-register-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.login-register-container * {
  margin: 0;
}

.svg-helloagain {
  background-image: url(src/hello\ again!.svg);
  background-repeat: no-repeat;
  background-position: center;
  height: 25vh;
}

.login-register-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: fit-content;
  width: 100%;
}

.form-login {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 25vh;
  width: 100%;
  margin-bottom: 0.5rem;
}

.error-login-text {
  color: var(--red);
  width: 91%;
  text-align: center;
}

.login-or {
  color: var(--lightslategray);
}

.btn-register {
  margin-top: 0.5rem;
}

.login-footer {
  width: 75%;
  font-size: 0.8rem;
  text-align: center;
  margin: 0 auto;
  padding-top: 2rem;
  color: var(--lightslategray);
}

.test-acc-text {
  width: 91%;
  font-size: 0.8rem;
  color: var(--lightslategray);
}

.test-acc-text b {
  font-size: 0.9rem;
}

/*! Registration View */

.login-register-container-register {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: fit-content;
  height: 50vh;
  width: 100%;
}

.reg-header {
  text-align: center;
  color: var(--floralwhite);
}

.reg-paragraph,
.reg-header-h4 {
  width: 91%;
  text-align: center;
  margin: 0 auto;
  color: var(--floralwhite);
}

.radial-container {
  display: flex;
  width: 91%;
  color: var(--lightslategray);
}

.radial-container span {
  margin-right: 0.5rem;
}

.radial-container label {
  margin-right: 0.5rem;
}

.radio,
label {
  cursor: pointer;
}

.radio {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.reg-btn-man {
  margin-right: 1rem;
}

/*! HISTORY VIEW */

.filter-sort-container {
  margin-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
}

.dropdown-filter-container {
  position: relative;
}

.btn-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 1rem;
  width: 124px;
}

.btn-sort {
  width: 124px;
  margin-left: 0;
}

.dropdown-options-list-filter {
  position: absolute;
  width: fit-content;
  margin-left: 0.5%;
  z-index: 5;
  top: 49px;
  width: 123px;
}

.history-container {
  height: 100%;
  overflow: auto;
  padding-right: 0.5rem;
}

.history-list {
  height: fit-content;
}

.history-item {
  background-color: var(--lightslategray);
  border-radius: 5px;
  padding: 0.5rem;
  color: var(--floralwhite);
  margin-bottom: 1rem;
}

.workout-details-date {
  margin-right: 0.5rem;
}

.header-delete-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.svg-delete {
  scale: 0.8;
}

/*! No history view */

.no-history-container {
  margin: auto;
}

.no-history-svg {
  background-image: url(src/buddyLogoFlat.svg);
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1/1;
  width: 40vh;
  opacity: 0.8;
  transform: scale(0.8, 0.8);
}

.no-history-text {
  color: var(--lightslategray);
  text-align: center;
}

/*! START VIEW */

.start-svg-container {
  position: absolute;
  background: var(--gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  height: inherit;
  width: inherit;
  animation: fadeOut 2.5s cubic-bezier(1, -0.9, 0.9, 1) forwards;
}

.start-svg {
  background-image: url(src/buddyStartLogo.svg);
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1/1;
  width: 60vh;
  z-index: 2;
}
