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

:root {
  font-size: 62.5%;
}

body {
  background-image: linear-gradient(45deg, #190361 0%, #bb00ff 100%);
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  height: 100vh;
}

.hide {
  display: none;
}

main {
  background-color: #ffffff;
  box-shadow: 0px 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
  border-radius: 0.6rem;
  padding: 4.8rem 6.4rem 6.4rem;
  text-align: center;

  width: min(42.8rem, 90%);
  margin-top: -12rem;
}

h1 {
  color: #34355b;
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  margin-bottom: 1.7rem;
  font-weight: bold;
}

p {
  font-family: "DM Sans", sans-serif;
  color: #34355b;
  margin-bottom: 2rem;
  font-weight: 300;
}

/*Opened Cookie*/
h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2.4rem;
  font-weight: 100;
  background-color: #e4edf1;
  padding: 1rem;
  margin-bottom: 1.7rem;
}

button {
  background-color: #ff9500;
  color: #ffffff;
  border: none;
  border-radius: 0.4rem;
  padding: 1.6rem;
  transition: all ease-in-out 0.5s;
  font-family: "DM Sans", sans-serif;
  font-weight: bold;
}

button:hover {
  background-color: #d88005;
  cursor: pointer;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.cookie:hover {
  cursor: pointer;
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

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

body {
  background-size: 200% 200%;
  animation: gradient 5s ease infinite;
}

@keyframes slideUpAndGrow {
  0% {
    transform: translateY(100%) scale(0);
    top: 8rem;
  }

  100% {
    transform: translateY(0) scale(1);
    top: 2rem;
  }
}

h2 {
  animation: slideUpAndGrow 3s ease-in-out;
  position: relative;
  top: 2rem;
}
