
   @import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');
  * {   font-family: "Play", sans-serif; }
/* 
*{
      font-family: "Luckiest Guy", cursive;
      letter-spacing: 1px;
      font-weight: 400;
} */

 body {
    font-family: sans-serif;
    /* background: #eef2fc; */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('bgbody.png');
    background-position: top center;
    background-size: cover;
  }
  #home-page, #game-section {
    margin: 10%;
    margin-top: 10%;
  }
  #game-board {
    display: grid;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
  }
  .card {
     width: 16vw;
    height: 22vw;
    /* width: 80px;
    height: 100px; */
    perspective: 600px;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    /* color: transparent; */
/* 
    position: relative;
    transition: background 0.2s, color 0.2s; */

  }
  .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
    /* padding-top: 8px;
    padding-bottom: 8px; */
  }
  .card.flipped .card-inner {
    transform: rotateY(180deg);
  }
  .card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    backface-visibility: hidden;
  }
  .card-front {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(180deg);
  }
  .card-front img {
    /* max-width: 70px;
    max-height: 90px;
    border-radius: 6px; */
    max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  }
  .card-back {
     background-image: url('cardbg.png'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border: 1px solid #EF7722;
  }
  /* Radio button image selection styling */
  .image-radio input[type="radio"] {
    display: none;
  }
 

.image-radio img {
    width: 156px;
    /* width: 15%; */
    /* height: 64px; */
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    cursor: pointer;
    vertical-align: middle;
    transition: border-color 0.2s;
    
}
.image-radio input[type="radio"] + img , .image-radio input[type="radio"] + span{
    border: 4px solid #EF7722;
    padding: 8px;
    border-radius: 8px;
    
  
}


.image-radio input[type="radio"]:checked + img {
    border: 4px solid #EF7722;
    padding: 8px;
    border-radius: 8px;
    background-color: #FAA533;
}
.image-radio input[type="radio"]:checked + span {
    border: 4px solid #EF7722;
    padding: 8px;
    border-radius: 8px;
    background-color: #FAA533;

}
.image-radio {
    display: inline-block;
    margin: 0 24px 0 0;
    text-align: center;
    
}
.image-radio span {
    display: block;
    margin-top: 8px;
    /* font-size: 1rem; */
    font-size: clamp(1.5rem,10%,5rem);
    color: #fff;
}
.btn_card{
    border: none;
    background-color : #EF7722;
    color: #fff;
   
    padding: 8px 16px;
    font-size: 1.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-top: 2%;
    margin-bottom: 2%;
}
.d-flex{
    display: flex;

}
.sub_txt{
     font-size: clamp(1.8rem,10%,8rem);
  color: #fff;
  font-weight: 600;
  display: block;
  padding-bottom: 1%;
  padding-top: 2%;
}
/* @media  (max-width: 768px) {
   body {
  display: none;
  }
 .image-radio img {
    width: 600px ;
 }
} */

/* @media (min-width: 1080px) and (min-height: 1920px) {
   
} */
 .header{
  width: 100%;
  text-align: center;
  padding-top: 3%;
 }
 .header button img {
  width: 15%;
 }
 .stats{
  text-align: center;
  color: #fff;
  font-size: 1.5rem;
  width: 100%;
 }
  .stats .spanScore{
       background-image: url(scorebar.png);
    background-position: center;
    /* height: 68px; */
    background-size: cover;
    padding: 10px 20px;
    /* width: 384px; */

 }



 /* popup style  */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 300px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.popup-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.popup-content p{
  font-size: 1.2rem;
  color: #EF7722;
}
.popup-content h5{
  font-size: 2.5rem;
  color: #EF7722;
  margin: 0.5rem 0px;
}
.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    border: none;
}

.close-btn:hover {
    color: #333;
}

.hidden {
    display: none;
}