@import url('https://fonts.googleapis.com/css?family=Noto+Serif:400,400i,700,700i');

html, body {
    background-image: none;
    font-family: 'Noto Serif', serif;
}

body.has-sidebar {
    margin: 0 85px 0 15px;
}

#main {
    height: 100%;
    padding: 0;
}

#writer {
    height: 100%;
    padding-top: 30px;
}

#story {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: #555;
}

#story:focus {
    outline: 0;
}

#story:empty:not(:focus):before {
    content: "Click here to start writing";
    opacity: 0.5;
}

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

#current-noun-preview {
    font-weight: bold;
}

#action-container {
    padding-right: 105px;
    line-height: 1em;
    bottom: 15px;
}

.verb-row {
    margin: 0 auto;
    height: auto;
}

.verb-row:empty {
    height: 0;
}

.verb-editor-group {
    display: inline-block;
    vertical-align: top;
    height: 82px;
}

#verbs form {
    margin-top: -1em;
}

.verb input {
    display: block;
    width: 100%;
}

.ta-toolbar {
    display: none;
}

.has-action {
    color: #863c16;
}

.verb-container {
    display: inline-block;
    min-width: 235px;
}

.verb-container:hover .verbcontrols {
    visibility: visible;
}

span.noun.has-verb-match {
    border-bottom: 1px dashed #777;
}

.verb-container.noun-match .verb, span.noun.verb-match {
    background-color: #ffc;
}

.verb-container.high-container {
    top: -35px;
}

.verb-container a {
    text-decoration: none;
}

.verbcontrols {
    visibility: hidden;
    font-size: 20px;
    padding-top: 5px;
}

.verbcontrols a {
    padding: 0 0.3em;
}

.dragging .verbcontrols,
.transitioning .verbcontrols {
    display: none !important;
}

#progress-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    background-color: white;
    min-height: 100%;
}

#progress-indicator a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

input.size-2 {
    width: 4em !important;
}

#footer-container {
    position: relative;
    top: 7px;
}

footer {
    z-index: 1;
}

#rename-behavior-form {
    display: none;
}

.checkbox label {
    font-weight: bold;
}

label.plain {
    font-weight: normal;
    padding-left: 0;
}

label.spaced {
    padding-left: 30px;
}

#genre-selection .checkbox label,
.checkbox label.normal-weight {
    font-weight: normal;
}

.sortable {
    cursor: move;
}

#custom-modal-bg {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 75px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

#change-action-name-form {
    display: none;
}

/* Page graph */

#page-graph {
    background-color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 75px;
    top: 0;
}

/* Sidebar */

#sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 75px;
    background-color: #000;
    font-size: 18px;
    z-index: 2;
}

#sidebar ul {
    margin: 0 5px 0 0;
    padding: 0;
    text-align: center;
    list-style: none;
}

#sidebar ul li {
    background-color: #ddd;
    margin: 5px 0;
    font-size: smaller;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

#sidebar ul li a {
    display: block;
    height: 100%;
    width: 65px;
    padding: 10px 2px;
    color: #000;
    font-size: 12px;
}

#sidebar ul li a:hover,
#sidebar ul li a:focus {
    text-decoration: none;
}

#sidebar ul li a:active {
    text-decoration: none;
    background-color: #aaa;
}

#sidebar ul li.active {
    background-color: #fff;
}

#sidebar ul .glyphicon {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

#sidebar ul#sidebar-bottom-menu {
    position: absolute;
    bottom: 0;
}

#main-page-selector {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 85px;
    height: auto;
    font-size: large;
    z-index: 1050;
    display: none;
    max-height: 100%;
    overflow: auto;
    background-color: #fff;

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

#main-page-selector .list-group-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 1em;
}

#main-page-actions {
    margin: 5px;
}

#main-page-list {
    margin-bottom: 0;
}

#main-page-list .list-group-item {
    border-radius: 0;
}

input[type=checkbox] {
    margin-left: 1em;
}

#new-page-error {
    padding: 8px;
}

#sidebar li.menu-spacer {
    height: 50px;
    background-color: transparent;
}

.cover-page-link {
    border-bottom: 3px solid gray;
}

#formatting-commands,
#main-page-actions {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 45px;
    z-index: 10;
}

#formatting-commands button,
#main-page-actions button {
    margin-bottom: 15px;
}

/** publish */

#bibliography-form label {
    white-space: nowrap;
}

#share-container {
    min-height: 50px;
    text-align: center;
}

#share-container h3 {
    font-size: 30px;
    font-weight: bold;
}

.publish-share-button {
    display: inline-block;
    margin: 1em;
}

.publish-share-button img {
    width: 50px;
    height: 50px;
}

#cover-image-file {
    height: 0;
    visibility: hidden;
}

#cover-upload-indicator {
    display: none;
}

#cover-upload-error {
    display: none;
}


@media (max-width: 1020px) {
    .verb-row {
        max-width: 1000px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .modal-dialog.modal-lg {
        margin: 10px;
        width: auto;
        max-width: 1024px;
    }

    /* don't let sidebar cover the content */
    .container {
        width: 693px;
    }
}

@media (min-width: 1024px) {
    .modal-dialog.modal-lg {
        margin: 10px auto;
        width: 1024px;
    }
}