/* Animation */
@keyframes ani-ear-left {
    from{
        transform: rotate(-5deg);
    }
    to {
        transform: rotate(0deg) translate(10px);
    }

}

@keyframes ani-ear-right {
    from{
        transform: rotate(5deg);
    }
    to {
        transform: rotate(0deg) translate(-10px);
    }
}

@keyframes eyebrow-left {
    from{
        transform: rotate(-20deg);
    }
    to {
        transform: rotate(17deg);
    }
}

@keyframes eyebrow-right {
    from{
        transform: rotate(20deg);
    }
    to {
        transform: rotate(-17deg);
    }
}

@keyframes mouth {
    from {
        transform: scale(0.7) translateY(-30px);
    }

    to {
        transform: scale(1.2) ;
    }
}

@keyframes arm-left {
    from{
        transform: rotate(-55deg);
    }
    to {
        transform: rotate(-25deg);
    }
}

@keyframes arm-right {
    from{
        transform: rotate(55deg);
    }
    to {
        transform: rotate(25deg);
    }
}

@keyframes tail {
    from{
        transform: rotate(30deg);
    }
    to {
        transform: rotate(60deg);
    }
}

/* Setting */
:root {
    --pri: #e28e52;
    --sec: #6c3516;
}

/* Reset */
body {
    margin: 0;
    padding: 0;
}

/* Design */
*,
*::after,
*::before {
    box-sizing: border-box;
}

body{
    background-color: #f4c4a1;
}

.red-panda{
    position: relative;
    top: 50px;
    margin: auto;
    width: 340px;
    height: 700px;
    /* background-color: aqua; */
}

.red-panda .face {
    position: absolute;
    top: 60px;
    width: 340px;
    height: 270px;
    border-radius: 50% 50% 40% 40% / 58% 58% 42% 42%;
    background-color: var(--pri);
    border: 8px solid #000;
    z-index: 10;
}

/* Ear + Ear animation*/
.red-panda .ear {
	position: absolute;
    top: 60px;
    left: 27px;
	background-color: #fff;
}
.red-panda .ear-line {
	position: absolute;
    top: 50px;
    left: 20px;
	background-color: #000;
}

.red-panda .ear-wrap.left{
    animation: ani-ear-left 1s infinite alternate;
}

.red-panda .ear-wrap.right{
    animation: ani-ear-right 1s infinite alternate;
}

/* Ear, Ear outline triangle */
.ear::before,
.ear::after {
	content: '';
	position: absolute;
	background-color: inherit;
}
.ear,
.ear::before,
.ear::after {
	width:  75px;
	height: 75px;
	border-top-right-radius: 30%;
}

.ear, .ear-line {
	transform: rotate(15deg) skewX(-30deg) scale(1,0.86);
}
.ear::before, .ear-line::before {
	transform: rotate(-135deg) skewX(-45deg) scale(1.4,0.7) translate(0,-50%);
}
.ear::after, .ear-line::after {
	transform: rotate(135deg) skewY(-45deg) scale(0.7,1.4) translate(50%);
}
.ear.right, .ear-line.right {
	transform: rotate(-15deg) skewX(-30deg) scale(1,0.86);
}

.ear-line::before,
.ear-line::after {
	content: '';
	position: absolute;
	background-color: inherit;
}

.ear-line,
.ear-line::before,
.ear-line::after {
	width:  83px;
	height: 83px;
	border-top-right-radius: 30%;
}

.red-panda .ear.right {
	position: absolute;
    top: 50px;
    left: 275px;
	background-color: #fff;
}
.red-panda .ear-line.right {
	position: absolute;
    top: 39px;
    left: 280px;
	background-color: #000;
}

/* Earhole */
.red-panda .earhole{
    position: absolute;
    width: 70px;
    height: 50px;
    top: 25px;
    border-radius: 0 50% 50% 0;
    background-color: var(--sec);
    opacity: 0.9;
}

.earhole.left{
    transform: rotate(-135deg);
    top: 75px;
    left: 5px;
}
.earhole.right{
    transform: rotate(-45deg);
    top: 75px;
    right: 5px;
}

/* Face */
.eyebrow{
    position: absolute;
    top: 90px;
    width: 23px;
    height: 13px;
    border-radius: 13px;
    background-color: #fff;
    opacity: 0.8;
}

.eyebrow.left{
    left: 95px;
    transform: rotate(17deg);
    animation: eyebrow-left 1s infinite alternate;
}

.eyebrow.right{
    right: 95px;
    transform: rotate(-17deg);
    animation: eyebrow-right 1s infinite alternate;
}

.eye{
    position: absolute;
    top: 115px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #000;
}
.eye.left{
    left: 95px;
}
.eye.right{
    right: 95px;
}

.nose{
    position: absolute;
    top: 145px;
    left: 150px;
    width: 25px;
    height: 18px;
    background-color: #000;
    border-radius: 25% 25% 50% 50%;
    z-index: 20;
}

.face-deco{
    position: absolute;
    top: 120px;
}
.face-deco.one{
    left: 60px;
    width: 200px;
    height: 135px;
    border-radius: 40% 40% 30% 30% / 50% 50% 50% 50%;
    background-color: #fff;
}
.face-deco.two{
    left: 80px;
    width: 160px;
    height: 135px;
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    background-color: var(--sec);
}
.face-deco.three{
    top: 125px;
    left: 88px;
    width: 145px;
    height: 115px;
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    background-color: #fff;
}

.mouth{
    position: absolute;
    top: 135px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 8px solid #000;
    border-radius: 50%;
}
.mouth.left{
    left: 115px;
}
.mouth.right{
    right: 115px;
}

.mouth::before{
    content: '';
    position: absolute;
    width: 50px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    z-index: 10;
}
.mouth.left::before{
    top: -9px;
    left: -11px;
}
.mouth.right::before{
    top: -9px;
    right: -10px;
}
.mouth::after{
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background: #fff;
    z-index: 10;
}
.mouth.left::after{
    top: 10px;
    left: -12px;
}

.mouth.right::after{
    top: 10px;
    right: -12px;
}

.mouthbottom{
    position: absolute;
    top: 165px;
    left: 138px;
    width: 50px;
    height: 50px;
    border: 7px solid black;
    border-radius: 30% 30% 40% 40%;
    background-color: coral;
    animation: mouth 1s infinite alternate;
}

/* Body */
.body{
    position: absolute;
    top: 300px;
    left: 35px;
    width: 270px;
    height: 275px;
    border-radius: 40% 40% 40% 40% / 60% 60% 40% 40%;
    background-color: var(--sec);
    border: 8px solid #000;
}
.body::before{
    content: '';
    position: absolute;
    width: 74px;
    height: 80px;
    top: 200px;
    left: 15px;
    background: var(--sec);
    z-index: 10;
}
.body::after{
    content: '';
    position: absolute;
    width: 74px;
    height: 80px;
    top: 200px;
    right: 15px;
    background: var(--sec);
    z-index: 10;
}

.arm{
    position: absolute;
    width: 90px;
    height: 200px;
    border-radius: 40% 40%;
    background-color: var(--sec);
    border: 8px solid #000;
}

.arm.left{
    top: 200px;
    left: 30px;
    transform: rotate(-35deg);
    animation: arm-left 1s infinite alternate;
    transform-origin: bottom;
}
.arm.right{
    top: 200px;
    right: 30px;
    transform: rotate(35deg);
    animation: arm-right 1s infinite alternate;
    transform-origin: bottom;
}

.arm.left::after,
.arm.right::after{
    content: '';
    position: absolute;
    width: 40px;
    height: 35px;
    top: 10px;
    left: 15px;
    background: var(--pri);
    border-radius: 50%;
    opacity: 0.5;
    z-index: 10;
}

.nail{
    position: absolute;
    width: 8px;
    height: 15px;
    border-radius: 50%;
    background-color: #000;
}
.nail.left-one{
    top: -15px;
    left: 25px;
}
.nail.left-two{
    top: -15px;
    left: 39px;
}

.nail.right-one{
    top: -15px;
    right: 25px;
}
.nail.right-two{
    top: -15px;
    right: 39px;
}

.leg{
    position: absolute;
    width: 90px;
    height: 200px;
    border-radius: 40% 40%;
    background-color: var(--sec);
    border: 8px solid #000;
}
.leg.left{
    top: 470px;
    left: 50px;
}
.leg.right{
    top: 470px;
    right: 50px;
}

.tail{
    position: absolute;
    width: 90px;
    height: 270px;
    top: 280px;
    right: 50px;
    border-radius: 35% 35% 50% 50%;
    background-color: var(--pri);
    border: 8px solid #000;
    transform-origin: bottom;
    z-index: -1;
    transform: rotate(45deg);
    animation:  tail 1s infinite alternate;;
}

.stripes{
    width: 75px;
    height: 20px;
    top: 30px;
    border-radius: 25%;
    background-color: #ffe3cf;
}
.stripes + .stripes{
    margin-top: 20px;
}

.stripes:first-child{
    width: 60px;
    margin-left: 6px;
    border-radius: 50% 50% 20% 20%;
}
.stripes:last-child{
    width: 63px;
    margin-left: 4px;
}
.tail::before{
    content: '';
    position: absolute;
    top: -9px;
    left: -9px;
    width: 90px;
    height: 270px;
    border: 8px solid #000;
    border-radius: 35% 35% 50% 50%;
}