@font-face {
    font-family: Essay;
    src: url(../fonts/Essays1743.ttf);
}

@font-face {
    font-family: Nateli;
    src: url(../fonts/nateli.ttf);
}

body {
    margin: 0;
}

h1 {
    font-family: Essay;
}

.p-bg {
    display: none;
    position: absolute;
    height: 100%;
    width: 30%;
    font-size: 4vh;
    font-family: Essay;
    margin-top: 80px;
    letter-spacing: 1.6vh;
    z-index: 1;
}

.p-bg.mobile {
    display: inline;
    width: 100%;
    text-align: center;
}

.p-bg u {
    font-size: 2vh;
    vertical-align: super;
}

.p-left {
    left: 0;
    text-align: left;
    padding-left: 4%;
}

.p-right {
    right: 0;
    text-align: right;
    padding-right: 6%;
}

#gears {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: white;
    z-index: -1;
}

.gear {
    position: relative;
}

#gear-big {
    animation: rotateRight 16s linear infinite;
    width: 150%;
    width: 200%;
    margin-left: -50%;
    margin-top: -50%;
    opacity: 0.4;
}

.gear-small {
    animation: rotateLeft 16s linear infinite;
    width: 28%;
    bottom: -8%;
    display: none;
}

#scene {
    position: relative;
    height: 100vh;
    width: 100vw;
    align-content: center;
    margin-bottom: 150vh;
    z-index: 1;
}

.soil-layer {
    position: absolute;
    bottom: 0;
    transform: translateY(25%);
    margin: auto;
    width: 104%;
}

footer .soil-layer {
    transform: translateY(-80%);
}

#bird {
    bottom: 5%;
    width: 8%;
    margin-left: 46%;
    position: absolute;
}

@media all and (width > 768px) {
    .p-bg {
        display: inline;
        font-size: 15vh;
        z-index: 0;
    }
    
    .p-bg.mobile {
        display: none;
    }

    .p-bg u {
        font-size: 8vh;
    }

    .p-left {
        padding-left: 4%;
    }

    .p-right {
        padding-right: 6%;
    }
    
    #gears {
        z-index: 0;
    }
    
    .gear {
        position: absolute;
    }

    #gear-big {
        width: 85%;
        left: 7.5%;
        margin-left: 0;
        margin-top: 0;
        opacity: 1;
    }
    
    .gear-small {
        display: block;
    }

    #gear-small-left {
        left: -6%;
    }

    #gear-small-right {
        right: -6%;
    }
    
    .soil-layer {
        transform: translateY(50%);
    }
    
    footer .soil-layer {
        transform: translateY(30%);
    }
}

@keyframes rotateLeft {
     0% {
      -webkit-transform: rotate(0);
      transform: rotate(0)
     }
     100% {
      -webkit-transform: rotate(-360deg);
      transform: rotate(-360deg)
     }
}

@keyframes rotateRight {
     0% {
      -webkit-transform: rotate(0);
      transform: rotate(0)
     }
     100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg)
     }
}


#contact {
    height: 100vh;
    background-color: white;
}