/* Colour meanings
--colour1 -> menu links
--colour2 -> headings
--colour3 -> border drop caps
--colour4 -> links
--colour5 -> drop caps 
*/

/* Colour variables autumn
:root {
  --colour1: #454140;
  --colour2: #bd5734;
  --colour3: #a79e84;
  --colour4: #7a3b2e;
} */

/* Colour testing
:root {
} */

/* Colour variables dark */
:root {
  --colour1: #0e1a40; 
  --colour2: #946b2d; 
  --colour3: #4e587b; 
  --colour4: #5d5d5d;
  --colour5: #0e1a40; 
}

/* Colour varibles summer
:root {
  --colour1: #A0204C; 
  --colour2: #23103A;
  --colour3: #23103A;
  --colour4: #543864;
} */


/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --colour1: #c56000;
    --colour2: #ffcc80;
    --colour3: #ffcc80;
    --colour4: #ffc046;
    --colour5: #c56000;

    background: #242424;
    color: #F5F5F5;
  }
  
  body {
    background-color: #242424;
    color: #F5F5F5; 
  }

  blockquote {
    background: #000000;
  }
  .separator::before,
  .separator::after {
    border-bottom: 1px solid white;
  }
  .separator-styled {
      border-color: solid white;
  }
  .separator-styled legend {
    color: white;
  }
}

/* Light mode */
@media (prefers-color-scheme: light) {
  body {
    background-color: white;
  }

  blockquote {
    background: #f9f9f9;
  }
  .separator::before,
  .separator::after {
    border-bottom: 1px solid #000;
  }
  .separator-styled {
      border-color: #000;
  }
  .separator-styled legend {
    color: #000;
  }
}

/* merriweather-regular - latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/merriweather-v21-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Merriweather Regular'), local('Merriweather-Regular'),
       url('fonts/merriweather-v21-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/merriweather-v21-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/merriweather-v21-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('fonts/merriweather-v21-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/merriweather-v21-latin-regular.svg#Merriweather') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* merriweather-italic - latin */
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/merriweather-v21-latin-italic.eot'); /* IE9 Compat Modes */
  src: local('Merriweather Italic'), local('Merriweather-Italic'),
       url('fonts/merriweather-v21-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/merriweather-v21-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/merriweather-v21-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('fonts/merriweather-v21-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/merriweather-v21-latin-italic.svg#Merriweather') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* merriweather-sans-regular - latin */
@font-face {
  font-family: 'Merriweather Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/merriweather-sans-v13-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('fonts/merriweather-sans-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/merriweather-sans-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/merriweather-sans-v13-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('fonts/merriweather-sans-v13-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/merriweather-sans-v13-latin-regular.svg#MerriweatherSans') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* merriweather-sans-italic - latin */
@font-face {
  font-family: 'Merriweather Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/merriweather-sans-v13-latin-italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('fonts/merriweather-sans-v13-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/merriweather-sans-v13-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/merriweather-sans-v13-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('fonts/merriweather-sans-v13-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/merriweather-sans-v13-latin-italic.svg#MerriweatherSans') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* grenze-gotisch-700 - latin-ext_latin */
@font-face {
  font-family: 'Grenze Gotisch';
  font-style: normal;
  font-weight: 700;
  src: local(''),
       url('fonts/grenze-gotisch-v1-latin-ext_latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('fonts/grenze-gotisch-v1-latin-ext_latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  font-display: swap;
}

/* vollkorn-regular - greek */
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/CSS/fonts/vollkorn-v13-greek-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/CSS/fonts/vollkorn-v13-greek-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/CSS/fonts/vollkorn-v13-greek-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('/CSS/fonts/vollkorn-v13-greek-regular.woff') format('woff'), /* Modern Browsers */
       url('/CSS/fonts/vollkorn-v13-greek-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/CSS/fonts/vollkorn-v13-greek-regular.svg#Vollkorn') format('svg'); /* Legacy iOS */
}

/* vollkorn-italic - greek */
@font-face {
  font-family: 'Vollkorn';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/CSS/fonts/vollkorn-v13-greek-italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/CSS/fonts/vollkorn-v13-greek-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/CSS/fonts/vollkorn-v13-greek-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('/CSS/fonts/vollkorn-v13-greek-italic.woff') format('woff'), /* Modern Browsers */
       url('/CSS/fonts/vollkorn-v13-greek-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/CSS/fonts/vollkorn-v13-greek-italic.svg#Vollkorn') format('svg'); /* Legacy iOS */
}

a {
  color: var(--colour4);
  text-decoration: underline;
  font-variant: small-caps;
  font-family: serif;
  font-size: 18px;
}

a.denied {
  color: var(--colour1);
  text-decoration: line-through;
  font-family: serif;
  font-variant: small-caps;
  cursor: not-allowed;
  font-size: 20px;
}

a.menu {
  color: var(--colour1);
  font-family: serif;
  font-variant: small-caps;
  font-size: 20px;
}

a.menu a.list {
  font-size: 18px;
}

a.menu i {
  font-family: serif;
}

a:hover {
  text-decoration: none;
}

h2 {
  color: var(--colour2);
  text-decoration: underline;
  text-decoration-style: double;
}


span.fraktur {
  font-family: Grenze Gotisch;
}

ul {
  list-style-type: circle;
}

ul.square {
  list-style-type: square;
}

ul.no_indent {
  padding: 0;
  list-style-type: circle;
}

ul.menu {
  list-style-type: none;
  margin: 0;
  margin-bottom: 5px;
  padding: 0;
}

li.menu {
  display: inline;
}

.menu li:first-of-type::before {
  content: "⇇ ";
}

.menu li:first-of-type::after {
  content: " · ";
}

.menu li:last-of-type::after {
  content: " ⇉";
}

ul.header {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li.header {
  display: inline;
}

.header li:before {
  content: "// ";
  position: relative;
  right: -1px;
}

h3.new::after {
  background: url(/media/icons/new.png) right center no-repeat;
  vertical-align: middle;
  background-size: 20px auto;
  padding-left: 25px;
  content: "";
  padding-top: 5px;
}

.header li:first-of-type:before {
  background: url(/media/icons/parthenon-3.png) right center no-repeat;
  vertical-align: middle;
  background-size: 20px auto;
  padding-left: 20px;
  padding-top: 5px;
  margin-right: 2px;
  content: "";
}

.header li:nth-of-type(2):before {
  background: url(/media/icons/letter.png) right center no-repeat;
  vertical-align: middle;
  background-size: 20px auto;
  padding-left: 20px;
  padding-top: 5px;
  margin-right: 2px;
  content: "";
}

.header li:nth-of-type(3):before {
  background: url(/media/icons/pillar.png) right center no-repeat;
  vertical-align: middle;
  background-size: 20px auto;
  padding-left: 20px;
  padding-top: 5px;
  margin-right: 2px;
  content: "";
}

.header li:nth-of-type(4):before {
  background: url(/media/icons/greek.png) right center no-repeat;
  vertical-align: middle;
  background-size: 20px auto;
  padding-left: 20px;
  padding-top: 5px;
  margin-right: 2px;
  content: "";
}

.header li:nth-of-type(5):before {
  background: url(/media/icons/book.png) right center no-repeat;
  vertical-align: middle;
  background-size: 20px auto;
  padding-left: 20px;
  padding-top: 5px;
  margin-right: 2px;
  content: "";
}

.split {
  height: 100%;
  width: 50%;
  position: absolute;
  z-index: 1;
  top: 0;
  overflow-x: hidden;
  padding-top: 20px;
}

td.head {
	text-align: center;
	color: #001433;
	font-weight: bold;
	font-style: italic;
	font-size: 130%;
}

b.kapit {
  font-weight: normal;
  font-variant: small-caps;
}

img {
  max-width: 100%;
  height: auto;
  width: auto\9; /* ie8 */
}

img.thumbnail {
  width: 200px;
  height: 130px;
}

.tab {
  margin-left: 40px;
}

* {
  font-family: Merriweather, Merriweather Sans; 
  box-sizing: border-box;
  /* cursor: url('/media/icons/quill.png'), auto; */
}

h1, h2, h3, h4, h5, h6 {
  font-family: serif;
}

.column {
  text-align: justify;
  float: left;
  width: 33.33%;
  padding: 10px;
}

.column-center {
  text-align: justify;
  justify-items: center;
  align-items: center;
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.chapter {
  text-align: justify;
  float: left;
  width: 50%;
  padding: 10px;
}

.column-2 {
  text-align: justify;
  float: left;
  width: 50%;
  padding: 10px;
}

.column-4 {
  text-align: center;
  float: left;
  width: 25%;
  padding: 10px;
  font-size: 13px;
}

.column-4 a {
  font-size: 13px;
}

p.blocktext {
  margin-left: auto;
  margin-right: auto;
  text-align: justify-all;
  max-width: 800px;
  padding: 5px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

p.indent {
  text-indent: 20px;
  margin-top: -20px;
}

.article p {
  margin-left: auto;
  margin-right: auto;
  text-align: justify-all;
  max-width: 800px;
  padding: 2.5px;
}

.article figure {
  width: 45%;
  text-align: center;
  font-style: italic;
  font-size: smaller;
  text-indent: 0;
  border: solid var(--colour3);
  margin: 1em;
  padding: 0.3em;
}

.article figure:nth-child(odd) {
  float: right;
}

.article figure:nth-child(even) {
  float: left;
}

.article p:first-of-type::first-letter, p.blocktext:first-of-type::first-letter {
  float: left;
  line-height: 35px;
  font-size: 55px;
  font-family: Merriweather;
  color: var(--colour5);
  border: solid var(--colour3);
  padding-top: 7px;
  padding-bottom: 5px;
  padding-right: 5px;
  padding-left: 5px;
  margin-right: 5px;
  margin-bottom: -5px;
}

@media only screen and (max-width: 768px) {
  [class*="column"] {
    width: 100%;
  }
  [class*="chapter"] {
    padding: 0px;
  }
  @media (prefers-color-scheme: dark) {
    .column-4 {
      border-bottom: 2px dotted white;
    }
  }
  @media (prefers-color-scheme: light) {
    .column-4 {
      border-bottom: 2px dotted black;
    }
  }
}

@media only screen and (max-width: 600px) {
  .article figure {
    width: 100%;
    border: none;
    padding-bottom: 15px;
    display: inline-block;
    margin: 0px;
  }

  .article figure:nth-child(odd) {
    float: center;
  }

  .article figure:nth-child(even) {
    float: center;
  }
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
   p.blocktext:first-of-type::first-letter {
     margin-top: 0.05em;
   }
}

div.article {
  text-align: justify;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

div.footnote {
  text-align: justify;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

div.footnote a:last-of-type::after {
  content: " ↩";
}

a.footnote {
  font-size: 0.9em;
  vertical-align: super;
}

.article p.blocktext + p.blocktext { /* Maybe nth-of-type(2+n) ? */
  text-indent: 20px;
  margin-top: -20px;
}

.article p + p {
  text-indent: 20px;
  margin-top: -20px;
}

.article img + p {
  text-indent: 20px;
  margin-top: -20px;
}

.article figure + p {
  text-indent: 20px;
  margin-top: -20px;
}

q {
  quotes: "“" "”" "‘" "’";
  font-family: Merriweather;
}

q::before {
    content: open-quote;
}

q::after {
    content: close-quote;
}

.article table {
  margin-left: auto;
  margin-right: auto;
}

.footnote h2 {
  text-align: center;
}

.article h2, .article h3, .article h4 {
  text-align: center;
}

blockquote {
  border-left: 10px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C""\201D""\2018""\2019";
}

/* CSS Gallery */
div.gallery {
  border: 1px solid var(--colour1);
	margin-bottom: 20px;
}

div.gallery:hover {
  border: 1px solid var(--colour3);
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 24.9%;
}

.responsive_2 {
	padding: 0 6px;
	float: left;
	width: 49.9%;
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 49.999%;
    margin: 6px 0;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

div.heading-greek {
  text-align: center;
}

.heading-greek h1:nth-of-type(1), .heading-greek h3:nth-of-type(1) {
  margin-bottom: 0px;
}

.heading-greek i:nth-of-type(1) {
  content: "";
  display: block;
  margin-bottom: 20px;
}

.heading-greek i:nth-of-type(2) {
  content: "";
  display: block;
  margin-bottom: 20px;
  margin-top: 0px;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
}

.separator:not(:empty)::before {
  margin-right: .25em;
}

.separator:not(:empty)::after {
  margin-left: .25em;
}

.greek-font {
  font-family: "Vollkorn";
}

.separator-styled img {
  padding-bottom: 0px;
}

.separator img {
  padding-bottom: 5px;
}

img.no {
  padding-bottom: 0px;
}

[class*="separator"] img {
  width: 18px;
}

[class*="separator"] img:nth-of-type(1) {
  padding-right: 2px;
}

[class*="separator"] img:nth-of-type(2) {
  padding-left: 2px;
}

[class*="separator"] {
  font-family: "Vollkorn";
}

.separator-styled {
  border-left: none;
  border-right: none;
  text-align: center;
  margin-top: 7px;
}

.separator-styled.double {
  border-style: double;
  border-top-width: 6px;
  border-right-width: 0px;
  border-bottom-width: 0px;
  border-left-width: 0px;
}

.separator-styled legend {
  padding-inline-start: 8px;
  padding-inline-end: 8px;
  background: transparent;
  font-weight: normal;
  margin-left: auto;
  margin-right: auto;
  font-family: "Vollkorn";
}

.separator-styled.radius {
  border-bottom: none;
  border-radius: 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.separator-styled.test {
  border-top: none;
  border-radius: 12px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.separator-styled.footer {
  border-top: none;
  border-radius: 12px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}