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

:root {
  font-size: 62.5%;
}

body {
  height: 100vh;
  background: linear-gradient(45deg, #EB5F43 0%, #f3804f 100%);
  background-size: 200% 200%;

  display: grid;
  place-items: center;

  animation: gradient 10s ease infinite;
}

.hide {
  display: none;
}

main {
  background: #FFFFFF;
  box-shadow: 0px 2rem 5rem rgba(0, 0, 0, 0.8);
  border-radius: .5rem;
  
  padding: 4.8rem 6.4rem;
  margin-top: -8rem;

  width: min(42.8rem, 90%);
  text-align: center;
}

/*screen1*/

h1, p, h2 {
  color: #34355B;
}

h1, h2 {
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 2.9rem;

  margin-bottom: 1.4rem;
}

.screen1 p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 2rem;

  margin-bottom: 2rem;
}

.screen1 img {
  margin-bottom: 1.6rem;
  cursor: pointer;
}

.screen1 img:hover {
  animation: shake .2s ease-in-out infinite;
}

/*screen2*/

.fortune {
  background: #FBF6F2;
  box-shadow: 2px 2px 2px rgba(85, 85, 85, 0.5);
  padding: 1rem;

  animation: appearing 1s .2s forwards;
  opacity: 0;
  transform: translateY(500px);
}

.fortune p {
  font-family: 'Dancing Script', sans-serif;
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 2.9rem;
  color: #000000;

  margin-bottom: 1.6rem;
}

button {
  background: #EB5F43;
  border-radius: 4px;
  border: none;
  padding: 1.6rem;

  font-family: 'DM Sans';
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  color: #FFFFFF;

  cursor: pointer;

  transition: background .7s;
}

button:hover {
  background: #F38671;
}

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

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(5deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes appearing {
  0% {
    transform: translateY(500px);
    scale: 0;
  }


  100% {
    opacity: 100;
    transform: translateY(0);
  }
}

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

  100% {
    background-position: 0% 50%;
  }
}