/* Common styles for both desktop and mobile */
body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  margin: 20px;
  max-width: 1200px;
  margin-left:auto;
  margin-right:auto;
  background: rgb(255, 255, 255);}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
.header-title {
  display: inline-flex;
  vertical-align: middle;
  }
h1 {
  color: #333;
  text-align: center;
}

table {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 15vh;
}
#search {
  font-size: 1.5em
}
table, th, td {
  border: 1px solid #ccc;
  padding: 8px;
}
tr:nth-child(even) {
  background-color: #f3f3f3; /* Cinza claro para linhas pares */
}

tr:nth-child(odd) {
  background-color: #fff; /* Branco para linhas ímpares */
}
button {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: bold;
  font-size: 1em;
  color: #0081ff;
  padding: 0.2em 0.5em;
  border-radius: 0.5em;
  align-items: center;
  border: 0px;
  background-color: #e9e9e9;
}
button:hover {
  color: #e9e9e9;
  background-color: #0081ff;
}

input[type="text"] {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 8px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}
.material-symbols-outlined {
  display: inline-flex;
  font-size: 80%;
  vertical-align: middle;
  color: rgb(110, 110, 110);
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 48
} 
#pagination {
  position: fixed; /* Fixa o elemento no viewport */
  text-align: center;
  font-weight: bold;
  height: 8vh;
  bottom: 0px; /* Distância do fundo da página */
  left: 50%; /* Centraliza horizontalmente */
  transform: translateX(-50%); /* Centraliza horizontalmente */
  z-index: 1; /* Coloca o elemento acima da tabela */
  background-color: #fff; /* Define a cor de fundo */
  padding: 10px 20px; /* Espaçamento interno */
  border-radius: 5px; /* Borda arredondada */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
}

/* Reduce padding on pagination buttons */
#pagination button {
  font-family: 'Roboto', Arial, sans-serif;
  /* text-align: center; */
  padding: 1em;
  font-size: 1em;
  font-weight: bold;
}
#pagination button.disabled {
  opacity: 0.1;
  color: red;
  pointer-events: none;
}

thead th{
  background-color: #f3f3f3;
}
/* Styles for night mode */
body.night-mode tr:nth-child(even) {
  background-color: #686868; /* Cinza claro para linhas pares */
}

body.night-mode tr:nth-child(odd) {
  background-color: #333; /* Branco para linhas ímpares */
}
body.night-mode {
  background-color: #333;
  color: #f7f7f7;
}

body.night-mode h1 {
  color: #f7f7f7;
}

body.night-mode #search {
  color: #ffffff;
  background-color: #808080;
  border: 5px;
  border-color: #ffffff
}


body.night-mode table {
  border-color: #555;
}

body.night-mode #pagination {
  background-color: #333;
}
body.night-mode thead th{
  background-color: #202020;
}
body.night-mode th button {
  color: #4489d9;
  background-color: #262626;
}
body.night-mode th button:hover {
  color: #262626;
  background-color: #4489d9;
}
body.night-mode button {
  color: #4489d9;
  background-color: #262626;
}
body.night-mode button:hover {
  color: #262626;
  background-color: #4489d9;
}
body.night-mode th, body.night-mode td {
  border-color: #555;
}
#title-image {
  text-align: center;
  margin-bottom: 20px;
}

#title-image img {
  width: 20%;
  max-width: 200px;
  display: block;
  margin: 0 auto;
}
/* Mobile-specific styles */
@media screen and (max-device-width: 900px) {
  /* Adjust font size and line height for better readability */
  body {
    font-size: 2em;
    line-height: 1.2em;
  }
  h1 {
    font-size: 2em;
  }
  input[type="text"] {
  font-size: 1em;
  }
  /* Adjust table layout for mobile */
  table {
    display: table;
    font-size: 2.2rem;
    line-height: 2.5rem;
    font-weight: bold;
    width: 100%;
  }

  th, td {
    white-space: normal;
    word-wrap: break-word;
    max-width: 200px;
  }

  /* Center align table header buttons */
  th button {
    display: block;
    width: 100%;
    padding: 0px;
    border: 0px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
  }
  #items-per-page {
    font-size: 0.8em;
  }
  #pagination {
    width: 100%;
  }
  #page-num {
    text-align: center;
    font-size: 1.2em
  }
  /* Reduce padding on pagination buttons */
  #pagination button {
    /* padding: 1em; */
    /* text-align: center; */
    font-size: 1.4em;
  }
}
