* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Arial", sans-serif;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    height: 100vh;
  }
  
  .board {
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-gap: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 30px;
  }
  
  .cards {
    width: 110px;
    height: 140px;
    cursor: pointer;
    perspective: 1000px;
    position: relative;
    border-radius: 10px;
    transition: transform 0.3s;
  }
  
  .cards-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
  }
  
  .cards.selected .cards-inner {
    transform: rotateY(180deg);
  }
  
  .cards-front,
  .cards-back {
    position: absolute;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  
  .cards-front {
    background: #ff847c;
  }
  
  .cards-back {
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
  }
  
  .cards.matched {
    border: 3px solid #0feb72;
    animation: fadeOut 1s forwards;
  }
  
  @keyframes fadeOut {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0.5;
    }
  }
  
  .score{
    margin: 10px;
  }
  .totalpoints{
    color: #0feb72;
  }

  #reloadButton {
    background-color: #008cba; /* Primary button color */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  #reloadButton:hover {
    background-color: #005f73; /* Darker shade on hover */
    transform: scale(1.05); /* Slight scaling effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
  
  .heading {
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    animation: slideIn 1.5s ease-out forwards;
    position: relative;
  }
  
  .span {
    color: #ffeb3b; /* Bright yellow for "Cards" */
    font-weight: bold;
    text-shadow: 2px 2px 1px #000; /* Black text border effect */
  }
  
  @keyframes slideIn {
    0% {
      transform: translateX(-100%);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
  