html, body {
	margin: 0;
	padding: 0;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #000;
	display: grid;
	width: 100vw;
	min-height: 100vh;
	font-size: normal;
}

#SL_balloon_obj {
    display: none !important;
}

.container {
	display:grid;
	grid-template-columns: 1fr;
	grid-template-rows: minmax(70px,20vh) auto 2.5em; /*header, content, footer*/
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #777;
  text-decoration: none;
}

/*
 * Formatting the header area:
 general and middle-sized screen - header on the top
 */

.headm {  
  background-color: #72a6a8;
  background-image:url('./img/wp-pais-kivid-0257v.jpg');
  background-size:cover;
  background-repeat:no-repeat;
  background-position: 100% 52%;
  padding: 30px 8%;
  grid-row: 1 / 1;
}


.tiitel {
  margin: 0; 
  color: #333;
  font-weight:bold;
  line-height: 1.4em; 
  font-size: 1.6em;  /* keskmine ekraan */
}

/* 
 *   content: 
 */

.sisu {
  background-color: #9fc5c6; 
 }

.sisu h2 {
	margin-top: 0;
	text-align: center;
 	color: #333;
	/* keskmine ekraan: */
   font-size: 1.5em;
   margin-bottom: 20px;
}

.sisu li{
	line-height:1.3em;
}

/* keskmine ekraan*/
.tekst {
	background-color: #FFFFFF;
	padding: 40px 8%;
	margin: 4vh 8%; 
}


form {
	text-align: center;
	margin-bottom: 3vh;
}

input {
	border: none;
	background-color: #e7f4f4; 
	margin: 5px;
}

button {
   background-color: #9fc5c6;
   margin: 5px 0 5px 0;
   
}

.tolge {
  margin: 30px 60px 0 60px;
  background-color: #ffffff;
}

footer {
	background-color: #72a6a8;
	font-size: 0.8em;
	text-align:center;
	padding:3px;
}


@media only screen and (max-width: 955px) {
/* middle-sized screen - one column */
	.menu {
		margin-block-start: 0.3em;
		margin-block-end: 0.3em;
	}
	
	li#otsing {display: none;}
	
	.menu li {
	  display: inline;
	  font-size: 0.9em;
	  font-weight:bold;
	}

	li#murre {	margin-left: -24px; }
	
	.menu a { color:#444 }
	
}

@media only screen and (min-width: 955px) {
    /* For big screen: */
	.container {
	grid-template-columns: 29%  auto;  /* sidebar, content */
	grid-template-rows: auto 3rem;   /* content, footer */
	}
	
	.sidebar {
		grid-row: 1 / span 2;
		padding: 60px 5vw;
	}
	
	.tiitel {
		font-size: 1.7em;
	}
	
	.menu1 li {
	  line-height: 1.9em;
	  font-size: 0.9em;
	  list-style-type: none;
	  margin-left: -40px;
	}
	nav {
		margin-top:50px;
	}
		
	.sisu h2 {
	  font-size: 1.7em;
	  margin-bottom: 30px;
	}
	
	.tekst {
	  padding: 60px 8%;
	  margin: 60px 7% 60px 8%; 
	}
	
}

@media only screen and (max-width: 620px) {
    /* For mobile: */
	.headm {
		padding: 25px;
	}
	.tiitel, .sisu h2 {
		font-size: 1.3em;
	}
	
	.tekst-kt {
		margin-left:0;
		margin-right: 0;
		padding:30px 0;
	}
	.tolge {
	    margin: 20px 30px 0 30px;
	}
	
}

/* 
* For small mobiles: 
*/

@media only screen and (max-width: 355px) {
	.tiitel, .sisu h2 {
		font-size: 1.2em;
	}
	footer {
		font-size:0.7em;
	}
	
}

@media only screen and (max-height:500px)
and (max-width: 955px) {
  /* landscape */
	.headm {
		padding: 14px 8%;
	}
	
	.tiitel {
		line-height: 1.2em;
	}
	.tiitel, .sisu h2 {
		font-size: 1.2em;
	}
	.tekst-md {
		margin-top: 4vh;
		margin-bottom: 3vh;
	}
}

@media only screen and (max-height:370px) {
	.tekst-md {
		margin-top: 0;
		margin-bottom: 0;
	}
}

@media only screen and (max-height:370px)
and (min-width: 955px) {	
	nav {
		margin-top:20px;
	}
}	