.parentsbox{
    display: flex;
    background-color: yellow;
    width:70em;
    height:70em;
    border-radius: 100px;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.pighead{
    background-color: pink;
    border-radius: 50%;
    width: 15em;
    height: 15em;    
    margin-top: 30px;
    position: absolute;
    border: 3px solid purple;
    border-style: dotted;
    z-index: 1;
}
.pigear{
    width: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 50px solid  #ff00e4;
    margin-top: 35px;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    position: absolute;
    z-index: 1;
}
.ear1{
    margin-left: -120px;
    rotate: -12deg;
}
.ear2{
    margin-left: 120px;
    rotate: 12deg ;
}
.pigeye{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: 110px;
    font-size: 200px;
    background-color: white;
    position: absolute; 
    display: flex; 
    z-index: 2;  
}
div.pigeye p{
    margin-top: -140px;
    margin-left: -2px;
}
div.pigeye.eye1 p{
    color: #000000;
    position: absolute; 
    border-radius: 50%; 
}
div.pigeye.eye2 p{
    color: #000000;
    position: absolute; 
    border-radius: 50%;   
}
.eye1{
    margin-left: -120px; 
}
.eye2{
    margin-left: 120px;
}
.pignose{
    background-color:white;
    height:50px;
    width: 80px;
    border-radius: 50%; 
    position: absolute;
    margin-left: 10px;
    margin-top: 150px;
    font-size: 180px;
    z-index: 2;
}
div.pignose p{
    margin-top: -130px;
    margin-left: -5px;
    color: #ff00e4;
}
.pigsmile{
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    position: absolute;
    box-shadow: 10px 10px 0 0;
    margin-top: 175px;
    margin-left: -20px;
    rotate: 50deg;   
    z-index:1; 
}
.parentsbox::after{
    content: '';
    width: 300px;
    height: 400px;
    background-color:pink;
    position: absolute;
    margin-top: 400px;
    margin-left: 300px;
    transform: translate(-50%, -50%);
    z-index: 0;
    border-style: dotted;
    border-color: black;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.parentsbox::before{
    content: '';
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 80px solid olive;
    border-radius: 60%;
    margin-left: -100px;
    margin-top: 350px;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.pighead::after{
    content: '';
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 80px solid olive;
    border-radius: 60%;
    margin-left: 190px;
    margin-top: 317px;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.pignose::before{
    content: '';
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 80px solid olive;
    border-radius: 60%;
    margin-left: -33px;
    margin-top: 447px;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: -1;
}
.pighead::before{
    content: '';
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 80px solid olive;
    border-radius: 60%;
    margin-left: 180px;
    margin-top: 567px;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.pignose::after{
    content: "";
    width: 300px;
    height: 450px;
    border-top-left-radius: 310px;
    border-top-right-radius: 310px;
    border-bottom-right-radius:310px ;
    border-bottom-left-radius:310px ;
    border: 20px solid green; 
    background-color: green;
    position: absolute;
    border-bottom: 0;
    margin-left:210px;
    margin-top: -250px;
}
div.pigeye.eye2 p::before{
    content: "";
    width: 2cm;
    height: 400px;
    background-color: brown;
    margin-top: 600px;
    margin-left: 270px;
    z-index: 3; 
    position: absolute;
}





