body, html, input {
	padding: 0;
	margin: 0;
	font-size: 13pt;
	font-family: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, sans-serif;
}
body, html {
	background-color: #9FB6CD;
}
h2, h3 {
	text-align: center;
}
a {
	text-decoration: none;
	color: navy;
}
a:hover {
	color: blue;
}
a img {border: 0 none;}
input {
	padding: 2px;
}
input, textarea, select {
	border: 2px solid #035;
}
input[type=submit], input[type=button], button, .btn {
  padding: 6px;
  background-image: linear-gradient(#42A1EC, #0070C9);
  border: 1px solid #0077CC;
  border-radius: 4px;
  box-sizing: border-box;
  color: #FFF;
  cursor: pointer;
  direction: ltr;
  font-family: "SF Pro Text","SF Pro Icons","AOS Icons","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.022em;
  line-height: 1.47059;
  min-width: 30px;
  overflow: visible;
  padding: 4px 15px;
  text-align: center;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
}
input[type=submit]:hover, input[type=button]:hover, button:hover, btn:hover {
	border: 1px solid #eee;
	opacity: 0.8;
	filter: alpha(opacity=80);
	-moz-opacity:0.80;
	color: white;
}
.full {
	width: 100%;
}
.centered {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.centered table, table.centered {
	text-align: left;
	margin-left: auto;
	margin-right: auto;
}
.c80 {
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}
.aleft {
	text-align: left;
	margin-right: auto;
}
.aright {
	text-align: right;
	margin-left: auto;
}
.centerleft {
	width: fit-content;
	block-size: fit-content;
	margin-left: auto;
	margin-right: auto;
}
.hidden {display: none;}
th {text-align: center}
.hush {
	width: 188px;
	font-size: 10pt;
}
.hush img {
	width: 188px;
	height: 125px;
}

#headContainer {
  display: grid;
  grid-template-columns: 188px auto 188px;
}

header {
	display: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 125px;
	text-align: center;
	background-color: #E8E8E8;
	overflow: hidden;
}
#menutoggle {
  display: none;
}
#menuBtn { /* mob menu */
	display: none;
	margin-left: auto;
	margin-right: auto;
	cursor: pointer;
}
#menuBtn:hover {
	background-color: white;
}
#logo {
	font-size: 18pt;
	font-weight: bold;
	background-color: #D8D8D8;
	padding-top: 5px;
}
#menu {
	background-color: #E8E8E8;
	line-height: 45px;
	margin-top: 5px;
}
#menu a {
	display: inline-block;
	vertical-align: middle;
	font-weight: bold;
	font-size: 14pt;
	color: white;
	position: relative;
	background-color: #ff0873;
	text-decoration: none;
	border-top: 2px solid #c30;
	border-left: 2px solid #c30;
	border-right: 3px solid #600;
	border-bottom: 3px solid #600;
	padding: 0 10px 0 10px;
	margin: 4px;
	border-radius: 21px;
	-moz-border-radius: 21px;
	-webkit-border-radius: 21px;
}
#menu a:hover {
	border-top: 3px solid #600;
	border-left: 3px solid #600;
	border-right: 2px solid #c30;
	border-bottom: 2px solid #c30;
	background-color: #ff0873;
	color: #D3D3D3;
}

#menu a.active, #menu a:hover.active {
	background-color: white;
	color: black;
	border: 2px solid #4a4a4a;
	padding: 0 9px 0 9px;
}
#menu .submenu {
	display: none;
}

#sisu {
	position: fixed;
	left: 0;
	right: 0;
	background-color: #9FB6CD;
	overflow-y: auto;
	overflow-x: hidden;
}

#sub_menu, #sub_sisu, #sisu {
	top: 125px;
	bottom: 26px;
}

#frontpage {
	width: 100%;
	text-align: center;
	margin-top: 25px;
}
#frontpage img {
		width: auto;
	}

/* ImageZoom */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
}

#modal {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	cursor: pointer;
}

#modal-image {
  max-width: 100%;
  max-height: 100%;
}

#caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px;
  box-sizing: border-box;
  font-size: 16px;
  text-align: center;
  font-weight: bold;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

footer {
	column-count: 2;
	display: block;
	position: fixed;
	bottom:0;
	left: 0;
	right: 0;
	height: 26px;
	line-height: 26px;
	background-color: #27408B;
	border: 1px solid #000;
	color: #fff;
	font-size: 10pt;
	font-family: Verdana,"DejaVu Sans","Bitstream Vera Sans",Geneva, sans-serif;
}
footer div {
	margin-left: 20px;
	margin-right: 20px;
}
footer img {
	vertical-align: middle;
}
footer a {
	color: #ddd;
	padding-top: 2px;
	padding-bottom: 3px;
	border: 1px solid transparent;
}
footer a:hover {
	color: #fff;
	border: 1px solid #ff0;
}

#sub_menu_div {
	position: fixed;
	left: 0;
	width: 188px;
	color: #000;
}
#sub_sisu {
	position: fixed;
	left: 188px;
	right: 0;
	overflow-y: auto;
	overflow-x: hidden;
}

#sub_menu_div a {
	display: block;
	padding: 10px;
	width: 166px;
	background-color: yellow;
	border: 1px solid black;
	font-weight: bold;
	font-size: 12pt;
}
#sub_menu_div a:hover {
	background-color: white;
	color: black;
}
#sub_menu_div a.active {
	background-color: navy;
	color: white;
}

#submain {
	width: 85%;
}
#submain a {
	width: 250px;
	height: 167px;
	text-decoration: none;
	display: inline-block;
	padding: 0;
	margin: 10px;
	font-weight: bold;
	color: black;
	border: 3px solid black;
	overflow: none;
	vertical-align: middle;
}
#submain a img {
	padding: 0;
	margin: 0;
	border: 0 none;
}
#submain a:hover {
	border-color: yellow;
}
#submain a:hover img {
	opacity: 0.8;
}

.sisukord {
	display: block;
    margin: 10px auto;
    text-align: left;
}

.sisukord a {
	color: black;
}
.sisukord a:hover {
	color: yellow;
}

.listarea {
	max-width: 800px;
}

video::cue(.mees) {
	color: #87CEEB;
}

video::cue(.naine) {
	color: #FFB6C1;
}

video, iframe {
	max-width: 100%;
}

@media only screen and (max-width: 1100px) {
	#logo {
		display: none;
	}
}

@media only screen and (max-width: 770px) {
	#logo {
		display: none;
	}
	#menuBtn {
		display: block;
	}
	#menu {
		display: none;
		position: absolute;
		top: 125px;
		width: 300px;
		left: 0;
		right: 0;
		text-align: center;
		margin-left: auto;
		margin-right: auto;
		line-height: normal;
		z-index: 9999;
		-webkit-transition: all 0.3s ease;
		transition: all 0.3s ease;
	}
	#menu a {
		font-size: 16pt;
		display: block;
		margin: 15px;
		padding: 10px;
	}
	#menu a.active, #menu a:hover.active {
		padding: 9px;
	}
	/*#menu a.active {
		order: 1;
	}*/
	#menu .submenu {
		border-bottom: 2px ridge silver;
	}
	#menu .submenu, #menu .mainmenu {
		display: flex;
		flex-direction: column;
	}
	#menu .submenu a {
		font-size: 14pt;
		margin: 10px;
	}
	#menutoggle:checked + #menu {
		display: block;
	}
	
	#sub_menu_div {
		display: none;
	}
	#sub_sisu {
		left: 0;
	}
}