/* Sets & Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-size: 62.5%;
}

body {
  background: linear-gradient(45deg, #190361 0%, #b0f 100%);
  animation: gradient 10s ease infinite;
  background-size: 200% 200%;

  height: 100vh;
  display: grid;
  place-items: center;
  color: #34355b;
}

body,
button,
input {
  font-size: 1.6rem;
  font-family: "DM Sans", sans-serif;
}

h2 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.hide {
  display: none;
}

/* Main */
main {
  width: min(42.8rem, 90%);
  background-color: #ffffff;
  padding: 4.8rem 6.4rem;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.8);
}

.play-screen p {
  font-size: 1.5rem;
  margin-bottom: 2.6rem;
}

/* Lucky Results */
.lucky-paper {
  width: min(30rem, 90%);
  padding: 1rem;
  background: #e4edf1;
  box-shadow: 2px 2px 2px 0px rgba(85, 85, 85, 0.5);
  margin: 4rem auto 6rem;
}

.lucky-paper p {
  font-family: "Satisfy", cursive;
  font-size: 2rem;
}

.result-screen button {
  border: none;
  border-radius: 4px;
  background: #ff9500;
  color: #ffffff;
  padding: 1.6rem;
  margin-top: 2rem;
  cursor: pointer;
  transition: all 0.5s ease;
}

.result-screen button:hover {
  background: #ed6701;
  transform: scale(1.03);
}

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

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ----------------------------------------------
 * Generated by Animista on 2024-1-17 14:53:19
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation slide-in-fwd-bottom
 * ----------------------------------------
 */
@-webkit-keyframes slide-in-fwd-bottom {
  0% {
    -webkit-transform: translateZ(-200px) translateY(200px);
    transform: translateZ(-200px) translateY(200px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0) translateY(0);
    transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}
@keyframes slide-in-fwd-bottom {
  0% {
    -webkit-transform: translateZ(-200px) translateY(200px) scale(0);
    transform: translateZ(-200px) translateY(200px) scale(0);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0) translateY(0) scale(1);
    transform: translateZ(0) translateY(0) scale(1);
    opacity: 1;
  }
}

/* Animating */
.play-screen img:hover {
  cursor: pointer;
  animation: bounce 1s ease backwards infinite;
}

.lucky-paper {
  -webkit-animation: slide-in-fwd-bottom 2s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation: slide-in-fwd-bottom 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
