* {
  box-sizing: border-box;
}

body {
  background-color: rgb(135, 154, 183);
}

#page_container {
  width: calc(100vw - 20px);
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto";
}

header h1 {
  font-weight: 100;
  font-size: 3rem;
  text-align: center;
  margin: 0 0;
  padding: 0 0;
}

header h2 {
  font-size: 1.75rem;
  font-weight: 500;
  padding-left: 2rem;
  margin: 0 0;
}

#meteorData {
  width: 80%;
  margin: auto;
}

#pagination {
  margin: 2rem auto;
  padding: 1rem 1rem;
  text-align: center;
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  width: calc(100% - 2rem);
  box-shadow: 0px 2px 10px rgb(55, 57, 58);
  background-color: rgb(218, 227, 242);
}

#searchControls {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#searchParams {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  font-family: "Roboto";
  font-weight: 100;
  font-size: 0.75rem;
}

#searchText,
#submitSearchText {
  font-size: 1.5rem;
  border: 1px solid rgb(218, 227, 242);
  border-radius: 5px;
  font-family: "Roboto";
  font-weight: 100;
  margin-bottom: 5px;
}

#submitSearchText {
  box-shadow: 1px 1px 2px rgb(55, 57, 58);
  background-color: rgb(218, 227, 242);
}

#searchText {
  padding-left: 0.5rem;
}

#paginationButtons button {
  font-size: 1rem;
  font-family: "Roboto";
  font-weight: 100;
  border-radius: 3px;
  box-shadow: 0px 2px 5px rgb(55, 57, 58);
  background-color: rgb(218, 227, 242);
}

#paginationButtons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
}

/* TABLE STYLES */

table {
  font-family: "Kodchasan", palatino;
  border-collapse: collapse;
  background-color: rgb(218, 227, 242);
  margin: auto;
  margin-bottom: 2rem;
  width: calc(100% - 1rem);
}

th,
td {
  padding: 5px 15px;
}

th {
  font-family: "Roboto";
  font-weight: 500;
  text-align: left;
  background-color: rgb(81, 118, 181);
  color: white;
  font-size: 0.85rem;
}

tr:nth-child(odd) {
  background-color: rgb(242, 244, 247);
}

tr {
  border: 0.25px solid rgb(206, 215, 219);
}

tr:nth-child(1) {
  border-bottom: 1.25px solid;
}

td {
  font-family: "Kodchasan", palatino;
  font-size: 0.75rem;
}

td:nth-child(6),
td:nth-child(7),
td:nth-child(8) {
  text-align: right;
}

th:nth-child(6),
th:nth-child(7),
th:nth-child(8) {
  text-align: right;
}

@media only screen and (max-width: 900px) {
  table {
    width: 500px;
  }

  td {
    font-size: 0.5rem;
  }

  #tableContainer {
    overflow: scroll;
  }
}

@media only screen and (max-width: 800px) {
  th,
  td {
    padding: 5px 5px;
  }
}

@media only screen and (max-width: 600px) {
  header {
    flex-direction: column;
  }
  #meteorData {
    width: 100%;
  }
}

@media only screen and (max-width: 475px) {
  #searchParams div {
    font-size: 0.5rem;
    display: flex;
    align-items: center;
  }
}

@media only screen and (max-width: 400px) {
  header h2 {
    font-size: 1rem;
  }

  #page_container {
    border: 2px solid black;
  }

  #pagination {
    margin: 1rem 0;
    width: 100%;
    border: 2px solid;
  }
}
