@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: #e9e9e9;
}


#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: #e9e9e9;
    font-size: 1em;
    color: #555;
    padding: 2em 0 1em 0;
    border-top: 5px solid #ccc;
}

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;
}

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;
}

.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;
}