@import url('https://fonts.googleapis.com/css?family=EB+Garamond|Varela+Round');
body {
    background-color: #eaeaea;
}
a {
    text-decoration: none;
    color: #599a00;
    font-weight: bold;
}
#intro {
    position: absolute;
    font-family: 'EB Garamond', serif;
    margin: 0;
    padding-top: 10px;
    padding-left: 30px;
    z-index: -10;
}
#centerdiv {
    top: 150px;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 500px;
}
#carriage {
    right: 0;
    position: relative;
    width: 60%;
    z-index: 9;
    text-align: center;
}
#carriage.bounce {
    animation-name: updown;
    animation-duration: .15s;
}
#carriage-view.bounce {
    animation-name: updown2;
    animation-duration: .15s;
}
@keyframes updown {
    from {
        top: 5px;
    }
    to {
        top: 0px;
    }
}
@keyframes updown2 {
    from {
        top: 105px;
    }
    to {
        top: 100px;
    }
}
#dragme {
    height: 40px;
    width: 100%;
    cursor: move;
    z-index: 10;
}
#hidey {
    position: absolute;
    margin-top: 00px;
    width: 100%;
    height: 320px;
    z-index: 10;
    opacity: .85;
    background-color: #eaeaea;
    box-shadow: 0 -5px 25px #eaeaea;
}
#paper {
    top: 116px;
    z-index: -1;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px 10px 35px black;
    transition: top .1s;
    background-color: white;
}
#paper.bounce {
    animation-name: scaleme;
    animation-duration: .05s;
}
@keyframes scaleme {
    from {
        transform: scale(.98, .98);
    }
    to {
        transform: scale(1, 1);
    }
}
.carriagemech {
    position: relative;
    top: 150px;
}
#cursor {
    position: relative;
    top: 105px;
    z-index: 100;
    left: 0;
    right: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid black;
    border-radius: 20px;
}
#cursor.bounce {
    animation-name: hit;
    animation-duration: .04s;
}
@keyframes hit {
    from {
        border-bottom: 120px solid black;
        top: 105px;
    }
    to {
        border-bottom: 23px solid black;
        top: 95px;
    }
}
#carriage-view {
    position: absolute;
    top: 100px;
    margin-left: 0;
    margin-right: 0;
    left: 0;
    right: 0;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}
.chassis {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    z-index: 30;
    top: 150px;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}
#bigdrag {
    width: 100%;
    z-index: 500;
    position: absolute;
    height: 300px;
    cursor: grab;
}
#bigdrag:active {
    cursor: grabbing;
}
.ribbon {
    width: 180px;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 170px;
    z-index: 30;
    box-shadow: 0 5px 65px black;
    height: 20px;
    background-color: black;
}

@media (pointer:coarse) {
    #intro {
        width: 300px;
    }
    body { 
        overflow-x: hidden;
        position:fixed;
    }
}
.plug {
    font-family: 'Varela Round', sans-serif;
    font-size: 16px;
    color: #929d94;
    position: absolute;
    text-align: center;
    margin: auto;
    left:0;
    right:0;
    top: 700px;
    padding: 10px;
}
@media screen and (max-width: 800px) {
    #centerdiv {
        top: 200px;
    }
    .plug {
        top: 750px;
    }
}
@media screen and (max-width: 500px) {
    #centerdiv {
        top: 250px;
    }
    .plug {
        top: 800px;
    }
}
a.plug:hover {
    text-decoration: underline;
}
#bigdrag + img {
    transition: opacity .3s;
}
#bigdrag:hover + img {
    opacity: .5;
}