body {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  background-color: #111;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.5rem;
}

input,
button {
  outline: none;
}

.header {
  color: white;
  font-size: small;
  font-weight: bolder;
  display: block;
  text-align: center;
  margin: 0 0 10px 0;
  font-family: Jokerman Regular;
}

/* app container */
.app-body {
  border: 1px solid white;
  border-radius: 10px;
  padding: 20px 20px;
  width: 180px;
  min-height: 20vh;
  margin-top: 20px;
  background-image: linear-gradient(to top, goldenrod, black);
}

.outer-card {
  background-color: black;
  border: 2px solid black;
  border-radius: 5px;
  width: 177px;
  height: 105px;
}

#la-form {
  display: grid;
  align-items: center;
  justify-content: center;
}

.inner-card {
  background-color: black;
  border-radius: 5px;
  width: 180px;
  height: 35px;
  display: flex;
  justify-content: space-between;
  margin: 10px 0 10px 0;
  padding: 2% 0;
  color: white;
  font-size: 0.1rem;
  float: right;
}

.item-name {
  height: 30px;
  font-size: 0.8rem;
  margin: auto auto;
  width: 40;
  color: #888;
}

.item-name::selection {
  outline: none;
  border: 1px solid black;
}

.item-price {
  height: 30px;
  font-size: 0.8rem;
  margin: 0 auto;
  color: #888;
}

.item {
  width: 50px;
  height: 30px;
  background-color: #111;
  color: white;
  font-size: 0.8rem;
  border: 1px solid #111;
  border-radius: 5px;
  text-align: center;
  margin: 0 2%;
}

.price {
  width: 40px;
  height: 30px;
  background-color: #111;
  color: white;
  font-size: 0.8rem;
  border: 1px solid #111;
  border-radius: 5px;
  text-align: center;
}

/* buttons */
.add {
  background-color: green;
  color: white;
  border: 1px solid green;
  border-radius: 5px;
  height: 30px;
  margin: 2px 0px;
  cursor: pointer;
  transition: background-color 2s, color 2s;
  font-size: small;
  width: 33%;
  margin-left: 33%;
}

.add:hover {
  background-color: #5f5;
  color: green;
  font-weight: bolder;
  border: 1px solid green;
}

.delete-btn {
  background-color: red;
  color: white;
  border: 1px solid red;
  border-radius: 5px;
  height: 30px;
  width: 40px;
  margin: 2px 3px;
  cursor: pointer;
  transition: background-color 2s, color 2s;
  font-size: 1rem;
}

.delete-btn:hover {
  background-color: #f55;
  color: #a00;
  font-weight: bolder;
  border: 1px solid #a00;
}

.edit-btn {
  background-color: blue;
  color: white;
  border: 1px solid blue;
  border-radius: 5px;
  height: 30px;
  width: 40px;
  margin: 2px 3px;
  cursor: pointer;
  transition: background-color 2s, color 2s, box-shadow 2s;
  font-size: 1rem;
}

.edit-btn:hover {
  background-color: #55f;
  color: #00a;
  font-weight: bolder;
  border: 1px solid #00a;
  box-shadow: 0 0 20px 6x rgba(0, 0, 255, 0.1);
}

.save-btn {
  background-color: goldenrod;
  color: black;
  border: 1px solid goldenrod;
  border-radius: 5px;
  height: 30px;
  margin: 2px 3px;
  cursor: pointer;
  transition: background-color 2s, color 2s, box-shadow 2s;
  font-size: 0.5rem;
}

.save-btn:hover {
  background-color: black;
  color: goldenrod;
  font-weight: bolder;
  border: 1px solid goldenrod;
  box-shadow: 0 0 20px 6x rgba(0, 0, 0, 0.1);
}

/* total */
.total {
  display: flex;
  color: white;
}

.amount {
  background-color: #111;
  border: 1px solid #aaa;
  border-radius: 5px;
  color: white;
  font-weight: bolder;
  max-width: 47%;
  margin: 0.5rem 0 0 0.5rem;
  height: auto;
}

/* responsiveness for 768px width */

@media (min-width: 768px) {
  input,
  button {
    outline: none;
  }

  .header {
    font-size: x-large;
    font-weight: bolder;
    display: block;
    text-align: center;
    margin: 0 0 10px 0;
    font-family: Jokerman Regular;
  }

  .app-body {
    padding: 20px 20px;
    width: 425px;
    min-height: 20vh;
    margin-top: 20px;
    background-image: linear-gradient(to top, rgb(216, 160, 18), black);
  }

  .outer-card {
    width: 425px;
    height: 45px;
    padding-top: 5px;
    justify-content: space-evenly;
  }

  #la-form {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .inner-card {
    width: 425px;
    height: 35px;
    display: flex;
    justify-content: space-evenly;
    margin: 10px 0 10px 0;
    font-size: 0.3rem;
    padding: 2% 0 2% 0;
  }

  .item-name {
    height: 30px;
    font-size: 1rem;
    color: #888;
  }

  .item-price {
    height: 30px;
    font-size: 1rem;
    width: 135px;
  }

  .item {
    width: 135px;
    height: 30px;
    font-size: 1rem;
  }

  .price {
    width: 100px;
    height: 30px;
    color: white;
    font-size: 1rem;
  }

  /* buttons */
  .add {
    font-size: small;
    font-weight: bolder;
    width: 50px;
    margin: 0 1% 0 1%;
  }

  .save-btn {
    font-size: 1rem;
  }

  .save-btn:hover {
    font-weight: bolder;
  }

  /* total */
  .total {
    font-size: large;
  }

  .amount {
    font-size: larger;
    max-width: 60%;
    margin-left: 0.5rem;
  }
}
