button {
  font-size: 14px;
  background-color: #dac1a7;
  /*text-rendering: optimizeLegibility;
  text-shadow: 0 -1px 1px #888;*/
  padding: 6px 10px 6px 10px;
  border: 0;
  border-radius: 5px;
  border-bottom: 1px solid #888;
  margin: 5px;
  /*-moz-box-shadow: 0 1px 3px #999;
  -webkit-box-shadow: 0 1px 3px #999;*/
}

button:hover {
  background-color: #C5AA8E;
}

svg {
  overflow: hidden;
}

html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: Georgia, serif;
}
path { 
	fill: none; 
	stroke: #8A8A8A; 
	stroke-width: .5px; 
}
text {
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}
svg:not(.hover) text:hover, .hover tspan:hover {
  fill: #8A8A8A;
}
#header {
  background: #dac1a7;
  padding: 10px 0 5px;
  border-bottom: solid #ddd 1px;
  height: 30px;
}
.grey {
  background: #F3E8E2;
  margin: 20px 0;
  padding: 0;
  border: solid #ddd 1px;
  border-left: none;
  border-right: none;
}
#vis {
  position: absolute;
  top: 45px;
  left: 10px;
  bottom: 0;
  right: 310px;
}
#text {
  width: 300px;
  position: absolute;
  top: 46px;
  bottom: 0;
  right: 0;
  overflow-y: auto;
  font-family: "Andale Mono", "Courier New", "Courier", monospace;
}
#text a { text-decoration: none; color: #000; }
#text a.highlight { background: #E7D7C7; color: #000; }
#text a:hover { text-decoration: underline; }
#text .row { height: 20px; }

rect {
  fill: none;
  stroke: #ddd;
}
rect.page {
  fill: #ff9;
  stroke: #000;
  fill-opacity: .7;
  cursor: move;
}
line {
  stroke: #000;
}

input {
  vertical-align: middle;
}

.label-small, .help {
  font-size: 10px;
  line-height: 25px;
  display: block;
  color: #999;
  font-style: italic;
}

#form-source {
  display: inline-block;
}

#form-ref {
  display: inline-block;
}

#form {
  display: none;
}

.left {
  float: left;
}

.right {
  float: right;
}

#logo a {
  text-decoration: none;
  color: #000;
}

#logo a:hover {
  color: #f60;
}

#paste {
  width: 100%;
  height: 200px;
  border: solid #ccc 1px;
}

figure {
    float: left;
	margin: 0;
	margin-right: 35px;

}

li{
  margin: 8px 0;
}

h2 {
  font-weight: 300;
  font-size: 1.5em;
}

.copyright {
  display: none;
}

.icon path {
  fill: #000;
  stroke: none;
}

.icon {
  cursor: pointer;
  margin-top: -3px;
  float: left;
}

.icon:hover path {
  fill: #e60;
}

#help-window {
  position: absolute;
  top: 45px;
  border-top: solid #ccc 1px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  overflow-y: scroll;
}

.center {
  text-align: center;
}

#logo {
  margin: 0;
  font-size: 2em;
  line-height: 25px;
  float: left;
  margin-right: 1em;
  padding: 0;
}


#logo svg {
  margin-right: 8px;
}

.wrapper {
  width: 980px;
  margin: 0 auto;
  /*text-align: justify;*/
}

#source, #keyword , #kword{
  width: 200px;
  margin-top: 0px;
  box-sizing: border-box;
  position: relative;
  padding: 5px 20px 5px 8px;
  font-size: 12px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

#source:focus, #keyword:focus {
  border-color: #f60;
}

.clear {
  clear: both;
}

#form label {
  cursor: pointer;
  color: #333;
}

#help-left {
  font-size: 10px;
  color: #999;
  font-style: italic;
  padding: 5px 5px;
  width: 250px;
}
#help-title {
  font-size: 18px;
  color: #555;
  font-style: normal;
  padding: 0px 5px;
  width: 500px;
}

#title-block {
    position: absolute;
    /*right: 0px;*/
	width: 50%;
}

.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  border-bottom: 16px solid #3498db;;
  width: 60px;
  height: 60px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
  position: absolute;
  top: 390px;
  right: 720px;
  display: none;
}

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

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



input {
  box-sizing: border-box;
}
.autocomplete {
  /*the container must be positioned relative:*/
  position: relative;
  display: inline-block;
}
input {
  border: 1px solid transparent;
  background-color: #f1f1f1;
  padding: 6px;
  font-size: 14px;
}
input[type=text] {
  background-color: #ffffff;
  width: 100%;
}
input[type=submit] {
  background-color: DodgerBlue;
  color: #fff;
}
.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}
.autocomplete-items div {
  padding: 6px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4; 
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9; 
}
.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important; 
  color: #ffffff; 
}