/* raffle-register */

.raffle__registered-data.section__padding {
  padding: 0 2rem !important;
}
.raffle__registered-data h3 {
  /* max-width: 1200px; */
  width: 100%;
  /* margin: 0 auto; */
}
.raffle__registered-data span {
  font-size: 3rem;
  color: rgb(56, 56, 245);
}

.raffle__registered-data .disabled {
  font-size: 2rem;
  color: rgb(134, 134, 134);
}

.raffle__registered-data .active {
  font-size: 2rem;
  color: rgb(235, 17, 17);
}

.raffle__registered-data-menu_search {
  width: 100%;
}

.raffle__registered-data-menu_search select,
.raffle__registered-data-menu_search input,
.raffle__registered-data-menu a {
  padding: 0.5rem 1rem;
  outline: none;
}

.raffle__registered-data-menu_search select:active,
.raffle__registered-data-menu_search input:active,
.raffle__registered-data-menu_search select:focus,
.raffle__registered-data-menu_search input:focus {
  outline: 1px solid var(--btn-color);
  border: 1px solid var(--btn-color);
}

input[name="search"] {
  max-width: 250px;
  width: 100%;
  transition: max-width 0.7s ease;
}
input[name="search"]:focus {
  max-width: 400px;
}

.raffle__registered-data-menu_search input[type="submit"] {
  background: linear-gradient(
      to left,
      var(--color-black) 50%,
      var(--color-white) 50%
    )
    right;
  background-size: 200%;
  transition: 0.5s ease-out;
  color: var(--color-white);
  border: 1px solid var(--color-black);
}

.raffle__registered-data-menu_search input[type="submit"]:hover,
.raffle__registered-data-menu_search input[type="submit"]:active {
  color: var(--color-black);
  background-position: left;
  border: 1px solid var(--color-black);
}

.raffle__registered-data-menu a {
  text-decoration: none;
  background: linear-gradient(
      to right,
      var(--color-black) 50%,
      var(--color-white) 50%
    )
    left;
  background-size: 200%;
  transition: 0.5s ease-out;
  color: var(--color-white);
  border: 1px solid var(--color-black);
}

.raffle__registered-data-menu a:hover,
.raffle__registered-data-menu a:active {
  color: var(--color-black);
  background-position: right;
  border: 1px solid var(--color-black);
}

@media screen and (min-width: 1200px) {
  .raffle__registered-data table {
    max-width: 1920px;
    width: 100%;
  }
}

/* -------- TABLE BASE STYLES -------- */
.raffle__registered-data table,
.raffle__registered-data th,
.raffle__registered-data td,
.raffle__registered-data tr {
  border-collapse: collapse;
  border: 1px solid rgba(151, 151, 151, 0.3);
  text-align: center;
}

.raffle__registered-data th:not(:last-child) {
  border-right: 1px solid rgb(248, 247, 247);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.raffle__registered-data-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  /* max-width: 1200px; */
  margin: 0 auto;
}

tr:nth-child(even) {
  background-color: rgba(250, 224, 224, 0.4);
}
tr:nth-child(odd) {
  background-color: rgb(255, 255, 255);
}

th {
  background: rgb(19, 18, 18);
  color: var(--color-white);
}

/* modal */
.modal {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.2);
}

.modal_data {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  width: 100%;
}

.modal_data input[type="password"] {
  padding: 0.5rem;
  font-size: 15px;
  border: none;
  outline: none;
  border-radius: 5px;
}

.modal_data input[type="submit"] {
  padding: 0.5rem;
  margin-left: 5px;
  background-color: var(--btn-color);
  color: var(--color-white);
  border: none;
  outline: none;
  border-radius: 5px;
  cursor: pointer;
}

.pagination {
  max-width: 1200px;
  margin: 0 auto;
  list-style-type: none;
}

/* ----------- STICKY TOP SCROLLBAR FIXED ----------- */
.top-scroll {
  position: sticky;
  top: 0;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  z-index: 3;
}

.top-scroll-inner {
  height: 1px;
}

/* ----------- TABLE SCROLL CONTAINER FIXED ----------- */
.table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 90vh;
  border: 1px solid #ddd;
  -webkit-overflow-scrolling: touch;
  position: relative; /* required for sticky top bar */
}

/* table must not scroll by itself */
.raffle__registered-data table {
  width: max-content;
  min-width: 1200px;
  border-collapse: collapse;
  white-space: nowrap;
}
.section__padding {
  overflow-x: visible;
}

/* sticky header */
.raffle__registered-data thead th {
  position: sticky;
  top: 0; /* distance from the top of the container */
  background: #131212; /* same as your header background */
  color: white;
  z-index: 2; /* make sure it stays above table rows */
}
