.games-banner {
  padding-top: 90px;
}

@media screen and (width <= 768px) {
	.games-banner {
	  padding-top: 80px;
	}
}

@media screen and (width <= 576px) {
	.games-banner {
	  padding-top: 70px;
	}
}

.games-banner__container, .games-banner__image-wrapper {
  position: relative;
}

@media screen and (width <= 768px) {
  .games-banner__image-wrapper {
    height: 258px;
  }
}

.games-banner__image {
  display: none;
}

.games-banner__image[data-image="all-games"] {
  display: block;
}

@media screen and (width <= 576px) {
	
  .games-banner__image {
    height: 100%;
  }

  .games-banner__image img {
    object-fit: cover !important;
	  height: 100% !important;
  }
}

.games-banner__text-wrapper {
  text-align: center;
  background-color: #181818cc;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px;
  display: flex;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

@media screen and (width <= 768px) {
  .games-banner__text-wrapper {
    top: unset;
    transform: unset;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 15px 4%;
    bottom: 0;
    right: 0;
  }
}

@media screen and (width <= 576px) {
  .games-banner__text-wrapper {
    gap: 30px;
    padding-block: 20px;
  }
}

.games-banner__text {
  flex-direction: column;
  gap: 5px;
  display: flex;
}

@media screen and (width <= 768px) {
  .games-banner__text {
    text-align: start;
  }
}

@media screen and (width <= 576px) {
  .games-banner__header {
	  margin: 0 !important;
    font-size: 1rem;
  }

  .games-banner__description {
    font-size: .8rem;
  }
}

.games-banner__button {
  width: 200px;
  height: auto;
  display: block;
}

@media screen and (width <= 1024px) {
  .games-banner__button {
    width: 150px;
  }
}

@media screen and (width <= 576px) {
  .games-banner__button {
    width: 200px;
  }
}

.games__container {
  padding: 20px 1%;
  position: relative;
}

@media screen and (width <= 768px) {
  .games__container {
    padding-inline: 2%;
  }
}

.games__loading-state {
  z-index: 1;
  background-color: #0000004d;
  justify-content: center;
  align-items: start;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
	padding-top: 80px;
}

.games__loading {
  border: 10px solid #ddd;
  border-top-color: #e73da4;
  border-radius: 50%;
  width: 100px;
  height: 100px;
	padding-top: 80px;
  animation: 1s linear infinite loading;
}

@keyframes loading {
  to {
    transform: rotate(360deg);
  }
}

.games__navigation {
  z-index: 5;
  gap: 0 20px;
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  position: relative;
	transition: all 0.3s ease;
}

@media screen and (width <= 576px) {
  .games__navigation {
    gap: 0 5%;
  }
}

.games__navigation {
  transition: all 0.3s ease;
}

.games__navigation.fixed {
  position: fixed;
  top: 0;
  right: 0;
  padding: 10px 2%;
  background-color: black;
  z-index: 1000; /* Ensure it's above other elements */
  width: 100%; /* Optional: ensure the navigation stretches across the screen */
}

.games__tab-list {
  border: 1px solid #e73da4;
  justify-content: space-between;
  width: 100%;
  display: flex;
  overflow-y: hidden;
}

@media screen and (width <= 768px) {
  .games__tab-list {
    display: none;
  }
}

.games__tab-item {
  text-align: center;
  word-break: keep-all;
  cursor: pointer;
  background: linear-gradient(#2f1d26 0 48%, #17030d 49% 100%);
  border-right: 1px solid #e73da4;
  width: 20%;
  padding: 10px 2%;
}

@media screen and (width <= 768px) {
  .games__tab-item {
    width: 100%;
  }
}

.games__tab-item.active {
  background-image: linear-gradient(#e73da4 50%, #cd2957 50%);
  font-weight: 700;
}

.games__tab-item:hover {
  background-image: linear-gradient(#fabd2b 50%, #ff9809 50%);
}

@media screen and (width <= 768px) {
  .games__tab-item:hover {
    background-image: linear-gradient(#e73da4 50%, #cd2957 50%);
  }
}

.games__tab-link {
	color: white !important;
}

.games__tab-dropdown {
  width: 50%;
  display: none;
  position: relative;
}

@media screen and (width <= 768px) {
  .games__tab-dropdown {
    display: block;
  }
}

.games__tab-dropdown:after {
  content: "▼";
  pointer-events: none;
  color: #fff;
  font-size: 12px;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.games__tab-select {
  color: #fff;
  appearance: none;
  cursor: pointer;
  background-color: #000;
  border: 1px solid #e73da4;
  width: 100%;
  padding: 10px;
  font-size: 1rem;
}

.games__tab-select:focus {
  box-shadow: none;
  border: 1px solid #e73da4;
  outline: none;
}

.games__tab-option:checked {
  font-size: #fff;
  background-color: #e73da4;
}

.games__search-desk {
  border: 1px solid #e73da4;
  align-items: center;
  gap: 0 20px;
  width: 25%;
  padding: 0 10px;
  display: flex;
}

@media screen and (width <= 768px) {
  .games__search-desk {
    width: 50%;
  }
}

.games__search-input {
  color: #fff !important;
  background: none;
  border: none !important;
  outline: none;
  width: 80%;
  height: 100%;
  font-size: 16px;
}

.games__search-close, .games__search-icon {
  cursor: pointer;
  width: 5%;
}

.games__content {
  position: relative;
}

.games__all-header {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

@media screen and (width <= 768px) {
  .games__all-header {
    font-size: 1.8rem;
  }
}

.games__all-wrapper {
  position: relative;
  overflow-x: hidden;
}

.games__all-wrapper:hover .games__side-arrow--prev {
  left: 0;
}

.games__all-wrapper:hover .games__side-arrow--next {
  right: 0;
}

.games__all-content {
  scrollbar-width: none;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-auto-columns: 170px;
  grid-auto-flow: column dense;
  justify-items: start;
  gap: 10px;
  margin-bottom: 50px;
  display: grid;
  overflow-x: scroll;
}

@media screen and (width <= 768px) {
  .games__all-content {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-auto-columns: 120px;
  }
}

.games__side-arrow {
  z-index: 1;
  cursor: pointer;
  background-color: #e146a8;
  padding: 15px 5px;
  transition: all .2s linear;
  position: absolute;
  top: 55%;
  transform: translateY(-55%);
}

@media screen and (width <= 768px) {
  .games__side-arrow {
    width: 40px;
	padding: 10px;
  }
}

.games__side-arrow--prev {
  left: -75px;
}

@media screen and (width <= 768px) {
  .games__side-arrow--prev {
    left: 0;
  }
}

.games__side-arrow--next {
  right: -75px;
}

@media screen and (width <= 768px) {
  .games__side-arrow--next {
    right: 0;
  }
}

.games__tab-content {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  display: grid;
	min-height: 250px;
}

@media screen and (width <= 768px) {
  .games__tab-content {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-auto-columns: 120px;
    grid-auto-flow: dense;
  }
}

.games__item {
  border: 1px solid #e73da4;
  position: relative;
}

.games__item.large {
  grid-area: span 2 / span 2;
}

@media screen and (width <= 576px) {
	.games__item.large {
	  grid-area: span 1 / span 1;
	}
}

.games__item.rectangle {
  grid-column: span 2;
}

.games__item:hover .games__buttons {
  display: flex;
}

.games__image {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

@media screen and (width <= 768px) {
  .games__image {
    object-fit: cover;
  }
}

.games__buttons {
  z-index: 1;
  background: #0006;
  width: 100%;
  height: 100%;
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
}

.games__play {
  text-align: center;
  background-color: #fabd2b;
  width: 140px;
  margin: 0 auto;
  padding: 12px 0;
  text-decoration: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translate(0, -50%);
}

@media screen and (width <= 576px) {
  .games__play {
    width: 100%;
    top: 0;
    transform: unset;
  }
}

.games__fun {
	color: #fff !important;
  text-align: center;
  background-color: #e73da4;
  width: 100%;
  padding: 8px 0;
  position: absolute;
  bottom: 0;
}

/* Fun Mode */
.fun-mode-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fun-mode-popup-content {
    position: relative;
    width: 80%;
    height: 80%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.fun-mode-iframe {
    width: 100%;
    height: 100%;
}

.fun-mode-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}
