html, body {
    padding: 0;
    margin: 0;
}

body {
    font: 12px/1.5 'Source Sans Pro', 'Helvetica Neue', Helvetica, sans-serif;
    background-color: #F3F5F2;
}

#input_area h2 {
    margin-bottom: 4px;
}

#input_area h2 span {
    font-size: 14px;
    font-weight: normal;
    color: #888;
}

#input_area .desc {
    float: left;
    width: 340px;
    margin: 0 30px 0 20px;
}

#input_area .desc p {
    font-size: 16px;
}

#input_area .desc .smaller {
    font-size: 14px;
    color: #888;
}

#input_area a, #input_area a:visited {
    text-decoration: none;
    color: #335b8c;
}

#input_area a:hover, #input_area a:active {
    color: #000;
}

#text_form {
    overflow: hidden;
    float: left;
    margin: 60px 0 0 0;
    position: relative;
}

#text_form textarea {
    font-family: "Crimson Text", Georgia, serif;
    float: left;
    resize: none;
    height: 360px;
    width: 340px;
    margin: 0 20px 0 0;
    padding: 0 4px;
    border: 1px solid #D8D8D8;
    border-radius: 2px;
    font-size: 16px;
    color: #333;
    line-height: 1.3;
    outline: none;
}

#text_form textarea:focus {
    border-color: #aaa;
    box-shadow: none;
}

#text_form .col {
    float: left;
}

#input_area #text_form a {
    padding: 2px 8px;
    border: 1px solid #D8D8D8;
    color: #000;
    text-decoration: none;
    margin: 0 4px;
    border-radius: 2px;
    display: block;
    width: auto;
    float: left;
    clear: both;
    margin: 0 0 8px 0;
}

#input_area #text_form a:hover, #input_area #text_form a.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

#text_form #submit_container {
    position: absolute;
    bottom: 0;
    left: 372px;
}

#input_area #send_button {
    background-color: #D8D8D8;
    border: 0;
}

#input_area .spinner{
    display: none;
    height: 22px;
    width: 16px;
    background: url("loading.gif") center center no-repeat;
    margin: 0 0 0 4px;
}

#helpOverlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(243,245,242,0.75);
    z-index: 99;
    font-size: 16px;
    display: none;
}

#helpOverlay .text {
    padding: 8px 14px;
    background: #F3F5F2;
}

#helpOverlay .colorchip {
    display: inline-block;
    width: 20px;
    height: 20px;
}

#histogramDesc {
    position: absolute;
    top: 20px;
    left: 360px;
    padding: 0 40px 20px 0;
    background: transparent url("img/arrow_histogram.png") right bottom no-repeat;
}

#lineChartDesc {
    position: absolute;
    left: 20px;
    top: 480px;
    width: 200px;
    padding: 34px 0 0 0;

    background: transparent url("img/arrow_chart.png") 40% top no-repeat;
}

#textDesc {
    position: absolute;
    top: 210px;
    left: 810px;
    width: 130px;
    background: transparent url("img/arrow_text.png") 40% top no-repeat;
    padding: 38px 0 0 0;
}

#colormappingDesc {
    position: absolute;
    left: 328px;
    top: 156px;
    bottom: 0;
}

#colormappingDesc .text {
    width: 420px;
    margin: 50px 0 0 0;
}

#selectedWordsDesc {
    position: absolute;
    left: 1020px;
    top: 360px;
    padding: 38px 0 0 0;
    background: transparent url("img/arrow_list.png") 30% top no-repeat;
}

#occurrenceDesc {
    position: absolute;
    left: 295px;
    top: 580px;
    width: 340px;
    padding: 0 0 0 30px;
    background: transparent url("img/arrow_occurrence.png") no-repeat;
}

#wrapper {
    display: none;
}

#top-row {
    position: fixed;
    padding-left: 20px;
}

#top-row h2:hover {
    cursor: pointer;
}

#histogram-container {
    position: absolute;
    background-color: #F3F5F2;
    height: 150px;
    width: 720px;
    top: 0;
    left: 290px;
}

#histogramCanvas {
    display: block;
}

#helpBtn, #closeBtn {
    position: fixed;
    right: 20px;
    top: 20px;
}

.sorting {
    font-size: 12px;
    color: #8F8F8F;
}

.sorting p {
    margin: 0 0 8px 0;
}

.sorting a {
    padding: 2px 8px;
    background-color: #D8D8D8;
    color: #000;
    text-decoration: none;
    display: inline-block;
    margin: 0 4px;
    border-radius: 2px;
}

.sorting a:first-of-type {
    margin-left: 0;
}

.sorting a:hover, .sorting a.active {
    background-color: #333;
    color: #fff;
}

#rangeSelector {
    width: 720px;
    height: 92px;
    position: absolute;
    top: 32px;
    visibility: hidden;
}

#rangeSelector .cover-left, #rangeSelector .cover-right {
    height: 100%;
    position: absolute;
    left: 0;
    /*background-color: rgba(242, 246, 240, .75);*/
    background-color: rgba(243, 245, 242, .75);
}

#rangeSelector .cover-right {
    right: 0;
}

#rangeSelector .uiRange {
    top: -2px;
    width: 2px;
    border: 1px solid #000;
    left: 147px;
    position: absolute;
    bottom: -1px;
}

#rangeSelector .uiRange:hover {
    cursor: grab;
}

#rangeSelector .uiRange.grabbing:hover {
    cursor: grabbing;
}

.cur-grabbing * {
    cursor: grabbing !important;   
}

#rangeSelector .uiHandle {
    position: absolute;
    left: -19px;
    width: 18px;
    height: 24px;
    top: 50%;
    background:  #ccc url("handle.gif") center center no-repeat;
    margin: -15px 0 0 0;
    border-radius: 2px 0 0 2px;
}

#rangeSelector .uiHandle.right {
    right: -19px;
    left: auto;
    border-radius: 0 2px 2px 0;
}

#rangeSelector .uiHandle:hover {
    cursor: col-resize;
}

#rangeSelector .boundaryValue {
    position: absolute;
    right: -36px;
    top: -14px;
    font-size: 12px;
    line-height: 1;
    color: #b3b3b3;
    width: 30px;
}

#rangeSelector .boundaryValue.left {
    left: -36px;
    text-align: right;
}

#currentValueHistogram {
    width: 2px;
    height: 92px;
    background: rgba(0,0,0,0.2);
    position: absolute;
    left: 20px;
    top: 32px;
    display: none;
}

#currentValueHistogram .value {
    width: 30px;
    margin: -16px 0 0 -15px;
    text-align: center;
    line-height: 1;
    font-size: 12px;
    color: #b3b3b3;
}

.cur-col-resize * {
    cursor: col-resize !important;   
}

.selectionIndicator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #333;
    position: absolute;
    top: 126px;
    display: none;
    z-index: 2;
}

.hovered.selectionIndicator {
    background-color: #888;
    z-index: 1;
}

.histogramm-legend {
    border-top: 1px solid #8F8F8F;
    color: #8F8F8F;
    position: relative;
}

.histogramm-legend:before, .histogramm-legend:after {
    display: block;
    width: 1px;
    height: 7px;
    background-color: #8F8F8F;
    position: absolute;
    top: -4px;
    left: 0;
    content: " ";
}

.histogramm-legend:after {
    left: auto;
    right: 0;
}

.histogramm-legend .right-legend {
    float: right;
}

#emo-graph-container {
    position: fixed;
    left: 0;
    top: 130px;
    margin: 20px 0;
    padding: 20px 10px 0 10px;
}

.graph-labels {
    position: absolute;
    top: 0;
}

.graph-labels span {
    display: block;
    position: absolute;
    margin-left: -2px;
}

.guide-labels {
    position: absolute;
    bottom: 5px;
    left: 10px;
    color: #666666;
    font-size: 12px;
}

.guide-labels span {
    display: block;
    position: absolute;
    top: 0;
    color: #B8B8B8;
    margin-left: -2px;
}

#graphCanvasContainer {
    position: relative;
}

.popup {
    position: absolute;
    left: 0;
    display: none;
}

.popup p {
    word-break: keep-all;
    white-space: nowrap;
    margin: 0 0 6px 0;
    padding: 4px;
    background: #fff;
    line-height: 1;
    color: #999999;
}

.popup.selected p {
    color: #333;
}

.popup.reverse p {
    margin: 6px 0 0 0;
}

.popup em {
    color: #bbb;
    font-style: normal;
}

.popup.selected em {
    color: #333;
}

.marker {
    position: absolute;
    display: none;
    margin: 0 auto;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
}

#word-occurrence-container {
    width: 19px;
    height: 500px;
    position: fixed;
    margin: 20px 0;
    left: 230px;
    top: 150px;
    position: fixed;
    border-left: 1px solid #000;
}

#word-occurrence-container:before, #word-occurrence-container:after {
    content: "start";
    display: block;
    position: absolute;
    top: -20px;
    color: #8F8F8F;
}

#word-occurrence-container:after {
    content: 'end';
    top: auto;
    bottom: -20px;
}

#word-occurrence-container .occurrence {
    position: absolute;
    width: 100%;
    background-color: #000;
}

#word-occurrence-container #bg {
    z-index: 0;
    position: absolute;
    top: 0;
}

#text-position-indicator {
    width: 17px;
    height: 50px;
    border: 1px solid #000;
    border-width: 1px 0 1px 4px;
    margin: 0 0 0 -4px;
    position: absolute;
    z-index: 2;
}

#text-position-indicator:before, #text-position-indicator:after {
    content: "";
    position: absolute;
    top: -2px;
    height: 1px;
    width: 20px;
    background-color: #000;
    border: 1px solid #fff;
    border-width: 1px 0 1px 0;
}

#text-position-indicator:after {
    top: auto;
    bottom: -2px;
}

#positionHighlight {
    position: fixed;
    left: 250px;
    top: 150px;
    width: 30px;
}

#text-container {
    float: left;
    width: 640px;
    font-family: "Crimson Text", Georgia, serif;
    font-size: 20px;
    line-height: 32px;
    margin: 150px 0 0 330px;
    color: rgb(50,50,50);
}

#text-container .emo_word:hover {
    cursor: pointer;
}

#text-container .emo_word {
    /*padding: 2px 6px;*/
    padding: 0 4px 3px;
}

#text-container .emo_word:not(.selected) {
    background-color: transparent;
    border-style: solid;
    border-width: 0;
    border-bottom-width: 3px;
    padding-bottom:0;
}

#text-container .emo_word.light-color.selected {
    color: #ddd;
}

#selection-container {
    position: fixed;
    top: 150px;
    left: 1020px;
    width: 240px;
    bottom: 0;
    overflow-y: auto;
}

#selection-container h3 {
    font-weight: normal;
    color: #8F8F8F;
    font-size: 12px;
    line-height: 1;
    margin: 0 0 12px 0;
}

#selection-container .list-wrapper {
    box-sizing: border-box;
}

.word-detail {
    height: 52px;
    position: relative;
}

.word-detail img {
    position: absolute;
    top: 0;
}

.word-detail .emo_word {
    font-size: 20px;
    font-weight: normal;
    font-family: "Crimson Text", Georgia, serif;
    line-height: 1;
    margin: 0 0 6px 42px;
    padding: 0;
    position: relative;
}

.word-detail .emo_word:hover {
    cursor: pointer;
}

.word-detail .emo_word span {
    font-weight: normal;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 16px;
    color: #8F8F8F;
}

.word-detail .values {
    margin: 0px 0px 0px 42px;
    line-height: 26px;
    display: none;
}

.word-detail .values span {
    display: inline-block;
    width: 50px;
    margin: 0 4px 0 0;
    color: #999;
}

.word-detail .values em {
    color: #bbb;
    font-style: normal;
}

.similar-words {
    margin: 20px 0px 0px;
}

.similar-words .word-detail {
    margin: 0 0 8px 0;
    height: auto;
}

.similar-words .word-detail .colorchip {
    width: 28px;
    height: 28px;
    display: block;
    float: left;
    margin: 0 12px 0 0;
}

.similar-words .word-detail .emo_word {
    margin: 0;
    line-height: 28px;
    font-size: 18px;
}
