/* styles.css */
#gameContainer {
  display: grid;
  grid-template-columns: repeat(5, 150px);
  grid-gap: 10px;
  width: 800px;
  margin: auto;
  padding-top: 50px;
  /* padding-left: 1010px; */
}

/* body {
  background-image: url("competition-background.png") !important;
} */

.block {
  width: 150px;
  height: 150px;
  background-color: #000000b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid #ffffff;
  cursor: pointer;
  position: relative;
  perspective: 1000px;
  border-radius: 10px;
}

.block-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
}

.block-front,
.block-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.block-front {
  /* background-color: #ddd; */
  background-image: url("game-logo.png");
}

.block-back {
  /* background-color: #fff; */
  transform: rotateY(180deg);
  overflow: hidden; /* Ensures that the sliding panel doesn't show outside the block */
  background-color: #ffffff;
  border-radius: 7px;
}

.block-back-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: #ddd; Color of the garage door */
  background: #f7002d;
  transform: translateY(0%); /* Start covering the whole image */
  transition: transform 1s ease-in-out; /* Smooth transition for sliding effect */
  border-radius: 10px;
}
