body {
  background-color: #000000;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  font-family: "Ubuntu", sans-serif;
  background-image: url('../imgs/fundo.png');
  background-size: cover;
  background-position: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url('../imgs/fundo.png') repeat-y center top;
  background-size: cover;
}

main {
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centraliza horizontal */
  justify-content: center;
  /* centraliza vertical */
  gap: 20px;
  /* espaço entre as tabelas */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bruno Ace", cursive;
}

/* -------------------------------------------------------------------- */

header {
  padding-top: 2rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

header h1,
header h5,
header p {
  margin: 0;
  text-align: center;
}

header p a {
  text-decoration: none;
  color: inherit;
}

header p a:hover {
  color: #ffffff
}

header h1 {
  font-size: 3.5rem;
}

header h1 span {
  transition: color 200ms linear;
}


header p {
  margin-top: 0.5rem;
  color: #cbd5e1;
  font-size: 20px;
}

header h5 {
  font-size: 14px;
  color: #8084ad;
  font-weight: 400;
}

/* -------------------------------------------------------------------- */

table {
  border-collapse: collapse;
  border-radius: 16px;
  width: 100%;
  background-color: transparent;
}

thead {
  text-align: center;
}

table,
th,
td {
  border: 1px solid #334155;
}

th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: #e2e8f0;
  border-bottom: 2px solid #334155;
}

td {
  padding: 6px 10px;
  border-bottom: 1px solid #334155;
  color: #cbd5e1;
  text-align: center;
}

th:first-child,
td:first-child {
  width: 80px;
}

th:last-child,
td:last-child {
  width: 60px;
}

table a {
  display: inline-block;
  color: #22c55e;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

table a:hover {
  color: #ffffff;
  background-color: rgba(34, 197, 94, 0.2);
  transform: scale(1.1);
}

/* -------------------------------------------------------------------- */

.table-section {
  width: 90%;
  max-width: 1500px;
  margin-bottom: 40px;
  border-radius: 12px;
  margin: 0 auto;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.table-section .title {
  padding: 12px 16px;
  font-size: 20px;
  font-weight: 600;
  font-family: "Bruno Ace", cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-align: center;
}

/* Linhas mais compactas */
.table-section th,
.table-section td {
  padding: 4px 8px;
}


/* Cabeçalho da tabela mais escuro */
.table-section th {
  background-color: rgba(0, 0, 0, 0.6);
  /* fundo escuro mas transparente */
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  line-height: 1.3;
}

.table-section td {
  font-size: 18px;
  padding: 1px 2px;
  line-height: 0.5;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 1px;
}

/* Ajustes para telas pequenas */
@media (max-width: 640px) {
  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 15px;
  }

  header h5 {
    font-size: 11px;
  }

  th,
  td {
    font-size: 11px;
    padding: 3px 4px;
  }

  th:first-child,
  td:first-child,
  th:last-child,
  td:last-child {
    width: auto;
  }

  .table-section {
    width: 100%;
    margin-bottom: 8px;
    border-radius: 2px;
    table-layout: fixed;
    word-wrap: break-word;
  }

  .table-section td {
    font-size: 11px;
  }

  .table-section th {
    font-size: 15px;
  }
}

/****************************************************/
.search-box {
  width: 100%;
  max-width: 40%;
  margin: 10px auto 20px auto;
  padding: 0 10px;
  text-align: center;
  box-sizing: border-box;
}

.search-box input {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: rgba(0, 0, 0, 0.5);
  color: #f1f5f9;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.search-box input:focus {
  border-color: #3b82f6;
  background: rgba(0, 0, 0, 0.7);
}

/* Ajustes para telas pequenas */
@media (max-width: 640px) {
  .search-box {
    max-width: 80%;
    margin: 8px auto 16px auto;
    padding: 0 8px;
  }

  .search-box input {
    font-size: 13px;
    padding: 8px 12px;
  }
}

.apikey-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 20px;
  color: #66E3FF;
  backdrop-filter: blur(8px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.apikey-box label {
  font-weight: bold;
  font-size: 25px;
  display: block;
  margin-bottom: 5px;
  text-align: center;
}

.apikey-box .apikey-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.apikey-input-group {
  display: flex;
  gap: 6px;
}

.apikey-input-group input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #334155;
  background: rgba(0, 0, 0, 0.5);
  color: #f1f5f9;
  border-radius: 6px;
}

.apikey-input-group button {
  border: none;
  background: #4CAF50;
  color: #fff;
  font-size: 16px;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.apikey-input-group button:hover {
  background: #45a049;
}

@media (max-width: 600px) {
  .apikey-box {
    width: 80%;
  }

  .apikey-box input {
    font-size: 13px;
    padding: 8px 12px;
  }
}


/* Cores para os títulos */
.corTable_downloaders .title {
  background: linear-gradient(to right, #ff0000, #c24e01);
}

.corTable_pesquisar .title {
  background: linear-gradient(to right, #00ff55, #00ffc8);
}

.corTable_criação .title {
  background: linear-gradient(to right, #111010, #292929);
}

.corTable_editores .title {
  background: linear-gradient(to right, #ff9900, #ffcc00);
}

.corTable_leitores .title {
  background: linear-gradient(to right, #3844b3, #1f5375);
}

.corTable_pornos .title {
  background: linear-gradient(to right, #a50101, #a5003f);
}

.corTable_hentais .title {
  background: linear-gradient(to right, #7e008f, #9e0189);
}

.corTable_diversos .title {
  background: linear-gradient(to right, #090029, #000766);
}

.corTable_bíblia-sagrada .title {
  background: linear-gradient(to right, #3d1c00, #8b4b01);
}

.corTable_internas .title {
  background: linear-gradient(to right, #000000, #000000);
}