body {
  min-height: 100vh;
  min-width: 100vh;
  background-color: #12181f;
  color: white;
}

.container {
  display: block;
  background: url(/assets/lights_out.png) center top no-repeat;
  background-size: 50% auto;
}

h1 {
    text-align: center;
    font-weight: 700;
    font-size: 50px;
}

p {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
}

.logo {
  display: flex;
  justify-content: center;
  padding-top: 10px;
  padding-right: 255px;
}

.subheader {
  display: flex;
  justify-content: center;
  text-align: center;
}

.actions {
    display: flex;
    justify-content: center;
}

.actions button {
    padding: 8px 16px;
    font-size: 30px;
    border-radius: 10px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
}

.grid-container {
  display: grid;
  justify-content: center;
  grid-gap: 16px;
  grid-template-columns: repeat(6, 140px);
  grid-template-rows: repeat(2, calc(140px / 2 * 3));
}

.card {
  height: calc(140px / 2 * 3);
  width: 140px;
  border-radius: 10px;
  background-color: white;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.5s ease-in-out;
}

.front-image {
  width: 100%;
}

.front-text {
  color: #000;
  display: block;
  position: absolute;
  top: 185px;
}


.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(/assets/game/card-bg.jpg);
  background-position: center center;
  background-size: cover;
  backface-visibility: hidden;
}

.card .front {
  transform: rotateY(180deg);
}

.win-overlay {
  z-index: 99999;
}

.win-overlay .img1{
  position: absolute;
  top: 0;
}

.win-overlay .img2{
  position: absolute;
  top: 0;
  right: 0;
}

.hidden {
  display: none;
}