body, html {
    height: 100%;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.pre-wrap {
    white-space: pre-wrap;
}

.spinner {
    -webkit-animation: spin 2s linear infinite;
    -moz-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

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

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

#templates {
    display: none;
}

#main {
    padding: 45px 2em;
    max-width: 1024px;
    margin: 0 auto;
}

#story-viewport {
    display: block;
    position: relative;
    height: 100%;
}

#story {
    position: relative;
    display: block;
    background-image: none;
    background-color: transparent;
    height: 100%;
    font-size: 30px;
    line-height: 1.6em;
}

#story p,
#story div {
    text-indent: 1em;
    margin: 0;
}

#story p:first-child,
#story div:first-child {
    text-indent: 0;
}

.error-message {
    background-color: black;
    color: red;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 1em;
    width: 100%;
    text-align: center;
    font-family: sans-serif;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.noun {
    white-space: nowrap;

    -webkit-transition: color 0.3s, background-color 0.3s, text-shadow 0.3s;
    transition: color 0.3s, background-color 0.3s, text-shadow 0.3s;
}

.accepts {
    color: #d70303;
    text-shadow: 1px 1px 2px #b5b4b1;
}

#story span.noun.over {
    background-color: #66c;
    color: #fff;
}

#action-container {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 100%;
    min-height: 80px;
    text-align: center;
    font-size: 30px;
}

#verbs {
    margin: 0 auto;
    max-width: 1024px;
}

.verb-row {
    position: relative;
    height: 65px;
}

.verb-container {
    position: relative;
    display: inline-block;
    text-align: center;
    vertical-align: top;
    margin: 10px;
    line-height: 1;
    user-select: none;
}

.verb {
    position: relative;
    padding: 5px 15px;
    background-color: white;
    border: 1px solid gray;
    border-radius: 3px;
    -webkit-transition: opacity 1s;
    transition: opacity 1s;
    display: inline-block;
    width: 200px;
    cursor: move;
    min-height: 30px;
    vertical-align: middle;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.75);
    box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.75);
}

.dragging .verb:after,
.dragging .verb:before {
    bottom: -10px;
    left: 50%;
    border: solid transparent;
    content: " ";
    width: 0;
    position: absolute;
    pointer-events: none;
}

.dragging .verb:after {
    border-color: rgba(255, 255, 255, 0);
    border-top-color: #ffffff;
    border-width: 10px 10px 0;
    margin-left: -10px;
}

.dragging .verb:before {
    border-color: rgba(128, 128, 128, 0);
    border-top-color: #888888;
    border-width: 11px 11px 0;
    margin-left: -11px;
    bottom: -11px;
}

.dragging {
    opacity: 0.95;
    cursor: none;
    min-height: 110px;
}

.inactive-draggable {
    transition: transform 0.3s ease-in-out;
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
}

@media (max-width: 880px) {
    #verbs {
        font-size: 20px;
    }

    .verb {
        width: 120px;
        min-height: 20px;
    }

    .verb-row {
        height: 55px;
    }
}
