body {
  --background: #181820;
  --backgroundRgbaZero: rgba(24,24,32,0);
  --backgroundDark: #111117;
  --backgroundDarkLightBlue: #111117;
  --backgroundDark2: #0c0c10;
  --cardBackground: #20212b;
  --cardBackgroundLight: #272834;
  --cardBackgroundDark: #1c1d26;
  --cardBackgroundRgba: rgba(32,33,43,0.6);
  --textColor: #C8C9D8;
  --placeholderColor: #abacb5;
  --borderColor: #333444;
  --borderColor2: #171822;
  --borderColor3: #0E0E14;
  --linkActiveColor: #80F1B1;
  --hoverDark:#181820;
  --linkText: #C8C9D8;
  --darkGreen: #80F1B1;
  --darkGreenDark: #248A50;
  --darkBlue: #343891;
  --darkBlueDark: #282B78;
  --darkBluelightWhite: #343891;
  --otherColor1: #1b1c26;
  background: var(--background);
  font-family: "Wix Madefor Display", sans-serif;
  font-size: 14px;
  color: var(--textColor);
}
body.light {
  --background: #eeeeee;
  --backgroundDark: #dddddd;
  --backgroundDarkLightBlue: #343891;
  --backgroundDark2: #bbbbbb;
  --cardBackground: #fff;
  --cardBackgroundLight: #f2f2f2;
  --cardBackgroundDark: #dbdbdb;
  --cardBackgroundRgba: rgba(255,255,255,0.6);
  --textColor: #212529;
  --placeholderColor: #212529;
  --borderColor: #e5e5e5;
  --borderColor2: #8b8989;
  --borderColor3: #bbbbbb;
  --linkActiveColor: #343891;
  --hoverDark:#eeeeee;
  --linkText: #343891;
  --darkGreen: #343891;
  --darkGreenDark: #248A50;
  --darkBlue: #80F1B1;
  --darkBlueDark: #282B78;
  --darkBluelightWhite: #fff;
  --otherColor1: #f1f1f1;
  background: var(--background);
  color: var(--textColor);
}
body a {
  text-decoration: none;
}

@media (max-width: 576px) {
  .gamesContainer {
    overflow: hidden;
  }
}

.gameItem {
  width: 100%;
  position: relative;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.25));
  transition: all 0.5s;
}
.gameItem .gameBg {
  width: 100%;
  position: relative;
  z-index: 1;
  clip-path: polygon(100% 0%, 100% 100%, 15% 100%, 0% 85%, 0% 0%);
  transition: all 0.5s;
}
.gameItem .gameBg img {
  width: 100%;
  position: relative;
  object-fit: cover;
  z-index: 2;
}
.gameItem .gameBg::before, .gameItem .gameBg::after {
  content: "";
  opacity: 0;
  width: 100%;
  height: 80px;
  transition: all 0.5s;
  position: absolute;
  left: 0;
  z-index: 3;
}
.gameItem .gameBg::before {
  top: 0;
  height: 100%;
  background-image: linear-gradient(to top, transparent 46%, rgba(12, 13, 19, 0.5) 68%, rgb(12, 13, 19) 97%);
}
.gameItem .gameBg::after {
  bottom: 0;
  opacity: 1;
  background-image: linear-gradient(to bottom, transparent 46%, rgba(12, 13, 19, 0.5) 68%, rgb(12, 13, 19) 97%);
}
.gameItem .gameLogo {
  width: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  bottom: 15px;
  left: 0;
  transition: all 0.4s;
  z-index: 3;
}
.gameItem .gameLogo img {
  width: auto;
  max-width: 80%;
  max-height: 50px;
  display: inline-block;
}
.gameItem .gameCharacter {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.4s;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
}
.gameItem:hover, .gameItem.active {
  filter: drop-shadow(0 35px 10px rgba(0, 0, 0, 0.8));
  transition: all 0.5s;
}
.gameItem:hover .gameBg, .gameItem.active .gameBg {
  transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
  transition: all 0.5s;
}
.gameItem:hover .gameBg::before, .gameItem:hover .gameBg::after, .gameItem.active .gameBg::before, .gameItem.active .gameBg::after {
  opacity: 1;
}
.gameItem:hover .gameBg::after, .gameItem.active .gameBg::after {
  height: 120px;
}
.gameItem:hover .gameLogo, .gameItem.active .gameLogo {
  transform: translate3d(0%, -30px, 100px);
  /*bottom:30px;
  transition: all 0.4s;
  filter:drop-shadow(0 -4px 4px rgba(0,0,0,1));*/
}
@media (max-width: 576px) {
  .gameItem:hover .gameLogo, .gameItem.active .gameLogo {
    transform: translate3d(0%, -20px, 100px);
  }
}
.gameItem:hover .gameCharacter, .gameItem.active .gameCharacter {
  opacity: 1;
  transform: translate3d(0%, -35px, 100px);
  /*bottom:35px;
  filter:drop-shadow(0 -5px 8px rgba(0,0,0,0.9));
  transition: all 0.6s;*/
}
@media (max-width: 576px) {
  .gameItem:hover .gameCharacter, .gameItem.active .gameCharacter {
    transform: translate3d(0%, -25px, 100px);
  }
}
@media (max-width: 576px) {
  .gameItem.active {
    filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.8));
  }
}
@media (max-width: 576px) {
  .gameItem {
    filter: drop-shadow(0 35px 10px rgba(0, 0, 0, 0.8));
    transition: all 0.5s;
  }
  .gameItem.shadowSmall {
    filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.8));
  }
  .gameItem .gameBg {
    transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
    transition: all 0.5s;
  }
  .gameItem .gameBg::before, .gameItem .gameBg::after {
    opacity: 1;
  }
  .gameItem .gameBg::after {
    height: 120px;
  }
  .gameItem .gameLogo {
    transform: translate3d(0%, -20px, 100px);
  }
  .gameItem .gameCharacter {
    opacity: 1;
    transform: translate3d(0%, -25px, 100px);
  }
}

.gamesRow {
  width: calc(100% + 20px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 12.5%);
  margin-left: -10px;
  margin-right: -10px;
}
.gamesRow .gamesCol {
  width: 100%;
  position: relative;
  padding: 10px;
}
@media (max-width: 1099px) {
  .gamesRow {
    grid-template-columns: repeat(6, 16.6666666667%);
  }
}
@media (max-width: 899px) {
  .gamesRow {
    grid-template-columns: repeat(5, 20%);
  }
}
@media (max-width: 699px) {
  .gamesRow {
    grid-template-columns: repeat(4, 25%);
  }
}
@media (max-width: 576px) {
  .gamesRow {
    grid-template-columns: repeat(3, 33.3333333333%);
  }
  .gamesRow .gamesCol {
    padding: 10px;
  }
}

.textHiddenArea {
  width: 100%;
  position: relative;
  max-height: 125px;
  overflow: hidden;
  padding-bottom: 50px;
}
.textHiddenArea .textHiddenShowButton {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 40px 10px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(to top, rgba(24, 24, 32, 0.97) 30%, rgba(24, 24, 32, 0.5), rgba(24, 24, 32, 0));
  color: var(--textColor);
  text-shadow: 0 2px 4px #000;
  transition: all 0.2s ease-in-out 0s;
}
body.light .textHiddenArea .textHiddenShowButton {
  background: linear-gradient(to top, rgba(238, 238, 238, 0.97) 30%, rgba(238, 238, 238, 0.5), rgba(238, 238, 238, 0));
}

.textHiddenArea .textHiddenShowButton:hover {
  transform: scale(1.1);
  transition: all 0.2s ease-in-out 0s;
}
@media (max-width: 576px) {
  .textHiddenArea .textHiddenShowButton:hover {
    transform: scale(1);
  }
}

.gameTitle {
  width: 100%;
  position: relative;
  font-size: 25px;
  font-weight: 700;
  color: var(--darkGreen);
}
@media (max-width: 576px) {
  .gameTitle {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .gameInfoText {
    font-size: 12px;
  }
}
