* {
  margin: 0;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 0px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
h5 {
  text-align: center;
  font-weight: 400;
  padding-bottom: 20px;
  width: 100%;
}

#search {
  -webkit-appearance: none;
  height: 100%;
  font-size: 16px;
  width: 100%;
  max-width: 400px;
}
.search_container {
  width: 100%;
  height: 32px;
  margin: 20px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

button {
  -webkit-appearance: none;
  background-color: red;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  height: 100%;
  padding: 0px 20px;
}
.container {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  overflow-x: auto;
  padding-bottom: 20px;
  max-width: 100%;
}
table,
th,
td {
  border: 1px solid;
}

td {
  white-space: nowrap;
  padding: 8px;
}

table {
  height: calc(100dvh - 162px);
  display: block;
  overflow: auto;
}

#result {
  color: red;
  font-weight: bold;
  float: right;
}

/* Stick last column */
table td:last-child:not(:first-child) {
  position: -webkit-sticky;
  position: sticky;
  background: black;
  color: #fff;
  right: 0;
  text-align: center;
}

/* Stick first row */
table tr:first-child td {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: black;
  color: white;
  z-index: 100;
}
/* Highlight multi-row */
table tr:first-child td:nth-child(2),
table tr:first-child td:nth-child(4),
table tr:first-child td:nth-child(5),
table tr:first-child td:nth-child(6),
table tr:first-child td:nth-child(7),
table tr:first-child td:nth-child(11) {
  background: red;
}

/* Bold multi-column */
table td:nth-child(1),
table td:nth-child(4),
table td:nth-child(5) {
  left: 0;
  background: hsla(0, 0%, 0%, 0.2);
  font-weight: 900;
}

/* Stick multi- column */
table tr:first-child td:nth-child(1) {
  z-index: 199;
}

/* Alternate table row */
tr:nth-child(even) {
  background: hsla(0, 0%, 0%, 0.2);
}

/* Yellow highlight*/
table td:nth-child(1) {
  position: -webkit-sticky;
  position: sticky;
  background: yellow;
}
/* Alternate for yellow highlight*/
table tr:nth-child(n + 2):nth-child(even) td:nth-child(1) {
  background: rgb(227, 227, 8);
}
