* {
  margin: 0;
  box-sizing: border-box;
}

body {
  text-align: center;
  background-color: rgb(245, 234, 221);
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  height: calc(100vh - 100px);
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  background-color: pink;
  width: 100%;
  padding-top: 5px;
  border-bottom: 2px solid rgb(209, 143, 154);
  gap: 20px;
}
img {
  height: 60px;
  border: solid black 1px;
  border-radius: 15px;
}

footer {
  height: 50px;
  background-color: pink;
  width: 100%;
  padding-top: 15px;
  border-top: 2px solid rgb(209, 143, 154);
  margin-top: -30px;
}
a {
  text-decoration: none;
  color: black;
}

.flower-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: stemSway 5s 6s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

/*
------------------------------------------------------ FLOWER ------------------------------------------------------
*/
.flower {
  margin-bottom: 300px;
  margin-left: 10px;
  transform: rotate(60deg);
  transform-origin: center;
}

#center {
  width: 0px;
  height: 0px;
  background-color: yellow;
  border-radius: 50%;
  position: absolute;
  animation: centerGrower 3s 2s ease 1;
  animation-fill-mode: forwards;
}
.flower-leaf {
  height: 0px;
  width: 0px;
  position: absolute;
  clip-path: ellipse(50% 50% at 50% 50%);

  animation: flowerLeafs 3s 4s ease 1;
  animation-fill-mode: forwards;
}
#flower-leaf-1 {
  margin-top: -40px;
  margin-left: 2.5px;
  transform: rotate(180deg);
}
#flower-leaf-2 {
  margin-top: 16px;
  margin-left: 23px;
  transform: rotate(320deg);
}
#flower-leaf-3 {
  margin-top: 15px;
  margin-left: -14px;
  transform: rotate(35deg);
}
#flower-leaf-4 {
  clip-path: ellipse(50% 50% at 50% 50%);
  margin-top: -35px;
  margin-left: -15px;
  transform: rotate(145deg);
}
#flower-leaf-5 {
  margin-top: -2px;
  margin-left: 32px;
  transform: rotate(283deg);
}
#flower-leaf-6 {
  margin-top: -20px;
  margin-left: 30px;
  transform: rotate(245deg);
}
#flower-leaf-7 {
  margin-top: -20px;
  margin-left: -25px;
  transform: rotate(110deg);
}
#flower-leaf-8 {
  margin-top: -35px;
  margin-left: 20px;
  transform: rotate(215deg);
}
#flower-leaf-9 {
  margin-top: -1px;
  margin-left: -25px;
  transform: rotate(70deg);
}
#flower-leaf-10 {
  margin-top: 20px;
  margin-left: 2.5px;
}

/*
------------------------------------------------------ STEM ------------------------------------------------------
*/
.flower-stem {
  margin-top: -250px;
  margin-left: -10px;
  position: absolute;
}
#stem {
  width: 10px;
  height: 160px;
  background-color: #1e7133;
  position: absolute;
  animation: stemGrower 2s ease 1;
  transform-origin: 50% 100%;
  transform: translateX(0%) scaleY(1);
}

.leaf {
  background-image: linear-gradient(to bottom, #1e7133, #28ab49, #79cd8e);
  background-color: #79cd8e;
  position: absolute;
  clip-path: ellipse(50% 50% at 50% 50%);
}
#leaf-1 {
  height: 0px;
  width: 0px;
  margin-left: -40px;
  margin-top: 50px;
  transform: rotate(130deg);
  animation: leafGrower2 2s 2s ease 1;
  animation-fill-mode: forwards;
}
#leaf-2 {
  height: 0px;
  width: 0px;
  margin-left: 15px;
  margin-top: 80px;
  transform: rotate(230deg);
  animation: leafGrower1 2s 1s ease 1;
  animation-fill-mode: forwards;
}

/*
------------------------------------------------------ FLOWER POT ------------------------------------------------------
*/

#flower-pot {
  position: absolute;
  border-top: 60px solid #391902;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  height: 0;
  width: 100px;
  margin-top: -10px;
}

/*
------------------------------------------------------ DEMO BTN ------------------------------------------------------
*/

.demo-btn {
  padding: 20px 40px;
  background-color: pink;
  border: 3px solid rgb(209, 143, 154);
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 70px;
}

.demo-btn:hover {
  background-color: rgb(209, 143, 154);
  border: 3px solid rgb(104, 35, 48);
  padding: 25px 45px;
  margin-top: 60px;
}

.demo-btn:active {
  transform: scale(0.92);
}

/*
------------------------------------------------------ KEYFRAMES ------------------------------------------------------
*/

@keyframes stemGrower {
  0% {
    transform: translateX(0%) scaleY(0);
  }
  100% {
    transform: translateX(0%) scaleY(1);
  }
}

@keyframes leafGrower1 {
  0% {
    height: 0px;
    width: 0px;
    margin-left: 5px;
    margin-top: 150px;
  }
  100% {
    height: 80px;
    width: 40px;
    margin-left: 15px;
    margin-top: 80px;
  }
}
@keyframes leafGrower2 {
  0% {
    height: 0px;
    width: 0px;
    margin-left: 0px;
    margin-top: 100px;
  }
  100% {
    height: 80px;
    width: 30px;
    margin-left: -40px;
    margin-top: 50px;
  }
}
@keyframes centerGrower {
  0% {
    width: 0px;
    height: 0px;
    margin-top: 17px;
    margin-left: 17px;
  }
  100% {
    width: 30px;
    height: 30px;
  }
}
@keyframes flowerLeafs {
  0% {
    height: 0px;
    width: 0px;
    margin-left: 10px;
    margin-top: 12px;
    border: rgb(167, 115, 18) solid 2px;
    background-image: linear-gradient(to bottom, #9c6011, #df8e23, #f3b25d);
  }
  100% {
    height: 50px;
    width: 25px;
    border: rgb(167, 115, 18) solid 2px;
    background-image: linear-gradient(to bottom, #9c6011, #df8e23, #f3b25d);
  }
}

/*
--------------------------------------------------- KEYFRAMES - SWAY ---------------------------------------------------
*/

@keyframes stemSway {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-3deg);
  }

  100% {
    transform: rotate(3deg);
  }
}
