* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.splash-screen,
.finished-screen {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.75);
  cursor: no-drop;
}

.finished-screen {
  transition: 0.5s;
  display: none;
}

.finished-screen .window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ff7b00;
  color: #fff;
  padding: 20px;
  font-size: 28px;
  border-radius: 6px;
  width: 450px;
  height: 200px;
  cursor: pointer;
}

.ask-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}
.ask-user h1 {
  font-size: 22px;
  text-align: center;
}
.ask-user .ask {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}
.ask-user span {
  padding: 10px;
  width: 60px;
  height: 40px;
  background-color: #fff;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finished {
  z-index: 9999;
  text-align: center;
  line-height: 2;
  cursor: pointer;
}

.finished p {
  font-size: 22px;
}

.finished button {
  color: #000;
  padding: 10px 20px;
  font-size: 22px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.splash-screen span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ff7b00;
  color: #fff;
  padding: 15px 30px;
  font-size: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.app {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  height: 100vh;
  background-color: #eee;
  padding: 50px;
  text-align: center;
}

.info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  font-size: 22px;
  background-color: #fff;
  border: 2px solid #1165aa;
}

/* .info-container .name {

} */

/* .info-container .tries {

} */

.blocks-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0px auto;
  width: 800px;
}

.blocks-container.no-clicking {
  pointer-events: none;
}

.blocks-container .block {
  border: 2px solid #1165aa;
  position: relative;
  cursor: pointer;
  width: 9rem;
  height: 7.25rem;
  border-radius: 6px;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.blocks-container .block.is-flipped,
.blocks-container .block.has-match {
  transform: rotateY(180deg);
  pointer-events: none;
}

.blocks-container .block .face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.blocks-container .block .face::before {
  content: "?";
  position: absolute;
  width: 100%;
  height: 100%;
  font-size: 100px;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.blocks-container .block .front {
  background-color: #333;
  z-index: -2;
}

.blocks-container .block .back {
  background-color: #ccc;
  transform: rotateY(180deg);
}

.blocks-container .block .back img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}
