body {
  font-family: Arial, sans-serif;
  padding: 20px;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #ccc;
  padding: 20px;
  background-color: hsla(313, 77%, 74%, 0.938);
  border-radius: 8px;
  color: #0729c0; 
}
h1 {
  text-align: center;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
table th, table td {
  padding: 8px;
  text-align: center;
  border: 1px solid #ccc;
}
table th {
  background-color: gray;
}
#item-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}
#item-form input {
  padding: 8px;
  width: 150px;
}
button {
  padding: 10px 20px;
  background-color: blue;
  color: white;
  cursor: pointer;
  border: 1px solid #ccc;
}
button:hover {
  background-color: rgb(141, 19, 172); 
}
.summary {
  text-align: center;
  margin-bottom: 20px;
}
#total-items, #total-amount {
  font-weight: bold;
}
#print-invoice { 
  background-color: blue;
}
#print-invoice:hover {
  background-color: rgb(141, 19, 172); 
}
#color-picker {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
#color-picker label {
  font-weight: bold;
}
#color-picker input {
  padding: 5px;
  width: 50px;
}
.section {
  display: flex;
}
.section textarea{
  padding: 0px 5px;
}
.Description{
  display: flex;
 }
 .Description textarea {
  display: flex;
  margin-top: 1px;
 }
 .new hr{
  border: default;
}
textarea {
  width: 100%; 
  height: 150px; 
  border: 2px solid #ccc; 
  border-radius: 4px; 
  font-size: 16px; 
  font-family: Arial, sans-serif; 
  resize: both; 
  box-sizing: border-box; 
}
textarea:focus {
  border-color: #66afe9; 
  outline: none; 
}
.section{
  display: flex;
}
@media print {
  textarea {
    border: none; 
    background: none; 
    font-size: 12pt; 
    width: auto; 
    height: auto; 
    resize: none; 
    display: block; 
  }
}
@media print {
  #color-picker,
  #color-picker label {
    display: none; 
  }
  button,
  th:last-child,
  td:last-child {
    display: none;
  }
  #item-form {
    display: none;
  }
  #print-invoice {
    display: none;
  }
  hr {
    display: block; 
    border: 0;
    border-top: 2px solid #ccc; 
    margin: 20px 0; 
  }
  .summary {
    display: block;
  }
.container {
  border-radius: inherit;
}
  body {
    background-color: inherit;
    color: var(--print-color, black); 
  }
  label, h1, .summary{
    color: var(--print-color, black);
  }
textarea{
  color: var(--print-color, black);
}
  .container {
    background-color: inherit; 
  }
  table th {
    background-color: inherit;
    border:inherit;
  }
h2{
  display: none;
}

  table th, table td {
    color: var(--print-color, black); 
  }
}
@media (max-width: 768px) {
  .container {
    padding: 10px;
    margin-top: 390px;
  }
  table th, table td {
    font-size: 14px;
    padding: 4px;
  }
  #item-form {
    flex-direction: column;
    align-items: center;
  } 
  #item-form input {
    width: 100%;
    margin-bottom: 10px;
  }
  button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }
  .summary {
    font-size: 14px;
  }
  table th, table td {
    font-size: 12px;
  }
  #item-form input {
    width: 100%;
    padding: 6px;
  }
}
