/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

body {
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  overflow: hidden;
}

/* Canvas styles */
canvas {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* Smoke text container */
.smoke {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 10%; /* Adjusted for better visibility */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1; /* Ensures text stays above the canvas */
  animation: fade 13s;
}

/* Smoke text span styles */
.smoke span {
  position: relative;
  color: #fff;
  font-family: 'Tangerine', cursive, sans-serif;
  font-size: 2.5em;
  font-weight: bold;
  letter-spacing: 10px;
  animation: animate 6s cubic-bezier(0, 0.98, 0.58, 1) infinite;
}

.smoke span:nth-child(1),
.smoke span:nth-child(3) {
  color: #b61b1b;
}

/* Fade-in animation for the text */
@keyframes fade {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

/* Blur animation for the text */
@keyframes animate {
  0% {
      filter: blur(0);
  }
  40% {
      filter: blur(20px);
  }
  80% {
      filter: blur(0);
  }
  100% {
      filter: blur(0);
  }
}

@media screen and (max-width:600px) {
  .smoke span {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 10px;
  }
}