html, body {
	margin: 0;
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	height: 100%;
}
input, select, button, textarea {
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	background-color: aliceblue;
}
input[type=checkbox], input[type=radio] {
	height: 20px;
	width: 20px;
}
p {
	margin-top: 5px;
}
a {
	text-decoration: none;
	color: blue;
}
a:hover {
	text-decoration: underline;
}
a.selected {
	color: red;
}
a.hinne {
    color: black;
    text-decoration: none;
}
h1 {
	font-family: 'Roboto', sans-serif;
	font-size: 18pt;
	font-weight: normal;
}
h2 {
	font-family: 'Roboto', sans-serif;
	font-size: 16pt;
	font-weight: normal;
}
h3 {
	font-family: 'Roboto', sans-serif;
	font-size: 12pt;
	font-weight: bold;
}
ol li {
	margin: 0 0 6px 0;
}

.foorum th, .foorum td {
	padding: 5px; 
	border: 1px solid #ddd;
}
.foorum tr:nth-child(even) {
	background-color: #f2f2f2
}
.foorum th {
	background-color: #e6e6ff; 
	text-align: center; 	
}	
.foorum, .leht1, .leht2 {
	border-collapse: collapse; 
}
.joonega {
	border: 1px solid grey;
}
table.joonega {
	border-spacing: 0px;
	border-collapse: collapse;
}



.leht1 th, .leht1 td, .leht2 th, .leht2 td {
	border: 1px solid black;
	padding: 3px;
}

table.leht1 {
	page-break-after: avoid
}
table.leht2 {
	page-break-after: always
}

div.tun1, td.tun1, th.tun1 {font-size: 10pt; font-family:Verdana,Arial;}
td.tun2, th.tun2 {font-size: 8pt; font-family:Verdana,Arial;}
td.tun3 {font-size: 12pt; font-family:Verdana,Arial; font-weight:normal; margin-top: 20px;}

/* lahtrid */
input[type=text], input[type=password], input[type=email], textarea {
    padding: 3px; 
    border: 1px solid grey; 
    -webkit-border-radius: 3px;
    border-radius: 3px;
}
input[type=text]:focus, input[type=password]:focus {
	border: 1px solid black; 
}
input.login {
	height: 20px;
	padding: 5px; 
	font-size: 12pt;
	width: 90%;
}

/* nupud */
button, input[type=submit] {
  -webkit-border-radius: 3;
  -moz-border-radius: 3;
  border-radius: 3px;
  font-family: 'Roboto', sans-serif;
  color: #000000;
  background: #e6e6ff;
  padding: 3px 8px 3px 8px;
  border: solid grey 1px;
  text-decoration: none;
  -webkit-appearance: none;
}
button:hover, input[type=submit]:hover {
  background: #9999ff;
  text-decoration: none;
  color: white;
}
button.suur {
	padding: 0; 
	height: 30px; 
	font-size: 12pt;
}

/* ülemine menüüriba */
ul.topnav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #e6e6ff;
}
ul.topnav li {
	float: left;
}
ul.topnav li.right {
	float: right;
}
ul.topnav li a {
  display: block;
  color: black;
  text-align: center;
  padding: 5px 10px 5px 10px;
  text-decoration: none;
}
ul.topnav li a:hover:not(.active) {
	background-color: #9999ff;
	color: white;
}
ul.topnav li a.active {
	background-color: white;
}


/* teine menüüriba */
ul.top2nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: white;
}
ul.top2nav li {
	float: left;
}
ul.top2nav li a {
  display: block;
  color: blue;
  text-align: center;
  padding: 5px 10px 5px 10px;
  text-decoration: none;
}
ul.top2nav li a:hover:not(.active) {
	background-color: mistyrose;
	color: blue;
}
ul.top2nav li a.active {
	background-color: white;
	color: red;
}
ul.top2nav li.right {
	float: right;
	white-space: nowrap;	
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 40%;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 20px;
  font-weight: bold;
}

.close:hover, .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 35px;
  height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 13px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(13px);
  -ms-transform: translateX(13px);
  transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}