/* :root {
  background: #eee;
  @import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:wght@300&display=swap');
  font-family: 'Chivo Mono', monospace;

  color: #222;
}

input {
  width: 90%;
  background: #222;
  color: #eee;
  border-style: solid;
  border-radius: 7px;
  border-color: #555;
  margin: 10px auto 50px auto;
  height: 30px;
  position: sticky;
  display: flex;
  align-items: center;
  top: 0;
}

table {
  width: 90%;
  justify-content: center;
  margin: auto;
  margin-top: 95px;
}

tbody {
  border: none;
}
 td {
   padding: 10px 0px 10px 10px;
   border-top: solid;
   border-top-width: 1px;
 }

 th {
   padding-bottom: 50px;
 }
 
table tr:active {
  background: yellow;
}

*/
:root {
font-family: Arial, Helvetica
}

table {
  border: 0px solid #6B6B6B;
  text-align: left;
  border-collapse: collapse;
  width:94%;
  margin:0 3%;
}
table td, table th {
border: 0px solid #6B6B6B;
  border-bottom: 2px solid #6B6B6B;
  padding: 8px 4px;
  vertical-align: top;
}



input {
  background-position: 10px 12px; /* Position the search icon */
  background-repeat: no-repeat; /* Do not repeat the icon image */
  width: 90%; /* Full-width */
  font-size: 16px; /* Increase font-size */
  padding: 12px 20px 12px 40px; /* Add some padding */
  border: 2px solid #333; /* Add a grey border */
  margin-bottom: 12px; /* Add some space below the input */
  margin:0 auto;
  position: sticky;
  display: flex;
  align-items: center;
  top: 0;
}
html, body {
  height: auto;
  overflow: visible;
}



/* wide screens only */
@media (min-width: 700px) {
  #dataframe {
    table-layout: fixed;
  }
  #dataframe th:nth-child(1),
  #dataframe td:nth-child(1),
  #dataframe th:nth-child(2),
  #dataframe td:nth-child(2) {
    width: 25%;
  }
}

css
@media (max-width: 699px) {
  #dataframe thead {
    display: none;
  }
  #dataframe,
  #dataframe tbody,
  #dataframe tr,
  #dataframe td {
    display: block;
    width: 100%;
  }
  #dataframe tr {
    border: 1px solid #555;
    border-radius: 7px;
    margin: 0 0 10px;
    padding: 6px 10px;
  }
  #dataframe td {
    padding: 2px 0;
    border: none;
  }
  #dataframe td:nth-child(1)::before { content: "Nimetus: "; font-weight: bold; }
  #dataframe td:nth-child(2)::before { content: "Ladin: ";   font-weight: bold; }
  #dataframe td:nth-child(3)::before { content: "Synonyym: "; font-weight: bold; }
  #dataframe td:empty { display: none; } /* hide empty synonym lines */
}