* {
  box-sizing: border-box;
}

body {
  min-height: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0 1rem 1rem;

  background-image: url('https://res.cloudinary.com/dzres3un2/image/upload/v1721323049/New_Project_mt20xb.png');
  background-color: #12181f;
  color: white;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  @media (max-width: 650px) {
    padding: 0 0.25rem 1rem;
  }
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 40px;
}

.brand-logo {
  width: 100%;
  max-width: 250px;
}

h1 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 40px;
  padding-bottom: 50px;
  padding-top: 40px;
  margin: 0;

  @media (max-width: 445px) {
    font-size: 20px;
    padding-top: 20px;
    padding-bottom: 30px;
  }
}

p {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: bold;

  @media (max-width: 445px) {
    font-size: 20px;
  }
}

.actions {
  display: flex;
  flex-flow: row nowrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-height: 58px;
  margin: 0;

  @media (max-width: 970px) {
    max-height: 46px;
  }

  @media (max-width: 650px) {
    max-height: 38px;
  }

  @media (max-width: 350px) {
    max-height: none;

    flex-flow: column nowrap;
    gap: 6px;
  }
}

.buttons-1 {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  gap: 12px;

  @media (max-width: 350px) {
    flex-flow: column nowrap;
    gap: 6px;
  }
}

.buttons-2 {
  display: flex;
  flex-flow: row wrap;
  gap: 12px;

  @media (max-width: 350px) {
    flex-flow: column nowrap;
    gap: 6px;
  }
}

.actions button {
  padding: 8px 16px;
  margin: 0;
  font-size: 30px;
  border-radius: 10px;
  background-color: #eb5d1e;
  color: white;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  height: 100%;

  @media (max-width: 970px) {
    font-size: 20px;
  }

  @media (max-width: 650px) {
    font-size: 14px;
  }

  @media (max-width: 350px) {
    width: 100%;
  }

  @media (hover: hover) {
    &:hover {
      filter: brightness(80%);
      transition: filter 0.1s linear;
    }
  }
}

.timer {
  display: flex;
  justify-content: center;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: bold;
  padding-top: 25px;

  @media (max-width: 445px) {
    font-size: 20px;
    padding-top: 15px;
  }
}

.grid-container {
  display: flex;
  flex-flow: row wrap;
  gap: 16px;
  justify-content: center;
  max-width: 1000px;

  @media (max-width: 420px) {
    gap: 4px;
  }
}

.card {
  cursor: pointer;
  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;
  user-select: none;

  @media (max-width: 970px) {
    width: 100px;
    height: 140px;
  }

  @media (max-width: 650px) {
    width: 90px;
    height: 120px;
  }
}

.front-image {
  width: 60px;
  height: 60px;
  pointer-events: none;
}

.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;
  transform: rotateY(180deg);
}

.card .back {
  background-image: url('https://res.cloudinary.com/dzres3un2/image/upload/v1721322531/Screenshot_at_Jul_18_19-08-35_oahv70.png');
  background-position: center center;
  background-size: cover;
}
