.auctions-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 
  Loader
*/

.loading-text {
  color: var(--table-font);
  font-size: xx-large;
  font-weight: 700;
  text-align: center;
  margin-top: 3rem;
}

.lds-roller {
  display: block;
  position: relative;
  margin: 20px auto;
  width: 80px;
  height: 80px;
}

.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}

.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--table-font);
  margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
  top: 63px;
  left: 63px;
}

.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
  top: 68px;
  left: 56px;
}

.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
  top: 71px;
  left: 48px;
}

.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}

.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
  top: 71px;
  left: 32px;
}

.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
  top: 68px;
  left: 24px;
}

.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
  top: 63px;
  left: 17px;
}

.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12px;
}

@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*
  Page specific
*/
.auction-all-filter-container {
  margin-bottom: 3rem;
  border-top: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
  padding: 1rem 0;
  display: flex;
  flex-direction: row;
}

.auction-filters-container {
  margin-left: auto;
  display: block;
}

.auction-container {
  width: 100%;
  background-color: var(--text);
  border-radius: 20px;
  margin-top: -140px;
  padding: 36px 43px;
  box-shadow: 0 4px 27px rgba(0, 0, 0, 0.15);
}

.grid {
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.auction-grid-row {
  row-gap: 16px;
  column-gap: 16px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

.nav-link-text {
  color: var(--text);
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.text-field {
  height: 50px;
  background-color: var(--field);
  color: var(--field-text);
  border: 1px #000;
  border-radius: 3px;
  padding-left: 18px;
  font-family: expressway, sans-serif;
  font-size: 20px;
  line-height: 30px;
}

.title {
  color: #000;
  font-size: 23px;
  line-height: 30px;
}

.table-grid {
  border-top: 2px solid var(--primary);
  grid-template-rows: auto;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 34px;
  padding-top: 22px;
}

.auction-wrapper {
  width: 100%;
  background-color: var(--table-background);
  border-radius: 20px;
  padding: 36px 43px;
  box-shadow: 0 4px 27px rgba(0, 0, 0, 0.15);
}

.grid {
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.filter-button {
  max-height: 48px;
  column-gap: 0px;
  color: var(--text);
  cursor: pointer;
  background-color: var(--background);
  border: 2px solid var(--primary);
  border-radius: 37px;
  flex-direction: row;
  flex: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 160%;
  text-decoration: none;
  transition: all 0.3s ease-in;
  display: flex;
}

.filter-button:hover {
  color: var(--primary);
  background-color: var(--text);
}

.filter-button:active,
.filter-button:focus {
  background-color: var(--important);
  border-color: var(--important);
}

.filter-button.red {
  background-color: var(--important);
  border-color: var(--t);
  transition-duration: 0.3s;
  transition-timing-function: ease-in;
}

.filter-button.red:hover {
  color: var(--primary);
  background-color: var(--text);
  border-color: var(--primary);
}

.flex-button-wrapper {
  width: 100%;
  justify-content: space-between;
  display: flex;
}

.button-wrap {
  column-gap: 16px;
  align-items: center;
  display: flex;
}

.button-wrap.auction {
  padding-top: 0;
}

.filter-dropdown {
  column-gap: 4px;
  background-color: var(--primary);
  color: var(--btn-text-primary);
  border-radius: 37px;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 18px;
  display: flex;
}

.auction-grid-item {
  border-bottom: 1px solid var(--primary);
  grid-template-rows: auto;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 28px 0;
}

.auction-grid-rows-container > :last-child .auction-grid-item:last-of-type {
  border-bottom: none;
}

.auction-grid-item.title {
  padding-top: 0;
  padding-bottom: 21px;
}

.auction-item-flex {
  column-gap: 28px;
  align-items: center;
  display: flex;
}

.auction-item-flex.subtitle {
  column-gap: 8px;
  color: var(--table-font);
  font-size: 20px;
}

.auction-item-name {
  color: var(--table-font);
  margin-bottom: 17px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.auction-item-name.countdown,
.auction-item-current-bid,
.auction-item-current-timer {
  margin: auto 0;
}

.auction-item-bidder {
  color: var(--table-font);
  font-size: 20px;
  font-weight: 700;
}

.bid-now-btn {
  margin-top: 0.25rem;
  height: 3rem;
  text-decoration: none;
  font-size: large;
  font-weight: 400;
  width: 120px;
  transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.bid-now-btn:hover {
  color: var(--primary);
  background-color: var(--btn-text-primary);
  border: 1px solid var(--primary);
}

.time-flex-wrap {
  column-gap: 15px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 12px;
  line-height: 1.2px;
  display: flex;
}

.auction-item-explanatory-text {
  text-align: center;
  margin-top: 2rem;
  font-size: large;
  font-weight: bold;
  color: var(--table-font);
}

.load-more {
  width: 100%;
  max-width: 329px;
  text-align: center;
  cursor: pointer;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--btn-text-primary);
  border-radius: 37px;
  padding: 14px 32px;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
  text-decoration: none;
}

.load-more:hover {
  color: var(--primary);
  background-color: var(--btn-text-primary);
  border: 1px solid var(--primary);
}

.center-align {
  text-align: center;
  margin-top: 40px;
}

.auction-item-title {
  color: var(--table-font);
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.auction-item-title:hover {
  cursor: pointer;
}

.company-icon {
  width: 20px;
  height: 20px;
}

.select-field {
  height: 100%;
  max-height: 48px;
  cursor: pointer;
  margin-bottom: 0;
}

.select-field.sort {
  padding: 12px 20px;
  transition: all 0.3s ease-in;
}

.select-field.sort:hover {
  color: var(--primary);
  background-color: var(--btn-text-primary);
}

.select-field.filter {
  max-height: 48px;
  padding: 12px 20px;
  transition: all 0.3s ease-in;
}

.select-field.filter:hover {
  color: var(--primary);
  background-color: var(--btn-text-primary);
}

.company-grid {
  width: 100%;
  column-gap: 80px;
  row-gap: 80px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  margin-top: 85px;
  margin-bottom: 117px;
  display: grid;
}

.company-card {
  background-color: var(--text);
  border-radius: 20px;
  padding: 40px;
}

.company-card.down {
  margin-top: 130px;
}

.company-card-text {
  margin-top: 20px;
  margin-bottom: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 160%;
}

.nft-image {
  height: 150px;
  width: 150px;
  border-radius: 11px;
}

#load-more-div {
  width: 100%;
  justify-content: center;
  margin-top: 40px;
  display: none;
}

.div-block-8 {
  flex: 1;
}

.bid-now-btn-mobile {
  text-align: center;
  margin-top: 40px;
  display: none;
  grid-area: span 1 / span 2 / span 1 / span 2;
}

.mobile-column-title {
  display: none;
  color: var(--table-font);
  min-height: 18px;
}

#select-sort {
  display: none;
}

@media screen and (max-width: 991px) {
  #select-sort {
    display: inline-block;
  }

  .hide-on-mobile {
    display: none;
  }

  .auction-wrapper {
    padding: 11px 16px;
  }

  .bid-now-btn-mobile {
    display: block;
  }

  .mobile-column-title {
    display: block;
  }

  .gbm-btn.bid-now-btn.hide-on-mobile {
    display: none !important;
  }

  .auction-item-flex {
    column-gap: 20px;
    row-gap: 11px;
    grid-area: span 1 / span 2 / span 1 / span 2;
  }

  .auction-grid-item {
    column-gap: 0px;
    grid-template-columns: 1fr 1fr;
    margin-left: 16px;
    margin-right: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .auction-grid-item.title {
    padding-left: 0;
    padding-right: 0;
    display: none;
  }

  .auction-item-current-timer {
    margin: 0px;
  }
}

@media screen and (max-width: 767px) {
  .auction-wrapper {
    padding: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .auction-grid-item {
    padding-top: 16px;
  }
}

@media screen and (max-width: 680px) {
  .auction-all-filter-container {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  .auction-filters-container {
    margin-left: 0;
    margin-top: calc(1rem - 10px);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--primary);
  }

  .auction-filters-container > div:first-of-type {
    width: 50%;
  }

  .auction-item-bidder {
    font-size: 18px;
  }
}

@media screen and (max-width: 479px) {
  .auction-filters-container > div:first-of-type {
    width: 70%;
  }

  .time-flex-wrap {
    margin-top: 5px;
  }

  .auction-wrapper {
    padding-top: 0;
  }

  .auction-item-flex {
    column-gap: 12px;
  }

  .auction-grid-item {
    padding-top: 16px;
  }

  .auction-item-name {
    margin-top: 5px;
    margin-bottom: 8px;
    font-size: 24px;
  }

  .bid-now-btn-mobile {
    margin-top: 5px;
  }
}

@media screen and (max-width: 431px) {
  .auction-item-flex {
    flex-direction: column;
    align-items: start;
  }

  .nft-image {
    width: 100%;
    height: initial;
  }

  .nft-image.missing-image {
    height: 150px;
  }

  .auction-item-flex.subtitle {
    font-size: 14px;
    /* text-align: center; */
    /* display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center; */
  }

  .auction-item-name {
    font-size: 24px;
  }

  .mobile-column-title {
    margin: 0px;
  }

  .auction-item-bidder {
    font-size: 12px;
    padding-top: 2px;
  }
}
