body {
  font-family: rubik, Arial, Helvetica, sans-serif;
  direction: rtl;
  margin: 0;
  padding: 0;
}

.tables-headline {
  width: fit-content;
  align-items: center;
  align-content: center;
  justify-items: center;
}

.tables-container {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap; /* Allows tables to stack on small screens */
}

.central-bank-data {
  width: 400px; /*previously:fit-content*/
  background-color: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  position: relative;
  box-sizing: border-box;
}

.tables-headline h3 {
  width: fit-content;
  text-align: center;
  color: white;
  background-color: #3d7fb8;
  font-size: 1.4em;
  margin-bottom: 15px;
}

#table-heading {
  background-color: white;
  color: #333333;
  font-size: 19.5px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 17.43px;
  position: relative;
  display: inline-block;
}

#table-heading::after {
  content: "";
  position: absolute;
  height: 1.5px;
  width: 100%;
  right: 0;
  bottom: 0;
  background-color: #ffa527;
}

#central-bank-data-table-1,
#central-bank-data-table-2 {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #d9d9d9;
}

#central-bank-data-table-1 th,
#central-bank-data-table-1 td,
#central-bank-data-table-2 th,
#central-bank-data-table-2 td {
  padding: 5px;
  /* border-bottom: 1px solid #e0e0e0; */
  border-bottom: 1px solid #d9d9d9;
  text-align: center; /*previously:right*/
}

#central-bank-data-table-1 th,
#central-bank-data-table-2 th {
  /* background-color: #e3f0ff80; */
  background-color: #ffffff;
  /* color: #01549d; */
  color: #000000;
  font-weight: bold;
  /* font-size: 1em; */
  font-size: 14px;
}

#central-bank-data-table-1 td,
#central-bank-data-table-2 td {
  font-size: 0.9em;
  color: #666;
}

#central-bank-data-table-1 tr:hover,
#central-bank-data-table-2 tr:hover {
  /* background-color: #ffebcd80; */
  background-color: #e9e9e9;
}

#central-bank-data-table-1 tr:last-child td,
#central-bank-data-table-2 tr:last-child td {
  border-bottom: none;
}

#interest-central-banks-tables-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#interest-centarl-banks-tables {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex-wrap: nowrap;
}

@media (max-width: 600px) {
  .tables-container {
    flex-direction: column !important;
    align-items: center; /* Stack tables vertically on small screens */
  }
  #table-heading {
    align-self: flex-start;
  }

  .central-bank-data {
    max-width: none;
    width: 100%;
    margin-bottom: 20px; /* Space between stacked tables */
  }

  #central-bank-data-table-1 th,
  #central-bank-data-table-1 td,
  #central-bank-data-table-2 th,
  #central-bank-data-table-2 td {
    padding: 8px;
    font-size: 0.85em;
  }
}
