@import url('https://fonts.googleapis.com/css?family=Dancing+Script|Monoton');

body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Monoton', cursive;

}


.background {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    background-image: repeating-linear-gradient(45deg, #ff57f1 25%, transparent 25%, transparent 75%, #ff57f1 75%, #ff57f1), repeating-linear-gradient(45deg, #ff57f1 25%, #8c006e 25%, #8c006e 75%, #ff57f1 75%, #ff57f1);
    background-position: 0 0, 7px 7px;
    background-size: 14px 14px;
}


.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
  font-family: 'Monoton', cursive;
  font-weight: 400;
  font-size: 112px;
  color: #fff;
  animation: text-flicker-in-glow 4s linear forwards;
  margin-bottom: 0; 
}


.subtext {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
    color: #ffffff;
    margin-top: -20px; 
    text-shadow: 
        -2px -2px 0 #000,  
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000, 
         0 0 15px #ff84fa; 
}

.container {
    margin-top: 20px;
}


@keyframes text-flicker-in-glow {
    0% { opacity: 0; }
    10% { opacity: 0; text-shadow: none; }
    10.1% { opacity: 1; text-shadow: none; }
    10.2% { opacity: 0; text-shadow: none; }
    20% { opacity: 0; text-shadow: none; }
    20.1% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.25); }
    20.6% { opacity: 0; text-shadow: none; }
    30% { opacity: 0; text-shadow: none; }
    30.1% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); }
    30.5% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); }
    30.6% { opacity: 0; text-shadow: none; }
    45% { opacity: 0; text-shadow: none; }
    45.1% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); }
    50% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); }
    55% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); }
    55.1% { opacity: 0; text-shadow: none; }
    57% { opacity: 0; text-shadow: none; }
    57.1% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35); }
    60% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35); }
    60.1% { opacity: 0; text-shadow: none; }
    65% { opacity: 0; text-shadow: none; }
    65.1% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35), 0 0 100px rgba(255, 255, 255, 0.1); }
    75% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35), 0 0 100px rgba(255, 255, 255, 0.1); }
    75.1% { opacity: 0; text-shadow: none; }
    77% { opacity: 0; text-shadow: none; }
    77.1% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.4), 0 0 110px rgba(255, 255, 255, 0.2), 0 0 100px rgba(255, 255, 255, 0.1); }
    85% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.4), 0 0 110px rgba(255, 255, 255, 0.2), 0 0 100px rgba(255, 255, 255, 0.1); }
    85.1% { opacity: 0; text-shadow: none; }
    86% { opacity: 0; text-shadow: none; }
    86.1% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1); }
    100% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1); }
}


.subtext {
  position: relative;
}


.subtext::before {
  content: '✨';
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.2rem;
  

  animation: 
    sparkle-twinkle 2s infinite,
    sparkle-move 5s infinite ease-in-out;
}


@keyframes sparkle-twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}


@keyframes sparkle-move {
  0% { top: 20%; left: 0%; }
  20% { top: 80%; left: 25%; }
  40% { top: 10%; left: 45%; }
  60% { top: 100%; left: 70%; }
  80% { top: 30%; left: 95%; }
  100% { top: 20%; left: 0%; }
}