:root {
  --fuente-p: "Caveat", cursive;
}

* {
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 62.5%;
}

body {
  margin: 0;
  background: Cornsilk;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0 !important;
  padding: 0 !important;
}

input,
button,
textarea,
select {
  background: none;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
  font-family: var(--fuente-p);
}

input:focus {
  outline: none;
}

/*-- End of generals styles --*/
/*-- start utilities styles --*/
/* .aling--right {
  text-align: right;
} */

/*--- Start of header styles ---*/
.header,
.container {
  width: 90%;
  margin: 0 auto;
}

.header__container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__logo {
  width: 45rem;
  margin: 3.5rem 0;
}

/*-- styles the Form --*/
.form__container {
  width: 70%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.form__item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-right: 0rem;
}

.form__label {
  width: 100%;
  font-size: 4.5rem;
  font-family: var(--fuente-p);
  font-weight: 600;
  color: black;
  margin-bottom: 1.5rem;
}

.form__input {
  width: 100%;
  height: 4.5rem;
  border-bottom: 0.3rem solid black;
  font-family: var(--fuente-p);
  font-weight: bold;
  font-size: 4rem;
  padding: 0rem 0 0 2rem;
}

.form__input::placeholder {
  color: darkslategray;
  font-size: 4rem;
  font-family: var(--fuente-p);
}
.form__btn {
  cursor: pointer;
  background: limegreen;
  width: 30%;
  margin-left: 70%;
  color: white;
  padding: 2rem 0;
  border-radius: 1rem;
  filter: drop-shadow(0.3rem 0.3rem 0.2rem rgb(14, 87, 14));
  transition: transform 0.3s;
}
.form__btn:hover {
  transform: scale(1.05);
}
.error {
  width: 50%;
  margin: 2rem auto;
  background: rgb(129, 1, 1);
  border-radius: 1rem;
  box-shadow: 0.6rem 0.6rem 1.5rem rgb(92, 2, 2);
  color: white;
  font-size: 2rem;
  text-align: center;
  padding: 2rem 0;
}

/*-- styles the list--*/
.list {
  margin: 5rem 0;
}
.list__container {
  width: 65%;
  margin: 5rem auto;
}
.list__cards {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-family: var(--fuente-p);
  padding: 2rem;
  margin-bottom: 2.5rem;
  background: #fafafa;
  border: 0.4rem solid brown;
  border-radius: 1rem;
  box-shadow: 0.6rem 1.2rem 2.5rem rgba(0, 0, 0, 0.35);
  transition: transform 0.3s;
}
.list__cards:hover {
  transform: scale(1.05);
}
.list__cards-title,
.list__cards-cantidad {
  font-size: 4rem;
  font-weight: 600;
}

.list__btn {
  cursor: pointer;
  margin-left: 2rem;
  transition: transform 0.3s;
}
.list__btn:hover {
  filter: drop-shadow(0.3rem 0.4rem 0.2rem rgba(0, 0, 0, 0.308));
  transform: scale(1.05);
}
.list__btn--red {
  color: #810000;
}
.list__btn--green {
  color: #008101;
}
.list__btn--blue {
  color: #00008b;
}

/*-- styles the fotter --*/

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 1.8rem;
  text-align: center;
  margin-top: 5rem;
  padding-bottom: 3rem;
}
/*--media query--*/
@media (max-width: 970px) {
  .form__container {
    width: 100%;
    flex-direction: column;
    gap: 2rem;
  }
  .form__item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .form__label {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .form__input {
    width: 100%;
  }
  .form__btn {
    width: 100%;
    background: limegreen;
    color: white;
    padding: 1.2rem 0;
    margin-left: 0;
    border-radius: 1rem;
  }
  .form__btn:hover {
    transform: scale(1.05);
  }
  .aling--right {
    text-align: left;
  }
  .list__container {
    width: 90%;
  }
}
@media (max-width: 500px) {
  .error {
    width: 90%;
    font-size: 1.4rem;
  }
  .form__label {
    font-size: 3rem;
  }
}
@media (max-width: 420px) {
  .form__label {
    font-size: 2.5rem;
  }
  .header__logo {
    width: 30rem;
    margin: 3.5rem 0;
  }
  .list__cards {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
  }
  .list__cards-title,
  .list__cards-cantidad {
    font-size: 3.8rem;
  }
  .list__btn {
    text-align: right;
    margin-left: 0;
    margin-right: 4rem;
    margin-top: 1.5rem;
  }
}
