/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield; 
}

@font-face {
  font-family: Holtwood;
  src: url(Holtwood-font.ttf);
}
html {
  font-size: clamp(10px, 2vw,16px);
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-image: url(pictures/background.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: Holtwood;
  font-weight: 400;
  font-style: normal;
}

h2 {
  text-shadow: #0B0B0B 2px 2px 0px, #0B0B0B 4px 4px 0px;
}

h2.win  {
 color: rgb(71, 238, 10);
}
h2.lose {
  color: red ;
}
h2.bl {
  color: gold ;
}
h2.bust {
  color: red ;
}
h2.draw {
  color: rgb(229, 255, 0);
}
.kapital {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	padding: 0.6rem;
	background: darkgreen;
	border: 0.3rem solid darkolivegreen;
	border-radius: 5px;

  -webkit-box-shadow: 0px 0px 5px 1px #000000; 
   box-shadow: 0px 0px 5px 1px #000000;
}

.bet-area,
.special {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.special * {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#main_png {
  display: none;
 z-index: -1;
  position: absolute;
  height: 19rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* transition: 1s all ease-in-out; */
}
#main_png.play {
	top: 35%;
	left: 65%;
	height: 8rem;
	transform: unset;
	transition: 1s all;
}



#main_png.play:hover {
  transform: rotateY(180deg);

}
#chip_png {
  position: absolute;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#betrag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: gold;
}
#chip {
  position: relative;
  height: 6.2rem;
}

.input-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}



.player-hands {
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
}

.player-hands.split {
  gap: 3rem;
}

.player-deck,
.player-deck2,
.bank-deck {
  
  display: flex;
  align-items: center;
  height: 10rem;
  gap: 1.5rem;
}

.kart-container {
  position: relative;
  width: 6.2rem;
  height: 10rem;

}

.karte {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.3s ease 0.4s, opacity 0.4s ease;
  transform: rotateY(180deg);
  opacity: 1;
  
}
.karte.demo * {
  transform: rotateY(0deg);
  backface-visibility: unset;
}
.karte.demo  {
  transform: rotateY(0deg);
  backface-visibility: unset;
}

.karte.flip {
  transform: unset;
  opacity: 0;
}




#value {
  position: absolute;
  top: 5px;
  left: 5px;
}

.front::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 2rem;
  height: 2rem;
  background: #000;
}

.front::before {
  content: "♥";
  font-size: 1.5rem;
  font-family: "Font Awesome"; /* Specify the font family */
  position: absolute;
  top: 5px;
  right: 5px;
 
}

.back {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: whitesmoke;
  border: 0.3rem solid black;
  border-radius: 7px;
  -webkit-box-shadow: 0px 0px 5px 1px #000000; 
  box-shadow: 0px 0px 5px 1px #000000;
  backface-visibility: hidden;
  background-image: url(pictures/main.png);
  background-size: 95%;
  background-position: center;
  background-repeat: no-repeat;
}
.front {
  
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: whitesmoke;
  border: 0.3rem solid black;
  border-radius: 7px;
  -webkit-box-shadow: 0px 0px 5px 1px #000000; 
  box-shadow: 0px 0px 5px 1px #000000;
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

.menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
}

.game-over {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

button:hover {
  cursor: pointer;
  background-color: rgb(16, 214, 92);
}

button {
	display: flex;
  width: 100%;
	background-color: rgb(16, 182, 80);
	border: 0.3rem solid black;
	border-radius: 5px;
	margin: 0.3rem;
  padding: 0.3rem;
  font-family: Holtwood;
}

button span {
  margin: auto;
}

input {
  width: 100%;
  text-align: center;
  font-family: Holtwood;
  background-color: rgb(16, 182, 80);
  border: 0.3rem solid black;
  border-radius: 5px;
}


input:hover,
input:focus {
  cursor: pointer;
  background-color: rgb(16, 214, 92);

}

button.draw-btn,
button.pass-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}




.sum-area {
  font-size: 1.25rem;
}

.sum-area.b {
  color: #ff0000;
  text-shadow: #0B0B0B 2px 2px 0px, #0B0B0B 4px 4px 0px;
} 

.sum-area.p {
  color: #009fff;
  text-shadow: #0B0B0B 2px 2px 0px, #0B0B0B 4px 4px 0px;

} 

#draw-img,
#pass-img {
  height: 3rem;
  width:  3rem
}

span,
input {
  font-size: 0.8rem;
}
.sum-area span {
  font-size: 1.2rem;
}

@media only screen and (max-width: 550px) {
  .kapital,
  .menu {
    left: unset;
    bottom: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    

  }
  .kapital {
     width: 65vw;
     height: 6rem;
  }
  .menu {
    width: 100%;
    gap: 2rem;
  }
 
  .input-area {
    min-height: 100%;
  }


  .menu > * {
 
    flex-basis: 0;
    flex-grow: 1;
  }
  
  .special {
    width: 30%;
  }

}