:root {
    --bg-mobile: rgb(79, 163, 219);
    --mobile-radius: 40px;
    --bg-grass: rgb(79, 168, 79);
    --bg-mountain: #836c58;
    --bg-totoro: rgb(145, 145, 145);
}
body {
    margin: 0;
    height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    font-family: Helvetica, sans-serif;
}
.text-white {
    color: white;
}
.text-center {
    text-align: center;
}

.d-none {
    display: none;
}

/* Phone */
.phone {
    position: relative;
    border: 4px solid black;
    border-radius: var(--mobile-radius);
    height: 600px;
    width: 330px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .8);
    background: #344cd4;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to top, #26D0CE, #2b377f);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top, #26D0CE, #2b3882); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    
}

.phone .title {
   margin-top: 25px;
}

/* Layers styles  */
.layer {
    position: absolute;
}

.layer-1 {
    z-index: 1;
    height: 480px;
    width: 100px;
    right: 15%;
    bottom: 0;
}

.layer-2 {
    z-index: 2;
    height: 450px;
    width: 100px;
    left: 15%;
    bottom: 0;
    
}
.layer-3 {
    z-index: 3;
    height: 400px;
    width: 240px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    background: var(--bg-mountain);
}
.layer-4 {
    z-index: 4;
    height: 330px;
    width: 100px;
    left: 7.5%;
    bottom: 0;
    
}
.layer-5 {
    z-index: 5;
    height: 280px;
    width: 230px;
    left:0;
    bottom: 0;
    background: var(--bg-mountain);
}
.layer-6 {
    z-index: 6;
    height: 220px;
    width: 100px;
    right: 7.5%;
    bottom: 10px;       
}
.layer-7 {
    z-index: 7;
    height: 160px;
    width: 160px;
    right:0;
    bottom: 0;
    background: var(--bg-mountain);
}
.layer-8 {
    z-index: 8;
    height: 100px;
    width: 230px;
    left:0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    background: var(--bg-grass);
    border-radius: 30px;
    box-shadow: 0 0 1px 1px white;

}
.layer-9 {
    z-index: 9;
    height: 80px;
    width: 80px;
    right: 0;
    bottom: 0;
    background: white;
}
.layer-10 {
    z-index: 10;
    height: 50px;
    width: 80px;
    left: 0;
    bottom: 0;
    background: white;     
}

/* Clouds styles */
.cloud {
    border-radius: 50%;
}

.cloud-right {
    border-radius: 50% 0 var(--mobile-radius) 0;
}

.cloud-right:after {
    position: absolute;
    content: '';
    width: 46px;
    height: 30px;
    border-radius: 50%;
    top: -17px;
    left: 34px;
    background: white;
}

.cloud-right:before {
    position: absolute;
    content: '';
    width: 70px;
    height: 50px;
    background: white;
    bottom: -1px;
    left: -30px;
    border-radius: 40px;
}

.cloud-left:before {
    content: '';
    position: absolute;
    left: 15px;
    top: -10px;
    border-radius: 80%;
    height: 40px;
    width: 40px;
    background: white;
}

.cloud-left:after {
    content: '';
    position: absolute;
    right: -15px;
    bottom: 0;
    border-radius: 50%;
    height: 40px;
    width: 80px;
    background: white;
}

/* Mountain */
.mountain {
    border-radius: 20px;
    /* background: var(--bg-mountain); */

    /* background-color: #67513e; */
    opacity: 1;
    background-image:  radial-gradient(#e2d1c2 0.5px, transparent .75px), radial-gradient(#f2dcc9 0px, #836c58 0px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    box-shadow: 0 0 1px 1px white;
}

.radius-bottom-mobile {
    border-radius: 20px 20px var(--mobile-radius) var(--mobile-radius);
}

.grass {
    border-radius: 20px 20px 0 0;
    height: 30px;
    background-color: var(--bg-grass);
}

/* Totoro */
.ear {
    height: 60px;
    width: 20px;
    border-radius: 90%;
    background:var(--bg-totoro);
    position: absolute;
}

.ear-left {
    left: 20px;
    top: 0px;
}
.ear-right {
    right: 20px;
}

.head {
    width: 100px;
    height: 100px;
    background: var(--bg-totoro);
    border-radius: 90%;
    position: absolute;
    top: 35px;
}

.eye {
    width: 20px;
    height: 18px;
    border-radius: 90%;
    background:white;
    position: absolute;
    top: 20px;
}

.eye-left {
    left: 15px;
    border-radius: 80% 90% 90% 70%;
    
}

.eye-right {
    right: 15px;
}

.pupil {
    width: 7px;
    height: 7px;
    border-radius: 90%;
    background:rgba(0, 0, 0, .8);
    position: absolute;
}

.pupil-left {
    left: 7px;
    top: 4px;
}

.pupil-right {
    right: 7px;
    top: 4px;
}

.nose {
    width: 20px;
    height: 9px;
    border-radius: 90%;
    background: rgb(29, 29, 29);
    position: absolute;
    top: 29px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}


.shadow-pattern {
    background-color: #5a534b;
    opacity: 0.8;
    background-image:  linear-gradient(135deg, #5a534b 25%, transparent 0%), linear-gradient(225deg, #5a534b 25%, transparent 0), linear-gradient(45deg, #523b29c5 25%, transparent 0), linear-gradient(315deg, #523b29c5  25%, var(--bg-mountain) 0%);
    background-position:  15px 0, 15px 0, 0 0, 0 0;
    background-size: 30px 30px;
    background-repeat: repeat;
    height: 15px;
    /* background-repeat: repeat; */
}


/* counter */
.layer label {
    border: 2px solid white;
    width: 200px;
    height:20px;
}
.layer input[type="checkbox"] {
    /* visibility: hidden; */
    border: 2px solid white;
    cursor: pointer;
    display: none;
}


/* Animations */

.jumping-animation-1 {
    animation: jumping-animation-1 1s cubic-bezier(0.075, 0.82, 0.165, 1) infinite;
}

.jumping-animation-2 {
    animation: jumping-animation-2 1s ease-in-out infinite;
}

.duration-1s {
    animation-duration: 1s;
}

.duration-2s {
    animation-duration: 3s;
}

.duration-3s {
    animation-duration: 3s;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-750 {
    animation-delay: 750ms;
}

@keyframes jumping-animation-1{
    0% {
        height: 480px;
    }

    50% {
        height: 400px;
    }


    100%{
        height: 480px;
    }
}

@keyframes jumping-animation-2 {
    0% {
        height: 360px;
    }

    50% {
        height: 270px;
    }


    100%{
        height: 360px;
    }
}
