body {
  background-color: var(--secondary-color);
  background-color: var(--primary-color);
}

.instruction_card {
  background-color: black;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

.instruction_card.show_card {
  display: flex;
}

.close_btn {
  position: absolute;
  padding: 8px 12px;
  color: red;
  border: none;
  top: 10px;
  right: 20px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  background-color: transparent;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.close_btn:hover {
  background-color: rgba(175, 252, 252,.3);
}

.instructions {
  background-color: white;
  padding: 10px;
  box-shadow: 0 0 10px rgba(19, 19, 232, 0.9);
  border-radius: 10px 10px 6px 6px;
  max-width: 600px;
  width: 100%;
  transition: all 0.3s ease;
  animation: scaleUp 0.6s ease forwards;
}

@keyframes scaleUp {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1.0);
  }
}

.instruction_card strong {
  font-size: 1.0rem;
  margin: 10px  8px;
}

.instruction_card ul {
  margin: 20px 20px 10px 20px;
  font-size: 1.0rem;
  line-height: 1.5;
}

.contact_card a {
  text-decoration: none;
  color: green;
  font-weight: 600;
}

.main_card {
  background-color: var(--secondary-color);
  margin: 20px auto;
  border-radius: 5px 5px 10px 10px;
  padding: 8px 8px 20px 8px;
  max-width: 800px;
  width: 100%;
}

.main_card h2 {
  font-size: 1.28rem;
}


.top_card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 2px 18px 2px;
  margin-bottom: 25px;
}

.top_card h3 {
  font-size: 1.22rem;
}

.close {
  border: none;
  font-size: 1.6rem;
  font-weight: 600;
  width: 30px;
  height: 30px;
  background-color: transparent;
  color: rgba(59, 56, 56, 0.5);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close:hover {
  background-color: rgba(0,0,0,.1);
}

.result {
  position: absolute;
  right: 50%;
  transform: translate(50%, -50%);
  top: 50%;
  padding: 10px 8px;
  background-color: rgb(240, 199, 34);
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.1);
  font-size: 1.04rem;
  animation: growSuddenly 0.6s ease forwards;
  margin-bottom: 10px;
  display: none;
}

@keyframes growSuddenly {
  from {
    transform: translate(50%, -100px);
  }
}

.result.errorBox, .result.success {
  display: block;
}

.dispense {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.1);
  background-color: rgba(175, 252, 252,.1);
}

.dispense p {
  font-size:  1.0rem;
  margin: 8px auto 30px 5px;
}

.dispense input {
  padding: 15px 10px;
  font-size: 1.0rem;
  margin-bottom: 20px;
  border-radius: 5px;
  color: green;
  border: 1px solid rgba(0,0,0,.1);
  outline: 0;
}

.dispense input::placeholder {
  color: rgb(62, 60, 60);
}

.categ_card {
  position: relative;
}

.categ_card input {
  width: 100%;
}

.categ_card button {
  position: absolute;
  right: 30px;
  font-size: 1.0rem;
  border: none;
  background-color: rgba(22, 20, 139, 0.1);
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  top: 37%;
  font-weight: 600;
  color: rgb(7, 7, 212);
  transform: translateY(-50%);
}

.categ_card button:hover {
  background-color: rgba(22, 20, 139, 0.4);
  color: rgb(252, 254, 252);
}

.confirm_btn {
  background-color: var(--primary-color);
  border: none;
  padding: 15px 50px;
  color: white;
  font-size: 1.0rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  margin: 15px auto 5px auto;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.confirm_btn:hover {
  background-color: rgb(7, 7, 139);
}

