@font-face {
  font-family: MariadPro;
  src: url('/css/mainPage/fonts/MyriadPro-SemiCn.ttf');
}

@font-face {
  font-family: MariadProLight;
  src: url('/css/mainPage/fonts/MyriadPro-LightSemiCn.ttf');
}

@font-face {
  font-family: MariadProSemiBold;
  src: url('/css/mainPage/fonts/MyriadPro-Semibold.ttf');
}

@font-face {
  font-family: MariadProBoldSemiCn;
  src: url('/css/mainPage/fonts/MyriadPro-BoldSemiCn.ttf');
}

html {
  height: initial !important;
  width: 100vw;
  overflow-x: hidden;
}

body {
  background: none repeat scroll 0 0 #4c4c4c;
  margin: 0;
  font-size: 14px;
}

#main-wrapper {
  margin: 0 auto;
  min-width: 800px;
  min-height: 100vh;
  max-width: 1280px;
  position: relative;
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.top {
  height: 66px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background-color: #2cb2e4;
  border-radius: 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.top img {
  display: block;
  width: 35%;
  margin: 0 auto;
}

.bottom {
  min-height: 24px;
  padding: 2px 10px;
  box-sizing: border-box;
  background-color: #2cb2e4;
  border-radius: 7px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
}

.main-content {
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  padding: 1.5em 1em 1em 1em;
  justify-content: space-between;
  flex-grow: 1;
  min-height: calc(100vh - 100px);
}

.langSwitcher {
  color: white;
  font-family: sans-serif;
}

.games-table .game {
  text-align: center;
  display: inline-block;
  position: relative;
}

.games-table .game-short {
  text-align: center;
  padding: 0.1em 0.3em;
  display: inline-block;
}

.game div {
  position: relative;
}

.games-table .games-title {
  font-family: MariadPro, 'Arial Narrow', sans-serif;
  color: #226a86;
  font-weight: bold;
  box-sizing: border-box;
  font-size: 1.2em;
  min-width: 6.5em;
  padding: 1em 0 0 0.5em;
}

.games-table .games-title-short {
  padding: 0 0 0 10px;
}

#main-wrapper .games-table a {
  color: #226a86;
  text-decoration: none;
  font-family: MariadPro, 'Arial Narrow', sans-serif;
  font-weight: bold;
}

.gameTitle {
  white-space: nowrap;
  padding-bottom: 0em;
  display: block;
}

.medium {
  height: 185px;
}

.medium .game {
  width: 137px;
}

.medium img {
  width: 130px;
}

.other-games {
  margin-top: 20px;
}

.other-games .game {
  padding: 5px 5px 0px 5px;
  max-width: 70px;
}

.other-games .games-title span {
  margin-top: 55px;
}

.other-games img {
  width: 60px;
}

.newGame {
  display: block;
  position: absolute;
  top: 10px;
  left: 0px;
  text-align: left;
  color: rgb(249, 249, 249);
  transform: rotate(-27deg);
  width: 43px;
  background: rgba(247, 8, 8, 1);
  border-radius: 15px;
  padding: 4px;
  padding-left: 8px;
  height: auto;
}

.other-games .newGame {
  top: 5px;
  left: 5px;
  width: 30px;
  padding: 1px;
}

.onlineCount {
  display: none;
  position: absolute;
  bottom: 0px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 2px 2px 2px;
  border-radius: 5px 0px 0px 0px;
  border: 1px solid;
  min-width: 20px;
}

.title {
  font-family: MariadPro, 'Arial Narrow', sans-serif;
  color: #226a86;
  font-weight: bold;
  text-align: right !important;
}

.allGamesTable {
  border-collapse: collapse;
  border: none;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  background-color: white;
  -moz-user-select: -moz-none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  width: 950px;
  margin: 0 auto;
  margin-top: 50px;
}

.allGamesTable td,
.allGamesTable th {
  border: none;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  padding: 3px 3px 3px 6px;
  text-align: center;
}

.allGamesTable tr> :nth-child(2) {
  width: 110px;
}

.allGamesTable th,
.gameLabel {
  background-color: #f7f7f7;
}

.allGamesTable th p {
  font-weight: normal;
  margin-top: 2px;
}

tr.newType {
  border-bottom: 2px solid;
}

.allGamesTable #col1 {
  min-width: 140px;
}

#lg-server-link {
  display: inline-block;
}

.message {
  width: 600px;
  margin: 0 auto;
  padding-top: 100px;
}

.online {
  color: #008DD2;
  font-weight: bold;
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  position: absolute;
  bottom: 1px;
  right: 13px;
  background-color: #fffffff2;
  min-width: 15px;
  padding: 0 3px;
  cursor: pointer;
}

span.guestbookUnreadCount {
  position: absolute;
  background: #fffffff5;
  color: red;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  transform: translateY(-100%);
  padding: 1px;
  min-width: 23px;
  box-sizing: border-box;
  text-align: center;
  left: 14px;
  margin-top: -1px;
}

.showStatsBtn {
  cursor: pointer;
  text-align: center;
  font-size: 1.3em;
  color: #226a86;
  font-family: MariadPro, 'Arial Narrow', sans-serif;
  font-weight: bold;
  text-decoration: underline;
}

.switchLocale {
  position: absolute;
  right: -58px;
  top: 0;
  display: flex;
  flex-direction: column;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  gap: 5px;
}

.switchLocale a {
  box-sizing: border-box;
  width: 48px;
  height: 34px;
  padding: 0;
  color: #cdcdcd;
  background-color: transparent;
  border: 2px solid currentColor;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.switchLocale a:hover {
  color: #f0efef;
  border-color: #f0efef;
}

.showMobile {
  display: none;
}

@media only screen and (max-device-aspect-ratio: 13/9) and (min-device-width: 320px) and (max-device-width: 480px) {
  body {
    overflow-x: hidden;
    -ms-scroll-chaining: none;
    overscroll-behavior: contain;
  }

  #main-wrapper {
    max-width: unset;
    min-width: unset;
    width: 100%;
  }

  .stats {
    display: none;
    overflow-x: scroll;
  }

  .showStatsBtn {
    display: inline-block;
    color: #008DD2;
    text-decoration: none;
    font-family: sans-serif, Verdana, "Trebuchet MS";
    font-weight: bold;
    line-height: 17px;
  }

  .allGamesTable {
    width: 100%;
  }

  .allGamesTable tr>:nth-child(1),
  .allGamesTable tr>:nth-child(7),
  .allGamesTable tr>:nth-child(8),
  .allGamesTable tr>:nth-child(9),
  .allGamesTable tr>:nth-child(10),
  .allGamesTable tr>:nth-child(2) {
    display: none;
  }

  .allGamesTable th,
  .allGamesTable td {
    width: 1% !important;
  }

  .top,
  .bottom {
    border-radius: 0;
  }

  .top img {
    width: calc(100% - 20px);
    max-width: 453px;
  }

  .games-table {
    padding-left: 5px;
    padding-right: 5px;
  }

  .showMobile {
    display: block;
  }

  .hideMobile {
    display: none;
  }
}

.games-table {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  justify-content: space-between;
  -webkit-justify-content: space-between;
  flex-basis: 70%;
  flex-grow: 2;
  max-width: 840px;
}

.game-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.games-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 0em;
  grid-row-gap: 0.5em;
  flex-basis: 50%;
  flex-grow: 1;
}

.games-list-short {
  flex-grow: 1;
  padding-left: 0em;
  font-size: 0.9em;
}

.games-list-short>:first-child {
  justify-content: space-between;
}

.games-list-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1px;
}

@media only screen and (min-device-width: 900px) and (max-device-width: 1100px) {
  .games-list {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media only screen and (min-device-width: 100px) and (max-device-width: 900px) {
  .games-list {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}



.right-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  max-width: 305px;
}

.right-links {
  font-family: MariadProBoldSemiCn, sans-serif;
  border: 1px solid #0B1F4D;
  background-color: #E9F6FD;
  border-radius: 3px;
  padding: 0 0.5em 0.5em 0.5em;
  flex-grow: 1;
  margin-bottom: 2em;
  display: flex;
  flex-direction: column;
  max-height: 800px;
}

.right-links-title {
  color: #4F4F4E;
  text-align: center;
  letter-spacing: 3px;
  padding: 0.7em 0;
  font-size: 1.1em;
  font-family: 'MariadPro', 'Arial Narrow';
}

.right-links-list {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.right-links-list>:not(:last-child) {
  border-bottom: 1px solid #c8c9c7;
}

.right-link {
  background-color: white;
  padding: 0.2em 1em 0.2em 2em;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-grow: 1;
  justify-content: center;
}

.right-link:hover {
  background-color: #FCF6CB;
}

.right-link-title {
  font-weight: bold;
  color: #000;
}

.right-link-address {
  color: #4F4F4E;
  font-family: MariadPro, 'Arial Narrow';
}

.right-adds {
  height: auto;
  width: 100%;
}

.banner {
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
  padding-top: 60.6956521739%;
}

.banner-img1 {
  background-image: url("/img/mainPage/banners/translate.jpg");
}

.banner-img2 {
  background-image: url("/img/mainPage/banners/flurograf_v3.jpg");
}

.banner-img3 {
  background-image: url("/img/mainPage/banners/pirozki.jpg");
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  .main-content {
    flex-direction: column;
  }

  .game-row {
    flex-direction: column;
  }

  .right-wrapper {
    margin-top: 20px;
  }
}

@media only screen and (min-device-width: 1400px) and (min-device-height: 1000px) {
  body {
    font-size: 15px;
  }

  .games-list {
    grid-row-gap: 1em;
  }
}

@media only screen and (min-device-width: 1400px) and (min-device-height: 1100px) {
  body {
    font-size: 16px;
  }

  .games-table {
    max-width: 890px;
  }

  .games-list {
    grid-row-gap: 2em;
  }
}

@media only screen and (min-device-width: 1400px) and (min-device-height: 1300px) {
  body {
    font-size: 16px;
  }

  .games-table {
    max-width: 890px;
  }

  .games-list {
    grid-row-gap: 3em;
  }
}

html[lang=en] .right-wrapper {
  display: none;
}

html[lang=en] .games-table {
  max-width: calc(100% - 6.5em);
}

html[lang=en] .sprite {
  --n: 0.7;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  html[lang=en] .games-table {
    max-width: 100%;
  }
}