* {
  margin: 0;
}

html, body {
  height: 100%;
}

.content {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0 auto -70px;
  padding-bottom: 40px;
}

.footer, .push {
  height: 70px;
}

.footer {
  color: #999999;
  background-color: #000000;
  font-size: 12px;
  line-height: 150%;
  border-bottom: 30px solid #000000;
}

.footer a {
  color: #ff9b08;
  text-decoration: none;
}
.footer a:visited { color: #ff9b08; }
.footer a:hover { text-decoration: underline; }

.subfoot1 { padding: 0.8em; float: left; text-align: left; }
.subfoot2 { padding: 0.8em; text-align: center; }
.subfoot3 { padding: 0.8em; float: right; text-align: right; }

body {
  margin: 0;
  padding: 0;
  font-family: Liberation Sans, Arial, sans-serif;
  font-size: 12px;
}

h1 {
  margin: 0;
  padding: 5px;
  text-align: center;
  color: #efefef;
  background-color: #666666;
  font-size: 40px;
  white-space: nowrap;
}

ul {
  margin: 0;
  padding: 0;
}

ul li {
  margin: 0.2em 0 0.2em 1.4em;
  padding: 0;
}
body button.ui-button {
  color: #333333 !important;
}

div.ucf-splash-dlg p {
  font-size: 120%;
  margin: 1.6em auto 1.6em auto;
}

div.ucf-splash-dlg p.error {
  color: #AA0000;
  font-weight: bold;
}

p.ucf-loading {
  font-size: 130%;
  text-align: center;
}

div.ucf-splash-dlg p span.ui-icon {
  float: left;
  margin-right: 0.6em;
}

#my-ucf {
  width: 700px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.9s;
}

#my-ucf.ready {
  opacity: 1;
}

.ucf-app a,
div#ucf-help a {
  color: #ff9b08;
  font-weight: bold;
  text-decoration: none;
}

.ucf-app a:visited,
div#ucf-help a:visited {
  color: #ff9b08;
}

.ucf-app a:hover,
div#ucf-help a:hover {
  text-decoration: underline;
}

div#ucf-help table.search-types {
  border-collapse: collapse;
}

div#ucf-help table.search-types th {
  white-space: nowrap;
  color: #eeeeee;
  background-color: #666666;
  border: 1px solid #eeeeee;
  padding: 3px 5px;
}

div#ucf-help table.search-types td {
  vertical-align: top;
  border: 1px solid #cccccc;
  padding: 3px 5px;
}

.ucf-app .search-wrap {
  margin: 0 0 1.6em 0;
  padding: 30px 0 0 0;
  position: relative;
  clear: both;
  z-index: 1;
}

.ucf-app .search-wrap .search-reset {
  position: absolute;
  right: 2px;
  top: 54px;
  padding: 6px 8px;
  font-weight: bold;
  cursor: pointer;
  color: #ff9b08;
}

.ucf-app .search-wrap .search-reset:hover {
  color: #C77405;
}

.ucf-app .search-wrap.state-empty .search-reset {
  display: none;
}

.ucf-app .search-wrap input.search {
  width: 100%;
  box-sizing: border-box;
  font-size: 120%;
  padding: 5px;
}

.ucf-app .search-wrap.state-empty a.search-link {
  visibility: hidden;
}

.ucf-app .search-wrap a.search-link {
  padding: 0 6px;
  color: #bbbbbb;
}

.ucf-app .search-wrap a.search-link:hover {
  color: #ff9b08;
}

.ucf-app .char-wrap {
  background-color: #eeeeee;
  float: left;
  width: 100%;
  margin: 0;
  padding: 0 0 4px 0;
  z-index: 2;
}

.ucf-app .char-wrap .char-preview {
  float: left;
  position: relative;
  width: 300px;
}

.ucf-app .char-preview input.unassigned {
  background-image: url(images/reserved-bg.png);
}

.ucf-app .char-preview input.noncharacter {
  background-color: #aaaaaa;
}

.ucf-app .char-preview input.surrogate {
  background-color: #77aa77;
}

.ucf-app .char-preview input.pua {
  background-color: #fafad7;
}

.ucf-app .char-wrap .char-props {
  float: left;
  position: relative;
  width: 400px;
}

.ucf-app .char-wrap .char-preview-label {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 250px;
  z-index: 1;
  text-align: center;
  font-size: 32px;
  line-height: 50px;
  padding: 28px 0 0 0;
  color: #bbbbbb;
  visibility: hidden;
  -moz-user-select: none;
  -webkit-user-select: none;
}

.ucf-app.empty .char-wrap .char-preview-label {
  visibility: visible;
}

.ucf-app input.char {
  position: relative;
  z-index: 2;
  color: #333333;
  background-color: transparent;
  margin: 20px 25px 5px 16px;
  width: 248px;
  height: 180px;
  font-size: 130px;
  text-align: center;
  border: 2px solid #bbbbbb;
}

.ucf-app .char-wrap .char-props-label {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 350px;
  z-index: 1;
  text-align: center;
  font-size: 32px;
  line-height: 50px;
  padding: 28px 0 0 0;
  color: #bbbbbb;
  visibility: hidden;
  cursor: default;
  -moz-user-select: none;
  -webkit-user-select: none;
}

.ucf-app.empty .char-wrap .char-props-label {
  visibility: visible;
}

.ucf-app .char-buttons {
  position: relative;
  left: 16px;
}

.ucf-app .char-buttons button.ui-button {
  font-weight: bold;
  color: #666666 !important;
  font-size: 12px;
  padding: 0 0 0 0;
  margin-bottom: 6px;
  margin-right: 2px;
  width: 62px;
  height: 25px
}

.ucf-app .char-buttons button.ui-button span.ui-button-icon-primary {
  margin: -8px 0 0 4px;
}

.ucf-app .char-buttons button.disabled {
  background-color: yellow;
}

.ucf-app .char-buttons button span.ui-button-text {
  position: relative;
  top: -2px;
}

.ucf-app.empty .char-buttons a.char-link {
  visibility: hidden;
}

.ucf-app .char-buttons a.char-link {
  font-size: 18px;
  padding: 0 4px;
  color: #bbbbbb;
}

.ucf-app .char-buttons a.char-link:hover {
  color: #ff9b08;
}

.ucf-app .sample-wrap {
  display: none;
  color: #cccccc;
  margin-top: 1.0em;
}

.ucf-app .sample-wrap:hover {
  color: #444444;
}

.ucf-app .sample-wrap ul {
  visibility: hidden;
  margin: 0 0 0 1em;
  padding: 0;
  list-style: none;
  display: inline;
}

.ucf-app .sample-wrap:hover ul {
  visibility: visible;
}

.ucf-app .sample-wrap ul li {
  margin: 0;
  padding: 0.4em 0.6em;
  list-style: none;
  display: inline;
  border-radius: 4px;
}

.ucf-app .sample-wrap ul li:hover {
  background-color: #eeeeee;
  cursor: pointer;
}

.ucf-app.empty .char-info table {
  float: left;
  visibility: hidden;
}

.ucf-app .char-info table {
  margin: 16px 0 16px 0;
  width: 388px;
  border-collapse: collapse;
  font-size: 14px;
  color: #333333;
}

.ucf-app .char-info table th {
  text-align: left;
  vertical-align: top;
}

.ucf-app .char-info span.alias {
  font-size: 90%;
  font-style: italic;
  color: #666666;
}

.ucf-app .char-info table th,
.ucf-app .char-info table td {
  border: 4px solid #eeeeee;
  padding: 3px;
}

.ucf-app .char-info table td {
  width: 250px;
  background-color: #fcfcfc;
  padding-left: 8px;
}

/* -------------------- for search results list ------------------------- */

.ucf-app .search-results .result-items {
  position: relative;
}

.ucf-app .search-wrap.state-empty .result-items {
  display: none;
}

.ucf-app .result-items li {
  font-size: 1.1em;
  color: #FF9B08;
  font-weight: bold;
  border: 1px solid transparent;
  padding: 4px;
  clear: both;
}

.ucf-app .result-items li.selected,
.ucf-app .result-items li:hover {
  border: 1px solid #fbcb09;
  background: #fdf5ce url(images/ui-bg-glass.png) 50% 50% repeat-x;
  color: #c77405;
}

.ucf-app .result-items:hover li.selected {
  background-image: none;
  color: #FF9B08;
}

.ucf-app .result-items:hover li.selected:hover {
  color: #c77405;
}

.ucf-app .code-point {
  float: left;
  width: 4.2em;
}

.ucf-app .code-sample {
  float: left;
  font-weight: bold;
  width: 1.5em;
  text-align: center;
}

.ucf-app .code-descr {
  margin-left: 6.4em;
}

.ucf-app .code-alias {
  font-size: 92%;
  font-style: italic;
  font-weight: normal;
  padding-left: 0.6em;
}

.ucf-app .search-footer {
  padding: 10px 0;
  text-align: center;
  background-color: #eeeeee;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.ucf-app .search-footer .throbber {
  background-repeat: no-repeat;
  background-image: url(images/throbber.gif);
  background-position: right center;
  padding-right: 22px;
}

.ucf-app .search-footer .throbber {
  font-weight: bold;
}

.ucf-app .search-wrap.state-partial .search-footer:hover {
  cursor: pointer;
  background-color: #FF9B08;
  color: #ffffff;
}

.ucf-app .search-wrap .search-footer .complete {
  font-style: italic;
  color: #888888;
}

.ucf-app .search-wrap.state-empty .search-footer,
.ucf-app .search-wrap .search-footer .throbber,
.ucf-app .search-wrap .search-footer .partial,
.ucf-app .search-wrap .search-footer .complete {
  display: none;
}

.ucf-app .search-wrap.state-empty .sample-wrap  { display: block; }

.ucf-app .search-wrap.state-searching .throbber { display: inline; }
.ucf-app .search-wrap.state-partial   .partial  { display: inline; }
.ucf-app .search-wrap.state-complete  .complete { display: inline; }

.ucf-font-menu p {
  margin: 0.5em 0;
}

.ucf-font-menu label {
  display: block;
  font-size: 110%;
  font-weight: bold;
  margin-top: 1.0em;
}

.ui-autocomplete.ui-menu {
  z-index: 200;
}

.ui-dialog {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
}

div.ucf-chart-dialog {
  position: relative;
}

div.ucf-chart-dialog select.ucf-block-menu {
  position: relative;
}

.ucf-chart-wrapper {
  height: 230px;
  border-bottom: 1px solid #cccccc;
  margin: 0 0 8px 0;
  padding: 2px;
  overflow: auto;
}

.ucf-chart-buttons {
  position: relative;
}

.ucf-chart-buttons select {
  position: absolute;
  width: 300px;
  top: 2px;
}

.ucf-chart-buttons button {
  float: right;
  margin-left: 4px;
}

button.ui-button {
  padding: 0.4em 0.9em 0.4em 0.8em;
}

button.ui-button .ui-button-icon-space {
  display: none;
}

button.ui-button .ui-button-icon {
  margin-right: 0.2em;
}

.ucf-chart-buttons button.ui-button span.ui-button-icon-primary {
  margin: -8px 0 0 4px;
}

.ucf-code-chart {
  border-collapse: collapse;
  font-family: Liberation Sans, Arial, sans-serif;
  background-image: url(images/reserved-bg.png);
}

.ucf-code-chart td {
  border: 1px solid #cccccc;
  background-color: #eeeeee;
  padding: 1px 0 0 0;
  font-size: 10px;
  font-size: 17px;
  text-align: center;
  vertical-align: center;
  width: 32px;
  height: 26px;
}

.ucf-code-chart td.unassigned {
  background-color: transparent;
  opacity : 0.3;
}

.ucf-code-chart td.noncharacter {
  background-color: #aaaaaa;
}

.ucf-code-chart td.surrogate {
  background-color: #77aa77;
}

.ucf-code-chart td.pua {
  background-color: #fafad7;
}

.ucf-code-chart td.curr-char {
  background-color: #fad184;
}

.ucf-code-chart td:hover {
  background-color: #f8f8f8;
  transform: scale(1.6);
}

div.ui-dialog-buttonpane {
  font-weight: bold;
}

div.ucf-tab-font {
  width: 32px;
  height: 62px;
  background-image: url(images/tabs.png);
  background-position: 0px -78px;
  position: absolute;
  top: 25px;
  left: -32px;
}

div.ucf-tab-font:hover {
  background-position: 0px 0px;
  cursor: pointer;
}

div.ucf-tab-help {
  width: 32px;
  height: 62px;
  background-image: url(images/tabs.png);
  background-position: 0px -233px;
  position: absolute;
  top: 25px;
  left: 700px;
}

div.ucf-tab-help:hover {
  background-position: 0px 153px;
  cursor: pointer;
}

#ucf-help {
  background-color: white;
  font-size: 120%;
}

#ucf-help h1 {
  color: #ff9b08;
  background-color: transparent;
  font-size: 140%;
  text-align: left;
  padding: 0;
  margin: 1.4em 0 0.2em 0;
}

#ucf-help p {
  margin: 0.4em 0 1em 0;
}

#fork-me {
  display: block;
  width: 56px;
  height: 56px;
  position: absolute;
  top: 0;
  right: 0;
  background-image: url(images/fork-me.png);
}

#fork-me:hover {
  background-position: 0px -56px;
}

#sample-bookmarks li a {
  display: block;
  float: left;
  width: 8.5em;
}

.scratchpad-wrap {
  position: relative;
  float: left;
  width: 100%;
  margin: 0;
}

.scratchpad-wrap .handle {
  display: block;
  position: absolute;
  right: 26px;
  z-index: 2;
  background-image: linear-gradient( 180deg, #C8CCC8, #eeeeee 40%);
  color: #bbbbbb;
  padding: 1px 10px 4px 10px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  font-family: Liberation Sans, Arial, sans-serif;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.scratchpad-wrap .handle:hover {
  color: #FF9B08;
  padding-top: 8px;
  text-decoration: none;
}

.scratchpad-wrap .handle::after {
  content: '\25BC';
}

.scratchpad-wrap.open .handle::after {
  content: '\25B2';
}

.scratchpad {
  display: none;
  padding: 0 16px 16px 16px;
  background-color: #eeeeee;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  overflow: hidden;
  max-height: auto;
}

.scratchpad .scratchpad-mode {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
  font-size: 14px;
  font-weight: bold;
  color: #666666;
}

.scratchpad .scratchpad-mode > li {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  padding: 0 0.5em 4px 0.5em;
}

.scratchpad .scratchpad-mode > li:last-child {
  padding-right: 0;
}

.scratchpad .scratchpad-mode input {
  vertical-align: middle;
  margin: 0 0.2em 0.1em 0;
}

.scratchpad .menu-button {
  padding: 0;
}

.scratchpad .menu-button:focus {
  outline: none;
}

.scratchpad-menu.ui-menu {
  display: inline-block;
}

.scratchpad-menu li {
  padding: 2px 4px;
  border: 1px solid transparent;
}

.scratchpad-menu li:hover {
  color: #c77405;
  background-color: #fdf5ce;
  border: 1px solid #fbcb09;
}

.scratchpad textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  font-size: 20px;
  min-height: 60px;
}

.scratchpad .codepoints {
  clear: both;
  width: 100%;
  box-sizing: border-box;
  min-height: 60px;
  padding: 0.5em;
  border: 1px solid #cccccc;
  border-radius: 3px;
}

.scratchpad-wrap.text-mode div.codepoints {
  display: none;
}

.scratchpad-wrap.cp-mode textarea {
  display: none;
}

.scratchpad .codepoints li {
  display: inline-block;
  list-style: none;
  font-size: 24px;
  margin: 4px;
  background-color: #FFFFFF;
  border: 1px solid #FF9B08;
  border-radius: 3px;
}

.scratchpad .codepoints li.combining-char {
  background-color: #FFE6C1;
}

.scratchpad .codepoints li > span {
  display: block;
  min-height: 40px;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  padding: 3px;
}

.scratchpad .codepoints li::after {
  content: attr(data-cp);
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 2px 2px 0px;
  text-align: center;
  font-family: Liberation Sans, Arial, sans-serif;
  font-size: 11px;
  line-height: 13px;
  background-color: #FF9B08;
  color: #FFFFFF;
}

