.center{
    text-align: center;
}
.actions {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.actions button {
    padding: 8px 16px;
    font-size: 30px;
    border-radius: 10px;
    background-color: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
}

.grid-container {
  display: grid;
  justify-content: center;
  grid-gap: 16px;
  grid-template-columns: repeat(4, 140px);
  width: 100%;
  max-width: 600px;
  margin: 20px 0;
}

.card {
  height: 145px;
  width: 145px;
  border-radius: 10px;
  background-color: white;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.5s ease-in-out;
}

.front-image {
  width: 140px;
  height: 140px;
}

.card.flipped {
  transform: rotateY(180deg);
}

.front, .back {
  backface-visibility: hidden;
  position: absolute;
  border-radius: 10px;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.card .front {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .back {
  background-image: url("images/memory/goldbackground.jpg");
  background-position: center center;
  background-size: cover;
}

.card .front {
  transform: rotateY(180deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(4, 90px);
  }

  .card {
    height: 100px;
    width: 100px;
  }

  .front-image {
    width: 100px;
    height: 100px;
  }

 

  .actions button {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(4, 90px);
  }

  .card {
    height: 85px;
    width: 85px;
  }

  .front-image {
    width: 90px;
    height: 90px;
  }

 
  .actions button {
    font-size: 18px;
    padding: 6px 12px;
  }
}
