
  body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
  }

  header {
  text-align: center;
  padding-bottom: 20px;
  position: relative;
}

  #gameBoard {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 0 auto;
    width: 90%;
  }

  .card {
    width: 100%;
    height: 100px;
    background-color: #333;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
  }

  .flip {
  font-size :max(1.5em, 1.23em + 2cqi);
    transform: rotateY(180deg);
    transition: transform 0.5s;
  }


#scoreDisplay {

  top: 10px;
  right: 10px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  gap: 15px;
}

#scoreDisplay span {
  padding: 10px 20px;
  border-radius: 10px;
  background-color: #333;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

#scoreDisplay span:hover {
  background-color: #444;
}

#scoreDisplay span[style="background-color: blue"] {
  background-color: #2a3cdb;
}

#scoreDisplay span[style="background-color: red"] {
  background-color: #e74c3c;
}

#scoreDisplay .active {
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 0 rgb(255, 255, 255);
}


#scoreDisplay span {
  padding: 10px 20px;
  border-radius: 10px;
  background-color: #333;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

#scoreDisplay span:hover {
  background-color: #444;
}

.popup {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.popup-content {
  background-color: #333;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  width: 250px;
}

.popup-content h2 {
  margin-bottom: 20px;
}

.player-option {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
}

.player-option img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.player-option:hover {
  background-color: #444;
}

.popup.show {
  visibility: visible;
  opacity: 1;
}


#winnerPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

#winnerPopup.show {
  visibility: visible;
  opacity: 1;
}

#winnerPopup .popup-content {
  background-color: #333;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  width: 300px;
}

.game-button {
    position: relative;
    top: 0;
    cursor: pointer;
    text-decoration: none !important;
    outline: none !important;
    font-family: 'Carter One', sans-serif;
    font-size: 20px;
    line-height: 1.5em;
    letter-spacing: .1em;
    text-shadow: 2px 2px 1px #0066a2, -2px 2px 1px #0066a2, 2px -2px 1px #0066a2, -2px -2px 1px #0066a2, 0px 2px 1px #0066a2, 0px -2px 1px #0066a2, 0px 4px 1px #004a87, 2px 4px 1px #004a87, -2px 4px 1px  #004a87;
    border: none;
    margin: 15px 15px 30px;
    background: repeating-linear-gradient( 45deg, #3ebbf7, #3ebbf7 5px, #45b1f4 5px, #45b1f4 10px);
    border-bottom: 3px solid rgba(16, 91, 146, 0.5);
    border-top: 3px solid rgba(255,255,255,.3);
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 15px 10px;
    box-shadow: 0 6px 0 #266b91, 0 8px 1px 1px rgba(0,0,0,.3), 0 10px 0 5px #12517d, 0 12px 0 5px #1a6b9a, 0 15px 0 5px #0c405e, 0 15px 1px 6px rgba(0,0,0,.3);
  }
  .game-button:hover {
    top:2px;
    box-shadow: 0 4px 0 #266b91, 0 6px 1px 1px rgba(0,0,0,.3), 0 8px 0 5px #12517d, 0 10px 0 5px #1a6b9a, 0 13px 0 5px #0c405e, 0 13px 1px 6px rgba(0,0,0,.3);
  }
  .game-button::before {
    content: '';
    height: 10%;
    position: absolute;
    width: 40%;
    background: #fff;
    right: 13%;
    top: -3%;
    border-radius: 99px;
    }
  .game-button::after {
    content: '';
    height: 10%;
    position: absolute;
    width: 5%;
    background: #fff;
    right: 5%;
    top: -3%;
    border-radius: 99px;
    }

.game-button.green {
    background: repeating-linear-gradient( 45deg, #54d440, #54d440 5px, #52cc3f 5px, #52cc3f 10px);
     box-shadow: 0 6px 0 #348628, 0 8px 1px 1px rgba(0,0,0,.3), 0 10px 0 5px #2a6d20, 0 12px 0 5px #39822e, 0 15px 0 5px #1d4c16, 0 15px 1px 6px rgba(0,0,0,.3);
     border-bottom: 3px solid rgba(40, 117, 29, 0.5);
     text-shadow: 2px 2px 1px #348628, -2px 2px 1px #348628, 2px -2px 1px #348628, -2px -2px 1px #348628, 0px 2px 1px #348628, 0px -2px 1px #348628, 0px 4px 1px #1d4c16, 2px 4px 1px #1d4c16, -2px 4px 1px #1d4c16;
 }
 .game-button.green:hover {
   top:2px;
   box-shadow: 0 4px 0 #348628, 0 6px 1px 1px rgba(0,0,0,.3), 0 8px 0 5px #2a6d20, 0 10px 0 5px #39822e, 0 13px 0 5px #1d4c16, 0 13px 1px 6px rgba(0,0,0,.3);
 }
 

 canvas {
    z-index: 9999 !important; 
}