*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    margin: 0px;
    height: 100%;
    box-sizing: border-box;
    font-size: calc(19px + 0.3vw);
    line-height: calc(1.25em + 0.3vw);
    font-family: Georgia, serif;
}

header {
    text-align: center;
    width: 100%;
    vertical-align: middle;
}

header .langsel {
    padding: 0.5em 1em;
    font-family: Helvetica, Arial, sans-serif;
    float: right;
}


header h1 {
    font-size: 2.75rem;
    margin-top: 0.67em;
    clear: both;
}


header h1 a {
    color: inherit;
    position: relative;
    top: 0.2ex;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #dadada;
    background-color: #252525;
}


main {
    align-self: center;
    max-width: 35em;
    width: 100%;
    padding: 0 1em 3em 1em;

}

h1, h2, h3, h4 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    line-height: calc(1.25em + 0.3vw);
    color: white;
}

h1 {
    font-size: 1.9rem;
    margin-bottom: 0.67em;
}

a.banner {
    text-decoration: none;
}

.result h2 {
    font-size: 1.2em;
}

.result p {
    padding-left: 2em;
    text-align: left;
}

strong.note {
    font-variant: small-caps;
    font-weight: normal;
}

span[lang], span.term {
	font-style: italic;
}

span.pos {
	font-variant: small-caps;
}

a {
    outline: none;
    text-decoration: none;
    color: #6BA6FF;
}

a:hover {
    color: inherit;
}

.search, .trans, .label {
    font-family: Helvetica, Arial, sans-serif;
}

.trans {
    font-size: 0.95rem;
}

.neighbours {
    text-align: left;
}

.res {
    white-space: nowrap;
}

/* Colours */

header {
    color: white !important;
}

span[lang=lij], span[lang=lij-x-sorli] {
	color: #e3cfa7;
}

.search input, .search button, .search textarea {
    color: #dadada;
    border: 1px solid #dadada;
    background: inherit;
    font-size: inherit;
    padding: 0.5em;
    border-radius: 4px;
}

.search input[type=text] {
    background: #444;
    width: 70%;
}

.search textarea {
    background: #444;
    width: 90%;
    font-family: Helvetica, Arial, sans-serif;
}

p.spellcheck {
    white-space: pre-wrap;
}

p.spellcheck span.bad {
    color: red;
}

/* Layout */


img.bandea {
    height: 2ex;
    vertical-align: middle;
    padding-right: 0.3em;
}

ul.defs {
	position: relative;
	list-style: none;
	margin-left: 0;
    padding-left: 0;
    margin-bottom: 3em;
}

ul.defs li {
	margin-bottom: 5px;
    margin-left: 1.4em;
}

ul.defs li:before {
	content: "•";
	position: absolute;
	left: 0;
}

ul.defs li.phr:before {
	content: "§";
}

ul.defs li.main {
    margin-left: 0;
}

ul.defs li.main:before {
    content: none;
    position: relative;
    left: auto;
}

/*ul.defs li.defrip::before {
	content: "“–";
	position: absolute;
	left: 0;
}

ul.defs li.def::before {
	content: "“";
	position: absolute;
	left: 0;
}

ul.defs li.rip::before {
	content: "–";
	position: absolute;
	left: 0;
}

ul.defs li.es::before {
	content: "§";
	position: absolute;
	left: 0;
}*/

section.entry {
    margin-top: 2em;
}

p, li {
    hyphens: auto;
    text-align: justify;
}

@media screen and (max-width: 640px) {
    p, li {
        hyphens: auto;
        text-align: left;
    }
}

.trans {
    text-align: center;
    margin-top: -1em;
}

.trans-warn {
    text-align: inherit;
    font-size: inherit;
    visibility: hidden;
    padding-top: 0;
    margin-top: 0;
}

.search {
    text-align: center;
    align-self: center;
    max-width: 35em;
    width: 100%;
    padding: 0 1em 1em 1em;
}

.search label, .trans label {
    display: inline-block;
}

.search > a {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;
    padding: 0.5em;
    color: inherit;
}

.loading:after {
    content: '.';
    animation: dots 2s steps(5, end) infinite;}
  
  @keyframes dots {
    0%, 20% {
      color: #252525;
      text-shadow:
        .25em 0 0 #252525,
        .5em 0 0 #252525;
    }
    40% {
      color: #dadada;
      text-shadow:
        .25em 0 0 #252525,
        .5em 0 0 #252525;
    }
    60% {
      text-shadow:
        .25em 0 0 #dadada,
        .5em 0 0 #252525;
    }
    80%, 100% {
        text-shadow:
        .25em 0 0 #dadada,
        .5em 0 0 #dadada;
    }
}
  

.results {
    margin-top: 1em;
}

.langsel {
    padding: 0.5em 1em;
    float: right;
}

.langsel form {
    display: inline;
}

.langsel span {
    padding-right: 0.5em;
    font-family: Helvetica, Arial;
}

.langsel select {
    border-radius: 4px;
    padding: 0.5em;
    font-family: Helvetica, Arial;
    font-size: 0.75em;
    color: #dadada;
    background-color: #252525;
    border: 1px solid #dadada;
}

hr {
    border: 0.75px solid #dadada;
    max-width: 30%;
}

.info {
    border-radius: 4px;
    padding: 0.25em;
    margin-top: 1em;
    border: 1px solid #dadada;
    display: inline-block;
}