@keyframes sway-right-1 {

  0%,
  100% {
    transform: perspective(100px) rotateX(40deg) rotate(0deg) scale(0.7);
  }

  50% {
    transform: perspective(100px) rotateX(40deg) rotate(8deg) scale(0.7);
  }
}

@keyframes sway-right-3 {

  0%,
  100% {
    transform: perspective(100px) rotateX(40deg) rotate(0deg) scale(0.5);
  }

  50% {
    transform: perspective(100px) rotateX(40deg) rotate(6deg) scale(0.5);
  }
}

@keyframes sway-left-2 {

  0%,
  100% {
    transform: perspective(100px) rotateY(180deg) rotateX(30deg) rotate(-10deg) scale(0.6);
  }

  50% {
    transform: perspective(100px) rotateY(180deg) rotateX(30deg) rotate(-18deg) scale(0.6);
  }
}

@keyframes sway-left-4 {

  0%,
  100% {
    transform: perspective(100px) rotateY(180deg) rotateX(30deg) rotate(-10deg) scale(0.45);
  }

  50% {
    transform: perspective(100px) rotateY(180deg) rotateX(30deg) rotate(-16deg) scale(0.45);
  }
}

@keyframes moving {

  0%,
  100% {
    transform: rotate(-6deg);
  }

  50% {
    transform: rotate(-10deg);
  }
}

@keyframes equalize {
  0% {
    transform: scaleY(0.15);
  }

  100% {
    transform: scaleY(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

body {
  display: flex;
  justify-content: center;
  align-items: end;
  min-height: 100vh;
  overflow: hidden;
  background-image: linear-gradient(to bottom left, #ffe81a, #0287cf);
}

.sun-flower {
  position: absolute;
  top: 0;
  left: 80%;
  transform: translateY(-100%) rotate(2deg);
  z-index: 1;
}

.sun-flower__wrapper {
  position: absolute;
  animation: moving 10s infinite;
}

.sun-flower__circle {
  width: 10vmin;
  height: 10vmin;
  border-radius: 50%;
  position: relative;
}

.sun-flower__circle>div {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6vmin;
  height: 6vmin;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: #b84900;
}

.sun-flower__circle>div::after {
  content: "";
  position: absolute;
  z-index: 100;
  left: 50%;
  top: 50%;
  width: 8vmin;
  height: 8vmin;
  border-radius: 50%;
  transform: translate(-110%, 5%);
  border: 0.2vmin solid #faa200;
  background-image: radial-gradient(circle, #b84900 60%, #903a00 100%);
}

.sun-flower__circle--small {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10vmin;
  height: 10vmin;
  border-radius: 100% 2% 100% 2%;
  background-color: #ffc628;
  transform-origin: left bottom;
}

.sun-flower__circle--small:nth-child(1) {
  transform: translate(-50%, -50%) rotate(40deg);
  z-index: 2;
}

.sun-flower__circle--small:nth-child(2) {
  transform: translate(-50%, -50%) rotate(80deg);
  z-index: 2;
}

.sun-flower__circle--small:nth-child(3) {
  transform: translate(-50%, -50%) rotate(120deg);
  z-index: 2;
}

.sun-flower__circle--small:nth-child(4) {
  transform: translate(-50%, -50%) rotate(160deg);
  z-index: 2;
}

.sun-flower__circle--small:nth-child(5) {
  transform: translate(-50%, -50%) rotate(200deg);
  z-index: 2;
}

.sun-flower__circle--small:nth-child(6) {
  transform: translate(-50%, -50%) rotate(240deg);
  z-index: 2;
}

.sun-flower__circle--small:nth-child(7) {
  transform: translate(-50%, -50%) rotate(280deg);
  z-index: 2;
}

.sun-flower__circle--small:nth-child(8) {
  transform: translate(-50%, -50%) rotate(320deg);
  z-index: 2;
}

.sun-flower__circle--small:nth-child(9) {
  transform: translate(-50%, -50%) rotate(360deg);
  z-index: 2;
}

.sun-flower__circle--small:nth-child(10) {
  transform: translate(-50%, -50%) rotate(400deg);
  z-index: 2;
}

.sun-flower__circle--top {
  transform-origin: left bottom;
  transform: translate(-50%, -50%) rotate(20deg) !important;
}

.sun-flower__circle--top>* {
  background-image: linear-gradient(to left bottom, #fbd603 40%, #ff7d04);
}

.sun-flower__line .line {
  width: 12vmin;
  height: 36vmin;
  border-radius: 100% 0 0 0;
  border-left: 1.2vmin solid #bec827;
  border-top: 1vmin solid #bec827;
  mask-image: linear-gradient(to top, transparent, #bec827 5%);
  -webkit-mask-image: linear-gradient(to top, transparent, #bec827 5%);
}

.sun-flower__leaf {
  position: absolute;
  left: 25%;
  top: 25%;
  width: 15vmin;
  height: 12vmin;
  border-radius: 0 100%;
  background-image: linear-gradient(135deg, #a5b31f, #bec827);
  transform-origin: left center;
}

.sun-flower__leaf:nth-child(odd) {
  left: 10%;
}

.sun-flower__leaf--1 {
  left: 4vmin;
  top: 32%;
  animation: sway-right-1 10s infinite ease-in-out;
}

.sun-flower__leaf--2 {
  left: 4.9vmin;
  top: 22%;
  animation: sway-left-2 10s infinite ease-in-out;
}

.sun-flower__leaf--3 {
  left: 2.3vmin;
  top: 52%;
  animation: sway-right-3 10s infinite ease-in-out;
}

.sun-flower__leaf--4 {
  left: 2.2vmin;
  top: 48%;
  animation: sway-left-4 10s infinite ease-in-out;
}

.music-player {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 40px;
  padding: 10px 24px 10px 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  font-family: "Outfit", sans-serif;
}

.music-player:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.25);
}

.music-player__toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #b84900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.music-player__toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  background: #ffe81a;
  color: #b84900;
}

.music-player__toggle:active {
  transform: scale(0.95);
}

.music-player__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.music-player__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.music-player__artist {
  font-size: 11px;
  opacity: 0.8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.music-player__equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  width: 24px;
  margin-left: 5px;
}

.music-player__bar {
  width: 3px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transform: scaleY(0.15);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.music-player.is-playing .music-player__bar {
  animation: equalize 1.2s ease-in-out infinite alternate;
}

.music-player.is-playing .music-player__bar:nth-child(1) {
  animation-delay: 0.1s;
  animation-duration: 0.8s;
}

.music-player.is-playing .music-player__bar:nth-child(2) {
  animation-delay: 0.3s;
  animation-duration: 1.2s;
}

.music-player.is-playing .music-player__bar:nth-child(3) {
  animation-delay: 0.5s;
  animation-duration: 0.9s;
}

.music-player.is-playing .music-player__bar:nth-child(4) {
  animation-delay: 0.2s;
  animation-duration: 1.1s;
}

.music-player:not(.is-playing) .music-player__toggle {
  animation: pulse 2s infinite;
}

@media (max-width: 600px) {
  .sun-flower__line .line {
    width: 24vmin;
    height: 72vmin;
  }

  .sun-flower__circle>div {
    width: 7vmin;
    height: 7vmin;
  }

  .sun-flower__circle>div::after {
    width: 11vmin;
    height: 11vmin;
  }

  .sun-flower__circle {
    width: 15vmin;
    height: 15vmin;
  }

  .sun-flower__circle--small {
    width: 15vmin;
    height: 15vmin;
  }

  .sun-flower__leaf {
    width: 30vmin;
    height: 24vmin;
  }

  .music-player {
    bottom: auto;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
}