/*
-----------------------------------------------
imarketsolutions.com 
Stylesheet: Halloween.css
Organization:	iMarket Solutions

----------------------------------------------- */

@keyframes jumping {
    25% {
        transform: translateY(-10px);
    }
    15%,
    50% {
        transform: rotateX(20deg);
    }
    75% {
        transform: none;
    }
}

.pumpkin {
    position: relative;
    display: block;
    width: 560px;
    height: 450px;
    margin: 140px auto auto;
    opacity: 1;
    animation: jumping 2s infinite;
}

.layer {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    height: 420px;
    background-color: #fa7614;
    border-right: 10px solid #f26419;
    border-left: 10px solid #fa850d;
}

.layer:nth-child(1) {
    width: 580px;
    border-radius: 560px;
}

.layer:nth-child(2) {
    width: 520px;
    border-radius: 600px/620px;
}

.layer:nth-child(3) {
    width: 440px;
    border-radius: 560px/620px;
}

.layer:nth-child(4) {
    width: 320px;
    border-radius: 750px/920px;
}

.layer:nth-child(5) {
    width: 200px;
    border-radius: 1020px/1830px;
}

.layer:nth-child(6) {
    width: 70px;
    border-radius: 750px/2930px;
}

.stem {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    margin: auto;
    background: #704F2D;
    width: 25px;
    height: 25px;
    z-index: 0;
}

.stem::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 25px;
    right: 0;
    margin: auto;
    background: #376622;
    width: 30px;
    height: 45px;
    border-radius: 30px 0;
    z-index: 0;
}



.brow {
    width: 120px;
    height: 50px;
    border-width: 0px 0px 0px 10px;
    border-color: #000;
    border-style: solid;
    position: absolute;
    margin: auto;
    top: 110px;
    border-radius: 50px 0;
}

.brow.left {
    left: -145px;
    right: 0;
    border-width: 0px 10px 0px 0px;
    border-radius: 0 50px;
    transform: rotateZ(-30deg);
}

.brow.right {
    right: -145px;
    left: 0;
    transform: rotateZ(30deg);
}

.pupil {
    width: 35px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    top: 140px;
    background: #704f2d;
    border: 2px solid #000;
    margin: auto;
}

.pupil::after {
    width: 20px;
    height: 25px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.pupil.right {
    right: -120px;
    left: 0;
}

.pupil.left {
    left: -120px;
    right: 0;
}

.eye {
    width: 60px;
    height: 60px;
    border-width: 3px 3px 1px 1px;
    border-color: #000;
    border-style: solid;
    position: absolute;
    margin: auto;
    top: 120px;
    border-radius: 30px 0;
    background: #c87118;
}

.eye::before {
    position: absolute;
    top: 3px;
    left: 2px;
    height: 98%;
    width: 98%;
    background: #f4b87a;
    border-width: 3px 1px 3px 1px;
    border-style: solid;
    border-color: #000;
    border-radius: 30px 0;
    content: '';
}

.eye.right::before {
    border-width: 1px 3px;
}

.nose {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 45px 20px 0 20px;
    border-color: #000 transparent transparent transparent;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 200px;
}

.nose::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 36px 17px 0 17px;
    border-color: #f4b87a transparent transparent transparent;
    position: absolute;
    left: -17px;
    right: 0;
    margin: auto;
    top: -43px;
}

.eye.left {
    transform: rotateZ(40deg);
    left: -120px;
    right: 0;
}

.eye.right {
    transform: rotateZ(50deg);
    right: -120px;
    left: 0;
}


@keyframes hungry {
    40% {
        height: 40px;
    }
}

.mouth {
    position: absolute;
    top: 270px;
    left: 0;
    right: 0;
    width: 130px;
    height: 20px;
    margin: 5px auto 0;
    border: 3px solid #4B2A09;
    background: rgba(0,0,0,1);
    border-radius: 0 0 250px 250px;
    transition: height .5s cubic-bezier(.25, .90, .40, 2.3);
    overflow: hidden;
    line-height: 0;
    transform-origin: center top;
    animation: hungry .8s infinite;
}

.mouth::before {
    display: inline-block;
    content: "";
    position: absolute;
    left: 0;
    right: -25px;
    bottom: 0;
    margin: auto;
    width: 15px;
    height: 10px;
    background: #f4b87a;
}

.mouth::after {
    display: inline-block;
    content: "";
    margin: auto;
    width: 15px;
    height: 15px;
    position: absolute;
    left: -52px;
    right: 0;
    top: 0;
    background: #f4b87a;
}
/*
.mustache {
    width: 100px;
    height: 150px;
    border-width: 0 20px 0 0;
    border-style: solid;
    border-color: #000;
    position: absolute;
    top: 220px;
    right: 0;
    left: 0;
    margin: auto;
    border-radius: 300px;
    transform: rotateZ(-90deg);
}

.beard {
    width: 300px;
    height: 350px;
    border-width: 0 60px 0 0;
    border-style: solid;
    border-color: #000;
    position: absolute;
    top: 75px;
    right: 0;
    left: 0;
    margin: auto;
    border-radius: 300px;
    transform: rotateZ(90deg);
}

*/