@font-face {
    font-family: 'trans_stin_0regular';
    src: url('/fonts/transstin0.eot');
    src: url('/fonts/transstin0.eot?#iefix') format('embedded-opentype'),
         url('/fonts/transstin0.woff') format('woff'),
         url('/fonts/transstin0.ttf') format('truetype'),
         url('/fonts/transstin0.svg#trans_stin_0regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'trans_stin_7regular';
    src: url('/fonts/transstin7.eot');
    src: url('/fonts/transstin7.eot?#iefix') format('embedded-opentype'),
         url('/fonts/transstin7.woff') format('woff'),
         url('/fonts/transstin7.ttf') format('truetype'),
         url('/fonts/transstin7.svg#trans_stin_1regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'trans_stin_2regular';
    src: url('/fonts/transstin2.eot');
    src: url('/fonts/transstin2.eot?#iefix') format('embedded-opentype'),
         url('/fonts/transstin2.woff') format('woff'),
         url('/fonts/transstin2.ttf') format('truetype'),
         url('/fonts/transstin2.svg#trans_stin_2regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'trans_stin_3regular';
    src: url('/fonts/transstin3.eot');
    src: url('/fonts/transstin3.eot?#iefix') format('embedded-opentype'),
         url('/fonts/transstin3.woff') format('woff'),
         url('/fonts/transstin3.ttf') format('truetype'),
         url('/fonts/transstin3.svg#trans_stin_3regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'trans_stin_4regular';
    src: url('/fonts/transstin4.eot');
    src: url('/fonts/transstin4.eot?#iefix') format('embedded-opentype'),
         url('/fonts/transstin4.woff') format('woff'),
         url('/fonts/transstin4.ttf') format('truetype'),
         url('/fonts/transstin4.svg#trans_stin_4regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'trans_stin_5regular';
    src: url('/fonts/transstin5.eot');
    src: url('/fonts/transstin5.eot?#iefix') format('embedded-opentype'),
         url('/fonts/transstin5.woff') format('woff'),
         url('/fonts/transstin5.ttf') format('truetype'),
         url('/fonts/transstin5.svg#trans_stin_5regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.font0,
.latinic {
    font-family: trans_stin_0regular !important;
    font-size: 1em;
}
.font1,
.glagolitic {
    font-family: trans_stin_7regular !important;
    font-size: 1.5em;
}
.font2 {
    font-family: trans_stin_2regular !important;
    font-size: 1.5em;
}
.font3 {
    font-family: trans_stin_3regular !important;
    font-size: 1.5em;
}
.font4 {
    font-family: trans_stin_4regular !important;
    font-size: 1.5em;
}
.font5,
.cyrillic {
    font-family: trans_stin_5regular !important;
    font-size: 1.5em;
}

html,
body {
    margin:0;
    padding:0;
    height:100%;
}

body {
    background-color: #F8F9FA;
}


#content {
    padding-top: 2em;
    padding-bottom: 5em;
    min-height: 500px;
    background-color: #fff;
}

#login-form {
    padding: 1em 0 0 0;
    background-color: #666666;
}

#footer{
    background-color: #F8F9FA;
    font-size: 1em;
    color: #999999;
    padding: 2em 0 1em 0;
    border-top: 1px solid rgb(231 231 231);
}

footer p {
    font-size: 0.75em;
}

#cookies {
    width: 100%;
    position: fixed;
    bottom: -1px;
    left: 0px;
    background-color: #000000;
    opacity: .9;
    filter:alpha(opacity=90); /* For IE8 and earlier */
    z-index: 9999;
    padding: 15px 0 0 0;
}
#cookies div {
    color: #ccc;
    font-size: 0.9em;
}

h2 {
    margin-bottom: 1em;
}

input[type="radio"],
input[type="checkbox"] {
    margin: 0.25em;
    vertical-align: middle;
}

table th,
table td {
    border: 2px solid white;
}

.spacer {
    clear: both;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
}

.message-text {
    font-size: 1.5em;
    font-weight: 500;
}

.icon {
    display: block;
    font-size: 1.25em;
    text-align: center;
    padding: 0 0.25em;
    margin: -0.125em 0.25em 0em 0.25em;
    background-color: #fff !important;
}

a.label:hover {
    opacity: 0.85;
}

label span {
    font-size: 1.25em;
    margin-top:-0.4em;
    display: block;
}

#designer-block p {
    margin-bottom: 0.5em;
}

.designer-popup ,
.letters-popup {
    margin: 0 -0.25em;
    padding: 0.5em 0;
}

.designer-popup a,
.letters-popup a {
    display: inline-block;
    margin: 0;
    padding: 0.1em 0.5em;
    background: transparent;
    font-size: 0.875em;
    text-align: center;
    width: 1.5em;
    border-radius: 3px;
}

.letters-popup a {
    color: #000000;
}
.letters-popup a:hover {
    background: #000;
    color: #fff;
}

.transliteration a {
    color: inherit;
}
.transliteration a:hover {
    text-decoration: underline;
}

.line-number {
    font-size:0.75rem;
    display:inline-block;
    width:3em;
    margin-right:1em;
}
.doublet {
    color: #dc1375;
}
/*
.leaning::before {
    content: "|";
    color: #aaaaaa;
}
*/
.initial {
    font-size:3em;
    vertical-align:-0.33em;
    line-height: 0.75em;
    padding: 0;
    margin: 0;
}
.overline {
    border-top: 1px solid;
}
.small_letters {
    font-size: 0.75em !important;
}

.superscript {
    font-size: 0.875em;
    vertical-align:super;
}
.uppercase {
    text-transform: uppercase;
}

.ligature1 {
    background-color: #fef87e;
}
.ligature2 {
    background-color: #cfdff0;
}
.ligature3 {
    background-color: #e4c49f;
}
.ligature4 {
    background-color: #f8c4c9;
}
.ligature5 {
    background-color: #b9dfe7;
}
.ligature6 {
    background-color: #cecbe4;
}
.ligature7 {
    background-color: #fce1a0;
}
.ligature8 {
    background-color: #fcddd7;
}
.ligature9 {
    background-color: #bbd9c8;
}
.ligature10 {
    background-color: #f2d2d3;
}
.ligature11 {
    background-color: #b3ffa4;
}
.ligature12 {
    background-color: #feb8b8;
}

fieldset {
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    border-radius: 3px;
    background-color: #fff;
}

fieldset legend {
    font-weight: bold;
    padding: 0 0.1875rem;
    margin: 0;
    margin-left: -0.1875rem;
    background-color: transparent;
}

.amagdic-uppercase {
    text-transform: uppercase;
}

.amagdic-first-letter::first-letter {
  color: #999;
  font-size: 3em;
  float: left;
}

.reveal-modal h2 {
    position: relative;
    margin: -1.875rem -1.875rem 0.875em -1.875rem !important;
    background-color: #EFEFEF;
    padding: 0.25em 1em;
}

.switch.small {
    height: 2rem;
}

.gray {
    color: #999;
}

div#word-icons {
    width: auto !important;
}

.designer {
    display:inline-block;
    background-color:#fcfcfc;
    padding:0.1em 0.5em;
    margin:0 0.25em;
    border-radius: 3px;
    color: #000;
}
a.designer:hover {
    color: #d60022;
}

.designer-plus {
    display:inline-block;
    background-color:#fcfcfc;
    padding:0.1em 0.5em;
    margin:0 0.25em;
    border-radius: 3px;
}

.designer-root-missing {
    color: #ff00ff;
}
.designer-root {
    color: #5da423;
}

.amagdic-tooltip {
    display: inline-block;
    padding: 0;
    margin-left: 2px;
    margin-right: 0.25em;
    font-size: 0.875em;
    cursor: help;
    color: #aaa;
}

/* Foundation Dropdowns */
.f-dropdown {
    border-radius: 3px;
}

.f-dropdown,
.f-dropdown.content {
    background-color: #fcfcfc;
}

.f-dropdown.content {
    padding: 0rem 1rem;
}

.shorten {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel {
    border:0 !important;
}

/* foundation tabs */
.morphology-tabs {
    margin: 0 !important;
}
.morphology-tabs a.button {
    padding: 0.35em 0.5em;
}
@media only screen and (max-width: 40em) {
    .morphology-tabs a.button {
        padding: 0.35em 0.25em;
        font-size: 0.75em;
    }
}

.morphology-tabs > li {
    margin: 0;
    padding: 0 0.125em;
}

.morphology-tabs a {
    text-transform: uppercase;
    font-size: 0.7em;
    margin: 0.125em 0 !important;
    padding-top: 0.5em !important;
    padding-bottom: 0.5em !important;
    font-weight: bold;
}

.morphology-tabs .active a {
    font-weight: bold;
    color: #fff;
    background-color: #333;
}

.morphology-content {
    padding: 0.5em !important;
    margin: 0.25em 0 !important;
    /*border-radius: 5px;*/
}
.morphology-content ul {
    padding: 0 0.125em !important;
    margin: 0 !important;
}
.morphology-content ul ul ul {
    margin-left: 0.25em !important;
    border: 1px solid #ccc;
    /*border-radius: 3px;*/
    margin: 0 0 0.25em 0 !important;
    padding: 0.125em !important;
}
.morphology-content .title {
    font-size: 1em;
    font-weight: bold;
    padding: 0.125em 0.5em;
    margin: 0.25em 0;
    /*border-radius: 3px;*/
    -webkit-box-shadow:inset 0 0 8px 8px rgba(0,0,0,0.1);
    box-shadow:inset 0 0 8px 8px rgba(0,0,0,0.1);
}

.morphology-info div {
    padding: 0.25em 0.5em;
    font-size: 0.75em;
}
.morphology-info span {
    color: #999;
}

/* autocomplete */
.autocomplete-suggestions {
    border: 1px solid #999;
    background: #FFF;
    cursor: default;
    overflow: auto;
}
.autocomplete-suggestion {
    padding: 2px 5px;
    white-space: nowrap;
    overflow: hidden;
}
.autocomplete-no-suggestion {
    padding: 2px 5px;
}
.autocomplete-selected {
    background: #F0F0F0;
}
.autocomplete-suggestions strong {
    font-weight: bold; color: #000;
}
.autocomplete-group {
    padding: 2px 5px;
}
.autocomplete-group strong {
    font-weight: bold;
    font-size: 1em;
    color: #000;
    display: block;
    border-bottom: 1px solid #000;
}



/**
 * jQuery Lined Textarea Plugin
 *   http://alan.blog-city.com/jquerylinedtextarea.htm
 *
 * Copyright (c) 2010 Alan Williamson
 *
 * Released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Usage:
 *   Displays a line number count column to the left of the textarea
 *
 *   Class up your textarea with a given class, or target it directly
 *   with JQuery Selectors
 *
 *   $(".lined").linedtextarea({
 *      selectedLine: 10,
 *      selectedClass: 'lineselect'
 *   });
 *
 */

.linedwrap {
    border: 1px solid #c0c0c0;
    padding: 0.3em;
}

.linedtextarea {
    padding: 0px;
    margin: 0px;
}

.linedtextarea textarea,
.linedwrap .codelines .lineno {
    font-size: 10pt;
    font-family: monospace !important;
    line-height: normal !important;
}

.linedtextarea textarea {
    padding-right:0.3em;
    padding-top:0.3em;
    border: 0;
    width: 85% !important;
}

.linedtextarea textarea:focus {
    background-color: #ffffff;
}

.linedwrap .lines {
    margin-top: 0px;
    width: 50px;
    float: left;
    overflow: hidden;
    border-right: 1px solid #c0c0c0;
    margin-right: 10px;
}

.linedwrap .codelines {
    padding-top: 5px;
}

.linedwrap .codelines .lineno {
    color:#AAAAAA;
    padding-right: 0.5em;
    padding-top: 0.0em;
    text-align: right;
    white-space: nowrap;
}

.linedwrap .codelines .lineselect {
    color: red;
}




/* Select2 plugin */
.input-group-field .select2-container {
  margin: 0 !important;
}
.select2-container {
  box-sizing: border-box;
  display: block;
  margin: 0 0 1rem 0;
  position: relative;
  vertical-align: middle;
  font-size: 1rem !important;
  width: 100%;
  min-width: 100%;}
.reveal .select2-container,
.accordion .select2-container {
  font-size: 0.75rem;}

  .select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: auto;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    user-select: none;
    -webkit-user-select: none; }
    .select2-container .select2-selection--single .select2-selection__rendered {
      display: block;
      padding-left: 8px;
      padding-right: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;

  font-size: 1rem !important;}
    .select2-container .select2-selection--single .select2-selection__clear {
      position: relative; }
  .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-right: 8px;
    padding-left: 20px; }
  .select2-container .select2-selection--multiple {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    min-height: 32px;
    user-select: none;
    -webkit-user-select: none; }
    .select2-container .select2-selection--multiple .select2-selection__rendered {
      display: inline-block;
      overflow: hidden;
      padding-left: 8px;
      text-overflow: ellipsis;
      white-space: nowrap;

  font-size: 1rem !important;}
  .select2-container .select2-search--inline {
    float: left; }
    .select2-container .select2-search--inline .select2-search__field {
        box-sizing:border-box;
        border:none;
        font-size:1em;
        margin-top:0.5rem;
        margin-bottom:0.5rem;
        padding:0;
        height:1rem;}
      .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
        -webkit-appearance: none; }

.select2-dropdown {
  background-color: #fefefe;
  border: 1px solid #cacaca;
  box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
  /*border-radius: 4px;*/
  box-sizing: border-box;
  display: block;
  position: absolute;
  left: -100000px;
  width: 100%;
  z-index: 1051; }

.select2-results {
  display: block; }

.select2-results__options {
  list-style: none;
  margin: 0;
  padding: 0; }

.select2-results__option {
  padding: 6px;
  user-select: none;
  -webkit-user-select: none; }
  .select2-results__option[aria-selected] {
    cursor: pointer; }

.select2-container--open .select2-dropdown {
  left: 0; }

.select2-container--open .select2-dropdown--above {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0; }

.select2-container--open .select2-dropdown--below {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0; }

.select2-search--dropdown {
  display: block;
  padding: 4px; }
  .select2-search--dropdown .select2-search__field {
    padding: 4px;
    width: 100%;
    box-sizing: border-box; }
    .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
      -webkit-appearance: none; }
  .select2-search--dropdown.select2-search--hide {
    display: none; }

.select2-close-mask {
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  min-width: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: #fff;
  filter: alpha(opacity=0); }

.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important; }

.select2-container--default .select2-selection--single {
  background-color: #fefefe;
  border: 1px solid #cacaca;
  box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
  /*border-radius: 4px; */}
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 28px;

  font-size: 1rem !important; }
  .select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold; }
  .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999; }
  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px; }
    .select2-container--default .select2-selection--single .select2-selection__arrow b {
      border-color: #888 transparent transparent transparent;
      border-style: solid;
      border-width: 5px 4px 0 4px;
      height: 0;
      left: 50%;
      margin-left: -4px;
      margin-top: -2px;
      position: absolute;
      top: 50%;
      width: 0; }

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  float: left; }

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  left: 1px;
  right: auto; }

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #eee;
  cursor: default; }
  .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
    display: none; }

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px; }

.select2-container--default .select2-selection--multiple {
  background-color: white;
  border: 1px solid #aaa;
  /*border-radius: 4px;*/
  cursor: text; }
  .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0 5px;
    width: 100%; }
    .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
      list-style: none; }
  .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #999;
    margin-top: 5px;
    float: left; }
  .select2-container--default .select2-selection--multiple .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    margin-top: 5px;
    margin-right: 10px; }
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    /*border-radius: 4px;*/
    cursor: default;
    float: left;
    margin-right: 5px;
    margin-top: 5px;
    padding: 0 5px; }
  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #999;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-right: 2px; }
    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
      color: #333; }

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
  float: right; }

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  margin-left: 5px;
  margin-right: auto; }

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  margin-left: 2px;
  margin-right: auto; }

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: solid black 1px;
  outline: 0; }

.select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: #eee;
  cursor: default; }

.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
  display: none; }

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  border-top-left-radius: 0;
  border-top-right-radius: 0; }

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0; }

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #aaa; }

.select2-container--default .select2-search--inline .select2-search__field {
  background: transparent;
  border: none;
  outline: 0;
  box-shadow: none;
  -webkit-appearance: textfield; }

.select2-container--default .select2-results > .select2-results__options {
  max-height: 200px;
  overflow-y: auto; }

.select2-container--default .select2-results__option[role=group] {
  padding: 0; }

.select2-container--default .select2-results__option[aria-disabled=true] {
  color: #999; }

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #ddd; }

.select2-container--default .select2-results__option .select2-results__option {
  padding-left: 1em; }
  .select2-container--default .select2-results__option .select2-results__option .select2-results__group {
    padding-left: 0; }
  .select2-container--default .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -1em;
    padding-left: 2em; }
    .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
      margin-left: -2em;
      padding-left: 3em; }
      .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
        margin-left: -3em;
        padding-left: 4em; }
        .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
          margin-left: -4em;
          padding-left: 5em; }
          .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
            margin-left: -5em;
            padding-left: 6em; }

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #5897fb;
  color: white; }

.select2-container--default .select2-results__group {
  cursor: default;
  display: block;
  padding: 6px; }
