h4 {
	font-family: "Verdana";
	font-size: 20px;
	text-align: center;
}

h3 {
	text-align: center;
}

hr {
	text-align: center;
	margin: 40px auto;
	align-items: center;
}

.kasutatud_allikad {
	font-size: 15px;
}

.grid-item {
	position: relative;
	font-size: 18px;
	white-space: nowrap; 
}

.grid-item:before {
	content: "";
	position: absolute;
	left: 50%; 
	bottom: -2px;
	height: 2px;
	width: 0;
	background-color: blue;
	transition: width 0.3s ease-out;
	transform: translateX(-50%); 
}

.grid-item:hover:before {
	width: 100%;
	transform: translateX(-50%); 
}


.grid-item:hover {
	color: blue;
}

.h1_pages {
	margin-top: 100px;
	font-family: "Verdana";
	font-size: 30px;
	text-align: center;
	font-weight: 550;
}

.h3_pages {
	font-family: "Verdana";
	font-size: 20px;
	text-align: center;
	font-weight: 550;
}

section {
	font-family: "Verdana";
	font-size: 20px;
	align-items: center;
	padding: 0px 140px;
}

.materjal {
	border: 1px solid #ccc;
	border-radius: 20%;
}

.circle-link {
	display: inline-block;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: #f00; 
	text-align: center;
	line-height: 50px;
	color: #fff; 
	text-decoration: none;
	margin: 10px; 
  }
  
.tab {
	top: 200px;
	left: 40px;
	float: left;
	border: 1px solid #ccc;
	background-color: #f1f1f1;
	width: 20%;
	height: auto;
	width: 130px;
	position: absolute;
	z-index: 1;
	overflow-x: hidden;
	border-radius: 20px;
}

.tab button {
	display: block;
	background-color: inherit;
	color: black;
	padding: 22px 16px;
	width: 100%;
	border: none;
	outline: none;
	text-align: left;
	cursor: pointer;
	transition: 0.3s;
	font-size: 17px;
	padding: 6px 8px 6px 16px;
}

.tab button:hover {
	background-color: #ddd;
}

.tab button.active {
	background-color: #ccc;
}

.tabcontent {
	font-size: 18px; 
	padding: 0px 10px;
	font-family: "Verdana";
}

.nupp {
	font-family: "Verdana";
	border: 1px solid #ccc;
	background-color: #f1f1f1;
	height: auto;
	display: inline-block;
	vertical-align: top;
	padding: 10px 10px;
	font-size: 15px; 
	border: 1px solid #ccc;
	background-color: #f1f1f1;
	border-radius: 7px;
}

.nupp:hover {
	background-color: #ddd;
}

.nupp.active {
	background-color: #ccc;
}

.alam {
	font-family: "Verdana";
	border: 1px solid #ccc;
	background-color: #f1f1f1;
	height: auto;
	display: inline-block;
	vertical-align: top;
	padding: 10px 10px;
	font-size: 15px; 
	border: 1px solid #ccc;
	background-color: #f1f1f1;
	border-radius: 7px;
}

.alam:hover {
	background-color: #ddd;
}

.alam.active {
	background-color: #ccc;
}

.subtabcontent {
	display: none;
	font-family: "Verdana";
	padding: 100px;
	line-height: 1.5;
}

.subtabcontent.active {
  display: block;
}
  
footer {
	padding: 30px 0;
}

div {
	font-family: "Verdana";
	font-size: 20px;	
	text-align: center;
}

.text {
	border: 4px #bfbfbf;
	border-style: solid;
	border-radius: 20px;
	padding: 35px 30px;
	text-align: left;
	margin: 0px 200px;
}

.text2 {
	border: 4px #bfbfbf;
	border-style: solid;
	border-radius: 20px;
	padding: 35px 30px;
	margin: 0px 200px;
	text-align: center;
}

.text3 {
	padding: 35px 30px;
	text-align: center;
	margin: 0px 300px;
}