

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}


  *:not(#search_item) {
    user-select: none;
  }
  body {
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: aquamarine;
  }
  input, button {
    padding: 5px 8px;
    border-radius: 10px;
    border: none;
  } 
  a {
    text-decoration: none;
    color: #a9a9e9;
    letter-spacing: 2px;
  }
  li {
    list-style: none;
  }
  ::-webkit-scrollbar {
    display: none;
  }
  textarea::placeholder {
    color: #999;
  } 
  .container {
    position: relative;
    margin: 50px auto;
    border: solid;
    width: 90%;
  }
  .container header {
    border-bottom: 3px solid;
    margin-bottom: 10px;
    position: sticky;
  }
  .container header h1 {
    font-weight: 700;
    font-size: 1.6rem;
    display: block;
    word-spacing: 6px;
    letter-spacing: 3px;
    text-align-last: center;
    padding: 10px 0;
    background: green;
    border-bottom: 1px dotted;
  } 
  .search_and_add {
    display: block;
    width: 60%;
    margin: auto;
    padding: 10px;
  }
  .search_and_new {
    display: grid;
    grid-template-columns: 65% 30%;
    grid-gap: 5%;
  }
  #search_item { 
    font-weight: 700;
    padding: 10px;
    border-radius: 0;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-bottom: 3px solid #090357;
  } 
  #add_new_product  {
    font-weight: 800;
    border: 1px solid grey;
    border: 2px solid;
  }
  #search_err_msg {
    font-size: .7rem;
    margin-left: 5%;
    letter-spacing: 2px;
    color: red;
  }
  
  main {
    max-height: 90vh;
    overflow: scroll;
  } 
  main .default_page {
    display: flex;
    flex-direction: column;
    width: 70%;
    max-width: 700px;
    margin: 20px auto;
    border: 2px dotted;
  }
  main .default_page h3 {
    padding: 1rem 0;
    text-transform: uppercase;
    border-bottom: 1px dotted;
    width: 100%;
    text-align: center;
    letter-spacing: 1px;
  }
  main .default_page ul li {
    font-size: 1.2rem;
    line-height: 1.5rem;
    font-family: monospace;
    padding: 10px;
    background-color: #bbb;
  }
  main .default_page ul li:nth-child(even) {
    background-color: #aaa;
  }
  main .default_page ul li a {
    color: blue;
    font-size: 1rem;
    padding: 0 5px;
    cursor: pointer;
  }
  main .row { 
    display: grid;
    grid-template-columns: 85% 15%;
    grid-gap: 2%;
    width: 80%;
    max-width: 900px;
    max-height: 250px;
    margin: 15px auto;
  } 
  main .row .item_container {
    border: 1px solid;
    background: #888;
  } 
  .item_container .item_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: #ccc; 
  } 
  .item_container .item_head h3 {
    text-transform: uppercase;
    font-size: .9rem;
    font-weight: 1000;
    word-spacing: 2px; 
    letter-spacing: 2px; 
    padding-left: 10px; 
  }  
  .item_container .item_head span {
    text-transform: uppercase;
    padding: 10px;
    color: #222;
    font-size: .6rem;
    font-style: italic;
  } 
  .item_container .item_head .available {
    background-color: #00fb60;
  }
  .item_container .item_head .not_available {
    background-color: #ff3300;
    cursor: not-allowed;
  }
  .item_container .item_body {
    max-height: 200px; 
    overflow: scroll; 
    padding: 5px;
  }   
  .item_body fieldset {
    margin: 10px;
  }
  .item_body legend {
    padding: 5px 15px;
    color: #fff;
    font-weight: 500;
    font-size: .7rem;
    letter-spacing: 2px;
    word-spacing: 3px;
    border: 4px solid grey;
    text-transform: uppercase;
    text-align: center;
 }
  .product_info, .producer_info {
    display: grid;
    grid-template-columns: 25% 65%;
    grid-gap: 5%;
    margin: 5px auto;
    justify-content: center;
    align-items: center;
    word-wrap: break-word;
  }
  .product_info strong, .producer_info strong {
    color: #222;
    font-size: .7rem;
    font-weight: 800;
    word-wrap: break-word;
    word-break: break-all;
  } 
  .product_info span, .producer_info span {
    background-color: #222;
    color: #bbb;
    border: 1px solid; 
    padding: 8px;
    font-size: .7rem;
    line-height: 1.2rem;
  }
  .remaining_item, .price_of_item {
    background-color: initial;
    border-bottom: 1px solid #222;
    font-weight: 1000;
    font-size: .8rem;
    color: #222;
    text-align: center;
  }
  .item_operation span {
    display: block;
    text-align-last: center;
    font-size: .7rem;
    margin: 8px auto;
    padding: 5px;
    border: .2px solid;
  } 
  .add_btn {
    background-color: green;
    cursor: pointer;
  }
  .call_btn {
    background-color: greenyellow;
  }
  .call_btn a {
    color: black;
  }
  

  /* Modal Box or Final Purchase Creation Form  */
  .animate {
    position: absolute;
    width: 90%;
    max-width: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid; 
    border-radius: 10px;
    background-color: #333;
    color: #eee;
    animation: animate 1s ease-in-out;
    padding: 10px 5px 20px 8px;
  } 
  @keyframes animate {
    from {opacity: 0;} 
    to {opacity: 1;} 
  } 
  @-webkit-keyframes animate {
    from {opacity: 0;} 
    to {opacity: 1;} 
  } 
  .animate h2 {
    text-transform: uppercase;
    padding: 5px 7px;
    font-weight: 1000;
    text-align: center;
    letter-spacing: 2px;
    word-spacing: 3px;
  } 
  .animate .table_cont {
    max-height: 350px;
    overflow: scroll;
  }
  .animate table { 
    width: 90%;
    max-height: 700px;
    font-size: .8rem;
    margin: auto 5%;
    margin-bottom: 10%;
    padding: 10px;
    border: 1px solid;
  }
  .animate table th, .animate table td {
    border: .3px solid;
    text-align: center;
  }
  .animate table thead th {
    padding: 10px;
    background-color: #04501b;
  }
  .animate table thead th:nth-child(even) {
    background-color: #033d25;
  }
  .animate table tbody td {
    padding: 8px;
    background-color: #aaa;
    color: black;
  }
  .animate table tbody tr td:nth-child(odd) {
    background-color: #222;
    color: #ccc;
  }
  .btn_class span {
    position: absolute;
    padding: 5px 10px;
    font-weight: 500;
    font-size: 1rem;
    bottom: 15px;
    border-radius: 10px;
    outline: 1px solid;
  }
  .btn_class .cancel {
    left: 10%;
  }
  .btn_class .cancel:hover {
    background-color: red;
    color: #000;
  }
  .btn_class .final_purchase {
    right: 10%;
  }
  .btn_class .final_purchase:hover {
    background-color: greenyellow;
    color: #000;
  }

  /* User Output Table */
  #user_output {
    width: 80%;
    max-width: 700px;
    max-height: 600px;
    overflow: scroll;
    border: solid;
    margin: 50px auto;
    padding: 5px 10px;
  }
  #user_output ul li {
    font-weight: 700;
    font-size: .7rem;
    margin: 5px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #777;
  } 
  #user_output ul li:first-child {
    background-color: #062706;
    color: #eee;
  } 
  #user_output ul li:nth-child(even) { 
    background-color: #999;
  }
  #user_output ul li span { 
    padding: 5px;
    margin: 5px 8px;
    text-align: center;
    text-transform: uppercase;
  } 
  #user_output ul li:first-child span { 
    font-size: .8rem;
  } 
  #user_output ul li input, #total_price {
    width: 20%;
    background: transparent;
    border-bottom: 1px solid #ddd;
    font-weight: 700;
    text-align: center;
    font-size: .6rem;
  }
  #continue_purchase {
    font-size: .8rem;
    padding: 8px;
    font-weight: 1000;
    background-color: greenyellow;
  } 
  .del_item { 
    background-color: red;
    font-size: 1rem;
    padding: 0px 5px 2px 5px;
    margin: 0 1% 0 0;
    border-radius: 50%;
    cursor: pointer;
  } 
  #total_div {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #aaa;
    padding: 8px 1rem;
    margin: 10px auto;
    border-top: 1px solid;
    border-bottom: 1px solid;
  }
  #total_div span {
    font-size: 1rem;
  }
  #total_price {
    width: 50%;
    font-size: 1.2rem;
  }


  /* Producer Section */
  .login {
    margin: 10px auto;
    width: fit-content;
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid grey;
    padding-bottom: 10px;
  }
  .login header {
    border-bottom: 2px solid grey;
    width: 100%;
    text-align: center;
    padding: 10px;
  }
  .login header h2 {
    letter-spacing: 3px;
    word-spacing: 4px;
  }
  .all_form_err_msg {
    font-size: .8rem;
    color: red;
    padding: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    word-spacing: 3px;
    text-align: center;
    width: 80%;
    margin: auto;
  }
  .login input, .login .all_form_btn {
    width: 90%;
    margin: 8px auto;
    font-weight: 600;
    font-size: .8rem; 
    padding: 10px 8px 5px 8px;
    background: transparent;
    border-bottom: 1px solid #777;
  }
  .login input:focus {
    background: #ddd;
  }
  .login .all_form_btn {
    background-color: #999;
    letter-spacing: 1px;
    word-spacing: 3px;
  }
  .login .all_form_btn:hover {
    background: coral;
  }
  .login .all_form_btn:active {
    background: lawngreen;
  }
  .quest {
    font-size: .7rem;
    text-align: center;
  } 
  .quest a {
    font-size: .7rem;
    margin-left: 5px;
    color: blue;
    cursor: pointer;
  }

  

  /* Adding New Product Form */
  .new_product_form {
    margin: 30px auto;
    width: 80%;
    max-width: 700px;
    padding: 20px;
    border: 2px solid grey;
  }
  .new_product_form fieldset {
    padding: 8px;
    margin-top: 15px;
  }
  .new_product_form header {
    text-align: center;
    padding: 5px;
    border: 2px solid #aaa;
    border-bottom: none; 
  } 
  .new_product_form header h3 {
    word-spacing: 3px;
    letter-spacing: 2px;
  }
  .new_product_form legend { 
    text-align: center; 
    padding: 5px 15px; 
    border: 1px solid;
  } 
  .new_product_form fieldset div:not(.new_product_err) { 
    padding: 8px; 
    display: grid; 
    grid-template-columns: 25% 65%; 
    grid-gap: 8%; 
    margin: 5px; 
    justify-content: space-between; 
    align-items: center;   
    border-bottom: 2px solid #999; 
  } 
  .new_product_form fieldset div:nth-child(even):not(.new_product_err) {  
    border-bottom: 2px solid #777;
  }
  .new_product_err {
    font-size: .8rem;
    text-align: center;
    color: red;
    width: 80%;
    margin: 10px auto;
    letter-spacing: 2px;
    word-spacing: 5px;
  }
  .new_product_form fieldset div input { 
    background-color: transparent;
    border-bottom: 1px solid #333;
    font-weight: 700;
    padding: 5px;
    padding-top: 10px;
    letter-spacing: 3px;
  }
  .new_product_form fieldset div label { 
    font-weight: 1000;
    font-size: .8rem;
    padding: 5px;
  }
  .new_product_form fieldset div textarea  {
    background-color: transparent;
    height: 80px;
    overflow: scroll;
    padding: 8px 15px;
    font-weight: 700;
    line-height: 1.3rem;
    letter-spacing: 3px;
  }
  .new_product_form fieldset div input:focus, .new_product_form fieldset div textarea:focus {
    background-color: #ddd;
  } 
  .new_product_form .submit_new_product_btn {
    width: 100%;
    padding: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    word-spacing: 3px;
    margin: 10px auto;
    background-color: #999;
  } 
  .new_product_form .submit_new_product_btn:hover {
    background-color: coral;
  }
  .new_product_form .submit_new_product_btn:active {
    background-color: lawngreen;
  }




  /* All Producer Credentials */
  #admin_btn_div {
    position: fixed;
    top: 20%;
    right: 0%;
    padding: 5px;
    border: .1px solid;
  }
  #admin_btn_div button {
    display: block;
    padding: 8px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    color: aqua;
    margin: 5px auto;
    background-color: #000;
  }
  #all_producer_accn_credentials {
    border: 3px solid;
    padding: 20px;
    width: 70%;
    max-width: 800px;
    margin: 30px auto;
  }
  #all_producer_accn_credentials h4 {
    text-align: center;
    background-color: lightcyan;
    padding: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    word-spacing: 3px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom: solid rgb(28, 117, 28);
  } 
  #all_producer_accn_credentials .each {
    margin: 20px auto;
    padding: 10px;
    border: 1px solid;
  }
  #all_producer_accn_credentials .each:nth-child(odd) {
    border: 1px solid #444;
  }
  #all_producer_accn_credentials .each .credential_row {
    text-align: center;
    display: grid;
    grid-template-columns: 25% 65%;
    align-items: center;
    grid-gap: 10%;
    margin: 2px auto;
    padding: 5px;
    background: #444;
    color: lightcyan;
  } 
  #all_producer_accn_credentials .each .credential_row:nth-child(even) {
    background: #333;
  }
  #all_producer_accn_credentials .each:nth-child(odd) .credential_row:nth-child(odd) {
    background: #333;
  }
  #all_producer_accn_credentials .each:nth-child(odd) .credential_row:nth-child(even) {
    background: #444;
  }
  .credential_row label {
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: 1px;
  }
  .credential_row input {
    background-color: transparent;
    color: #ddd; 
    border-bottom: 1px solid cyan;
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: 2px;
    text-align: center;
  }
  #clear_localstorage {
    display: block;
    text-align-last: center;
    margin: 10px auto;
    padding: 8px;
  }