* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Dynapuff, sans-serif;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5em;
  height: 100vh;
  background-color: #0e0e0e;
}

.scroller {
    height: 100vh;
    position: relative;
    width: 100%;
  }
  
  .scroller::before {
    animation: bounce 1s ease infinite;
    bottom: 2rem;
    color: #fff;
    content: '╲╱';
    font-size: 2rem;
    height: 4rem;
    left: 50%;
    letter-spacing: -1px;
    line-height: 4rem;
    margin-left: -3rem;
    opacity: 0.8;
    position: absolute;
    text-align: center;
    width: 6rem;
  }
  
  @keyframes bounce {
    50% {
      transform: translateY(-50%);
    }
  }
@media (max-width: 900px) {
  body {
    font-size: 0.95rem;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 0.85rem;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 0.8rem;
  }
}

@media (max-width: 450px) {
  body {
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 0.7rem;
  }
}

@media (max-width: 370px) {
  body {
    font-size: 0.6rem;
  }
}

/* letters */

.random-word {
  font-size: 5em;
  z-index: 10;
}

.letter {
  display: inline-block;
  text-shadow: 2px 4px 8px #000;
}

.random-move {
  animation: randomMove 0.5s infinite alternate;
}

@keyframes randomMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(20px);
  }
}

/* balloons */
.balloon {
  position: absolute;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  animation: balloonMove 5s linear infinite;
}

@keyframes balloonMove {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-200vh);
    opacity: 0;
  }
}

/* Adjusted positions of the balloons */
.balloon1 {
  left: 5%;
  animation-delay: 1s;
}

.balloon2 {
  left: 20%;
  animation-delay: 4s;
}

.balloon3 {
  left: 35%;
  animation-delay: 0s;
}

.balloon4 {
  left: 40%;
  animation-delay: 2s;
}

.balloon5 {
  left: 55%;
  animation-delay: 2.5s;
}

.balloon6 {
  left: 70%;
  animation-delay: 4s;
}


h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cake-container {
    position: relative;
    display: inline-block;
}

.cake {
    position: relative;
    width: 250px;
    height: 200px;
    margin: 0 auto;
}

.plate {
    width: 270px;
    height: 110px;
    position: absolute;
    bottom: -10px;
    left: -10px;
    background-color: #ccc;
    border-radius: 50%;
    box-shadow:
        0 2px 0 darken(#ccc, 10%),
        0 4px 0 darken(#ccc, 10%),
        0 5px 40px rgba(black, 0.5);
    z-index: 1;
}

.layer {
    position: absolute;
    display: block;
    width: 250px;
    height: 100px;
    border-radius: 50%;
    background-color: #553c13;
    z-index: 2;
    box-shadow:
        0 2px 0px lighten(#553c13, 5%),
        0 4px 0px darken(#553c13, 8.2%),
        0 6px 0px darken(#553c13, 8.4%),
        0 8px 0px darken(#553c13, 8.6%),
        0 10px 0px darken(#553c13, 8.8%),
        0 12px 0px darken(#553c13, 9%);
}

.layer-top {
    top: 0px;
}

.layer-middle {
    top: 33px;
}

.layer-bottom {
    top: 66px;
}

.icing {
    top: 2px;
    left: 5px;
    background-color: #f0e4d0;
    width: 240px;
    height: 90px;
    border-radius: 50%;
    position: absolute;
    z-index: 3;
}

.drip {
    display: block;
    width: 50px;
    height: 60px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    background-color: #f0e4d0;
    z-index: 3;
}

.drip1 {
    top: 53px;
    left: 5px;
    transform: skewY(15deg);
    height: 48px;
    width: 40px;
    position: absolute;
}

.drip2 {
    top: 69px;
    left: 181px;
    transform: skewY(-15deg);
    position: absolute;
}

.drip3 {
    top: 54px;
    left: 90px;
    width: 80px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    position: absolute;
}

.candle {
    background-color: #7B020B;
    width: 16px;
    height: 80px;
    border-radius: 8px / 4px;
    top: -20px;
    left: 50%;
    margin-left: -8px;
    position: absolute;
    z-index: 4;
}

.flame {
    position: absolute;
    background-color: orange;
    width: 15px;
    height: 35px;
    border-radius: 10px 10px 10px 10px / 25px 25px 10px 10px;
    top: -34px;
    left: 50%;
    margin-left: -7.5px;
    z-index: 10;
    box-shadow:
        0 0 10px rgba(orange, 0.5),
        0 0 20px rgba(orange, 0.5),
        0 0 60px rgba(orange, 0.5),
        0 0 80px rgba(orange, 0.5);
    transform-origin: 50% 90%;
    animation: flicker 1s ease-in-out alternate infinite;
}

@keyframes flicker {
    0% {
        transform: skewX(5deg);
        box-shadow:
            0 0 10px rgba(orange, 0.2),
            0 0 20px rgba(orange, 0.2),
            0 0 60px rgba(orange, 0.2),
            0 0 80px rgba(orange, 0.2)
    }

    25% {
        transform: skewX(-5deg);
        box-shadow:
            0 0 10px rgba(orange, 0.5),
            0 0 20px rgba(orange, 0.5),
            0 0 60px rgba(orange, 0.5),
            0 0 80px rgba(orange, 0.5)
    }

    50% {
        transform: skewX(10deg);
        box-shadow:
            0 0 10px rgba(orange, 0.3),
            0 0 20px rgba(orange, 0.3),
            0 0 60px rgba(orange, 0.3),
            0 0 80px rgba(orange, 0.3)
    }

    75% {
        transform: skewX(-10deg);
        box-shadow:
            0 0 10px rgba(orange, 0.4),
            0 0 20px rgba(orange, 0.4),
            0 0 60px rgba(orange, 0.4),
            0 0 80px rgba(orange, 0.4)
    }

    100% {
        transform: skewX(5deg);
        box-shadow:
            0 0 10px rgba(orange, 0.5),
            0 0 20px rgba(orange, 0.5),
            0 0 60px rgba(orange, 0.5),
            0 0 80px rgba(orange, 0.5)
    }
}

.cut-outline {
    width: 240px;
    height: 90px;
    border-radius: 50%;
    border: 2px dashed #000;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 6;
}


.sprinkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 7;
}

.sprinkle {
    width: 5px;
    height: 5px;
    background-color: red;
    position: absolute;
    border-radius: 50%;
    animation: fall 1s linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

@keyframes textFade {
    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.animated-text {
    animation: textFade 2s ease-in-out 2;

}

.fixed-text {
    animation: none;
    opacity: 1;
}

.giftcontainer {
    position: relative;
  }

  .gift-box {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url('https://i.ibb.co/CJ28h5R/download-1.png'); /* Replace with your gift box image */
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.1s ease, top 0.1s ease, left 0.1s ease;
  }
  #message {
  font-size: 2em;
  background: #121FCF;
  background: linear-gradient(to right, #121FCF 0%, #CF1512 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  }

.btn-grad {
    background-image: linear-gradient(to right, #ED4264 0%, #FFEDBC  51%, #ED4264  100%);
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;            
    border-radius: 10px;
    display: block;
}

.btn-grad:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

         
.btn-grad2 {
    background-image: linear-gradient(to right, #1D976C 0%, #93F9B9  51%, #1D976C  100%);
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;            
    border-radius: 10px;
    display: block;
  }

  .btn-grad2:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
  }
 

         
.btn-grad3 {
  background-image: linear-gradient(to right, #1CD8D2 0%, #93EDC7  51%, #1CD8D2  100%);
  margin: 10px;
  padding: 15px 45px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;            
  border-radius: 10px;
  display: block;
  pointer-events: none; /* Disable click */
  opacity: 0.6; /* Show as disabled */
  position: relative;
}

.btn-grad3::after {
  content: "Disabled";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.btn-grad3:hover::after {
  opacity: 1;
}

.btn-grad3:hover {
  background-position: right center; 
  color: #fff;
  text-decoration: none;
}
 

         
         
.btn-grad4 {
  background-image: linear-gradient(to right, #FF8008 0%, #FFC837  51%, #FF8008  100%);
  margin: 10px;
  padding: 15px 45px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;            
  border-radius: 10px;
  display: block;
  pointer-events: none; /* Disable click */
  opacity: 0.6; /* Show as disabled */
  position: relative;
}

.btn-grad4::after {
  content: "Disabled";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.btn-grad4:hover::after {
  opacity: 1;
}

.btn-grad4:hover {
  background-position: right center; 
  color: #fff;
  text-decoration: none;
}

.footer {
  color: white;
  padding: 20px 0;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
}

         

