:root {
    --primary-color: #fb2727;
    --light-color: #f4f4f6;
    --dark-color: #111;
  }

.btn {
    position: fixed;
    top: 75%;
    left: 47.5%;
    display: inline-block;
    padding: 13px 20px;
    background: var(--light-color);
    color: #333;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: 0.5s;
  }

  .btn-dark {
    background: var(--dark-color);
    color: #fff;
  }
  
  .btn-block {
    display: block;
    width: 100%;
  }
  
  .btn-primary {
    background: var(--primary-color);
    color: #fff
  }

#game-board {
    display: grid;
    grid-template-columns: repeat(4, 100px); /* 4 columns, 100px each */
    grid-template-rows: repeat(4, 100px); /* 4 rows, 100px each */
    gap: 10px;
    margin: 20px auto;
    width: 420px;
}

.card {
    width: 100px;
    height: 100px;
    background-color: lightgray;
    border: 2px solid gray;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    cursor: pointer;
}

.card.flipped {
    /* Color will be set by JavaScript */
    color: white; /* Hide the color value*/
}

.card.matched {
    visibility: hidden; /* Hide matched cards */
}

#click-counter {
    position: fixed; /* Make it fixed to the viewport */
    top: 70%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for element size */
    font-size: 1.5em; /* Make it a bit bigger */
    background-color: rgba(128, 25, 25, 0.8); /* Add a semi-transparent background */
    padding: 10px 20px; /* Add some padding */
    border-radius: 5px; /* Round the corners */
}

#play-again-button {
    position: fixed;
    top: 80%;
    left: 45%;
    border-radius: 5px;
    font-size: 1.5em;
    padding: 10px 20px;
    background-color:rgba(188, 27, 27, 0.8)
}

.body {
    background-image: url("background1.png") no-repeat center center fixed;
    background-size: cover;
    color: #ffffff00;
    text-align: center;
}

@keyframes bounce {
  0%, 100% {
      transform: translateY(0); /* Start and end at the original position */
  }
  50% {
      transform: translateY(-65px); /* Move up by 20px */
  }
}

.bounce {
  display: inline-block; /* Ensure the element is treated as inline-block */
  animation: bounce 1s infinite; /* Apply the bounce animation */
  font-size: 2em; /* Optional: Adjust font size */
  color: pink; /* Optional: Match the existing style */
}

.secret {
  color: pink;
  font-size: 2em;
  position: fixed;
  top:50%;
  left: 84%;
}
   

