/* GAME FILTER */
#game-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  position: absolute;
}

article.game-library {
  z-index: 2;
  position: relative;
  padding-top: 4em;
}

/* CHECKBOX BUTTON */
.game-checkbox-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.game-checkbox-container span {
  font-family: "CaustenRound Regular";
  color: white;
}

.game-checkbox-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.game-search input[type=text] {
  font-size: 1em;
  height: 25px;
  padding: 5px 10px;
}

.multi-select,
.multi-select-options,
input[type=text] {
  width: 20vh;
}

.multi-select {
  display: block;
  position: relative;
  line-height: 31px;
  margin: 15px;
  color: white;
}

.multi-select input[type=checkbox],
.multi-select input[type=radio] {
  display: none;
}

.multi-select label {
  margin: 0;
  padding: 0;
}

.multi-select .toggle-open-1,
.multi-select .toggle-open-2,
.multi-select .toggle-open-3 {
  display: block;
  font-size: 1em;
  font-weight: bold;
  padding: 0 10px;
  height: 31px;
  width: auto;
  cursor: pointer;
  background-color: #2f2f2f;
  border: var(--xds-bordercolor);
  border-radius: 10px;
}

.multi-select label.toggle-open-1,
.multi-select label.toggle-open-2,
.multi-select label.toggle-open-3 {
  font-family: "CaustenRound Bold";
}

.multi-select .toggle-open-1:after,
.multi-select .toggle-open-2:after,
.multi-select .toggle-open-3:after {
  font-family: "FontAwesome";
  clear: both;
  display: block;
  position: absolute;
  top: 0px;
  right: 21px;
  content: "\f107";
  height: 0;
  width: 0;
  padding: 0;
  margin: 0 auto;
}



.multi-select-options {
  position: relative;
  top: 5px;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: var(--xds-bordercolor);
  border-radius: 10px;
  z-index: 1;
  overflow: hidden;
}

.multi-select-options>li span {
  display: none;
  width: auto;
  padding: 5px 10px;
  background-color: #2f2f2f;
  border-top: 0;
  cursor: pointer;
}

.multi-select-options>li span:after {
  content: "\2b";
  font-family: "FontAwesome";
  display: inline-block;
  position: absolute;
  right: 10px;
  z-index: 99;
}

.multi-select-options>li span:hover {
  background: #d7d7d7;
}

.multi-select-options>li input[type=checkbox]:checked+span {
  font-weight: bold;
}

.multi-select-options>li input[type=checkbox]:checked+.b-terminer {
  background: var(--gameTags-bg-terminer);
}

.multi-select-options>li input[type=checkbox]:checked+.b-encours {
  background: var(--gameTags-bg-encours);
}

.multi-select-options>li input[type=checkbox]:checked+.b-afaire {
  background: var(--gameTags-bg-afaire);
}

.multi-select-options>li input[type=checkbox]:checked+.b-atester {
  background: var(--gameTags-bg-atester);
}

.multi-select-options>li input[type=checkbox]:checked+.b-stream {
  background: var(--gameTags-bg-stream);
}

.multi-select-options>li input[type=checkbox]:checked+.b-passtream {
  background: var(--gameTags-bg-passtream);
}

.multi-select-options>li input[type=checkbox]:checked+.b-vod {
  background: var(--gameTags-bg-vod);
}

.multi-select-options>li input[type=checkbox]:checked+.b-pasvod {
  background: var(--gameTags-bg-pasvod);
}

.multi-select-options>li input[type=checkbox]:checked+span:after {
  content: "\f068";
  font-family: "FontAwesome";
  display: inline-block;
}

/* #toggle-open:checked ~ .multi-select-options {
height: 200px;
} */
#toggle-open-1:checked~.multi-select-options label,
#toggle-open-1:checked~.multi-select-options span {
  display: block;
}

#toggle-open-2:checked~.multi-select-options label,
#toggle-open-2:checked~.multi-select-options span {
  display: block;
}

#toggle-open-3:checked~.multi-select-options label,
#toggle-open-3:checked~.multi-select-options span {
  display: block;
}

#toggle-open-1:not(:checked)~.multi-select-options,
#toggle-open-2:not(:checked)~.multi-select-options,
#toggle-open-3:not(:checked)~.multi-select-options {
  display: block;
  background: none;
  border: none;
  padding: 5px 0;
}

#toggle-open-1:not(:checked)~.multi-select-options input[type=checkbox]:checked+span,
#toggle-open-2:not(:checked)~.multi-select-options input[type=checkbox]:checked+span,
#toggle-open-3:not(:checked)~.multi-select-options input[type=checkbox]:checked+span {
  display: block;
  float: left;
  margin: 0 5px 5px 0;
  padding: 5px 10px;
  width: auto;
  position: inherit;
  top: 0;
  font-size: .8em;
  line-height: 23px;
  border-radius: 10px;
}

#toggle-open-1:not(:checked)~.multi-select-options input[type=checkbox]:checked+span:before,
#toggle-open-2:not(:checked)~.multi-select-options input[type=checkbox]:checked+span:before,
#toggle-open-3:not(:checked)~.multi-select-options input[type=checkbox]:checked+span:before {
  content: '\f00d';
  font-family: "FontAwesome";
  padding: 0 5px 0 0;
}

#toggle-open-1:not(:checked)~.multi-select-options input[type=checkbox]:checked+span:after,
#toggle-open-2:not(:checked)~.multi-select-options input[type=checkbox]:checked+span:after,
#toggle-open-3:not(:checked)~.multi-select-options input[type=checkbox]:checked+span:after {
  content: '';
  position: inherit;
}


/* BTN VOD PLAY */
.card-playvod {
  border: solid 2px var(--gameTags-bg-default);
  cursor: pointer;
}


/* SERACH BAR */
.game-search {
  display: flex;
  height: 31px;
  align-items: center;
  color: white;
  background-color: #2f2f2f;
  border: var(--xds-bordercolor);
  padding: var(--xds-padding) 5px;
  border-radius: calc(var(--xds-borderradius) + var(--xds-padding) - 10px);
}

.game-search label {
  padding: 0 5px;
}

.game-search input {
  border: none;
  background-color: transparent;
  color: inherit;
  width: 100%;
}

.game-search input:focus-visible {
  border: none;
  outline: none;
}

/* GRID*/
.game-grid {
  display: grid;
  gap: 1rem;
  grid-auto-flow: dense;
  /* [2] */
  justify-content: center;
  padding: 15px;
  height: 100% !important;
}

.game-grid>.card-game {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  height: 97%;
}

@media screen and (min-width: 1605px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, 13em);
    /* [1] */
  }
}

@media screen and (min-width: 1445px) and (max-width: 1604px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, 12em);
    /* [1] */
  }
}

@media screen and (min-width: 1100px) and (max-width: 1444px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, 12em);
    /* [1] */
  }
}

@media screen and (min-width: 565px) and (max-width: 1099px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, 13em);
    /* [1] */
  }
}

@media screen and (min-width: 390px) and (max-width: 564px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, 10em);
    /* [1] */
  }
}

@media screen and (max-width: 389px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, 15em);
    /* [1] */
  }
}

/* FULLSIZE POUR LES CARDS DESCRIPTION */
.fullwidth {
  grid-column: 1 / -1;
}


/* MASQUE LES CARDS DESCRIPTION SI PAS AFFICHER ET LES AFFICHES */
.is-hidden {
  display: none;
}

/* code visuel
.fullwidth,
.is-selected {
    background: wheat;
} */

/* CARD */
.card-game img {
  width: 100%;
  height: 100%;
}

/* CARD DESCRIPTION */
.card-description {
  background-color: #191919;
  height: 250px;
  position: relative;
  border-radius: 7px;
  color: #eceef1;
  overflow: hidden;
}

.card-desc-content {
  padding: 15px;
  width: 70%;
  height: 100%;
  z-index: 2;
  position: absolute;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  display: flex;
  overflow: hidden;
}

@media screen and (max-width: 1600px) {
  .card-desc-content {
    width: 100%;
  }
}

.card-desc-game {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.card-desc-game h1 {
  font-family: "CaustenRound Black";
  font-size: 2em;
  margin-right: 10px;
}

.card-desc-game span {
  font-family: "CaustenRound RegularOblique";
}

/* CARD TAGS */
.card-tags span {
  padding: 5px 10px;
  margin: 5px;
  border-radius: 7px;
  font-family: "CaustenRound Regular";
}

.card-terminer {
  background-color: var(--gameTags-bg-terminer);
}

.card-encours {
  background-color: var(--gameTags-bg-encours);
}

.card-afaire {
  background-color: var(--gameTags-bg-afaire);
}

.card-atester {
  background-color: var(--gameTags-bg-atester);
}

.card-teste {
  background-color: var(--gameTags-bg-teste);
}

.card-stream {
  background-color: var(--gameTags-bg-stream);
}

.card-passtream {
  background-color: var(--gameTags-bg-passtream);
}

.card-vod {
  background-color: var(--gameTags-bg-vod);
}

.card-playvod {
  border: solid 2px var(--gameTags-bg-default);
  cursor: pointer;
}

.card-tags .svg-inline--fa {
  vertical-align: -.20em;
}

.card-desc-description {
  padding: 10px 0;
}

.card-desc-description h3 {
  font-family: "CaustenRound Black";
  font-size: 1.3em;
}

.card-desc-description p {
  height: 100%;
  max-height: 125px;
  font-family: "CaustenRound Regular";
  font-size: 1.2em;
  overflow-y: auto;
}

.card-description img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  right: -100px;
  display: block;
  position: relative;
  border-radius: 7px;
  z-index: 1;
  opacity: 0.9;
  -webkit-mask: linear-gradient(90deg, #0000 30%, #000 85% 100%, #0000);
  mask: linear-gradient(90deg, #0000 30%, #000 85% 100%, #0000);
}

/* ETOILES NOTE */
.star-rating-display {
  font-size: 1.5em;
  unicode-bidi: bidi-override;
  color: #414141;
  display: inline-block;
  position: relative;
}

.star-rating-display:before,
.star-rating-display:after {
  font-family: "FontAwesome";
  content: "    ";
  display: inline-block;
  white-space: nowrap;
}

.star-rating-display:before {
  color: #ffd200;
  position: absolute;
  z-index: 1;
  left: 0px;
  overflow: hidden;
}

.star-rating-display:after {
  z-index: 0;
}

.star-rating-display[data-average-score="0"]:before {
  width: 0%;
}

.star-rating-display[data-average-score="0.5"]:before {
  width: 10%;
}

.star-rating-display[data-average-score="1"]:before {
  width: 20%;
}

.star-rating-display[data-average-score="1.5"]:before {
  width: 30%;
}

.star-rating-display[data-average-score="2"]:before {
  width: 40%;
}

.star-rating-display[data-average-score="2.5"]:before {
  width: 50%;
}

.star-rating-display[data-average-score="3"]:before {
  width: 60%;
}

.star-rating-display[data-average-score="3.5"]:before {
  width: 70%;
}

.star-rating-display[data-average-score="4"]:before {
  width: 80%;
}

.star-rating-display[data-average-score="4.5"]:before {
  width: 90%;
}

.star-rating-display[data-average-score="5"]:before {
  width: 100%;
}

/* EFFET CARD */

.card-img {
  overflow: hidden;
  border-radius: 7px;
  -o-object-fit: contain;
  object-fit: contain;
  cursor: pointer;
  position: relative;
  padding: 0;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.8);
  transition: 0.2s all ease-in-out;
  user-select: none;
}

.card-img img {
  width: 100%;
  display: inherit;
}

.card-img:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(-135deg,
      rgba(200, 230, 250, 1) 0%,
      transparent 50%);
  background-size: 200%;
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.5);
  transition: 0.2s all ease-in-out;
}

.card-img:hover {
  transform: perspective(50em) rotateX(5deg) scale(1.05);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.card-img:hover:before {
  background-position: 50%;
}

@media screen and (min-width: 390px) and (max-width: 769px) {

  #game-filters {
    position: relative;
  }

  .multi-select, .multi-select-options, input[type=text] {
    width: 100%;
  }
  .card-img:hover {
    transform: none;
  }

  .card-img:hover:before {
    background-position: none;
  }

  .card-description {
    height: 300px;
  }

  .card-desc-description {
    height: 50%;
    -webkit-mask: linear-gradient(0deg, rgba(0, 0, 0, 0) 2%, rgba(0, 0, 0, 1) 12% 88%, rgba(0, 0, 0, 0) 98%);
    mask: linear-gradient(0deg, rgba(0, 0, 0, 0) 2%, rgba(0, 0, 0, 1) 12% 88%, rgba(0, 0, 0, 0) 98%);
  }
}