.results {
  background-color: #a44900;
  padding: 5px 0;
}

.results>div:nth-child(odd) {
  background-color: white;
}

.results>div:nth-child(even) {
  background-color: #ffda8c;
  /* gray-100 */
}

.result-item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  border-radius: 10px;
  border: 1px solid #000;
  margin: 8px;
  padding: 8px;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: small;
}

.results>div:hover {
  background-color: rgb(180, 242, 255);
}

.result-item>div:first-child {
  flex-basis: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.result-item>div:nth-child(2) {
  flex-basis: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.result-item>div:last-child {
  flex-grow: 8;
}

.numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  font-size: medium;
}



.numbers>div {
  display: flex;
  width: 6%;
  height: 25px;
  border: 1px solid #000;
  background-color: #fff;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
}

.numbers>.checked {
  background-color: rgb(164, 73, 0) !important;
}

.btn {
  background-color: #e6e6e6;
}

.circle {
  color: #fff;
  border-radius: 100%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 2px;
}

.odd_color {
  background-color: #36b3e5;
}

.even_color {
  background-color: #1967b2;
}

.parity_draw {
  background-color: #98026c;
}

.large_color {
  background-color: #f26531;
}

.small_color {
  background-color: #faa21e;
}



.size_draw {
  background-color: #00ad05;
}


.pager {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pager ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pager li a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #e5e7eb;
  /* xám nhẹ */
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.pager li a:hover {
  background-color: #d1d5db;
  /* xám đậm hơn chút khi hover */
}

.pager li a.active {
  background-color: #3b82f6;
  /* xanh dương */
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search_form {
  max-width: 660px;
  margin: 0 auto;
}

.search_form form {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  overflow-x: auto;
  padding: 8px 0;
}

.search_form .form-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search_form .form-group label {
  font-weight: bold;
  white-space: nowrap;
}

.search_form .form-group input[type="text"] {
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 150px;
}

.search_form input[type="submit"] {
  padding: 6px 12px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.result-header {
  display: flex;
  flex-direction: row;
  margin: 5px;
  padding: 5px;
  justify-content: center;
  background-color: transparent !important;
  gap: 5px;
  align-items: center;
  font-weight: bold;
}

.result-header>div {
  background-color: #fff;
  border-radius: 10px;
  justify-content: center;
  padding: 8px 8px;
}

.result-header>div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-basis: 90px;
}

.result-header>div:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-basis: 90px;
}

.result-header>div:last-child {
  display: flex;
  flex-grow: 8;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .result-header {
    display: none;
  }


  .numbers {
    gap: 10px 15px;
  }

  .result-item {
    display: flex;
    flex-wrap: wrap;
  }

  .result-item>div:nth-child(1),
  .result-item>div:nth-child(2) {
    flex: 0 0 50%;
    box-sizing: border-box;
    padding: 8px;
  }

  .result-item>div:first-child {
    justify-content: start;
    align-items: start;
  }

  .result-item>div:nth-child(2) {
    flex-direction: row;
    justify-content: end;
    align-items: end;
  }

  .result-item>div:nth-child(2)>span {
    padding: 0 5px;
  }

  .result-item>div:nth-child(3) {
    flex: 0 0 100%;
    box-sizing: border-box;
  }

  .draw_parity {
    display: none;
  }

  .mobile-statistic {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 5px 5px;
    gap: 5px 10px;
    color: #fff;
  }

  .mobile-statistic span {
    width: 30%;
    box-sizing: border-box;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    margin: 2px;
  }
}