
/* *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */
body {
    /* display: flex; */
    /* align-items: center;
    justify-content: center; */
    height: 100vh;
    /* display: flex; */
    background-color: #d86981;
  }

  #top{
    height: 30vh;
    display: flex;
    /* align-items: center;
    justify-content: center;  */

  }

  #middle{
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 100vh; */
  }
  .balloon{
    position: absolute;
    width: 150px;
    height: 170px;
    border-radius: 50%;
    background-color: rgba(192,1, 5, 0.4);
    animation: move-up 5s;
  }
  .balloon::before{
    position: absolute;
    content: '';
    width: 1px;
    height: 150px;
    background-color: white;
    top: 110px;
    left: 75px;
  }


  .balloon::after{
    position: absolute;
    content: '';
    border-bottom: 12px solid red;
    border-left: 10px solid
    transparent;
    border-right: 10px solid
    transparent;
    top: 109px;
    left: 65px;

  }
.balloon:nth-child(2){
    left: 130px;
    background-color: rgba(0,0,255,0.5);
    animation-duration: 3s;
  }
   
.balloon:nth-child(2)::after{
  border-bottom: 12px solid blue;

}


.balloon:nth-child(3){
  left: 240px;
  background-color: rgba(255,255,0,0.5);
  animation-duration: 2s;

}
 
.balloon:nth-child(3)::after{
border-bottom: 12px solid yellow;

}


 .balloon:nth-child(4){
  left: 370px;
  background-color: rgba(0,128,0,0.5);
  animation-duration: 4s;

}
 
.balloon:nth-child(4)::after{
border-bottom: 12px solid green;

}


.balloon:nth-child(5){
  left: 460px;
  background-color: rgba(192,1, 5, 0.4);
  animation-duration: 3s;

}
 
.balloon:nth-child(5)::after{
border-bottom: 12px solid red;

}

.balloon:nth-child(6){
  left: 580px;
  background-color: rgba(0,0,255,0.5);
  animation-duration: 2s;

}
 
.balloon:nth-child(6)::after{
border-bottom: 12px solid blue;

}

.balloon:nth-child(7){
  left: 710px;
  background-color: rgba(0,128,0,0.5);
  animation-duration: 3s;
}
 
.balloon:nth-child(7)::after{
border-bottom: 12px solid green;

} 

.balloon:nth-child(8){
  left: 850px;
  background-color: rgba(255,255,0,0.5);
  animation-duration: 2s;

}
 
.balloon:nth-child(8)::after{
border-bottom: 12px solid yellow;

}
.balloon:nth-child(9){
  left: 960px;
  background-color: rgba(0,128,0,0.5);
  animation-duration: 3s;
}
 
.balloon:nth-child(9)::after{
border-bottom: 12px solid green;


} 


.balloon:nth-child(10){
  left: 1100px;
  background-color: rgba(192,1, 5, 0.4);
  animation-duration: 2s;

}
 
.balloon:nth-child(10)::after{
border-bottom: 12px solid red;

}

.balloon:nth-child(11){
  left: 1200px;
  background-color: rgba(0,0,255,0.5);
  animation-duration: 3s;

}
 
.balloon:nth-child(11)::after{
border-bottom: 12px solid blue;

}

.balloon:nth-child(12){
  left: 1300px;
  background-color: rgba(255,255,0,0.5);
  animation-duration: 4s;

}
 
.balloon:nth-child(12)::after{
border-bottom: 12px solid yellow;

}


@keyframes move-up{
  0%{
    top: 69%
  }
  100%{
    top: 0%
  }

}

  .birthdayCard {
    /* align-items: center;
    justify-content: center;  */
    position: relative;
    width: 250px;
    height: 350px;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: perspective(2500px);
    transition: 1s;
  }


  .birthdayCard:hover {
    transform: perspective(2500px) rotate(5deg);
    box-shadow: inset 100px 20px 100px rgba(0, 0, 0, 0.2),
      0 10px 100px rgba(0, 0, 0, 0.5);
  }
  
  .birthdayCard:hover .cardFront {
    transform: rotateY(-160deg);
  }
  
  .birthdayCard:hover .happy {
    visibility: hidden;
  }
  
  .cardFront {
    position: relative;
    background-color: #fff;
    width: 250px;
    height: 450px;
    overflow: hidden;
    transform-origin: left;
    box-shadow: inset 100px 20px 100px rgba(0, 0, 0, 0.2),
      30px 0 50px rgba(0, 0, 0, 0.4);
    transition: 0.6s;
  }
  
  .happy {
    font-family: Tahoma, sans-serif;
    text-align: center;
    margin: 30px;
    background-image: linear-gradient(120deg, #ffd856 0%, #f98c6e 100%);
    transition: 0.1s;
  }
  
  .balloons {
    position: absolute;
  }
  
  .balloon-1,
  .balloon-2,
  .balloon-3,
  .balloon-4 {
    position: absolute;
    width: 85px;
    height: 95px;
    border-radius: 50%;
  }
  
  .balloon-1 {
    background-color: rgba(255, 40, 90, 0.7);
    left: -10px;
    top: 50px;
  }
  
  .balloon-2 {
    background-color: rgba(9, 215, 160, 0.7);
    left: 50px;
    top: 20px;
  }
  
  .balloon-3 {
    background-color: rgba(255, 186, 26, 0.7);
    left: 110px;
    top: 50px;
  }
  
  .balloon-4 {
    background-color: rgba(12, 122, 159, 0.7);
    left: 170px;
    top: 50px;
  }
  
  .balloon-1::before,
  .balloon-2::before,
  .balloon-3::before,
  .balloon-4::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 155px;
    background-color: #ffc848;
    top: 95px;
    left: 43px;
  }
  
  .balloon-1::after,
  .balloon-2::after,
  .balloon-3::after,
  .balloon-4::after {
    content: "";
    position: absolute;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    top: 94px;
    left: 37px;
  }
  
  .balloon-1::after {
    border-bottom: 10px solid #3eafff;
  }
  
  .balloon-2::after {
    border-bottom: 10px solid #04b183;
  }
  
  .balloon-3::after {
    border-bottom: 10px solid #ffc94c;
  }
  
  .balloon-4::after {
    border-bottom: 10px solid #13a9bd;
  }
  
  .cardInside {
    position: absolute;
    background-color: #fff;
    width: 250px;
    height: 450px;
    z-index: -1;
    left: 0;
    top: 0;
    box-shadow: inset 100px 20px 100px rgba(0, 0, 0, 0.2);
  }
  
  p {
    font-family: "Serif";
    margin: 40px;
    color: #333;
  }
  
  .name {
    position: absolute;
    left: 150px;
    top: 200px;
    color: #333;
  }
  
  .back {
    font-family: Tahoma, sans-serif;
    color: #333;
    text-align: center;
    margin: 30px;
    outline-color: #333;
    outline-style: dotted;
  }