@import url('https://fonts.googleapis.com/css2?family=Love+Ya+Like+A+Sister&display=swap');

body {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    margin: 0;
    animation: background 60s infinite linear;
}

.flower {
    position: relative;
    width: 80px;
    height: 120px;
    animation: rotateFlower 40s infinite linear;
}

.petal {
    position: absolute;
    width: 80px;
    height: 120px;
    background-color: #fff;
    z-index: 2;
    border-radius: 50% 50% 0 0;
}

.petal:nth-child(1) {
    transform: rotate(0deg) translateY(-100px);
}

.petal:nth-child(2) {
    transform: rotate(45deg) translateY(-100px);
}

.petal:nth-child(3) {
    transform: rotate(90deg) translateY(-100px);
}

.petal:nth-child(4) {
    transform: rotate(135deg) translateY(-100px);
}

.petal:nth-child(5) {
    transform: rotate(180deg) translateY(-100px);
}

.petal:nth-child(6) {
    transform: rotate(225deg) translateY(-100px);
}

.petal:nth-child(7) {
    transform: rotate(270deg) translateY(-100px);
}

.petal:nth-child(8) {
    transform: rotate(315deg) translateY(-100px);
}

.center {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #ffeb3b;
    border-radius: 50%;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotateFlower {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes background {
    0% {
        background-color: #fed7aa;
    }
    50% {
        background-color: #d9f99d;
    }
    100% {
        background-color: #c4b5fd;
    }
}

.stem {
    width: 30px;
    height: 40vh;
    background: green;
    position: relative;
    z-index: -88;
}

.leaf {
    width: 200px;
    height: 200px;
    position: absolute;
    bottom: 0;
    background-color: green;
    border-bottom-right-radius: 100%;
    border-top-left-radius: 100%;
}

.animated-text {
    position: absolute;
    font-size: 50px;
    top: -25px;
    left: 30px;
    font-family: "Love Ya Like A Sister", cursive;
    font-weight: 400;
    font-style: normal;
    animation: Zoom infinite linear;
    animation-duration: 3s;
    animation-timing-function: cubic-bezier(0.9, 0.02, 0.29, 1.18);
}

@keyframes Zoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
}


@media only screen and (max-width: 768px) {
    .leaf {
        width: 150px;
        height: 150px;
    }

    .petal {
        width: 50px;
        height: 90px;
    }

    .center {
        width: 70px;
        height: 70px;
    }

    .flower {
        width: 50px;
        height: 80px;
    }

    .petal:nth-child(1) {
        transform: rotate(0deg) translateY(-70px);
    }

    .petal:nth-child(2) {
        transform: rotate(45deg) translateY(-70px);
    }

    .petal:nth-child(3) {
        transform: rotate(90deg) translateY(-70px);
    }

    .petal:nth-child(4) {
        transform: rotate(135deg) translateY(-70px);
    }

    .petal:nth-child(5) {
        transform: rotate(180deg) translateY(-70px);
    }

    .petal:nth-child(6) {
        transform: rotate(225deg) translateY(-70px);
    }

    .petal:nth-child(7) {
        transform: rotate(270deg) translateY(-70px);
    }

    .petal:nth-child(8) {
        transform: rotate(315deg) translateY(-70px);
    }
}