/* Dev. by Leandromeda */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;700&family=Arial:wght@400;700&display=swap');

*{
  padding: 0;
  margin: 0;
  border: 0;
}
*,*:before,*:after{
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
:focus,:active{outline: none;}
a:focus,a:active{outline: none;}
  
nav,footer,header,aside{display: block;}
  
html,body{
  height: 100vh;
  width: 100%;
  line-height: 1.4; /* Aumentar um pouco para melhor legibilidade */
  font-size: 14px; /* Aumentar um pouco para melhor legibilidade */
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  /* Fundo bege muito suave e quente */
  background-color: #fcfaf9; 
}
input,button,textarea{font-family:inherit;}
  
input::-ms-clear{display: none;}
button{cursor: pointer;}
button::-moz-focus-inner {padding:0;border:0;}
a, a:visited{text-decoration: none;}
a:hover{text-decoration: none;}
ul li{list-style: none;}
img{vertical-align: top;max-width: 100%;opacity: 100%;}
img:hover{opacity: 100%;} 
  
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight: 400;}

body {
  font-family: 'Arial', sans-serif; /* Fonte sans-serif limpa para corpo do texto */
  color: #4a4a4a; /* Cinza escuro mais suave */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; 
}
button {
  opacity: 100%;
  margin: .4rem; /* Aumentar a margem para mais "airiness" */
  width: 14vw;
  height: 8vh;
  background-color: #f5f5f5; /* Fundo do botão mais claro */
  color: #555; /* Cor do texto do botão */
  font-size: 2.2vmin; /* Levemente menor para elegância */
  border: 1px solid #e0e0e0; /* Borda mais suave */
  border-radius: 8px; /* Cantos mais arredondados */
  transition: all 0.3s ease; /* Transição suave para hover */
  font-weight: 500;
}
button:hover {
  opacity: 100%;
  background-color: #f8e7e7; /* Rosa blush mais delicado */
  color: #333;
  border-color: #f5dcdc;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); /* Sombra mais visível no hover */
}
.hard:hover{
  background-color: #f8e7e7; /* Rosa blush */
  color: #000000; /* Vermelho mais suave para "difícil" */
  border-color: #f5dcdc;
}
button:active {
  opacity: 100%;
  background-color: #e8e8e8;
  color: #444;
  border-color: #d0d0d0; 
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra interna para "clique" */
} 
button:disabled {
  background-color: #fefefe;
  color: #b0b0b0;
  border-color: #f0f0f0; 
  cursor: not-allowed;
  box-shadow: none;
}
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}
.screen {
  width: 70vh;
  height: 60vh;
  position: absolute;
  top: 15.5vh;
  overflow: hidden;
  background-color: white; /* Fundo branco puro */
  /* Sombra elegante e sutil */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); 
  border-radius: 16px; /* Cantos mais arredondados para suavidade */
  cursor: pointer;
}
.start-screen {
  width: 100%;
  height: 100%;
  transition: .5s;
  z-index: 4;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 2rem; /* Adicionar padding na parte inferior */
}
.start-screen-title {
  font-size: 9vmin; /* Aumentar um pouco o título principal */
  font-family: 'Lora', serif; /* Fonte serif elegante */
  font-weight: 500; /* Peso médio para destaque */
  color: #333;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em; /* Pequeno espaçamento entre letras */
}
.start-screen-subtitle {
  margin-top: .2rem;
  font-size: 5vmin; /* Ligeiramente menor para hierarquia */
  font-weight: 400;
  color: #7a7a7a; /* Cinza médio */
  font-family: 'Lora', serif;
}
.start-screen-message {
  position: absolute;
  bottom: 1.5rem; /* Ajustar posição */
  font-size: 1.8vmin;
  color: #a0a0a0; /* Cinza mais claro */
  font-weight: 300;
}
.difficult-block {
  width: 100%;
  height: 100%;
  transition: .5s;
  z-index: 3;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  left: 0;
  top: 100%;
  padding: 2rem;
}
.title {
  margin-bottom: 1.5rem; /* Aumentar margem para espaçamento */
  font-size: 4.5vmin;
  font-family: 'Lora', serif;
  font-weight: 500;
  color: #333;
}
.difficult-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  width: 50%; /* Ligeiramente mais largo para centralizar */
}
.game-space {
  margin: 0 auto;
  position: absolute;
  height: 100%;
  transition: .5s;
  left: 0;
  top: 100%;
  z-index: 2;
  display: flex; /* Usar flexbox para centralizar itens do jogo */
  justify-content: center;
  align-items: center;
}
.game-space-easy {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: .8rem; /* Aumentar espaçamento para clean look */
  padding: 1rem; /* Adicionar padding */
}
.game-space-mid {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: .8rem;
  padding: 1rem;
}
.game-space-hard {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-gap: .6rem; /* Ajustar para caber mais itens */
  padding: 1rem;
}
.game-item {
  position: relative;
  top: 0; /* Remover top fixo */
  width: 100%;
  height: 100%;
}
.back-img, .front-img {
  transition: 1.1s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garantir que a imagem cubra o espaço */
  border-radius: 50%; /* IMAGENS CIRCULARES */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* Sombra sutil nas cartas */
}
.front-img {
  position: absolute;
  left: 0;
  top: 0;
}
.victory-screen {
  position: absolute;
  transition: .5s;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.98); /* Fundo quase opaco */
  padding-bottom: 2rem;
}
.victory-img {
  width: 35%; /* Ligeiramente menor */
  margin-bottom: 1.5rem; /* Aumentar margem */
}
.victory-img img {
  border-radius: 50%; /* IMAGEM DE VITÓRIA CIRCULAR */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Sombra mais proeminente */
}
.play-again-block {
  transition: .5s;
  display: none;
  opacity: 0;
  justify-content: center;
  width: 60%; /* Mais largo */
  margin-top: 1rem;
}
.background {
  width: 73vh;
  height: 80vh;
  display: flex;
  position: absolute;
  top: 7.1vh;
  justify-content: center;
  align-items: center;
}
.background-img {
  pointer-events: none;
  min-width: 100%;
  opacity: 0.15; /* Opacidade ainda mais baixa */
  filter: grayscale(100%); 
  border-radius: 50%; /* Imagens de fundo também circulares */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centralizar */
  max-width: 100%; /* Não ocupar 100% da largura, para sutilmente aparecer */
  max-height: 100%;
  object-fit: cover;
}
/* Flip Phone Estética Clean Girl */
.flip-phone{
  min-width: 100%;
  min-height: 100%;
  background: #fcfaf9; /* Fundo neutro e suave */
  color: #4a4a4a;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.flip-phone p {
  text-align: center;
  font-family: 'Arial', sans-serif;
  color: #5a5a5a;
  line-height: 1.6;
  font-size: 1.8vmin;
  margin-top: 1.5rem;
}
.flip-phone .title {
  font-family: 'Lora', serif;
  font-weight: 500;
  color: #333;
  font-size: 4vmin;
  margin-bottom: 0; /* Remover margem extra */
}
.flip-phone-img {
  width: 20%; /* Ligeiramente menor */
  margin-bottom: 1.2rem;
  animation: flipflip 2s linear infinite; 
}
.flip-phone-img img {
  border-radius: 50%; /* Imagem do flip phone circular */
}

@keyframes flipflip {
  0% {transform: rotate(0deg);}
  50% {transform: rotate(180deg);}
  100% {transform: rotate(360deg);}
}

@media (min-width: 120px) and (max-width: 1200px) {
  .container {
    background: #fcfaf9; 
  }
  .screen {
    width: 80vh;
    height: 75%;
    top: 10%;
    position: absolute;
    border-radius: 12px;
  }
  .background {
    top: 0%;
    width: 119vh;
    height: 100%;
  }
  button {
    width: 100%;
    height: 10vh;
  }
  .difficult-buttons {
    width: 70%;
  }
  .start-screen-title {
    font-size: 10vmin;
  }
  .start-screen-subtitle {
    font-size: 6vmin;
  }
  .title {
    font-size: 6vmin;
  }
  .flip-phone-img {
    width: 30%;
  }
  .flip-phone .title {
    font-size: 5vmin;
  }
  .flip-phone p {
    font-size: 2.5vmin;
  }
}