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

:root {
  font-size: 62.5%;
}

.hide {
  display: none;
}

body {
  height: 100%;
  background: linear-gradient(45deg, #190361, #bb00ff, #ff7000);
  background-size: 200% 200%; /*200 em largura e 200 em altura*/
  display: grid;
  place-items: center;
  text-align: center;

  animation: colors 10s ease infinite;


}

main {
  height: 100vh;
  margin: 2rem auto 4rem;

}

div {
  background: #ffffff;
  box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.8);
  border-radius: 5px;
}

div #flex {
  box-shadow: none;
}

body,
p,
button {
  font-family: 'DM Sans', sans-serif;
}

/* Primeira tela */

.screen1 {
  margin: 5rem auto 0;
  padding: 4.8rem 6.4rem 6rem;

  width: min(40rem, 95%);

}

h1 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1.4rem;

  font-weight: 700;
  font-size: 2.4rem;
  line-height: 2.9rem;

  color: #34355b;
}

p {
  margin-bottom: 2rem;

  font-weight: 400;
  font-size: 1.5rem;
  line-height: 2rem;

  color: #34355b;
}

.screen1 img:hover {
  animation: shake 300ms 100ms infinite ease-out;
}

#btnPlay {
  appearance: none;
  background: none;
  border: none;
}

/* Segunda Tela*/

.screen2 {
  width: min(42rem, 90%);
  padding: 4.8rem 6.4rem;
  margin: 0 auto;
}

.screen2 h1 {
  margin-bottom: 1.7rem;
}

.mensage {
  font-family: 'Dancing Script', cursive;

  background: #e4edf1;
  box-shadow: 2px 2px 2px rgba(85, 85, 85, 0.5);

  padding: 1rem;

  /* font-weight: 400; */
  font-size: 2.4rem;
  line-height: 2.9rem;

  color: #000000;

  margin-bottom: 6rem;

  border-radius: 0.5rem;

  transition: 0.2s ease-in;

  animation: emerged 700ms 0ms;
}

.mensage:hover {
  transform: scale(1.1);
}

.screen2 img {
  width: fit-content;
  margin: 0 auto 6rem;
}

#btnAgain {
  padding: 1.6rem;

  background: #ff9500;
  border: none;
  border-radius: 0.4rem;

  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;

  color: #ffffff;

  animation: colors 10s ease infinite;
}

#btnAgain:hover {
  background: linear-gradient(45deg, #190361, #bb00ff, #ff7000);
  background-size: 200% 200%;
}

@keyframes shake {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(5px, -5px);
  }
  40% {
    transform: translate(-5px, -5px);
  }
  50% {
    transform: translate(0);
  }
  70% {
    transform: translate(5px, 5px);
  }
  90% {
    transform: translate(-5px, 5px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes emerged {
  0% {
    transform: translateY(170px) scale(0.1);
  }
  10% {
    transform: translateY(145px) scale(0.1);
  }
  20% {
    transform: translateY(135px) scale(0.2);
  }
  30% {
    transform: translateY(120px) scale(0.3);
  }
  40% {
    transform: translateY(95px) scale(0.4);
  }
  50% {
    transform: translateY(75px) scale(0.5);
  }
  60% {
    transform: translateY(60px) scale(0.6);
  }
  70% {
    transform: translateY(45px) scale(0.7);
  }
  80% {
    transform: translateY(30px) scale(0.8);
  }
  90% {
    transform: translateY(15px) scale(0.9);
  }
  100% {
    transform: translate(0) scale(1);
  }
}

@keyframes colors {
  0% {
    background-position: 0% 100%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 100%;
  }
}
