body{
    margin:0;
    height: 100vh;
    background: #ffeef5;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    transition: background 0.5s, color 0.5s;
}
button#theme-toggle {
      padding: 10px 20px;
      top: 20px;
      position: absolute;
      right: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      border: 4px solid orange;
      border-radius: 12px;
      background: #ff6fae;
      color: white;
      cursor: pointer;
      z-index: 100;
    }
.pink-mode {
    background: pink;
    color: #fff;
}
.lightpink-mode {
    background: lightpink;
    color: #fff;
}
.hotpink-mode {
    background: hotpink;
    color: #fff;
}
.deeppink-mode {
    background: deeppink;
    color: #fff;
}
.palevioletred-mode {
    background: palevioletred;
    color: #fff;
}
.fuchsia-mode {
    background: fuchsia;
    color: #fff;
}
.magenta-mode {
    background: magenta;
    color: #fff;
}
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
     perspective: 1000px;

}

.gift-card{
    transition: transform 0.8s ease-in-out;
    cursor: pointer;
    transform-style: preserve-3d;
    width: 350px;
    height: 180px;
    position: relative;
    cursor: pointer;

}
.gift-card.flipped {
            transform: rotateY(180deg);
        }
.card, .card-back {
    width: 350px;
    height: 180px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,15);
    padding: 20px;
    text-align: center;
    position: absolute;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    top: 0;
    left: 0;

}
.card {
    z-index: 2;
}

.card h2 {
    color:#ff6fae;
    margin: 10px 0;
    font-size: 26px;
}

.card p{
    color: #444;
    font-size: 15px;
    margin:5px 0 15px;
}

.btn {
    display: inline-block;
    background:#ff6fae;
    color: #fff;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #ff4f94;
}



.heart{
    position: absolute;
    width: 18px;
    bottom: 0;
    height: 18px;
    background: #ff6fae;
    transform: rotate(45deg);
    animation: rise 6s linear infinite;

}
.heart:before, .heart:after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ff6fae;
    border-radius: 50%;
}
.heart:before{ top: -9px; left:0;}
.heart:after { left: -9px; top:0;}
.heart:nth-child(1)  { left: 5%;  animation-delay: 0s; }
.heart:nth-child(2)  { left: 12%; animation-delay: 1s; }
.heart:nth-child(3)  { left: 18%; animation-delay: 2s; }
.heart:nth-child(4)  { left: 25%; animation-delay: 3s; }
.heart:nth-child(5)  { left: 32%; animation-delay: 4s; }
.heart:nth-child(6)  { left: 38%; animation-delay: 5s; }
.heart:nth-child(7)  { left: 45%; animation-delay: 6s; }
.heart:nth-child(8)  { left: 52%; animation-delay: 7s; }
.heart:nth-child(9)  { left: 60%; animation-delay: 8s; }
.heart:nth-child(10) { left: 67%; animation-delay: 9s; }
.heart:nth-child(11) { left: 73%; animation-delay: 10s; }
.heart:nth-child(12) { left: 80%; animation-delay: 11s; }
.heart:nth-child(13) { left: 87%; animation-delay: 12s; }
.heart:nth-child(14) { left: 93%; animation-delay: 13s; }
.heart:nth-child(15) { left: 97%; animation-delay: 14s; }



/* Rising animation */
@keyframes rise {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-600px) scale(1.5); opacity: 0; }
}


@keyframes float{
    0%, 100% { transform: translateY(0);}
    50%, 100% { transform: translateY(-8px);}
}  

.card-back {
    display: flex;
    justify-content: center;
    transform: rotateY(180deg);
    
}

img.gift-img {
    width: 100px;
    position: absolute;
    bottom: 20px;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;

}

footer{
    background: #ff4f94;
    bottom: 0;
    left:0;
    position:fixed;
    width:100%;
    padding: 20px;
    text-align: center;
    color: white;
    box-sizing: border-box;
    
}
footer p{
      font-size: 20px;
}
.icons{
    font-size: 48px;
    color: pink;
}
#linkedin:hover{
    color:blue;
}

#x:hover{
    color:black;
}
#facebook:hover{
    color:blue;
}
#github:hover{
    color:#4078c0 ;
}
#gmail:hover{
    color: red;
}


@media (max-width: 500px) {
    .gift-card, .card, .card-back {
        width: 90%;
        height: 160px;
    }
}
@media (max-width: 400px) {
    .gift-card, .card, .card-back {
        width: 100%;
        height: 140px;
    }
    .card h2 {
        font-size: 20px;
    }
    .card p {
        font-size: 12px;
    }
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}


