.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 100%;
}

.menu {
  /* display: flex;
  flex-direction: column;
  align-items: center; */
  margin: 20px auto;
  padding: 25px 0;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center; /* Center align the content */
  color: black;
}


#easyBtn {
  background-color: #2ecc71; /* Green */
}

#mediumBtn {
  background-color: #e67e22; /* Orange */
}

#menu button {
  width: 70%;
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  color: black;
}


#popup-convert button {
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  color: white;
  border: none;
  outline: none;
}

button:hover {
  filter: brightness(0.9); /* Darken the button on hover */
}

#loading-screen h1 {
  font-size: 4.5vw;
  letter-spacing: 8px;
}


.mid {
  display: flex;
  margin: 0 20px;
  min-height: 225px;
  justify-content: space-evenly;
  align-items: center;
  gap: 20px;
}

.p1, .p2 {
  text-align: center;
  width: 100%;
}

#playerOneCards, #playerTwoCards {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 205px;
}

.deck, .table {
  width: 20%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#deck, #remainingCards {
  width: 139px;
  margin-top: 2vh;
}

#player_one {
  display: flex;
  flex-direction: row;
  gap: -10px;
}
#player_two {
  display: flex;
  flex-direction: row;
}

.playerTwoIcon {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: transform 2.5s ease-in,  opacity 1.5s;
}

.playerTwoIcon.show {
  visibility: visible;
  opacity: 1;
  transform: scale(100);
}

.playerTwoIcon.vanish {
  opacity: 0;
  transform: scale(100);
  transition: transform 1.5s, opacity 1s, visibility 1.5s ease;
}

.playerTwoIcon img {
  width: 70px;
}

#popup-convert__background {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.7); */
  z-index: 999;
}

#popup-convert {
  display: flex;
  gap: 10px;
  visibility: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #fff0;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}

#popup-convert img {
  width: 70px;
  opacity: 1;
}
#popup-convert img#a-icon {
  width: 64px;
  height: 72px;
}
#popup-convert img#b-icon {
  width: 77px;
}
#popup-convert img#l-icon {
  width: 77px;
  height: 77px;
}

#popup-convert button
{
  background-color: transparent !important;
  outline: none;
  padding: 0 5px;
}

#popup-convert button:hover
{
  transform: scale(1.03);
  cursor: pointer;
}

#popup-convert img.tr {
  transform: scale(50);
  opacity: 0;
  transition: opacity 2s, transform 2.5s;
}

#popup-convert.show {
  visibility: visible;
  opacity: 1;
  background-color: #fff;
}

.vanish {
  opacity: 0;
  transition: opacity 2.5s ease-in, visibility 1.5s ease;
}

#log {
  position: absolute;
  top: 0;
  right: 0;
  background-color: white;
  color: black;
  width: 200px;
}

h3 {
  margin: 0;
}

.dealer {
  /* transform: scaleX(-1);
  visibility: hidden; */
  perspective: 1000px;
  width: 33vw;
  height: 33vw;
  max-width: 190px;
  max-height: 190px;
  display: flex;
  border-radius: 100%;
  margin-top: 40px;
}

.dealer-inner {
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  border-radius: 100%;
}

.dealer-front,
.dealer-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 100%;
  background-size: cover;
  box-shadow: 0px 0px 100px rgba(255, 255, 255, 0.6);

}

.dealer-front {
  background-image: url(../img/dealer.gif);
  transition: transform 0.5s;
}

.dealer-back {
  transform: rotateY(180deg);
  background-color: #d2d2d2;
  background-repeat: no-repeat;
  background-position: center;
}

.dealer-back.h {
  background-image: url(../img/icons/h-icon.png);
  background-size: 100px 100px;
}
.dealer-back.b {
  background-image: url(../img/icons/b-icon.png);
  background-size: 100px 107px;
}
.dealer-back.a {
  background-image: url(../img/icons/a-icon.png);
  background-size: 88px 108px;
}
.dealer-back.l {
  background-image: url(../img/icons/l-icon.png);
  background-size: 126px 139px;
}


.dealer img{
  width: 100%;
  height: 100%;
  background-color: #f4f4f4;
  box-shadow: 0px 0px 100px rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.cartoon-div {
  width: 100%;
  min-height: 80vh;
  background-color: #b75700;
  margin-top: 1vh;
}

#draw {
  display: flex;
  flex-direction: column;
}

.draw-card {
  margin: auto;
  width: 150px;
  height: 70px;
}

@media screen and (max-width: 480px) {
  .mid .card {
    scale: 0.9;
  }
  .mid {
    gap: 0px;
  }
}

@media screen and (max-width: 400px) {
  .mid .card {
    scale: 0.8;
  }
}

@media screen and (max-width: 350px) {
  .mid .card {
    scale: 0.7;
  }
}
