/* Reset */

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

body {
  background: #dff7c0;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.container {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.robot {
  position: relative;
  width: 200px;
  margin: 0 auto 1.5rem;
}

/* Title */

.robot-name {
  text-align: center;
  font-size: 2.1rem;
  font-family: inherit;
  color: #a04fc4;
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 10;
}

/* Skirt */

.skirt {
  position: absolute;
  left: -15%;
  top: 160px;
  width: 0;
  height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-top: 0 solid transparent;
  border-bottom: 120px solid #e96a6a;
  z-index: 0;
}

/* Bow */
.bow {
  position: absolute;
  left: -18px;
  top: 10px;
  width: 36px;
  height: 28px;
  z-index: 2;
}
.bow-rightside {
  left: auto;
  right: -18px;
  top: 10px;
}
.bow-left,
.bow-right {
  position: absolute;
  top: 0;
  width: 18px;
  height: 22px;
  background: #e96a6a;
  border-radius: 60% 40% 60% 40% / 60% 60% 40% 40%;
}
.bow-left {
  left: 0;
  transform: rotate(-18deg);
}
.bow-right {
  right: 0;
  transform: scaleX(-1) rotate(-18deg);
}
.bow-center {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #d13a7a;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* Ponytails */
.ponytail {
  position: absolute;
  left: -18px;
  top: 0px;
  width: 22px;
  height: 90px;
  background: linear-gradient(120deg, #ffe066 60%, #ffd700 100%);
  border-radius: 60% 80% 90% 80% / 80% 100% 100% 100%;
  z-index: 1;
  box-shadow: 0 2px 8px 0 #e6c20044;
  transform: rotate(18deg);
}
.ponytail-right {
  left: auto;
  right: -18px;
  top: 0px;
  transform: scaleX(-1) rotate(18deg);
}

/* Antenna */
.antenna {
  width: 6px;
  height: 40px;
  background: #555;
  margin: 0 auto;
  border-radius: 3px;
}
/* Head */
.head {
  position: relative;
  width: 160px;
  height: 120px;
  background: #c784cf;
  border-radius: 8px;
  margin: 0 auto;
}

/* Eyes */
.eye {
  position: absolute;
  top: 24px;
  width: 32px;
  height: 44px;
  background: #4fc497;
  border-radius: 50% / 60%;
  box-shadow: 0 0 8px 2px #4fc497, 0 0 0 4px #4fc497 inset;
  overflow: hidden;
  animation: blink 3s infinite;
}

.pupil {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 10px;
  height: 14px;
  background: #111;
  border-radius: 50% / 60%;
  transform: translateX(-50%);
}
.eye.left {
  left: 22px;
}
.eye.right {
  right: 22px;
}

/* Mouth */

.mouth {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 44px;
  height: 28px;
  background: #222;
  border-radius: 0 0 30px 30px / 0 0 40px 40px;
  border: 3px solid #333;
  border-top: none;
  transform: translateX(-50%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mouth::after {
  content: "";
  display: block;
  width: 18px;
  height: 10px;
  background: #e96a6a;
  border-radius: 0 0 18px 18px;
  margin-bottom: 2px;
}

/* Body */
.body {
  width: 160px;
  height: 120px;
  background: #c784cf;
  margin: -10px auto 0;
  border-radius: 8px;
  position: relative;
}
.body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 125px;
  background: #e96a6a;
  border-radius: 0 0 8px 8px;
  z-index: 1;
}

/* Arms & Legs */
.arm {
  position: absolute;
  width: 20px;
  height: 90px;
  background: #e292c1;
  border-radius: 10px;
  z-index: 2;
}
.leg {
  position: absolute;
  width: 20px;
  height: 80px;
  background: #e292c1;
  border-radius: 10px;
  z-index: -1;
}

.arm.left {
  left: -8px;
  top: 130px;
  transform: scaleX(-1) rotate(-120deg);
  transform-origin: 90% 18px;
  animation: wave-arm-mirror 1s infinite alternate linear;
}

.arm.right {
  right: 10px;
  top: 140px;
  transform: rotate(10deg);
}
.leg.left {
  left: 50px;
  top: 240px;
}
.leg.right {
  right: 50px;
  top: 240px;
}

/* Shoes */
.leg.left::after,
.leg.right::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 32px;
  height: 20px;
  background: #111;
  border-radius: 50% 50% 60% 60% / 60% 60% 100% 100%;
  transform: translateX(-50%);
  z-index: 2;
}
.leg.right::after {
  transform: translateX(-50%) scaleX(-1);
}

/* Speech Bubble */
#speech-bubble {
  position: absolute;
  top: 90px;
  left: 70%;
  transform: none;
  width: 400px;
  min-width: 400px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.95rem;
  z-index: 2;
}

#speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 10px;
  border-width: 10px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  transform: none;
}

button {
  margin-top: 4.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1.5rem;
  border: none;
  background: #129292;
  color: #fff;
  border-radius: 50px;
  cursor: pointer;
}

button:hover {
  background: #48cec77a;
  color: #333;
}

/* Footer */

footer {
  position: relative;
  text-align: center;
  margin-top: 2rem;
  background-color: #a7d2eb;
  padding: 5rem;
  color: #ce1562;
  border-radius: 50px;
}

/* Footer links */

a {
  color: #071c7c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Keyframes */

/* Blink */
@keyframes blink {
  0%,
  92%,
  100% {
    height: 44px;
    top: 24px;
  }
  94%,
  98% {
    height: 4px;
    top: 44px;
  }
}

/* Wave Arm */
@keyframes wave-arm-mirror {
  0% {
    transform: scaleX(-1) rotate(-120deg);
  }
  100% {
    transform: scaleX(-1) rotate(-160deg);
  }
}
