@font-face {
  font-family: "andhyta";
  src: url("fonts/andhyta/Andhyta\ \(DEMO\).otf");
}

@font-face {
  font-family: "pricedown";
  src: url("fonts/pricedown/pricedown\ bl.otf");
}

@font-face {
  font-family: "antipasto";
  src: url("fonts/antipasto/AntipastoPro-Light_trial.ttf");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-drag: none;
  font-family: "pricedown";
}

.tittle {
  font-family: "andhyta";
  font-size: 100px;
  color: gold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.664);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.icons{
  width: 120px;
  filter: drop-shadow(rgba(0, 0, 0, 0.664) 2px 2px 5px);
}


body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  background: url("img/bg.jpg") center center no-repeat;
  background-size: cover;
}

body div {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table {
  width: 900px;
  height: 600px;
  background-color: rgb(0, 90, 0);
  outline: 10px solid #6e360e;
  border: none;
  border-radius: 40px;
  position: relative;
  z-index: 20;
  box-shadow:
    20px 0px 25px rgba(0, 0, 0, 0.7),
    0px 20px 25px rgba(0, 0, 0, 0.7),
    -20px 0px 25px rgba(0, 0, 0, 0.7),
    0px -20px 25px rgba(0, 0, 0, 0.7);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.table::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid black;
  z-index: -2;
  border-radius: 40px;
}

.guestCont,
.botCont {
  display: flex;
  flex-direction: row;
  position: absolute;
  padding: 0;
  left: 0;
}

#header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  height: 120px;
  color: gold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.664);
}

#header p {
  font-size: 30px;
}

.btns {
  position: absolute;
  display: flex;
  flex-direction: column;
  right: 0;
}

.btns button, #restartBtn{
  width: 70px;
  height: 40px;
  border: 3px solid gold;
  color: gold;
  border-radius: 20px;
  background-color: rgb(199, 150, 27);
  margin: 10px 0;
  font-size: 20px;
  padding: 20px;
  font-family: "antipasto";
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.664);
  filter: drop-shadow(rgba(0, 0, 0, 0.76) 2px 2px 5px);
  transition: .3s;
}

.btns button:hover{
  scale: 1.15;
}

button:disabled{
  opacity: 0.5;
  cursor: default;
}

.botCont {
  top: 0;
}

.guestCont {
  bottom: 0;
}


#pCards,
#gCards {
  position: absolute;
  left: 150px;
}

.gImg {
  margin-left: -100px;
  margin-bottom: -50px;
  transform: translate(0%, 100%);
}

.gImg:first-child {
  margin-left: 0;
}

.pImg:nth-child(3) {
  animation-delay: .1s;
}
.pImg:nth-child(4) {
  animation-delay: .3s;
}
.pImg:nth-child(5) {
  animation-delay: .5s;
}
.pImg:nth-child(6) {
  animation-delay: .7s;
}

.pImg {
  margin-left: -100px;
  margin-bottom: -50px;
  transform: translate(0%, 100%);
}

.pImg:first-child {
  margin-left: 0;
}

#pCards img {
  margin-left: -100px;
  margin-bottom: -125px;
  /* transform: rotateY(180deg); */
}

#pCards img:first-child {
  margin-left: 0;
}

/* #region Help */

.help {
  position: absolute;
  display: inline-block;
  left: 25px;
  bottom: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  background-color: gold;
  cursor: pointer;
  filter: drop-shadow(black 2px 2px 5px);
  z-index: 20;
}

.help::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(199, 150, 27);
  opacity: 0;
  font-size: 0px;
  transition: width .3s, font-size .3s .1s;
  font-family: "antipasto";
  color: gold;
  text-shadow: 1px 1px 1.5px rgba(0, 0, 0, 0.596);
  font-weight: bold;
}

.help:hover::after {
  content: "Szabályok mutatása";
  font-size: 18px;
  opacity: 1;
  width: 180px;
  left: 100%;
}


.helpSvg {
  width: 50px;
  height: 50px;
  fill: rgb(199, 150, 27);
}

.filter{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  background-color: rgba(0, 0, 0, 0.411);
  z-index: 50;
}

.helpCont{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 700px;
  background-color: rgba(53, 53, 53, 0.753);
  backdrop-filter: blur(5px);
  /* display: none; */
  z-index: 100;
  border-radius: 50px;
  border: 2px solid rgb(75, 75, 75);
  flex-direction: column;
  align-items: baseline;
  justify-content: flex-start;
  color: rgb(228, 228, 228);
  scale: 0%;
  transition: .3s scale;
}



.closeIcon{
  position: absolute;
  top: 20px;
  right: 20px;
  fill: rgb(102, 102, 102);
  cursor: pointer;
  transition: .3s ease-in-out;
}

.closeIcon:hover{
  transform: rotate(180deg);
  scale: 1.25;
}


.helpCont h1 {
  margin-top: 20px;
  font-size: 35px;
  text-align: center;
  width: 100%;
  font-family: "antipasto";
}

.helpCont > * {
  font-family: 'Courier New', Courier, monospace;
}

.helpCont .cel {
  margin-top: 60px;
}

.kartyak {
  margin-top: 40px;
  list-style-position: inside;
  width: 100%;
}

b {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bolder;
}

.kartyak li{
  width: 100%;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  align-items: center;
  justify-content: start;
  margin: 10px 0;
  margin-left: 20px;
  position: relative;
}

.kartyak li::after {
  position: absolute;
  transform: translate(0%, -50%);
  top: 50%;
  left: -20px;
  rotate: 45deg;
  content: "";
  width: 5px;
  height: 5px;
  background-color: rgb(228, 228, 228);
}

.kiskepek img{
  width: 50px;
  height: 80px;
  margin: 0 5px;
}

.jatekos, .oszto{
  margin-top: 20px;
}


.version, .megjegyzes{
  position: absolute;
  bottom: 50px;
  left: 20px;
  font-size: 16px;
  color: gray;
}

.version{
  width: max-content;
  bottom: 20px;
}

/* #endregion */


/* #region Nyertes */

.winnerCont {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translate(-50%, -120%);
  width: 600px;
  height: 300px;
  background-color: rgba(53, 53, 53, 0.753);
  backdrop-filter: blur(5px);
  z-index: 100;
  border-radius: 50px;
  border: 2px solid rgb(75, 75, 75);
  flex-direction: column;
  align-items: baseline;
  justify-content: flex-start;
  color: rgb(228, 228, 228);
  transition: .3s transform;
}

#nyert, #veszt {
  font-family: "antipasto";
  font-weight: bolder;
  font-size: 50px;
  letter-spacing: 5px;
  display: none;
  text-align: center;
  width: 100%;
  margin-top: 5px;
}

#nyert {
  color: green;
}

#veszt {
  color: rgb(180, 0, 0);
}

#winnerMessage {
  font-family: 'Courier New', Courier, monospace;
  margin-top: 20px;
  width: 100%;
  text-align: center;
  font-size: 18px;
}

.winnerCont #restartBtn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 0%);
}

/* #endregion */

.show{
  scale: 100%;
  display: flex;
}

.showWinner{
  transform: translate(-50%, 0%);
}

/* #region Animációk */

.playerSlideIn {
  animation: playerCardSlideIn 1s cubic-bezier(0.4, 0, 0.4, 1.3) forwards;
}

.botSlideIn {
  animation: botCardSlideIn 1s cubic-bezier(0.4, 0, 0.4, 1.3) forwards;
}

@keyframes playerCardSlideIn {
  from {
    transform: translate(0%, 100%);
  }

  to {
    transform: translate(0%, 0%);
  } 
}

@keyframes botCardSlideIn {
  from {
    transform: translate(0%, -110%);
  }

  to {
    transform: translate(0%, 0%);
  } 
}