@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
	box-sizing: border-box;
	font-family: 'Poppins';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	background-color: #f0f0f0;
	margin: 0;
	padding: 0;
}

#topbar ul {
	background-color: #0c7500;
	list-style-type: none;
	display: inline-flex;
	width: 100%;
	text-align: center;
	margin-top: 0px;
	padding: 10px;
	color: white;
	font-weight: 900;
	padding-left: 30px;
	padding-right: 30px;
	overflow-x: auto;
	text-wrap: nowrap;
}

#topbar::-webkit-scrollbar {
	display: none;
}

#topbar li {
	margin-left: 10px;
	margin-right: 10px;
}

#topbar li a {
	text-decoration: none;
	color: white;
}

#topbar ul {
	margin-bottom: 0;
}

#sidebar {
	max-width: 70px;
	height: 100vh;
	background-color: #0c7500;
	float: left;
	position: fixed;
	overflow: auto;
	transition: max-width 0.3s ease-in-out;
	z-index: 10000;
}

#sidebar h1 {
	rotate: 270deg;
	position: absolute;
	bottom: 55px;
	margin: 0;
	left: -30px;
	float: left;
	color: white;
	line-height: 70px;
	font-size: 40px;
	text-align: center;
}

#sidebar #versio {
	position: absolute;
	bottom: -13px;
	text-align: center;
	width: 100%;
	color: white;
	font-size: 12px;
}

#maincontent {
	margin-top: 30px;
	margin-left: 120px;
	margin-right: 30px;
	padding-bottom: 50px;
	float: left;
	width: 80%;
}

#button {
	background-color: #0c7500;
	padding: 7px;
	border-radius: 3px;
	text-align: center;
	color: white;
	font-weight: 900;
	margin: 5px;
	text-decoration: none;
	line-height: 50px;
}

#button2 {
	background-color: #0c7500;
	padding: 6.2px;
	border-radius: 3px;
	border: none;
	color: white;
	font-weight: 900;
}

table {
	background-color: white;
	padding: 10px;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

table::-webkit-scrollbar {
	display: none;
}

table th {
	text-align: left;
	padding: 10px;
	color: #ffffff;
	background-color: #0c7500;
}

#tulostustaulu th {
	padding: 7px;
}

#tulostustaulu td {
	padding: 2px;
}

table td {
	padding: 7px;
}

table tr:nth-child(even) {
	background-color: #e7e7e7;
}

h1 {
	color: #0c7500;
	font-size: 28px;
}

h2 {
	color: #0c7500;
	font-size: 24px;
}

#divider {
	width: 100%;
	border-bottom: 1px solid #b8b7b6;
	margin-top: 25px;
	margin-bottom: 25px;
}

#contentbox {
	width: 100%;
	padding: 10px;
	background-color: white;
	margin-top: 15px;
	margin-bottom: 15px;
}

#contentbox h1 {
	margin: 0px;
}

#kotitehtavat {
	overflow-x: auto;
}

#aineet {
	display: flex;
	flex-wrap: wrap;
	text-align: center;
}

#aine {
	background-color: white;
	width: 170px;
	margin: 10px;
	border-radius: 3px;
}

#ainekuva {
	height: 110px;
	background-position: center;
	background-size: cover;
	border-radius: 3px;
}

#sivupalkki {
	background-color: white;
	padding: 13px;
	float: right;
	position: relative;
	width: 20%;
	margin-right: 30px;
	margin-top: 15px;
	border-radius: 3px;
	margin-bottom: 30px;
}

#sivupalkki h2 {
	margin-top: 0px;
	margin-bottom: 5px;
}

.linkki {
	text-align: center;
	color: white;
	margin-top: 20px;
	margin-left: 5px;
	margin-right: 5px;
}

.linkki i {
	color: #f7f7f7;
	font-size: 24px;
}

input,
select,
textarea {
	margin-top: 5px;
	margin-bottom: 5px;
	font-size: 16px;
	max-width: 100%;
}

.login {
	width: 400px;
	background-color: #ffffff;
	box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
	margin: 100px auto;
	border-radius: 4px;
}

.login h1 {
	text-align: center;
	color: #0c7500;
	font-size: 32px;
	padding: 20px 0 20px 0;
	border-bottom: 1px solid #dee0e4;
}

.login form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding-top: 20px;
}

.login form input[type="password"],
.login form input[type="text"] {
	width: 360px;
	height: 50px;
	border: 1px solid #dee0e4;
	margin-bottom: 20px;
	margin-top: 0;
	padding: 0 15px;
}

.login form input[type="submit"] {
	width: 100%;
	padding: 15px;
	margin-top: 20px;
	background-color: #0c7500;
	border: 0;
	cursor: pointer;
	font-weight: bold;
	color: #ffffff;
	transition: background-color 0.2s;
	margin-bottom: 0;
}

.login form input[type="submit"]:hover {
	background-color: #4ead44;
	transition: background-color 0.2s;
}

.mobile {
	display: none;
}

@media only screen and (max-width: 650px) {
	#sidebar {
		max-width: 0;
	}

	#sidebar h1,
	#sidebar #versio {
		display: none;
	}

	#maincontent {
		float: none;
		margin-top: 0px;
		padding-top: 90px;
		margin-left: 30px;
	}

	.linkki {
		display: none;
	}

	.mobile {
		display: block;
	}
}

@media only screen and (max-height: 625px) {
	#sidebar h1 {
		display: none;
	}

	#sidebar #versio {
		display: none;
	}
}

@media only screen and (max-width: 600px) {
	.login {
		width: 300px;
	}

	.login form input[type="password"],
	.login form input[type="text"] {
		width: 250px;
	}

	#sivupalkki {
		float: left;
		width: unset;
		margin-left: 30px;
		margin-right: 30px;
	}

	#maincontent {
		margin-right: 30px;
		width: -webkit-fill-available;
	}

	#aineet {
		justify-content: space-around;
	}

	#aine {
		width: 85%;
	}
}