html,
body {
    overscroll-behavior: none; /* */
}

body {
    background: #FFF;
    /*background: #1b767a;
    background: linear-gradient(180deg, rgba(27, 100, 122, 1) 0%, rgba(253, 187, 45, 1) 100%);*/
	color: #666;
	font-size: 1.2em;
	font-family: "Jost", sans-serif;
	margin: 0;
	padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;  
    -ms-user-select: none;   
    user-select: none;
}

p {
    margin: .25em 0;
}

svg {
    width: 100%;
    height: 100%;
}

path {
    fill: #999;
}

#windowLine path,
.flippable {
    cursor: pointer;
}

.building .flippable path {
    fill: #FD6;
}

.selected path {
    fill: #000;
}

.building path {
    fill: #FFF;
}

#awardBird {
    height: 12%;
    place-self: center;
}

#awardBird path {
    fill: #FD0;
}

#endCycleButton {
    background: #FFF;
    border: 1px solid #000;
    border-radius: .2em;
    bottom: 0;
    color: #333;
    cursor: pointer;
    display: inline-block;
    font-size: .9em;
    left: 50%;
    padding: .3em .6em;
    position: absolute;
    transform: translate(-50%, -50%);
}

#console {
    padding: .3em;
    position: absolute;
    right: 0;
    text-align: right;
    top: 0;
}

#horizon {
    background: #111;
    bottom: 0%;
    height: 5%;
    position: absolute;
    width: 100%;
}

#startDialogue,
#levelUpGreeting {
    background: #FFF;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
    z-index: 1;
}

#levelUpGreeting {
    height: 100%;
}

#levelUpGreeting p {
    padding: 0 1em .6em;
}

#keepGoingButton {
    background: #000;
    color: #FFF;
    cursor: pointer;
    padding: .3em .7em;
    place-self: center;
}

#popMenu {
    background: #888;
    border-radius: .2em;
    color: #FFF;
    font-size: .8em;
    padding: .8em .5em .5em .5em;
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%);
}

#popMenuClose {
    cursor: pointer;
    position: absolute;
    right: .3em;
    top: .1em;
}

#popMenuPoint {
    bottom: 0;
    color: #888;
    left: 50%;
    position: absolute;
    text-align: center;
    transform: translate(-50%, .9em);
}

#progressBar {
    background: #FFF;
    height: 100%;
    transition: width .7s ease-in-out;
    width: 0%;
}

#tree {
    height: 100%;
    position: absolute;
    transition: opacity .7s ease-in-out;
    width: 100%;
}

#startScreen {
    align-items: center;
    background: #FFF;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 95%;
    justify-content: center;
    width: 100%;
}

#windowLine {
    top: 0;
    display: flex;
    flex-direction: row-reverse;
    height: 8%;
    justify-content: center;
    position: absolute;
    width: 100%;
}

#windowLine div {
    margin: .5%;
}

.active .vacant {
    border-radius: 5%;
    border: 2px dashed #AAA;
}

.building {
    align-items: stretch;
    background: #000;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom-width: 0;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: grid;
    padding: 1%;
    position: absolute;
    right: 50%; /* temporary - this should be set live */
    top: 50%;
    transform: translate(50%, -50%);
}

.building.refresh-animation-c {
    animation: refreshanimationc 1.7s;
}

.building.refresh-animation-cd {
    animation: refreshanimationcd 1.5s;
}

.building.refresh-animation-d {
    animation: refreshanimationd 1.5s;
}

.dead {
    background: url(dead.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
}

.dead.clearable {
    cursor: pointer;
    background: url(phoenix.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
}

.heading {
    font-weight: bold;
    text-align: center;
}

.hidden {
    opacity: 0;
    transition: visibility .5s, opacity .5s;
    visibility: hidden;
}

.hidden.show {
    opacity: 1;
    transition: visibility .5s, opacity .5s;
    visibility: visible;
}

.shape0 {
    transform: rotate(90deg)
}

.shape1 {
    transform: scaleX(-1);
}

.shape2 {
    transform: rotate(270deg)
}

.title {
    color: #DB0;
    font-size: 1.5em;
}

.fade {
    animation: fadeInOut 1.5s infinite;
}

.window {
    box-sizing: border-box;
    margin: 5%;
    place-self: stretch;
    text-align: center;
}

@keyframes fadeInOut {
    0% {
        color: #333; /* Starts fully transparent */
    }
    50% {
        color: #DDD;
    }
    100% {
        color: #333; /* Ends fully transparent, ready to loop */
    }
}

@keyframes refreshanimationc {
    0% {
        background: #FD6;
    }
    100% {
        background: #000;
    }
}

@keyframes refreshanimationcd {
    0% {
        background: #FD6;
    }
    25% {
        background: #FAA;
    }
    100% {
        background: #000;
    }
}

@keyframes refreshanimationd {
    0% {
        background: #900;
    }
    100% {
        background: #000;
    }
}