  .game-font {font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serifx

}
/* --- OVERLAY THAT BLOCKS THE ENTIRE GAME --- */
#cardOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 999;     /* Above game board */
}

.hidden {
  display: none !important;
}



/* --- POPUP CARD --- */
#cardPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: #fff8d6;
  padding: 25px 40px;
  width: 320px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0px 8px 30px rgba(0,0,0,0.35);
  z-index: 1000;    /* Above overlay */
  font-family: 'Trebuchet MS', sans-serif;
  opacity: 0;
  animation: popIn 0.25s ease-out forwards;
}

/* --- POP-IN ANIMATION --- */
@keyframes popIn {
  from {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* --- TEXT INSIDE THE CARD --- */
#cardText {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

/* --- OK BUTTON --- */
#closeCardBtn {
  padding: 10px 30px;
  background: #f4d35e;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  box-shadow: 2px 4px #b59f45;
  transition: 0.2s ease-in-out;
}

#closeCardBtn:hover {
  background: #ffbe0b;
  transform: translateY(2px);
}


  
  .dicebutton {
    position: relative;
    top:80px;
    left:10px;
    padding: 15px 50px;
    color: #fff;
    background-color: #f4d35e;
    border: none;
    font-size: 20px;
    border-radius: 20px; 
    box-shadow: 1px 3px #50514F;
    outline: none;
    transition: .3s; 
  }
  
  .dicebutton:hover, .dicebutton:active {
    outline: none;
    background: #50514F;
    cursor: pointer;
    transform: translateY(15px); 
  }
  .dicebody{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background-color: #70c1b3;
  }
  .game {
    position: relative;
    width: auto;
    height: 100%; 
  }
  
  .dicecontainer {
    position: relative;
    display: inline-block;
    top: 200px;
  }
  
  .dice {
    position: relative;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    transition: transform 1s; 
  }
  
  .dot {
    position: absolute;
    width: 20px;
    height: 20px;
    margin: -10px 5px 5px -10px;
    border-radius: 20px;
    background-color: #f25f5c;
    box-shadow: inset 2px 2px #d90429;
  }
  
  .dice-one {
    position: absolute;
    left: 150px; 
  }
  
  .dice-two {
    position: absolute;
    left: -50px;
    
  }
  
  .side {
    position: absolute;
    background-color: #ffF;
    border-radius:5px;
    width: 100px;
    height: 100px;
    border: 1px solid #e5e5e5;
    text-align: center;
    line-height: 2em;
  }
  
  .side:nth-child(1) {
    transform: translateZ(3.1em); }
  
  .side:nth-child(6) {
    transform: rotateY(90deg) translateZ(3.1em); }
  
  .side:nth-child(3) {
    transform: rotateY(-90deg) translateZ(3.1em); }
  
  .side:nth-child(4) {
    transform: rotateX(90deg) translateZ(3.1em); }
  
  .side:nth-child(5) {
    transform: rotateX(-90deg) translateZ(3.1em); }
  
  .side:nth-child(2) {
    transform: rotateY(-180deg) translateZ(3.1em); }
  
  .show-1 {
    transform: rotateX(720deg) rotateZ(-720deg); }
  
  .show-2 {
    transform: rotateX(-900deg) rotateZ(1080deg); }
  
  .show-6 {
    transform: rotateY(-450deg) rotateZ(-1440deg); }
  
  .show-3 {
    transform: rotateY(810deg) rotateZ(720deg); }
  
  .show-4 {
    transform: rotateX(-810deg) rotateZ(-1080deg); }
  
  .show-5 {
    transform: rotateX(450deg) rotateZ(-720deg); }
  
  .two-1, .three-1, .four-1, .five-1, .six-1 {
    top: 20%;
    left: 20%; 
  }
  
  .four-3, .five-3, .six-4 {
    top: 20%;
    left: 80%; }
  
  .one-1, .three-2, .five-5 {
    top: 50%;
    left: 50%; }
  
  .four-2, .five-2, .six-3 {
    top: 80%;
    left: 20%; }
  
  .two-2, .three-3, .four-4, .five-4, .six-6 {
    top: 80%;
    left: 80%; }
  
  .six-2 {
    top: 50%;
    left: 20%; }
  
  .six-5 {
    top: 50%;
    left: 80%; 
  }
  