/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.3.6,
* Autoprefixer: v10.3.1
* Browsers: last 4 version
*/

:root {
  --none: rgb(202, 202, 202);
  --color2: #fff176;
  --color4: rgb(255, 217, 0);
  --color8: rgb(255, 145, 0);
  --color16: rgb(255, 72, 0);
  --color32: rgb(0, 255, 34);
  --color64: rgb(0, 255, 234);
  --color128: rgb(0, 102, 255);
  --color256: rgb(140, 0, 255);
  --color512: rgb(255, 0, 212);
  --color1024: rgb(255, 0, 98);
  --color2048: rgb(255, 0, 0);
  --color4096: #283593;
  --color8192: #2e7d32;
  --color16384: #212121;
  --color32768: #ffff00;
  --maincolor: #fff176;
}

@-webkit-keyframes show {
  0% {
    /* display: none; */
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes show {
  0% {
    /* display: none; */
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes hide {
  100% {
    display: none;
    opacity: 0;
  }
  0% {
    opacity: 1;
  }
}
@keyframes hide {
  100% {
    display: none;
    opacity: 0;
  }
  0% {
    opacity: 1;
  }
}

* {
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: hidden;
}
body {
  background-color: #1d1d1d;
}

#counter {
  position: absolute;
  top: 4vh;
  right: 4vh;
  z-index: 10000;
  background-color: #292929;
  color: var(--maincolor);
  font-size: 3vh;
  border: 0;
  width: 10vh;
  text-align: center;
  height: 4vh;
  line-height: 4vh;
  border-radius: 3%;
  cursor: default;
}
#reset {
  position: absolute;
  top: 4vh;
  left: 4vh;
  z-index: 10000;
  background-color: var(--maincolor);
  color: #ffffff;
  font-size: 2.5vh;
  border: 0;
  width: 10vh;
  text-align: center;
  height: 4vh;
  line-height: 4vh;
  border-radius: 3%;
  font-family: sans-serif;
  cursor: pointer;
}

#logout {
  position: absolute;
  bottom: 8vh;
  left: 4vh;
  z-index: 10000;
  background-color: var(--maincolor);
  color: #ffffff;
  font-size: 2.5vh;
  border: 0;
  width: 10vh;
  text-align: center;
  height: 4vh;
  line-height: 4vh;
  border-radius: 3%;
  font-family: sans-serif;
  cursor: pointer;
}

#rank {
  position: absolute;
  top: 4vh;
  right: 15vh;
  z-index: 10000;
  background-color: var(--maincolor);
  color: #ffffff;
  font-size: 2.5vh;
  border: 0;
  width: 10vh;
  text-align: center;
  height: 4vh;
  line-height: 4vh;
  border-radius: 3%;
  font-family: sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.rankField {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 80vw;
  height: 80vh;
  background-color: rgba(41, 41, 41, 0.9);
  position: absolute;
  z-index: 1000000000;
  top: 10vh;
  left: 10vw;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  color: white;

  font-family: sans-serif;
  font-size: 3vh;
  -webkit-animation: show 1s forwards;
  animation: show 1s forwards;
  text-align: center;
}

tbody > tr:first-child {
  color: var(--maincolor);
  border-bottom: 1px white solid;
  font-size: 4vh;
}

tbody > tr {
  /* border: 2px solid white; */
}
table {
  border-collapse: collapse;
  width: 50vw;
  height: 45vh;
}

.box_game {
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: 1fr 1vh 1fr 1vh 1fr 1vh 1fr;
  grid-template-rows: repeat(4, 1fr);
  -ms-grid-columns: 1fr 1vh 1fr 1vh 1fr 1vh 1fr;
  grid-template-columns: repeat(4, 1fr);
  height: 40vh;
  width: 40vh;
  grid-gap: 1vh;
}

.box_game > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}

.box_game > *:nth-child(2) {
  -ms-grid-row: 1;
  -ms-grid-column: 3;
}

.box_game > *:nth-child(3) {
  -ms-grid-row: 1;
  -ms-grid-column: 5;
}

.box_game > *:nth-child(4) {
  -ms-grid-row: 1;
  -ms-grid-column: 7;
}

.box_game > *:nth-child(5) {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
}

.box_game > *:nth-child(6) {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
}

.box_game > *:nth-child(7) {
  -ms-grid-row: 3;
  -ms-grid-column: 5;
}

.box_game > *:nth-child(8) {
  -ms-grid-row: 3;
  -ms-grid-column: 7;
}

.box_game > *:nth-child(9) {
  -ms-grid-row: 5;
  -ms-grid-column: 1;
}

.box_game > *:nth-child(10) {
  -ms-grid-row: 5;
  -ms-grid-column: 3;
}

.box_game > *:nth-child(11) {
  -ms-grid-row: 5;
  -ms-grid-column: 5;
}

.box_game > *:nth-child(12) {
  -ms-grid-row: 5;
  -ms-grid-column: 7;
}

.box_game > *:nth-child(13) {
  -ms-grid-row: 7;
  -ms-grid-column: 1;
}

.box_game > *:nth-child(14) {
  -ms-grid-row: 7;
  -ms-grid-column: 3;
}

.box_game > *:nth-child(15) {
  -ms-grid-row: 7;
  -ms-grid-column: 5;
}

.box_game > *:nth-child(16) {
  -ms-grid-row: 7;
  -ms-grid-column: 7;
}

.game {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100vw;
  height: 85vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

#music {
  position: absolute;
  bottom: 2vh;
  left: 4vh;
  z-index: 10000;
  color: #ffffff;
  background: var(--maincolor);
  fill: white;
  font-size: 3vh;
  border: 0;
  width: 10vh;
  text-align: center;
  height: 4vh;
  line-height: 4vh;
  border-radius: 3%;
  font-family: sans-serif;
  cursor: pointer;
}

#theme {
  position: absolute;
  bottom: 2vh;
  right: 5vh;
  z-index: 10000;
  color: #ffffff;
  background-color: transparent;
  font-size: 2vh;
  border: 0;
  width: 15vh;
  text-align: center;
  height: 4vh;
  line-height: 4vh;
  border-radius: 3%;
  font-family: sans-serif;
  cursor: pointer;
}
#theme > option {
  background-color: #1d1d1d;
  cursor: pointer;
}
#language {
  z-index: 10000;
  color: #ffffff;
  background-color: transparent;
  font-size: 2vh;
  border: 0;
  width: 15vh;
  text-align: center;
  height: 4vh;
  line-height: 4vh;
  border-radius: 3%;
  font-family: sans-serif;
  cursor: pointer;
}
#language > option {
  background-color: #1d1d1d;
  cursor: pointer;
}

.card {
  background-color: rgb(202, 202, 202);
  /* border: 4px solid white; */
  border-radius: 3%;
  width: 100%;
  height: 100%;
  color: white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  transition: 0.3s;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 4vh;
  font-family: sans-serif;
}

.none1 {
  background-color: var(--none);
}

.field-2 {
  background-color: var(--color2);
}

.field-4 {
  background-color: var(--color4);
}

.field-8 {
  background-color: var(--color8);
  /* transform: rotateX(360deg); */
}

.field-16 {
  background-color: var(--color16);
}

.field-32 {
  background-color: var(--color32);
}

.field-64 {
  background-color: var(--color64);
}

.field-128 {
  background-color: var(--color128);
}

.field-256 {
  background-color: var(--color256);
}

.field-512 {
  background-color: var(--color512);
}

.field-1024 {
  background-color: var(--color1024);
}

.field-2048 {
  background-color: var(--color2048);
}
.field-4096 {
  background-color: var(--color4096);
}
.field-8192 {
  background-color: var(--color8192);
}
.field-16384 {
  background-color: var(--color16384);
}
.field-32768 {
  background-color: var(--color32768);
}

.controlBtn {
  cursor: pointer;
  background-color: var(--maincolor);
  border: 0;
  width: 10vh;
  height: 10vh;
  color: white;

  font-size: 4vh;
  font-family: sans-serif;
}
#btnContainer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 5vh;
  width: 100%;
}
#btnsC {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 50vh;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
#notification > h1 {
  color: var(--maincolor);
}

.notification {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 60vw;
  height: 45vh;
  background-color: rgba(41, 41, 41, 0.9);
  position: absolute;
  z-index: 1000000000;
  top: 20vh;
  left: 20vw;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  color: white;
  line-height: 4vh;
  font-family: sans-serif;
  font-size: 2vh;
  -webkit-animation: show 1s forwards;
  animation: show 1s forwards;
}
.notification > hr {
  width: 80%;
}

.notification > div > p > i {
  color: var(--maincolor);
  font-size: 3vh;
}
.notification > div > button {
  background-color: var(--maincolor);
  color: #ffffff;
  font-size: 1.5vh;
  border: 0;
  width: 10vh;
  text-align: center;
  height: 4vh;
  line-height: 4vh;
  border-radius: 3%;
  font-family: sans-serif;
  cursor: pointer;
}

.displayNone {
  -webkit-animation: hide 1s forwards;
  animation: hide 1s forwards;
}
.firstDisplayNone {
  display: none;
}

@media (orientation: portrait) {
  #notification {
    width: 70vw;
    height: 50vh;
    top: 25vh;
    left: 15vw;
    text-align: center;
  }
  #notification > h1 {
    font-size: 3vh;
  }
  #notification > div > button {
    font-size: 2.5vh;
    width: 13vh;
    height: 5vh;
  }
  #rankFieldId > table > tbody > tr {
    font-size: 2.5vh;
  }
}
