:root {
    --primary: #0071BC;
    --font-color: #ffffff;
}

html, body {
    min-height: 100%;
    background-color: var(--primary);
    color: var(--font-color);
    font-family: 'Carter One', cursive;
    font-style: normal;
}

html {
    overflow: hidden scroll;
}

footer {
    background-color: #005893;
    padding: 50px 0;
}

a, a:focus, a:active, a:hover, a:focus:active, a:focus:hover, a:active:hover, a:active:hover:focus {
    color: var(--font-color);
}

* {
    text-shadow: 0 0.15em 0 rgba(0, 0, 0, 0.4);
}

.title {
    font-size: 4em;
    text-shadow: 0 0.1em 0 rgba(0, 0, 0, 0.4);
}

.subtitle {
    font-size: 1.25em;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
}

h3 {
    margin-top: 1rem;
}

h1 small, h3 small {
    margin-left: 10px;
    font-size: 0.6em;
}

h1 small a, h3 small a {
    color: #ffd16f;
}

.app-link > img {
    width: 270px;
}

.app-link.disabled {
    opacity: 0.65;
}

.nowrap {
    white-space: nowrap;
}

.key {
    text-transform: uppercase;
    color: #ffd16f;
}

.quote {
    color: #bcdbff;
}

.quote ~ span{
    color: #ffd16f;
}

.unsupported-language {
    font-family: sans-serif;
    font-weight: bold;
    font-style: italic;
    letter-spacing: -0.4px;
    line-height: 0;
}

.vertical-list {
    line-height: 1.75em;
}

.embed-responsive {
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.screenshots img {
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s;
    transform: scale(1.0);
}

.screenshots img:hover {
    transform: scale(1.02);
}

.btn-icon {
    font-size: 3em;
}

.btn-icon, .btn-image, .app-link > img {
    filter: brightness(1);
    transform: scale(1);
    transition: all 0.1s;
}

.btn-icon:hover, .btn-image:hover, .app-link:not(.disabled):hover > img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.btn-icon:hover:active, .btn-image:hover:active, .app-link:not(.disabled):hover:active > img {
    transform: scale(0.95);
}

.scene-wrapper {
    overflow: hidden;
    height: 512px;
}

.scene-wrapper.subpage {
    margin-top: -200px;
}

.scene {
    overflow: hidden;
    height: 512px;
    background-image: url(/img/scene/scene.jpg);
    background-position: bottom;
    background-repeat: repeat-x;
    background-position-x: calc(50% - -140px);
    user-select: none;
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    .scene-wrapper {
        margin-bottom: -128px;
    }

    .scene {
        transform: scale(0.75);
        transform-origin: top;
        width: 150%;
        margin-left: -25%;
    }
}

.scene-dynamic-content {
    position: relative;
    width: 1px;
    height: 100%;
    margin: auto;
}

.scene-dynamic-content > img {
    position: absolute;
}

.tree {
    pointer-events: none;
    transform-origin: bottom;
    animation-name: wave;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

.tree.chopped {
    animation-name: chop;
    animation-duration: 0.1s;
}

.tree:not(.growing) {
    pointer-events: all;
    cursor: pointer;
}

@keyframes wave {
    0% {
        transform: translate(-50%, -95%) skewX(2deg) scale(0.666666);
    }
    50% {
        transform: translate(-50%, -95%) skewX(-2deg) scale(0.666666);
    }
    100% {
        transform: translate(-50%, -95%) skewX(2deg) scale(0.666666);
    }
}

@keyframes chop {
    0% {
        transform: translate(-50%, -95%) skewX(4deg) scale(0.666666);
    }
    50% {
        transform: translate(-50%, -95%) skewX(-4deg) scale(0.666666);
    }
    100% {
        transform: translate(-50%, -95%) skewX(4deg) scale(0.666666);
    }
}

.sheep {
    transform-origin: bottom;
    animation-name: breathe;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

.sheep.mirror {
    animation-name: breathe-mirror;
}

@keyframes breathe {
    0% {
        transform: translate(-50%, -95%) scale(1) scale(0.666666);
    }
    50% {
        transform: translate(-50%, -95%) scale(1, 1.05) scale(0.666666);
    }
    100% {
        transform: translate(-50%, -95%) scale(1) scale(0.666666);
    }
}

@keyframes breathe-mirror {
    0% {
        transform: translate(-50%, -95%) scale(1) scale(0.666666) scaleX(-1);
    }
    50% {
        transform: translate(-50%, -95%) scale(1, 1.05) scale(0.666666) scaleX(-1);
    }
    100% {
        transform: translate(-50%, -95%) scale(1) scale(0.666666) scaleX(-1);
    }
}

.windmill {
    left: -155px;
    top: 104px;
    animation-name: rotate;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

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

.grass {
    transform-origin: bottom;
    animation-name: grass-wave;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

.grass.mirror {
    animation-name: grass-wave-mirror;
}

@keyframes grass-wave {
    0% {
        transform: translate(-50%, -95%) skewX(3deg) scale(0.666666);
    }
    50% {
        transform: translate(-50%, -95%) skewX(-3deg) scale(0.666666);
    }
    100% {
        transform: translate(-50%, -95%) skewX(3deg) scale(0.666666);
    }
}

@keyframes grass-wave-mirror {
    0% {
        transform: translate(-50%, -95%) skewX(3deg) scale(0.666666) scaleX(-1);
    }
    50% {
        transform: translate(-50%, -95%) skewX(-3deg) scale(0.666666) scaleX(-1);
    }
    100% {
        transform: translate(-50%, -95%) skewX(3deg) scale(0.666666) scaleX(-1);
    }
}