
.container-tree {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
}

.container-tree * {
    position: absolute;
}

.grass {
    background: #689c54;
    width: 160px;
    height: 30px;
    border-radius: 100%;
    top: 170px;
    left: 20px;
    box-shadow: 3px 1px 2px #37552b;
}

.trunk {
    top: 95px;
    left: 80px;
    width: 40px;
    height: 91px;
    background: radial-gradient(55% 180% at 10px 0px, #7fc355 24%, #804b0a 25%, #804b0a 27%, rgba(255, 0, 0, 0) 28%) 10px -20px/60px 70px, radial-gradient(45% 200% at -8.5px 115%, rgba(255, 0, 0, 0) 17px, #804b0a 17.5px, #804b0a 19px, #e7a650 19.5px, #e7a650 23px, #b6772f 23.5px, #b6772f 29px, rgba(255, 0, 0, 0) 30px) 2px -99px/150px 140px, radial-gradient(55% 200% at 41.5px 100%, rgba(255, 0, 0, 0) 23%, #804b0a 24%, #804b0a 27%, #b6772f 27%, #b6772f 33%, rgba(255, 0, 0, 0) 34%) 0px -70px/90px 110px, linear-gradient(90deg, #804b0a 10%, #e7a650 10%, #e7a650 30%, #b6772f 30%, #b6772f 90%, #804b0a 90%) 10px 100%/20px 90px;
    background-repeat: no-repeat;
}

.crown-back {
    top: 0;
    left: 0;
    width: 200px;
    height: 130px;
    background: radial-gradient(50px 50px at 62px 56px, #7fc355 50%, rgba(255, 0, 0, 0) 51%) 10px 15px/75px 65px, radial-gradient(50px 50px at 62px 56px, #b8ee86 50%, rgba(255, 0, 0, 0) 51%) 6px 14px/75px 65px, radial-gradient(55% 78% at 15% 75%, #7fc355 50%, rgba(255, 0, 0, 0) 51%) 120px -10px/50% 50%, radial-gradient(45% 75% at 85% 75%, #7fc355 50%, rgba(255, 0, 0, 0) 51%) -39px -8px/60% 50%, radial-gradient(50% 50% at 160px 40px, #7fc355 50%, rgba(255, 0, 0, 0) 51%) -62px 22px/280px 96px, radial-gradient(45% 75% at 85% 75%, #b8ee86 45%, #804b0a 47%, #804b0a 50%, rgba(255, 0, 0, 0) 53%) -45px -14px/60% 50%, radial-gradient(50% 50% at 70px 70px, #7fc355 50%, rgba(255, 0, 0, 0) 51%) 28px -39px/120px 100px, radial-gradient(55% 60% at -10px 75%, #7fc355 46%, #804b0a 47%, #804b0a 50%, rgba(255, 0, 0, 0) 53%) 159px 15px/49% 45%, radial-gradient(55% 78% at 15% 75%, #b8ee86 45%, #804b0a 48%, #804b0a 50%, rgba(255, 0, 0, 0) 53%) 126px -18px/50% 50%, radial-gradient(25% 35% at 100% 65%, #b8ee86 43%, #804b0a 46%, #804b0a 50%, rgba(255, 0, 0, 0) 54%) -104px 0px/70% 70%, radial-gradient(60% 65% at 90% 15%, #7fc355 47%, #804b0a 48%, #804b0a 50%, rgba(255, 0, 0, 0) 52%) -80px 72px/85% 80%, radial-gradient(60% 65% at 60% 15%, #7fc355 47%, #804b0a 48%, #804b0a 50%, rgba(255, 0, 0, 0) 52%) 26px 68px/80% 80%, radial-gradient(60% 65% at 45% 100%, #b8ee86 46%, #804b0a 47%, #804b0a 50%, rgba(255, 0, 0, 0) 53%) 45px -52px/60% 60%;
    background-repeat: no-repeat;
}

.crown-front {
    top: 75px;
    left: 50px;
    width: 100px;
    height: 40px;
    background: radial-gradient(45px 35px at 10px 10px, #7fc355 50%, rgba(255, 0, 0, 0) 52%) 14px 1px/75px 65px, radial-gradient(45px 35px at 10px 10px, #804b0a 50%, rgba(255, 0, 0, 0) 52%) 16px 3px/75px 65px, radial-gradient(40px 30px at 70px 10px, #7fc355 50%, rgba(255, 0, 0, 0) 52%) 0px 3px/73px 60px, radial-gradient(40px 30px at 70px 10px, #804b0a 50%, rgba(255, 0, 0, 0) 52%) 1px 6px/70px 60px;
    background-repeat: no-repeat;
}

.fruit1 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    left: 25px;
    top: 10px;
    transform: scale(0);
    background-color: #fca431;
    animation: anim1 15s infinite;
    animation-delay: 0s;
}

.fruit2 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    left: 90px;
    top: 75px;
    transform: scale(0);
    background-color: #fca431;
    animation: anim2 15s infinite;
    animation-delay: 6s;
}

.fruit3 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    left: 140px;
    top: 35px;
    transform: scale(0);
    background-color: #fca431;
    animation: anim3 15s infinite;
    animation-delay: 14s;
}

.fruit4 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    left: 45px;
    top: 40px;
    transform: scale(0);
    background-color: #fca431;
    animation: anim4 15s infinite;
    animation-delay: 8s;
}

.people {
    left: 137.5px;
    top: 50px;
    background-image: url(https://static.igem.wiki/teams/4822/wiki/wiki/home/hometree-1.png);
    width: 113px;
    height: 160px;
    background-size: cover;
    animation: peoplerun 2s infinite step-start;
}

@keyframes peoplerun {
    0% {
        background-position: 3.5px 3px;
    }

    50% {
        background-position: 115.375px 0px;
    }

    100% {
        background-position: 3.5px 3px;
    }
}


@keyframes anim1 {
    0% {
        transform: scale(0) translateY(0);
        background-color: #fca431;
    }

    50% {
        transform: scale(1) translateY(0);
        background-color: #fa7d00;
    }

    55% {
        transform: translateY(150px) scale(1);
        transform-origin: bottom;
        background-color: #fa7d00;
    }

    100% {
        transform: translateY(150px) scale(1.2, 0);
        transform-origin: bottom;
        background-color: #543b21;
    }
}

@keyframes anim2 {
    0% {
        transform: scale(0) translateY(0);
        background-color: #fca431;
    }

    50% {
        transform: scale(1) translateY(0);
        background-color: #fa7d00;
    }

    55% {
        transform: translateY(85px) scale(1);
        transform-origin: bottom;
        background-color: #fa7d00;
    }

    100% {
        transform: translateY(85px) scale(1.2, 0);
        transform-origin: bottom;
        background-color: #543b21;
    }
}

@keyframes anim3 {
    0% {
        transform: scale(0) translateY(0);
        background-color: #fca431;
    }

    50% {
        transform: scale(1) translateY(0);
        background-color: #fa7d00;
    }

    55% {
        transform: translateY(125px) scale(1);
        transform-origin: bottom;
        background-color: #fa7d00;
    }

    100% {
        transform: translateY(125px) scale(1.2, 0);
        transform-origin: bottom;
        background-color: #543b21;
    }
}

@keyframes anim4 {
    0% {
        transform: scale(0) translateY(0);
        background-color: #fca431;
    }

    50% {
        transform: scale(1) translateY(0);
        background-color: #fa7d00;
    }

    55% {
        transform: translateY(120px) scale(1);
        transform-origin: bottom;
        background-color: #fa7d00;
    }

    100% {
        transform: translateY(120px) scale(1.2, 0);
        transform-origin: bottom;
        background-color: #543b21;
    }
}

@media (min-width: 576px) {
    .container-tree {
        position: absolute;
        margin: auto;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 400px;
        height: 400px;
    }

    .container-tree * {
        position: absolute;
    }

    .grass {
        background: #689c54;
        width: 320px;
        height: 60px;
        border-radius: 100%;
        top: 340px;
        left: 40px;
        box-shadow: 3px 1px 2px #37552b;
    }

    .trunk {
        top: 190px;
        left: 160px;
        width: 80px;
        height: 182px;
        background: radial-gradient(55% 180% at 20px 0px, #7fc355 24%, #804b0a 25%, #804b0a 27%, rgba(255, 0, 0, 0) 28%) 20px -40px/120px 140px, radial-gradient(45% 200% at -17px 115%, rgba(255, 0, 0, 0) 34px, #804b0a 35px, #804b0a 38px, #e7a650 39px, #e7a650 46px, #b6772f 47px, #b6772f 58px, rgba(255, 0, 0, 0) 60px) 4px -198px/300px 280px, radial-gradient(55% 200% at 83px 100%, rgba(255, 0, 0, 0) 23%, #804b0a 24%, #804b0a 27%, #b6772f 27%, #b6772f 33%, rgba(255, 0, 0, 0) 34%) 0px -140px/180px 220px, linear-gradient(90deg, #804b0a 10%, #e7a650 10%, #e7a650 30%, #b6772f 30%, #b6772f 90%, #804b0a 90%) 20px 100%/40px 180px;
        background-repeat: no-repeat;
    }

    .crown-back {
        top: 0;
        left: 0;
        width: 400px;
        height: 260px;
        background: radial-gradient(100px 100px at 124px 112px, #7fc355 50%, rgba(255, 0, 0, 0) 51%) 20px 30px/150px 130px, radial-gradient(100px 100px at 124px 112px, #b8ee86 50%, rgba(255, 0, 0, 0) 51%) 12px 28px/150px 130px, radial-gradient(55% 78% at 15% 75%, #7fc355 50%, rgba(255, 0, 0, 0) 51%) 240px -20px/50% 50%, radial-gradient(45% 75% at 85% 75%, #7fc355 50%, rgba(255, 0, 0, 0) 51%) -78px -16px/60% 50%, radial-gradient(50% 50% at 320px 80px, #7fc355 50%, rgba(255, 0, 0, 0) 51%) -124px 44px/560px 192px, radial-gradient(45% 75% at 85% 75%, #b8ee86 45%, #804b0a 47%, #804b0a 50%, rgba(255, 0, 0, 0) 53%) -90px -28px/60% 50%, radial-gradient(50% 50% at 140px 140px, #7fc355 50%, rgba(255, 0, 0, 0) 51%) 56px -78px/240px 200px, radial-gradient(55% 60% at -20px 75%, #7fc355 46%, #804b0a 47%, #804b0a 50%, rgba(255, 0, 0, 0) 53%) 318px 30px/49% 45%, radial-gradient(55% 78% at 15% 75%, #b8ee86 45%, #804b0a 48%, #804b0a 50%, rgba(255, 0, 0, 0) 53%) 252px -36px/50% 50%, radial-gradient(25% 35% at 100% 65%, #b8ee86 43%, #804b0a 46%, #804b0a 50%, rgba(255, 0, 0, 0) 54%) -208px 0px/70% 70%, radial-gradient(60% 65% at 90% 15%, #7fc355 47%, #804b0a 48%, #804b0a 50%, rgba(255, 0, 0, 0) 52%) -160px 144px/85% 80%, radial-gradient(60% 65% at 60% 15%, #7fc355 47%, #804b0a 48%, #804b0a 50%, rgba(255, 0, 0, 0) 52%) 52px 136px/80% 80%, radial-gradient(60% 65% at 45% 100%, #b8ee86 46%, #804b0a 47%, #804b0a 50%, rgba(255, 0, 0, 0) 53%) 90px -104px/60% 60%;
        background-repeat: no-repeat;
    }

    .crown-front {
        top: 150px;
        left: 100px;
        width: 200px;
        height: 80px;
        background: radial-gradient(90px 70px at 20px 20px, #7fc355 50%, rgba(255, 0, 0, 0) 52%) 28px 2px/150px 130px, radial-gradient(90px 70px at 20px 20px, #804b0a 50%, rgba(255, 0, 0, 0) 52%) 32px 6px/150px 130px, radial-gradient(80px 60px at 140px 20px, #7fc355 50%, rgba(255, 0, 0, 0) 52%) 0px 6px/146px 120px, radial-gradient(80px 60px at 140px 20px, #804b0a 50%, rgba(255, 0, 0, 0) 52%) 2px 12px/140px 120px;
        background-repeat: no-repeat;
    }

    .fruit1 {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        left: 50px;
        top: 20px;
        transform: scale(0);
        background-color: #fca431;
        animation: anim1 15s infinite;
        animation-delay: 0s;
    }

    .fruit2 {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        left: 180px;
        top: 150px;
        transform: scale(0);
        background-color: #fca431;
        animation: anim2 15s infinite;
        animation-delay: 6s;
    }

    .fruit3 {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        left: 280px;
        top: 70px;
        transform: scale(0);
        background-color: #fca431;
        animation: anim3 15s infinite;
        animation-delay: 14s;
    }

    .fruit4 {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        left: 90px;
        top: 90px;
        transform: scale(0);
        background-color: #fca431;
        animation: anim4 15s infinite;
        animation-delay: 8s;
    }

    .people {
        left: 275px;
        top: 100px;
        background-image: url(https://static.igem.wiki/teams/4822/wiki/wiki/home/hometree-1.png);
        width: 226px;
        height: 320px;
        background-size: cover;
        animation: peoplerun 2s infinite step-start;
    }

    @keyframes peoplerun {
        0% {
            background-position: 7px 6px;
        }

        50% {
            background-position: 230.75px 0px;
        }

        100% {
            background-position: 7px 6px;
        }
    }

    @keyframes anim1 {
        0% {
            transform: scale(0) translateY(0);
            background-color: #fca431;
        }

        50% {
            transform: scale(1) translateY(0);
            background-color: #fa7d00;
        }

        55% {
            transform: translateY(300px) scale(1);
            transform-origin: bottom;
            background-color: #fa7d00;
        }

        100% {
            transform: translateY(300px) scale(1.2, 0);
            transform-origin: bottom;
            background-color: #543b21;
        }
    }

    @keyframes anim2 {
        0% {
            transform: scale(0) translateY(0);
            background-color: #fca431;
        }

        50% {
            transform: scale(1) translateY(0);
            background-color: #fa7d00;
        }

        55% {
            transform: translateY(170px) scale(1);
            transform-origin: bottom;
            background-color: #fa7d00;
        }

        100% {
            transform: translateY(170px) scale(1.2, 0);
            transform-origin: bottom;
            background-color: #543b21;
        }
    }

    @keyframes anim3 {
        0% {
            transform: scale(0) translateY(0);
            background-color: #fca431;
        }

        50% {
            transform: scale(1) translateY(0);
            background-color: #fa7d00;
        }

        55% {
            transform: translateY(250px) scale(1);
            transform-origin: bottom;
            background-color: #fa7d00;
        }

        100% {
            transform: translateY(250px) scale(1.2, 0);
            transform-origin: bottom;
            background-color: #543b21;
        }
    }

    @keyframes anim4 {
        0% {
            transform: scale(0) translateY(0);
            background-color: #fca431;
        }

        50% {
            transform: scale(1) translateY(0);
            background-color: #fa7d00;
        }

        55% {
            transform: translateY(240px) scale(1);
            transform-origin: bottom;
            background-color: #fa7d00;
        }

        100% {
            transform: translateY(240px) scale(1.2, 0);
            transform-origin: bottom;
            background-color: #543b21;
        }
    }
}