*,
*::after,
*::before {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #f5f5f5;
}

.hidden {
  display: none;
}

body {
  font-family: "Dosis", sans-serif;
  line-height: 1.5;
  font-size: 1rem;
  color: #333;
  background-color: #f5f5f5;
}

/* header */
.header {
  background-color: #7f27ff;
}

/* bmr modal */
.modal-content {
  background-color: #b7c9f2;
}
.modal-header {
  justify-content: center;
  color: #9f70fd;
  font-size: 2rem;
}
.modal-footer {
  justify-content: center;
}

.modal-footer .button {
  background-color: #9f70fd;
  width: 9rem;
}

h5 {
  font-size: 1rem;
  color: #333;
  border-bottom: 0.3px dotted;
}
.results {
  margin: 2em 1em 0 2em;
  display: flex;
  justify-content: space-between;
  column-gap: 1em;
}
.results > div {
  margin-bottom: 0;
}

.w-100 {
  width: 100%;
}
.w-50 {
  width: 50%;
}
/* Calorie Limit Modal*/
#limit-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#limit-form input {
  padding: 0.5rem 3rem;
  text-align: center;
}

#limit-form .button {
  background-color: #9f70fd;
  padding: 0.5rem 1rem;
  width: 100%;
}

/* dashboard */

.stats .card {
  border: 1px solid #1b1b1b;
  box-shadow: 6px 6px 0px #1b1b1b;
}
/* progress-bar */
.progress-bar {
  background-color: #7f27ff !important;
}

/* buttons */
.button {
  background-color: transparent;
  border: 0.4px solid;
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  color: #f5f5f5;
  border-radius: 1rem;
}

.button:hover {
  transform: scale(1.02);
}
.btn-search {
  background-color: #333;
  border: none;
  color: #ffffff;
  margin-top: 10px;
  padding: 16px 24px;
  border-radius: 1rem;
}

#searchT {
  margin-top: 10px;
  padding: 16px 24px;
  border: 1px solid #888888;
  border-radius: 1rem;
  transition: 0.2s;
}

.addMealButton {
  background-color: #7f27ff;
  padding: 0.5rem 1rem;
  width: 100%;
  border: none;
  border-radius: 0.4rem;
}

.addMealButton:hover {
  transform: scale(1.01);
}

.addButton {
  background-color: #7f27ff;
  border: none;
  border-radius: 0.4rem;
  width: 10rem;
}

.btn {
  background-color: #7f27ff;
}

.btn:hover {
  transform: scale(1.01);
  background-color: red;
}

.btnCalories {
  background-color: #9f70fd;
  color: #ffffff;
}

/* api table */

tbody,
td,
tfoot,
th,
thead,
tr {
  border: none;
  vertical-align: middle;
}

.table input {
  margin-top: 1rem;
  color: #1b1b1b;
  width: 5rem;
  border: 1px solid #888888;
  border-radius: 0.5rem;
}
.cart-header {
  font-weight: bold;
  font-size: 1.2rem;
  padding-right: 2px !important;
  padding-bottom: 10px !important;
  background-color: #f1eeea !important;
  border-bottom: 1px dotted #333;
  text-align: center;
}

td {
  background-color: #f1eeea !important;
  text-align: center;
}

.mealHeader {
  border-left: 0.2rem solid #9f70fd;
  border-bottom: 0.4rem solid;
}
.workoutHeader {
  border-left: 0.2rem solid #6c757d;
  border-bottom: 0.4rem solid;
}

/* add meal/workout background  */

.form-background {
  border: 1px solid #1b1b1b;
  box-shadow: 6px 6px 0px #1b1b1b;
  background-color: transparent;
  background-color: #f1eeea;
}

@media (max-width: 575.98px) {
  .headerButtons {
    display: flex;
    flex-direction: column;
  }

  .headerButtons button {
    margin-top: 1rem;
  }

  .col-sm-3 {
    margin-top: 1rem;
  }
  .workoutHeader {
    margin-top: 1rem;
  }

  .borderK {
    border-top: 2px solid #1b1b1b;
  }
}

@media (min-width: 766px) and (max-width: 820px) {
  p {
    font-size: 0.9rem !important;
  }

  h2 {
    font-size: 0.9rem;
  }
}
