@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

body {
    background-color: #FAEFF7;
}

.body {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

.rosa {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: -1;
    width: 150px;
}

.rosa2 {
    position: absolute;
    bottom: 0px;
    right: 0px;
    transform: rotate(180deg);
    z-index: -1;
    width: 150px;
}

h1 {
    /*animation: 1s blink linear infinite;*/
    position: relative;
    top: 3.7rem;
    color: #ac8733;
    font-family: 'Great Vibes', cursive;

    display: flex;
    justify-content: center;
}

.birthdayCard {
    position: relative;
    width: 250px;
    height: 350px;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: perspective(2500px);
    transition: 1s;
}

.cardFront {
    position: relative;
    background-color: #FCD7F1;
    width: 250px;
    height: 350px;
    overflow: hidden;
    transform-origin: left;
    box-shadow: inset 100px 20px 100px rgba(0, 0, 0, .2), 30px 0 50px rgba(0, 0, 0, 0.4);
    transition: .6s;
}

.happy {
    font-family: 'Great Vibes', cursive;
    text-align: center;
    margin: 40px;
    transition: .1s;
}

.balloons {
    position: absolute;
}

.balloonOne,
.balloonTwo,
.balloonThree,
.balloonFour {
    position: absolute;
    width: 95px;
    height: 95px;
    border-radius: 50%;
}

.balloonOne {
    left: -10px;
    top: 30px;
}

.balloonTwo {
    left: 50px;
    top: 0px;
}

.balloonThree {
    left: 110px;
    top: 30px;
}

.balloonFour {
    left: 170px;
    top: 0px;
}

.balloonOne:before,
.balloonTwo:before,
.balloonThree:before,
.balloonFour:before {
    content: "";
    position: absolute;
    width: 2.5px;
    height: 155px;
    background-color: #ac8733;
    top: 84px;
    left: 46px;
}

.balloonOne:after,
.balloonTwo:after,
.balloonThree:after,
.balloonFour:after {
    content: "";
    position: absolute;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    top: 80px;
    left: 40.5px;
}

.balloonOne:after {
    border-bottom: 10px solid #176E20;
}

.balloonTwo:after {
    border-bottom: 10px solid #176E20;
}

.balloonThree:after {
    border-bottom: 10px solid #176E20;
}

.balloonFour:after {
    border-bottom: 10px solid #176E20;
}

.cardInside {
    position: absolute;
    background-color: #FCD7F1;
    width: 250px;
    height: 350px;
    z-index: -1;
    left: 0;
    top: 0;
    box-shadow: inset 100px 20px 100px rgba(0, 0, 0, 0.2);
}

p {
    font-family: cursive;
    margin: 15px 10px 10px 30px;
    color: #333;
}

.name {
    position: absolute;
    left: 150px;
    /* top: 200px; */
    color: #333;
    text-decoration: underline;
}

.back {
    font-family: Tahoma, sans-serif;
    color: #333;
    text-align: center;
    margin: 30px;
    outline-color: #333;
    outline-style: dashed;
}

.birthdayCard:hover {
    transform: perspective(2500px) rotate(5deg);
    box-shadow: inset 100px 20px 100px rgba(0, 0, 0, .2), 0 10px 100px rgba(0, 0, 0, 0.5);
}

.birthdayCard:hover .cardFront {
    transform: rotateY(-160deg);
}

.birthdayCard:hover .happy {
    visibility: hidden;
}


footer {
    font-size: 11px;
    color: #000;
    position: absolute;
    bottom: 0px;
}

footer a {
    color: white;
}