html {
	height: 100%;
	background-color: #001;
	-webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-repeat:no-repeat;
	background-image: -webkit-linear-gradient( to left top, #003366, #000);
    background-image: -moz-linear-gradient( to left top, #003366, #000);
    background-image: -ms-linear-gradient( to left top, #003366, #000);
    background-image: -o-linear-gradient( to left top, #003366, #000);
    background-image: linear-gradient( to left top, #003366, #000);
}
body {
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: "Comic Sans MS", "Comic Sans", "Yosemite Sans", "Comic Neue", Chilanka;
	font-size: 13pt;
}
h1, h2 {
	text-align: center;
}

table {border-collapse: collapse}
a {
	color: #ccc;
	text-decoration: none;
}
a:hover {color: yellow;}
img {border: 0 none}
table.full {
	width: 100%;
}
table.full td {vertical-align: top;}
.centered {
	text-align: center;
}
.centered table, table.centered {
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}
.centerleft {
	width: fit-content;
	block-size: fit-content;
	margin-left: auto;
	margin-right: auto;
}
.right {
	text-align: right;
}
.left {
	text-align: left;
}
.hiddenTitle {display: none;}
.tableofcontents {
	text-align: left;
	width: fit-content;
	block-size: fit-content;
	margin-left: auto;
	margin-right: auto;
}
hr {
	margin-top: 25px;
	margin-bottom: 25px;
	border-color: #013;
}

.social a {
	display: inline-block;
	margin-right: 10px;
}

.social img {
	width: 40px;
	height: 40px;
}

.social img:hover {
	filter: brightness(115%);
}

/* avaleht */
#solar {
	position: fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background-image: url('bg/kosmos.gif');
	overflow: auto;
	display: grid;
	grid-template-columns: 20% 20% 20% 20% 20%;
	column-gap: 0;
	align-items: center;
	text-align: center;
}
#solar img {
	display: block;
	width:50%;
	height:50%;
	object-fit: contain;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 3px;
}
#solar a {color: white}
#solar a:hover {color: yellow}
#solar a:hover img {
	filter: brightness(110%);
}
#hortitle {
	text-align: center;
	background-image: url('Planeedid/bluesun.png');
	background-repeat: no-repeat;
	background-position: center; 
	background-size: contain;
	grid-column: 2 / 5;
	height: 100%;
	display: grid;
	grid-template-columns: 100%;
	align-items: center;
	font-size: 32pt;
	font-weight: bold;
	letter-spacing: 0.1em;
	/*-webkit-text-stroke: 1px black; */
	text-shadow: 1px 1px 2px #111;
}

/* Menu */
#menubar {
	position: fixed;
	top:0;
	left:0;
	bottom:0;
	width:170px;
	border-right: 4px ridge #013;
	text-align: center;
	overflow-y: auto;
	overflow-x: hidden;
}
#menu {
	/*display: block;*/
	display: flex;
	flex-direction: column;
	z-index: 9999;
}
#menu a {
	display: block;
	padding: 10px;
	margin: 15px 8px 15px 8px;
	background-color: #2c6da0;
	border: none;
	color: #fff;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	text-shadow: 1px 1px #666;
	text-decoration:none;
	font-weight: bold;
	font-size: 12pt;
	font-family: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, "Adelle Sans", Aileron, "Supria Sans";
	text-align: center;
}
#menu a:hover {
	background-color: #427caa;
}
#menu a.active {
	background-color: #2c6db0;
	color: #ff0;
}
#menuBox {
	display: none;
	color: #000;
	background-color: #ddd;
	cursor: pointer;
	padding-right: 20px;
}
#menuBtn {
	height: 64px;
	width: 64px;
	vertical-align: middle;
}
#menutoggle {
	display: none;
}
#menutoggle:checked + #menu {
	display: block;
	position: absolute;
}

/**  mail */
#menu #mail {
  display: block;
  margin-top: auto;
  margin-bottom: 10px;
  background-color: transparent;
}

#mail img {
	width: 90px;
	height: 90px;
}

#mail:hover img {
	filter: brightness(110%);
}

#mail span {
	display: none;
}

.submenu {
	display: flex;
	justify-content: space-between;
	padding: 10px;
	margin-top: 10px;
	border-top: 2px solid #ccc;
}

/* sisu */
#sisu {
	display: block;
	position: fixed;
	top:0;
	left:171px;
	right:0;
	bottom:0;
	padding: 15px;
	font-size: 13pt;
	overflow: auto;
}

/* Endast */
#endast {
	width:90%;
	margin-left: auto;
	margin-right: auto;
}
#endast p {
	/*text-align: justify; - WAVE-le ei meeldi*/
	color: #fff;
}

/* Pildid */
#pildid {
	text-align: center;
	padding-left: 5px;
	padding-right: 5px;
	color: #fff;
}
#pildid a {
	display: inline-block;
	width: 150px;
	height: 150px;
	border-width: 2px;
	border-style: solid;
	border-color: white;
	padding: 1px;
	margin: 10px;
	text-align: center;
	vertical-align: middle;
	color: #fff;
}
#pildid a:hover {
	border-color: #ff0;
}

#pildid img {
	border: 0 none;
	color: #fff;
}

#imgContainer {
	display: none;
	position: fixed;
	left:0;
	right:0;
	top:0;
	bottom:0;
	background-color: #000;
	color: #fff;
	text-align: center;
	overflow: hidden;
}
#imgHeader {
	position: fixed;
	left:0;
	right:0;
	top:0;
	height:25px;
	text-align: center;
}
#imgTitle {
	text-align: center;
	font-family: Verdana, "DejaVu Sans", "Bitstream Vera Sans", Geneva, sans-serif;
	font-size: 14pt;
	font-weight: bold;
	color: white;
}
#imgTitleContainer {
	position: relative;
	width: 50%;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
#imgBody {
	position: fixed;
	top: 26px;
	bottom: 0;
	left: 0;
	right: 0;
}
#prevPic, #nextPic {
	position: fixed;
	width: 48px;
	height: 106px;
	top: 50%;
	margin-top: -53px;
	opacity: 0.8;
	filter: brightness(95%);
	cursor: pointer;
}
#prevPic:hover, #nextPic:hover {
	opacity: 1;
	filter: brightness(100%);
}
#prevPic {
	left: 0;
}
#nextPic {
	right: 0;
}
#pic {
	height: 100%;
	width: 100%;
	object-fit: contain;
}
.closeBtn {
	position: fixed;
	top: 0;
	left: 0;
	width: 48px;
	height: 48px;
	border: 3px solid #600;
	border-radius: 20px;
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;
	cursor: pointer;
}
.closeBtn:hover {
	filter: brightness(110%);
}

/* Tervis */
#tervis a {color: yellow;}
#tervis a:active {color: red;}
#tervis a:hover {color: white;}
#tervis hr {
	color: #09c;
	width: 300px;
}
.tblTervis {
	width: 75%;
	font-family: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, "Adelle Sans", Aileron, "Supria Sans";
	border-collapse: none;
	color: #000;
	background-color: #fff;
	border: 3px ridge #09f;
	margin-left: auto;
	margin-right: auto;
}
.tblTervis td, .tblTervis div {
	padding: 10px;
	text-align: left;
}
.tblTervis a {color: #339; background-color: #fff;}
.tblTervis a:hover {color: #00f;}
.tblTervis h2 {
	text-align:left;
}
.tblTervis h3 {
	color: #003399;
}
.funContainer {
	width: 60%;
	margin-left: auto;
	margin-right: auto;
}
.funContainer .komm {
	font-family: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, "Adelle Sans", Aileron, "Supria Sans";
	font-size: 12pt;
	quotes: "«" "»";
}
.funContainer .komm::before {
  content: open-quote;
}
.funContainer .komm::after {
  content: close-quote;
}
.funContainer h2 {
	text-align: left;
}
.funContainer hr {
   border: 0; 
   height: 2px; 
   background-image: -webkit-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
   background-image: -moz-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
   background-image: -ms-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
   background-image: -o-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0); 
}
.vitamiinid {
	background-color:#778899;
	color: #000;
	font-size: 11pt;
	font-family: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, "Adelle Sans", Aileron, "Supria Sans";
	border: 5px outset #224;
}
.vitamiinid caption {
	color: white;
	font-weight: bold;
	font-size: 14pt;
}
.vitamiinid a {
	color: #111;
	text-decoration: underline;
}
.vitamiinid a:hover {
	color: #444;
}
.vitamiinid td, .vitamiinid th {
	border: 3px inset #224;
	padding: 5px;
}
.rasv::before {
  content: "•";
  color: gold;
  margin-right: 0.5em;
}
.vesi::before {
  content: "•";
  color: blue;
  margin-right: 0.5em;
}
.vFilter tbody tr {
	display: none;
}
.vClearFilter {
	text-align: left;
	display: none;
}
.vClearFilter button {
	background-color: #c80815;
	-webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
	border-color: gray;
	padding: 8px;
	font-weight: bold;
	color: silver;
}
.vClearFilter button:hover {
	border-color: silver;
}
#srcIndex {
	display: none;
}
/* Nalja */
.words {
	border: 2px outset #555;
	background-color: #000;
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	width: fit-content;
}
.words td, .words th, .words > div {
	border: 2px inset #555;
	padding: 10px;
}
.words .word {color: lime;}
.words .descr {color: yellow;}

/* lehm */
#lehm div {
	display: inline-block;
	padding: 10px;
	padding-left: 35px;
	padding-right: 35px;
}
#lehm a {
	color: #ff0;
}
#lehm a:hover {
	color: #ff6;
}

/* Musa */

.musiclist {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 5px;
	margin-top: 20px;
}

.musiclist a {
	display: block;
	padding: 6px;
	position: relative;
	background-color: rgba(0, 0, 0, 0.2);
	border: 2px solid gray;
	cursor: pointer;
}
.musiclist a:hover {
	background-color: rgba(0, 0, 0, 0.5);
	border-color: #eee;
	color: yellow;
}
.musiclist a div:nth-child(1) {
	color: silver;
	text-align: center;
	margin-bottom: 5px;
}
.musiclist a:hover div:nth-child(1) {
	color: yellow;
}
.musiclist a div:nth-child(2) {
	color: white;
	text-align: center;
}

#player {
    width: 80%;
	display: block;
	text-align: center;
    background: #333;
    padding: 20px;
	margin-left: auto;
	margin-right: auto;
    border-radius: 1rem;
    box-shadow: black 0 0 15px;
	color: #ccc;
    font-family: "Noto Sans Light", "Open Sans Light", "Comic Sans MS", "Comic Sans", "Yosemite Sans", "Comic Neue", Chilanka, sans-serif;
}

#player #title {
	font-size: 1.1rem;
}

#controls, #slider {
	display: none;
}
#files {
	margin-top: 10px;
	margin-bottom: 10px;
}
#description {
	text-align: center;
}
#player button {
    background: #444;
    border: solid #555;
    padding: 0.5rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    margin: 0.3rem;
    display: inline-block;
	color: white;
	font-size: 1.1rem;
}
#player button:hover {
    filter: brightness(1.1);
}
#player button:active {
    transform: scale(0.9);
}
#player input[type='range'] {
    width: 100%;
}
#player select, option:hover {
    color: #000;
	font-size: 1.1rem;
}
#player option {
	color: #555;
}
#terms-container { display: none; border: 1px solid #ccc; padding: 10px; margin-top: 10px; }

#btnNext {
  position: relative;
}

#btnNext.anim::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: red;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg) translateX(20px);
  animation: tiirle 1s linear forwards;
}

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

.blue-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    background-color: #538fbe;
    padding: 8px 12px 8px 12px;
    font-size: 12pt;
    border: 2px solid #2d6898;
    background-image: linear-gradient(bottom, rgb(73,132,180) 0%, rgb(97,155,203) 100%);
    background-image: -o-linear-gradient(bottom, rgb(73,132,180) 0%, rgb(97,155,203) 100%);
    background-image: -moz-linear-gradient(bottom, rgb(73,132,180) 0%, rgb(97,155,203) 100%);
    background-image: -webkit-linear-gradient(bottom, rgb(73,132,180) 0%, rgb(97,155,203) 100%);
    background-image: -ms-linear-gradient(bottom, rgb(73,132,180) 0%, rgb(97,155,203) 100%);
 
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgb(73,132,180)),
        color-stop(1, rgb(97,155,203))
    );
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-shadow: 0px -1px 0px rgba(0,0,0,.5);
	text-align: center;
}
.blue-btn:enabled:active {
    background-image: linear-gradient(bottom, rgb(88,154,204) 0%, rgb(90,150,199) 100%);
    background-image: -o-linear-gradient(bottom, rgb(88,154,204) 0%, rgb(90,150,199) 100%);
    background-image: -moz-linear-gradient(bottom, rgb(88,154,204) 0%, rgb(90,150,199) 100%);
    background-image: -webkit-linear-gradient(bottom, rgb(88,154,204) 0%, rgb(90,150,199) 100%);
    background-image: -ms-linear-gradient(bottom, rgb(88,154,204) 0%, rgb(90,150,199) 100%);
 
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgb(88,154,204)),
        color-stop(1, rgb(90,150,199))
    );
}
.blue-btn:enabled:hover {border: 2px solid #6AD;}
.blue-btn:disabled {
	opacity: 0.75;
}

/* Lingid */
#lingid {
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}
#lingid h1 {
	color:silver;
}
#lingid a {
	font-weight: bold;
	font-size: 13pt;
	font-family: Verdana, "DejaVu Sans", "Bitstream Vera Sans", Geneva;
	color: yellow;
	background-color: #000;
}
#lingid a:hover {color: lime;}
#lingid p, #lingid li {
	margin-top: 6pt;
	margin-bottom: 6pt;
}

/* GuestBook*/
.gbnav {
	margin: 5px auto 5px auto;
}
.gbnav a {
	display: inline-block;
	color: #000;
	font-size: 12pt;
	font-family: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, "Adelle Sans", Aileron, "Supria Sans";
	background-color: #4682B4;
	padding: 10px;
	margin: 10px;
}
.gbnav a:nth-child(1) {
	font-weight: bold;
}
.gbnav a:hover{
	background-color: #E1DCB9;
}
.gbnav li{
	list-style-type: none;
	display: inline;
	padding: 1px;
	margin: 3px;
}
.gbnav img {
	margin-right: 10px;
	border: 0 none;
}
.pgnr {
	/*font-size: 10pt;
	font-family: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, "Adelle Sans", Aileron, "Supria Sans";*/
	color: #999;
	margin: 35px;
}
.pgnr a {
	font-weight: normal;
	text-decoration:none;
	color: #000;
	background-color: #2c6da0;
	-moz-border-radius: 50px / 50px;
	-webkit-border-radius: 50px / 50px;
	border-radius: 50px / 50px;
	padding: 15px;
	margin: 6px;
}
.pgnr a:hover {
	color: yellow;
	background-color: #4682B4;
}
.pgnr a.active {
	font-weight: bold;
	color: yellow;
}
#gb {
	width: 95%;
	border-collapse: collapse;
	text-align: center;
}
#gb tr td:nth-child(4) {
	text-align: left;
	width: 60%;
}
#gb a {
	color: #fff;
	text-decoration:none;
}
#gb th {
	border-bottom: 2px solid #999;
	color: white;
	text-align: center;
}
#gb th a {
	text-decoration: none;
	color: #4682B4;
}
#gb th a:hover {
	color: #B1DCFE;
}
#gb th a.active  {
	text-decoration: underline;
	color: #B1DCFE;
}
#gb td {
	border-bottom: 1px solid #999;
	color: white;
}
#komm {
	border: 3px ridge #003366;
	background-color: #eee;
	color: #000;
	font-size: 12pt;
}
#komm td {
	padding: 5px;
}

@media (orientation: portrait) {
	body, #sisu {
		font-size: 12pt;
	}
	#menuBox {
		display: inline-block;
	}
	#menubar {
		text-align: left;
		top: 0;
		right: 0;
		height: 64px;
		width: auto;
		position: static;
	}
	#menu {
		display: none;
		background-color:#ddd;
	}
	#mail span {
		display: inline;
	}
	#menu #mail {
		background-color: #2c6da0;
	}
	#menu #mail:hover {
		background-color: #427caa;
	}
	#mail img {
		display: none;
	}
	#sisu {
		top: 65px;
		left: 0;
		padding: 0;
		margin: 0;
	}
	#solar {
		grid-template-columns: repeat(2, 50%);
		grid-template-rows: repeat(4, 25%);
	}
	#solar div.last {
		grid-column: 1 / 3;
	}
	#solar div {
	   height: 100%;
    }
	#solar div:empty {
       display: none;
    }
	#solar img {
		width: auto;
		height: 80%;
	}
	#hortitle {
		display: none;
	}
	.tblTervis {
		width: 95%;
	}
	.funContainer {
		width: 95%;
	}
	.funContainer .komm {
		font-size: 11pt;
	}
	#gb {
		width: 100%;
	}
	#gb tr td:nth-child(4) {
		text-align: left;
		width: 50%;
	}

	#gb tr td:nth-child(2), #gb tr th:nth-child(2) {
		display: none;
	}
}
