/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    background-color: #1e1e1e;
            color: #f0f0f0;
            font-family: 'Arial', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
}

/* Container */
.container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeIn 2s ease-in-out;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    animation: bounceIn 1.5s ease;
}

/* Countdown Section */
#countdown {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 15px;
    flex-wrap: wrap;
}

.time-box {
    background-color: #333;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin: 0 10px;
    text-align: center;
}

.time-box:hover {
    transform: scale(1.1);
}

p {
    margin-top: 10px;
    font-size: 1rem;
    color: #f3f4f6;
    font-weight: bold;
}

.number {
    font-size: 3rem;
    color: #f8e71c;
    animation: pulse 1.5s infinite;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .time-box {
        width: 80px;
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .time-box {
        width: 70px;
        padding: 10px;
    }

    h1 {
        font-size: 1.7rem;
    }

    .number {
        font-size: 2rem;
    }
}




@keyframes floatBalloons {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-300px);
    }
}

.confetti {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('images/confetti.gif') repeat center / cover;
    pointer-events: none;
    animation: fallConfetti 5s infinite ease-in-out;
}

@keyframes fallConfetti {
    0% {
        background-position: 0 -100px;
    }
    100% {
        background-position: 0 100vh;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-track img {
        width: 100%;
        height: auto;
    }

    button {
        padding: 5px;
    }
}

.birthdayCard {
    border-radius: 30px;
    position: relative;
    width: 420px;
    height: 500px;
    transform-style: preserve-3d;
    cursor: pointer;
    transform: perspective(2000px);
    transition: 1s;
  }
  .cardFront {
    position: relative;
    background-color: #fef0f8;
    width: 420px;
    height: 500px;
    border-radius: 0 15px 15px 0;
    overflow: hidden;
    transform-origin: left;
    box-shadow: inset 100px 20px 100px rgba(118, 118, 118, 0.2),
      30px 0 50px rgba(118, 118, 118, 0.2);
    transition: 0.6s;
  }
   .cardFront {
    position: relative;
    background-color: #fef0f8;
    width: 420px;
    height: 500px;
    border-radius: 0 15px 15px 0;
    overflow: hidden;
    transform-origin: left;
    box-shadow: inset 100px 20px 100px rgba(118, 118, 118, 0.2),
      30px 0 50px rgba(118, 118, 118, 0.2);
    transition: 0.6s;
  }
  .cat1 {
   width: 140px;
    height: auto;
    top: 1%;
    left: 7%;
    position: absolute;
    z-index: 4;
  }
  .cat2 {
    position: absolute;
    width: 270px;
    height: auto;
    right: 20px;
    top: 100px;
  }
.cat3    {
    display: flex;
    position: absolute;
    width: 140px;
    height: auto;
    left: 20%;
    top: 50%;
}
  .taaImg {
    display: flex;
    justify-content: center;
    top: 120px;
    left: 15px;
    position: absolute;
    width: 150px;
    height: auto;
    z-index: 1;
  }
  .happy {
    text-align: center;
    left: 15%;
    top: 84%;
    font-size: 1.5em;
   font-family: 'Miltonian Tattoo', serif;
    color: hotpink;
    position: absolute;
    transition: 0.1s;
    z-index: 6;
  }
  .cardInside {
    position: absolute;
    background-color: #fef0f8;
    width: 420px;
    height: 500px;
    z-index: -1;
    left: 0;
    border-radius: 0 15px 15px 0;
    top: 0;
    box-shadow: inset 100px 20px 100px rgba(191, 190, 190, 0.2);
  }
  p {
    line-height: 30px;
    margin: 15px 10px 10px 30px;
    color: #333;
  }
  .back {
    font-family: Tahoma, sans-serif;
    color: #333;
    text-align: center;
    margin: 30px;
  }
  .birthdayCard:hover {
    transform: perspective(2500px) rotate(5deg);
    box-shadow: inset 100px 20px 100px rgba(116, 115, 115, 0.5),
      0 10px 100px rgba(116, 115, 115, 0.5);
  }
  .birthdayCard:hover .cardFront {
    transform: rotateY(-160deg);
  }
  .birthdayCard:hover .happy {
    visibility: hidden;
  }
  

        /* Balloons, cake, and hat styling */
        .cat1, .cat2, .cat3 {
            width: 200px;
            margin:  0;
        }
        .cat1{
            margin-right: 10%;
        }