/* google font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;800&family=VT323&display=swap");

* {
  box-sizing: border-box;
}

body {
  background: #f1f1f1;
  margin: 0;
  font-family: "Poppins";
}
header {
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.main {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-gap: 100px;
}

/* input and button style */

input {
  width: 80%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 1em;
}

button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #1aac83;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
}

/* rounded row table style */

.cus-table {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 15px;
  width: 100%;
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}
th {
  padding: 10px;
  text-align: left;
}
tr {
}
td {
  padding: 10px;
  text-align: center;
}
#sum-total {
  border-top: 2px solid #ccc;
  padding-top: 10px;
  text-align: right;
  font-weight: bold;
  font-size: 16px;
}
/* table header */

@media all and (min-width: 480px) and (max-width: 768px) {
  .main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media all and (max-width: 480px) {
  .main {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 0px 10px;
  }
  .cus-table {
    width: 350px;
    overflow-x: auto;
  }
  input {
    width: 320px;
  }
  button {
    display: block;
  }
}
