/* -----------------------------------------
    Kaja Kleimanni naitus
   ----------------------------------------- */
@font-face {
	font-family: 'CooperBlackBQRegular';
	src: url('./fonts/CooperBlackBQRegular.ttf');
	src: url('./fonts/CooperBlackBQRegular.eot?#iefix') format ('embedded-opentype'),
		url('./fonts/CooperBlackBQRegular.woff') format ('woff'),
		url('./fonts/CooperBlackBQRegular.ttf') format ('truetype'),
		url('./fonts/CooperBlackBQRegular.svg#CooperBlackBQRegular') format ('svg');
}

@font-face {
	font-family: 'HelveticaLTStd-Roman';
	src: url('./fonts/HelveticaLTStd-Roman.ttf');
	src: url('./fonts/HelveticaLTStd-Roman.eot?#iefix') format ('embedded-opentype'),
		url('./fonts/HelveticaLTStd-Roman.woff') format ('woff'),
		url('./fonts/HelveticaLTStd-Roman.ttf') format ('truetype'),
		url('./fonts/HelveticaLTStd-Roman.svg#HelveticaLTStd-Bold') format ('svg');
}

@font-face {
	font-family: 'HelveticaLTStd-Bold';
	src: url('./fonts/HelveticaLTStd-Bold.ttf');
	src: url('./fonts/HelveticaLTStd-Bold.eot?#iefix') format ('embedded-opentype'),
		url('./fonts/HelveticaLTStd-Bold.woff') format ('woff'),
		url('./fonts/HelveticaLTStd-Bold.ttf') format ('truetype'),
		url('./fonts/HelveticaLTStd-Bold.svg#HelveticaLTStd-Bold') format ('svg');
}

@font-face {
	font-family: 'HelveticaLTStd-BoldObl';
	src: url('./fonts/HelveticaLTStd-BoldObl.ttf');
	src: url('./fonts/HelveticaLTStd-BoldObl.eot?#iefix') format ('embedded-opentype'),
		url('./fonts/HelveticaLTStd-BoldObl.woff') format ('woff'),
		url('./fonts/HelveticaLTStd-BoldObl.ttf') format ('truetype'),
		url('./fonts/HelveticaLTStd-BoldObl.svg#HelveticaLTStd-BoldObl') format ('svg');
}

@font-face {
	font-family: 'HelveticaNeueLTStd-Md';
	src: url('./fonts/HelveticaNeueLTStd-Md.ttf');
	src: url('./fonts/HelveticaNeueLTStd-Md.eot?#iefix') format ('embedded-opentype'),
		url('./fonts/HelveticaNeueLTStd-Md.woff') format ('woff'),
		url('./fonts/HelveticaNeueLTStd-Md.ttf') format ('truetype'),
		url('./fonts/HelveticaNeueLTStd-Md.svg#HelveticaNeueLTStd-Md') format ('svg');
}

@font-face {
	font-family: 'HelveticaNeueLTStd-MdIt';
	src: url('./fonts/HelveticaNeueLTStd-MdIt.ttf');
	src: url('./fonts/HelveticaNeueLTStd-MdIt.eot?#iefix') format ('embedded-opentype'),
		url('./fonts/HelveticaNeueLTStd-MdIt.woff') format ('woff'),
		url('./fonts/HelveticaNeueLTStd-MdIt.ttf') format ('truetype'),
		url('./fonts/HelveticaNeueLTStd-MdIt.svg#HelveticaNeueLTStd-MdIt') format ('svg');
}

.clearfix {clear: both;}
* {box-sizing: border-box;}
html {margin: 0; 	padding: 0;}

/* Fonts */
body {font-family: 'HelveticaLTStd-Roman', Arial, sans-serif; font-size: 15px;}
.heading {font-family: "CooperBlackBQRegular", Verdana, sans-serif; line-height: 1.1;}
.subheading {font-family: 'HelveticaNeueLTStd-Md', Verdana, sans-serif; line-height: 1.6;}
li {font-family: 'HelveticaLTStd-Bold', Verdana, sans-serif;}
div.algus{font-family: 'HelveticaLTStd-Bold', Arial, sans-serif; font-size: 17px; line-height: 1.6;}
h2 {line-height: 2.0; font-weight: bold; font-size: 24px;}
h3 {line-height: 1.6; font-weight: normal; font-size: 22px;}
div.tekst {line-height: 1.6; font-weight: normal;}
div.nimi {line-height: 1.4;}

/* Colours and other non-changing*/
body {
  background-color: #f4efcb;
  background-image: linear-gradient(to bottom left, #f7eda6, #f4efcb);
  background-repeat: no-repeat;
  color: #42413a;
}
#header {display: inline-block; background-image: url('Vanemuisesuursaal.png'); background-repeat: no-repeat; background-position: center;}
.heading, .subheading {display: block; color: #42413a; background-color: transparent;}
nav#top-menu {
    background-color: #fffbdb;
	border-top: 1px solid #f9f7e1;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
li a {
	color: #42413a;
    text-decoration: none;
}
ul.menu li a:hover { 
    color: #7bb633;
    border-bottom: #7bb633 solid 5px;
}
ul.menu li a:active { 
    color: #7bb633;
}
div.algus {background-color: transparent;}
/* div#tagasi {background-image: linear-gradient(to bottom left, #f7eda6, #f4efcb);} */
div#tagasi {background-color: #f7eda6;}
div.algus a{color: #49701a; text-decoration: none; font-weight: bold;}
div.algus a:hover{color: #7bb633;}
div.menyy_xs {display: inline-block; margin: 0;}
div.pystkriips {color: #7b8452; font-weight: bold;}
div.tekst {
  background-color: #fffbdb;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

div.flex-container {background-color: transparent;}

figure.pilt, figure.ajaleht {
  background-image: linear-gradient(to bottom left, #49701a, #898553);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
figure.pilt:hover, figure.ajaleht:hover {
	background-image: linear-gradient(to bottom left, #7bb633, #d9d38f);
}
figure.tekstisees {background: transparent;}
figure.pilt > img, figure.ajaleht > img {cursor: pointer;}
figure.tekstisees > img {cursor: default;}

figcaption {color: #14130b;}
figcaption a {color: #fffbdb; text-decoration: none;}
figcaption a:hover {color: #385e0b;}
div.modal a {color: #b4d290; text-decoration: none;}
div.modal a:hover {color: #77ba26;}

div.tekst a {color: #49701a; text-decoration: none;}
div.tekst a:hover {color: #7cb932;}
div.tekst > img {display: inline-block;}
div.nimi {display: inline-block; background: transparent; vertical-align: top;}

.modal {
  background-color: rgb(36.8,39.9,22.2); /* Fallback color */
  background-color: rgba(36.8,39.9,22.2,0.8); /* Black w/ opacity */ 
}
.close, .prev, .next {color: white; cursor: pointer;}
.close:hover, .close:focus {color: #999;text-decoration: none;}
.prev:hover, .next:hover {background-color: rgba(36.8,39.9,22.2,0.9);}
.caption-container {background-color: #29281d; color: #fffbdb;}
.caption-container a {color: #c0d5a8;}
.caption-container a:hover {color: #b5ee6f;}


/* Muu */
#header {
	width: 100%;
	text-align: center;
}
#header-inner {
  display: inline-block;
  margin: 50px 5px;
}

.heading {
  text-align: center;
  margin: 0;
}

.subheading {
  text-align: center;
  margin: 20px 0 0 0;
  font-weight: bold;
  font-style: italic;
}

ul {
    list-style-type: none;
    margin: 0 auto; 
	padding: 0; 
}
li {
    display: inline-block;
    width: 24%;
	height: 100%;
    text-align: center;
}

div.algus {text-align: center;}
div.algus{
  width: 80%;
  max-width: 1000px; 
  padding: 0 auto;
  margin: 0 auto;
}

div.tekst {
  width: 80%;
  max-width: 1000px; 
  padding: 25px 50px;
  margin: 20px auto;
}

div#tagasi {width: 100%; margin-top: 35px; margin-bottom: 35px;}

h2, h3 {
  display: block;
  text-align: center;
}

div.flex-container {
  display: flex;
  flex-wrap: wrap;
/*  text-align: center; */
  align-items: center;
  justify-content: center;
}
   
figure.pilt, figure.ajaleht {
  padding: 10px;
  margin: 20px;
  width: 220px;
}
figure.pilt {height: 255px;}
figure.ajaleht {height: 285px;}
figure.tekstisees, figure.allkiri {margin: 0; padding: 0;}
figure.tekstisees img, figure.allkiri img {width: 100%;}
figure.tekstisees figcaption {font-size: 80%;}

img.pisike {
  overflow: hidden;
  width: 200px;
  height: 200px;
  object-fit: cover;
}

img.pisike:hover {
  opacity: 0.7;
}

div.nimi {
	width: 190px;
	min-height: 21px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 0; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
}

/* Modal Content */
.modal-content {
    margin: 0 auto;
    display: block;
    width: 100%;
	text-align: center;
}
/* Add Animation - Zoom in the Modal */
.modal-content, .caption-container { 
    animation-name: zoom;
    animation-duration: 5s;
}

/* The Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}
/* Next & previous buttons */
.prev,
.next {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  font-weight: bold;
  font-size: 20px;
/*  transition: 0.6s ease; */
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}
.next {right: 0; border-radius: 3px 0 0 3px;}
.prev {left: 0; border-radius: 3px 3px 0 0;}
.caption-container {
  text-align: center;
  padding: 3px 16px;
}

/********* Media **********/	
/* Suur ekraan */
@media (min-width: 1200px) {
#header {background-size: 100%;}
#header {height: 250px;}
.heading {font-size: 70px;}
.subheading {font-size: 24px;}
nav#top-menu {height: 50px; padding: 20px auto; margin-bottom: 20px;}
ul {width: 725px;}
li {padding-top: 10px; font-size: 24px;}
div.menyy_xs {padding: 10px;}
div.pystkriips {display: inline-block;}
div.tekst {
  padding: 40px 80px;
  margin: 25px auto;
  font-size: 18px;
}
.modal-content img.pysti {max-width: 50%; margin-top: 10px;}
.modal-content img.risti {max-width: 80%; margin-top: 100px;}
figure.tekstisees {width: 40%; float: left; margin-right: 20px; margin-bottom: 15px;}
figure.allkiri {width: 40%; float: right; clear: both;}
}
/* Tavaline ekraan */
@media (min-width: 960px) and (max-width: 1199px) {
#header {height: 250px;}
.heading {font-size: 70px;}
.subheading {font-size: 24px;}
nav#top-menu {height: 50px; padding: 20px auto; margin-bottom: 20px;}
ul {width: 725px;}
li {padding-top: 10px; font-size: 24px;}
div.menyy_xs {padding: 5px 10px;}
div.pystkriips {display: inline-block;}
div.tekst {
  padding: 30px 70px;
  margin: 25px auto;
  font-size: 16px;
}
.modal-content img.pysti {max-width: 50%; margin-top: 10px;}
.modal-content img.risti {max-width: 80%; margin-top: 100px;}
figure.tekstisees {width: 40%; float: left; margin-right: 20px; margin-bottom: 15px;}
figure.allkiri {width: 40%; float: right; clear: both;}
}
/* Laptop */
@media (min-width: 768px) and (max-width: 959px) {
#header {height: 230px;}
.heading {font-size: 60px;}
.subheading {font-size: 22px;}
nav#top-menu {height: 50px; padding: 20px auto; margin-bottom: 20px;}
ul {width: 725px;}
li {padding-top: 10px; font-size: 24px;}
div.menyy_xs {padding: 5px 10px;}
div.pystkriips {display: inline-block;}
div.tekst {
  width: 90%;
  padding: 20px 50px;
  margin: 18px auto;
  font-size: 15px;
}
.modal-content img.pysti {max-width: 50%; margin-top: 10px;}
.modal-content img.risti {max-width: 80%; margin-top: 100px;}
figure.tekstisees {width: 50%; float: left; margin-right: 20px; margin-bottom: 15px;}
figure.allkiri {width: 50%; float: right; clear: both;}
}

/* Tablet */
@media (min-width: 520px) and (max-width: 767px) {
body {margin: 0;}
#header {height: 200px;}
#header-inner {margin: 40px 5px;}
.heading {font-size: 40px;}
.subheading {font-size: 20px;}
nav#top-menu {height: 46px; padding: 20px auto; margin-bottom: 16px;}
ul {width: 100%;}
li {padding-top: 8px; font-size: 20px;}
div.menyy_xs {width: 100%; border: 0; padding: 5px 7px;}
div.pystkriips {display: none;}
div.tekst {
  width: 100%;
  padding: 15px 15px;
  margin: 10px auto;
  font-size: 15px;
  box-shadow: none;
}
.modal-content img.pysti, .modal-content img.risti {
	max-width: 100%;
	margin-top: 10px;
}
figure.tekstisees {width: 60%; float: left; margin-right: 15px; margin-bottom: 15px;}
figure.allkiri {width: 60%; float: right; clear: both;}
}

/* Phone */
@media (max-width: 519px) {
body {margin: 0;}
#header {height: 190px;}
#header-inner {margin: 30px 3px;}
.heading {font-size: 40px;}
.subheading {font-size: 20px;}
nav#top-menu {height: 156px; padding: 20px auto; margin-bottom: 14px;}
ul {width: 100%;}
li {width: 100%; padding-top: 10px; font-size: 20px;}
div.menyy_xs {width: 100%; border: 0; padding: 3px;}
div.pystkriips {display: none;}
div.tekst {
  width: 100%;
  padding: 5px 5px;
  margin: 5px 0;
  font-size: 16px;
  box-shadow: none;
}
.modal-content img.pysti, .modal-content img.risti {
	max-width: 100%;
	margin-top: 10px;
}
figure.tekstisees {width: 100%; float: none; margin-right: 0; margin-bottom: 0;}
figure.allkiri {width: 100%; float: none; clear: both;}
}

/* Small Phone */
@media (max-width: 467px) {
body {margin: 0;}
#header {height: 190px;}
#header-inner {margin: 20px 0;}
.heading {font-size: 40px;}
.subheading {font-size: 20px;}
li {width: 100%; padding-top: 10px; font-size: 20px;}
div.menyy_xs {width: 100%; border: 0; padding: 3px;}
div.pystkriips {display: none;}
div.tekst {
  width: 100%;
  padding: 5px 5px;
  margin: 5px 0;
  font-size: 16px;
  box-shadow: none;
}
.modal-content img.pysti, .modal-content img.risti {
	max-width: 100%;
	margin-top: 10px;
}
figure.tekstisees {width: 100%; float: none; margin-right: 0; margin-bottom: 0;}
figure.allkiri {width: 100%; float: none; clear: both;}
}


