@font-face {
  font-family: SourceCodeVariable;
  src: url(/assets/fonts/SourceCodeVariable-Roman.ttf) format(truetype);
}

:root {
  --siva: #959595;
  --bez: #cfd0cb;
  --rumena: #fee4c1;
  --rdeca: #780014;
  --zelena: #014f3e;
  --zelena2: #005344;
  --temnozelena: #05422c;
  --svetlomodra: #a4b6ce;
  --modra: #334b65;
  --temnomodra: #044970;

  --bg: black;
  /*--fg: #333; */
  --fg: white;
  --font-header: SourceCodeVariable;
  --font-body: SourceCodeVariable;
}
/* Typography */

/* reset inspired by  http://meyerweb.com/eric/tools/css/reset/ */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strong, sub, sup, var, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border-style: none;
	border-width: 0;
	font-size: 1;
	font: inherit;
}

.page-otvoritev {
  --fg: black;
  background: var(--temnomodra);
}

.index main > p:first-child,
.page-otvoritev main > p:first-child {
  margin-bottom: -3rem;
}
.page-otvoritev main > p:nth-child(2) {
  position: relative;
}

.page-akt main > p:nth-child(1) {
  margin-top: 1rem;
  margin-bottom: 0;
}
.page-akt main > p:nth-child(2) {
  text-align: right;
  margin-bottom: 6rem;
}
.page-fest .karte {
  display: block;
  margin: 2rem 0;
}
.page-akt main > p:nth-child(3) img,
.page-fest main > p:nth-child(1) img {
  filter: invert(1);
}
.page-akt main h4,
.page-fest main h4 {
  position: relative;
  /*text-align: justify;*/
  margin-bottom: 0;
}

.page-akt h4 + p,
.page-fest h4 + p {
  margin-bottom: 6rem;
}
.page-fest h4 em {
  position: absolute;
  left: -5.5rem;
}
@media screen and (max-width: 800px) {
  .page-fest h4 {
    margin-left: 3rem;
  }
}
@media screen and (max-width: 700px) {
  .page-fest h4 {
    margin-left: 4rem;
  }
}
@media screen and (max-width: 700px) {
  .page-fest h4 {
    margin-left: 0;
  }
  .page-fest h4 em {
    position: relative;
    margin-top: 1rem;
    left: 0;
    display: block;
  }
}
.page-akt hr,
.page-fest hr {
  margin-bottom: 1.5rem;
}
.page-akt main p:last-child,
.page-fest main p:last-child {
  margin-bottom: 9rem;
}

@media screen and (min-width: 600px) {
  .index main > p:first-child,
  .page-otvoritev main > p:first-child {
    margin-bottom: -5rem;
  }
}
.page-otvoritev main p:nth-last-child(1),
.page-otvoritev main p:nth-last-child(3) {
  display: none;
}
.page-otvoritev .pico-video-embed {
  margin-top: 5rem;
  margin-bottom: 3rem;
}

a,
a:hover,
a:active {
  color: var(--fg);
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
  font-family: var(--font-body); 
  font-size: 18px;
  line-height: 1.3;

  background: var(--bg);
  color: var(--fg);
  box-sizing: border-box;

  min-height: 100vh;

  display: flex;
  flex-direction: column;
}
body.index,
.page-otvoritev {
  justify-content: center;
}

body.index {

}

h1, h2, h3, h4 {
  font-family: var(--font-header);
  text-transform: uppercase;
}

main img {
  width: 100%;
  height: auto;
  max-width: 800px;
}

.page-akt header,
.page-fest header {
  justify-content: center;
}

.page-otvoritev main > header,
.page-akt main > header,
.page-fest main > header {
  display: none;
}
.index main > p:not(:first-child),
.page-otvoritev main > p:not(:first-child) {
  border: 4px solid black;
  border-radius: 7px;
  padding: 10px 16px;
  margin-bottom: 10px;
  background: var(--rumena);
}

h1 {
	font-weight: bold;
	font-size: 2.8rem;
}

h1 span { display: none; }

.index h1 span,
.page-otvoritev h1 span {
  display: inline-block;
}

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

table tr td:first-child {
  text-align: right;
  padding-right: .5rem;
}

table tr:nth-child(1) strong:nth-child(1),
table tr:nth-child(2) strong:nth-child(3),
table tr:nth-child(3) strong:nth-child(2),
table tr:nth-child(4) strong:nth-child(5),
table tr:nth-child(5) strong:nth-child(0),
table tr:nth-child(6) strong:nth-child(3) {
  color: var(--rdeca);
}
table tr:nth-child(1) strong:nth-child(2),
table tr:nth-child(2) strong:nth-child(2),
table tr:nth-child(3) strong:nth-child(4),
table tr:nth-child(4) strong:nth-child(3),
table tr:nth-child(5) strong:nth-child(3),
table tr:nth-child(6) strong:nth-child(1) {
  color: var(--temnomodra);
}
table tr:nth-child(1) strong:nth-child(2),
table tr:nth-child(2) strong:nth-child(1),
table tr:nth-child(3) strong:nth-child(1),
table tr:nth-child(4) strong:nth-child(1),
table tr:nth-child(5) strong:nth-child(1),
table tr:nth-child(6) strong:nth-child(2) {
  color: var(--temnozelena);
}


h2 {
	font-weight: bold;
	font-size: 2.4rem;
}

h3 {
	font-weight: bold;
	font-size: 2rem;
}

h4 {
	font-weight: bold;
	font-size: 1.6rem;
}

h5 {
	font-weight: normal;
	font-style: italic;
	font-size: 1rem;
}

h6 {
	font-weight: normal;
	font-size: 1rem;
}

ol, ul {
	margin-left: 2.5rem;
}

ol {
	list-style-type: decimal-leading-zero;
}

/*
ul {
	list-style-type: circle;
}
*/

h1, h2, h3, h4, h5, h6, table, ul, ol, img, p, blockquote, pre {
	margin-bottom: 0.8rem;
}

ul ul, ol ol, ul ol, ol ul {
	margin-bottom: 0;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

th, td {
	vertical-align: top;
}

img {
	border-style: none;
	border-width: 0;
}

a, a:link {
	text-decoration: underline;
	color: #6ca2d8;
}

a:visited {
	color: #a26cd8;
}

code, pre {
	font-family: monospace;
	font-size: 0.8rem;
	background-color: #CCCCCC;
	padding: 0.1rem;
	border-radius: 0.1rem;
}

pre {
	padding: 0.5rem;
}

q {
	font-style: italic;
}

blockquote {
	font-style: italic;
	border-style: none none none solid;
	border-width: 0.3rem;
	border-color: #CCCCCC;
	padding-left: 0.8rem;
}

/* Layout */
body > header,
body > main {
	width: 90%; 
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.page-akt > main,
.page-fest > main {
  max-width: 600px;
}

header {
	/*box-shadow: 0 8px 8px -6px rgba(0, 0, 0, 0.4);*/
	margin-bottom: 3rem;
	position: sticky;
	top: 0;
  padding-top: 16px;
	text-align: center;
}

.page-akt header,
.page-fest header {
  position: fixed;
  max-width: 100%;
  width: 100%;

  top: unset;
  bottom: 0;

  margin-bottom: 1.5rem;

  justify-content: flex-end;
}
.page-akt header a,
.page-fest header a {
  margin-right: 2rem;
}

.index body,
.page-otvoritev body {
  background: var(--temnomodra);
}
.index header,
.page-otvoritev header {
  background: transparent;
  text-align: right;
  padding-top: 14px;
  margin-bottom: -7rem;
}

@media screen and (min-width: 650px) {
  .index header,
  .page-otvoritev header {
    margin-bottom: -10rem;
  }
}

header img {
  filter: invert(1);
}

/*
@media screen and (min-width: 600px) {
.blog header {
		margin: 0;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
}
*/

nav ul {
	margin: 0;
	padding-bottom: 0.3rem;
}

nav li {
	display: inline;
	padding: 0;
}
nav li.active {
  font-weight: bold;
}

body > header h1 {
	margin-bottom: 0;
}

@media screen and (min-width: 600px) {
	main header {
		/* the difference between site-heading (2.2rem x 1.3) and page-heading (1.8rem x 1.3) */
		padding-bottom: calc(0.4rem * 1.3);
		margin-bottom: 0.8rem;
	}
}

main header h1 {
	/*display: inline;
	padding-right: 0.5rem;*/
	margin: 0;
}

body > header a,
body > header a:link, 
body > header a:visited,
main a,
main a:link,
main a:visited {
	text-decoration: none;
	color: var(--fg);
}

body > header nav a:hover,
body > header nav .active a,
.index main a:hover {
	/*text-decoration: underline;*/
	color: var(--fg);
}

body.index main {
  display: flex;
  flex-direction: column;
  background: var(--temnomodra);
}

nav ul {
	margin-left: 0;
	list-style-type: none;
}

main a {
	text-decoration: none;
	font-weight: bold;
}

#logo {
  max-width: 120px;
  height: auto;
}
@media screen and (max-width: 480px) {
  .index header {
    margin-bottom: -3rem;
  }
}
header > h1 {
  display: none;
}
header img {
  margin: 0;
}

@media screen and (min-width: 700px) {
  .page-otvoritev #logo {
    width: 200px;
  }
}
body.index nav,
.page-otvoritev nav,
.page-akt nav,
.page-fest nav {
  display: none;
}

.regular header {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.page-otvoritev header {
  justify-content: flex-end;
}
.regular header h1 {
  position: absolute;
  top: 10px;
  left: 110px;
  font-size: 2rem;
}

.regular nav {
  position: relative;
  padding: 0 16px;
  font-size: 20px;
}
nav li:not(:last-child):after {
  content: '·'
}
nav li a {
  font-family: var(--font-text);
}

.regular header img {
  position: relative;
  top: 2px;
}

small {
  font-size: .9rem;
}

strong {
  font-weight: 600;
}

.social img {
  margin: 0;
  width: 25px;
  filter: invert(1);
}
