*{
    margin: 0%;
    box-sizing: border-box;
    padding: 0%;
}

body{
    width: 100vw;
    min-height: 100vh;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 1vw;

}
body,.valentine_container,.front_card{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.valentine_container{
    width: fit-content;
    height: fit-content;
    max-width: 60%;
    position: relative;
   
    font-size: max(4vw,4rem);
    font-family: cursive,Arial, Helvetica, sans-serif;
    text-align: center;
    color: #f4b1ba;
  
}
.valentine_container.shake{
    animation: shake 0.3s linear infinite alternate;
}
#heartIcon{
 width: 7vw;
 position: absolute;
 left:var(--xPosition) ;
 top: var(--yPosition);
 opacity: 0;
 user-select: none;

}
#heartIcon.levitate{
animation: levitate 0.8s forwards ease-in-out;
}
.valentine_btn{
    width:100%;
    display: flex;
    justify-content: space-evenly;
    margin-top: 2%;
    margin-bottom: 2%;
}
.valentine_btn button{
 font-size: min(3vw,90px);
 width: fit-content;
 font-family: inherit;
 padding: max(0.5vw, 4px);
 border: none;
 box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
 border-radius: 20px;
 transition: transform 0.4s;
 cursor: pointer;
 color: #f1dfed;
 background-color: #e88599;
 text-transform: capitalize;

}

.valentine_message{
  margin-bottom: 1vh;
   user-select: none;
}
.front_card{
    min-height: 350px;
    width: 100%;
    padding: 1vw;
    transform: rotateY(0deg);
    transition: transform 0.25s;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    /* background: linear-gradient(#d73737 40%,#f3645e); */
    border-radius: 20px;
}   

.front_card.flip{
    transform: rotateY(90deg);
    
}
#valentine_gif{
    width: 100%;
    max-width: 600px;
    user-select: none;
    position: absolute;
    transform: rotateY(90deg);
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;
}
#valentine_gif.flip{
    transform: rotateY(0deg);
    transition: transform 0.25s 0.25s;
}

#luv_gif.hidden{
    display: none;
}
@keyframes levitate {
    0%{
        left: var(--xPosition);
        top: var(--yPosition);
        opacity: 1;
    }
    25%{
        left: calc(var(--xPosition) - 3%);
        opacity: 0.8;
    }
    50% {
        left: calc(var(--xPosition) + 3%);
        opacity: 0.6;
    }

    75% {  
        left: calc(var(--xPosition) - 3%);
        opacity: 0.4;
    }
    
    100%{
        top: calc(var(--yPosition) - 30%);
        opacity: 0;
    }

}

@keyframes shake {
    0%{
        transform: rotate(1deg);
    }
    50%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(-1deg);   
    }
}

@media screen and (max-width:560px) {
    .valentine_container {  
            font-size: max(3vw, 2.5rem);
            max-width: 80%;
        }
    .front_card{
        overflow: hidden;
    }
    .valentine_btn button{
        font-size: 4vw;
    }
}