.elementor-widget-container .games-wrap {
  display: block;
}

.elementor-widget-container .games-wrap .sc_services {
  width: 100%;
}

.games-list {
  --theme-var-grid_gap: 15px;
  display: flex;
  flex-flow: row wrap;
}

.games-list .sc_services_item {
  padding: 0 var(--theme-var-grid_gap);
}

.games-list > [class*="trx_addons_column-"] {
  padding-right: var(--theme-var-grid_gap);
}

.games-list .sc_services_item_title {
	font-size: 1em!important;
	line-height: 1.2;
	white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc_services_backward .games-list .sc_services_item_info + .sc_services_item_thumb {
	margin-top: .5em;
	margin-bottom: 1.3em;
}

.services-info-four .sc_services_backward .sc_services_item_info + .sc_services_item_thumb {
	margin-top: 1.2em;
}

.sc_services .post_featured {
	border-radius: 4px;
}

.sc_services .games-heading {
	margin-bottom: 1.2rem;
	min-height: 52px;
	display: flex;
  align-items: center;
}

.custom-nuts-filter.game-search {
  display: flex;
  overflow: hidden;
  gap: 10px;
  margin: 0;
}
.game-search .field-wrap {
  width: 25%;
  border-radius: 15px;
  overflow: hidden;
}
.custom-nuts-filter.game-search input, 
.custom-nuts-filter.game-search select {
  width: 100%;
  color: var(--theme-color-input_light);
  padding: 5px 5px 5px 10px;
  border: none;
  font-size: .85em;
}
 
.custom-nuts-filter.game-search select {
  padding: 6px 5px 6px 10px;
}

.custom-nuts-filter.game-search .select_container:focus::after,
.custom-nuts-filter.game-search .select_container:hover::after {
  color: var(--theme-color-input_text);
}

.games-wrap .filter-sidebar {
  background: var(--theme-color-extra_bg_color);
  border-radius: 8px;
  padding: 15px;
}

.games-wrap.has-games-filter .filter-sidebar {
  margin: 0 auto 30px;
  width: 70%;
}
.games-wrap.has-games-filter .sc_services {
  padding-left: 30px;
  /* width: 75%; */
}
.games-wrap.has-games-filter .sc_services_item_title {
  font-size: 20px;
  line-height: 26px;
}
.games-wrap.has-games-filter .post_featured {
  margin-bottom: 1.8em;
}

.filters-heading {
  display: none;
  font-size: 16px;
  font-weight: normal;
  color: var(--theme-color-text);
  margin: 0;
}

.custom-nuts-filter {
  margin-top: 20px;
}

.inner-sidebar,
.filter-sidebar {
    background:var(--theme-color-extra_bg_color);
    border-radius:8px;
}

.filter-sidebar .custom-nuts-filter ul {
    list-style: none;
}

.filter-sidebar .custom-nuts-filter > ul,
.filter-sidebar .custom-nuts-filter ul li ul {
    padding: 0;
}

.filter-sidebar .custom-nuts-filter > ul > li > a {
    display:block;
    font-size: 17px;
    margin-bottom: 10px;
}

.filter-sidebar .custom-nuts-filter ul li {
    font-size: 16px;
    color: var(--theme-color-text);
}

.filter-sidebar .custom-nuts-filter ul li label:before {
    border-color:var(--theme-color-text)!important;
}

.filter-sidebar .custom-nuts-filter > ul > li {
    padding:20px 0;
    border-bottom: 1px solid var(--theme-color-extra_bd_color);
}

.filter-sidebar .custom-nuts-filter .clear {
    float: right;
    font-size: 13px;
    padding-right: 20px;
    text-decoration: underline;
}

.filter-sidebar .custom-nuts-filter a span.icon-filter {
    float: right;
}

.filter-sidebar .custom-nuts-filter ul li.collapsed span.icon-filter {
	transform: rotate(90deg);
}

.filter-sidebar .custom-nuts-filter > ul,
.filter-sidebar .custom-nuts-filter ul li ul {
  list-style: none;
  padding: 0;
}

.filter-sidebar .custom-nuts-filter > ul > li {
  padding: 20px 0;
  border-bottom: 1px solid var(--theme-color-input_bd_color);
}
.filter-sidebar .custom-nuts-filter ul li {
  font-size: 16px;
  color: var(--theme-color-text);
}

.filter-sidebar .custom-nuts-filter > ul > li > a {
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
}

.filter-sidebar .custom-nuts-filter ul li.collapsed span.icon-filter {
  transform: rotate(90deg);
}

.filter-sidebar .custom-nuts-filter a span.icon-filter {
  float: right;
}

.filter-sidebar .custom-nuts-filter .clear {
  float: right;
  font-size: 13px;
  padding-right: 20px;
  text-decoration: underline;
}

/* loader icon on game image */
a.popup-game[href="javascript:void(0)"],
a.popup-game .mask {
  cursor: pointer;
}

/* Make this svg a background for the mask
*/

.hover_link.post_featured.with_thumb a.loading-game .mask {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" width="236" height="236" style="shape-rendering: auto; display: block; background: rgba(255, 255, 255, 0);" xmlns:xlink="http://www.w3.org/1999/xlink"%3E%3Cg%3E%3Crect fill="%2306020c" height="11" width="11" y="32.5" x="32.5"%3E%3Canimate calcMode="discrete" begin="0s" repeatCount="indefinite" dur="1s" keyTimes="0;0.125;1" values="%23f0fe0c;%2306020c;%2306020c" attributeName="fill"%3E%3C/animate%3E%3C/rect%3E%3Crect fill="%2306020c" height="11" width="11" y="32.5" x="44.5"%3E%3Canimate calcMode="discrete" begin="0.125s" repeatCount="indefinite" dur="1s" keyTimes="0;0.125;1" values="%23f0fe0c;%2306020c;%2306020c" attributeName="fill"%3E%3C/animate%3E%3C/rect%3E%3Crect fill="%2306020c" height="11" width="11" y="32.5" x="56.5"%3E%3Canimate calcMode="discrete" begin="0.25s" repeatCount="indefinite" dur="1s" keyTimes="0;0.125;1" values="%23f0fe0c;%2306020c;%2306020c" attributeName="fill"%3E%3C/animate%3E%3C/rect%3E%3Crect fill="%2306020c" height="11" width="11" y="44.5" x="32.5"%3E%3Canimate calcMode="discrete" begin="0.875s" repeatCount="indefinite" dur="1s" keyTimes="0;0.125;1" values="%23f0fe0c;%2306020c;%2306020c" attributeName="fill"%3E%3C/animate%3E%3C/rect%3E%3Crect fill="%2306020c" height="11" width="11" y="44.5" x="56.5"%3E%3Canimate calcMode="discrete" begin="0.375s" repeatCount="indefinite" dur="1s" keyTimes="0;0.125;1" values="%23f0fe0c;%2306020c;%2306020c" attributeName="fill"%3E%3C/animate%3E%3C/rect%3E%3Crect fill="%2306020c" height="11" width="11" y="56.5" x="32.5"%3E%3Canimate calcMode="discrete" begin="0.75s" repeatCount="indefinite" dur="1s" keyTimes="0;0.125;1" values="%23f0fe0c;%2306020c;%2306020c" attributeName="fill"%3E%3C/animate%3E%3C/rect%3E%3Crect fill="%2306020c" height="11" width="11" y="56.5" x="44.5"%3E%3Canimate calcMode="discrete" begin="0.625s" repeatCount="indefinite" dur="1s" keyTimes="0;0.125;1" values="%23f0fe0c;%2306020c;%2306020c" attributeName="fill"%3E%3C/animate%3E%3C/rect%3E%3Crect fill="%2306020c" height="11" width="11" y="56.5" x="56.5"%3E%3Canimate calcMode="discrete" begin="0.5s" repeatCount="indefinite" dur="1s" keyTimes="0;0.125;1" values="%23f0fe0c;%2306020c;%2306020c" attributeName="fill"%3E%3C/animate%3E%3C/rect%3E%3Cg%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  background-size: 100px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1 !important;
}

.hidegame {
  position: absolute!important;
  clip: rect(1px,1px,1px,1px);
}

/* Game modal popup styles */
.swal2-container {
  z-index: 9999;
}
.swal2-popup.game-modal-popup {
  max-width: none;
  width: 95vw;
  height: auto;
  padding: 0;
  overflow: hidden;
}
.game-modal-popup .swal2-html-container {
  margin: 1em;
}
.game-modal-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625 or 56.25%) */
  height: 0; 
}
.game-modal-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Media queries for responsiveness */
@media screen and (max-width: 1280px) {
	.games-list.sc_services_backward .sc_services_item_title {
		font-size: 1em!important;
		line-height: 1.2;
	}
}

@media (max-width: 992px) {
  .games-list {
    --theme-var-grid_max_columns: 5;
  }

  .games-wrap.has-games-filter .filter-sidebar {
    width: 100%;
  }

  .games-list .game {
    width: calc( 100% / var(--theme-var-grid_max_columns) );
  }

  .game-modal-popup .swal2-html-container {
    margin: 0.5em;
  }
}

@media screen and (max-width: 768px) {
  .elementor-widget-container .games-wrap .filter-sidebar,
	.elementor-widget-container .games-wrap .sc_services {
		width: 100%;
	}

	.elementor-widget-container .games-wrap .sc_services {
		padding-left: 0;
	}

	.elementor-widget-container .games-wrap .filter-sidebar {
		margin-bottom: 30px;
	}
}

@media screen and (max-width: 600px){
  .games-list {
    --theme-var-grid_max_columns: 3;
    --theme-var-grid_gap: 10px;
  }

  .custom-nuts-filter.game-search {
    flex-flow: row wrap;
  }

  .game-search .field-wrap {
    width: 48%;
  }

	.games-list .sc_services_item_info {
		text-align: center;
	}

	.games-list .sc_services_item{
		text-align: center;
	}

	/*.sc_services_backward .sc_services_item_title {
		font-size: 1.8em!important;
		line-height: 2em;
	}*/

	.games-list .sc_services_item_info + .sc_services_item_thumb{
		margin-bottom: 0;
	}
}

@media (max-width: 480px) {
  .swal2-popup.game-modal-popup {
    width: 100vw;
  }
}

/* Media query for landscape orientation */
@media (orientation: landscape) {
  .swal2-popup.game-modal-popup {
    width: 90vw;
  }

  .game-modal-container {
    padding-top: 42.86%;
  }
}
