:root {
	--screen-width: 100%;
	--sidebar-target-width: calc(1300px - 50%);
	--sidebar-width: var(--sidebar-target-width);

	--dark-blue: #265fa7;
	--light-blue: #3e95d4;
	--dark-green: #258b43;
	--light-green: #b6ca46;
	--yellow: #dedd3d;
	--orange: #d16b24;
	--pink: #c4007a;
	--red: #c4241e;
	--black: #000000;
}

@media (max-device-width: 600px) {


	#main {
		font-size: 2rem;
		background-color: #edebeb;
		border-radius: 5%;
		margin-left: 2vw;
		margin-right: 2vw;
		width: 95vw;
	}

	.main-show {
		left: 50%;
	}

	.main-hide {
		left: 50vw
	}

	a {
		font-size: 2.5rem;
	}

	p {
		font-size: 2.8rem;
	}

	body {
		font-size: 2rem;
	}

	;

	#open_side_menu_button {
		transform: scale(3);

	}

	;

	.word-match_text {
		width: 2000px;
	}

	#side_menu {
		width: var(--sidebar-width);
		border-right: solid black 4px;
	}

	.items {
		padding-left: 40px;
	}

	#open_side_menu_button {
		top: 3rem;
		left: 3.5rem;
	}

	.button_style {
		height: max-content;
		width: max-content;
		font-size: 2rem;
	}

	.image-size-change {
		transform: translateX(-50%);
		position: relative;
		left: 50%;
		height: 150%;
	}

	img {
		width: 100%;
		height: 100%;
	}


	.title_background h1 {
		margin-left: 9rem;
	}
}

@media (min-device-width: 600px) {



	body {
		font-size: 1rem;
	}

	.button_style {
		height: max-content;
		width: max-content;
		font-size: 1rem
	}

	;

	p {
		font-size: 1rem;
	}

	a {
		font-size: 1rem;
	}

	#main {
		font-size: 1rem;
		background-color: #b6ca46;
		border-radius: 5%;
		margin-left: 2vw;
		margin-right: 2vw;
		width: 70vw;
		left: 50%;
	}


	#side_menu {
		width: var(--sidebar-width);
		border-right: solid black 2px;
	}


	#open_side_menu_button {
		top: 0.6rem;
		left: 0.6rem;
	}

	.image-size-change {
		transform: scale(1) translateX(-50%);
		width: max-content;
		position: relative;
		left: 50%
	}
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
	line-height: 1.6;
	word-spacing: 0.16em;
	overflow: hidden;
}

html {
	overflow-y: scroll;
	scrollbar-color: rgb(59, 59, 59) aliceblue;
}

#main {
	margin-top: 2vw;
	background-color: #edebeb;
	border-radius: 14px;
	align-items: center;
	display: flex;
	justify-content: center;
	height: max-content;
	position: relative;
	transform: translateX(-52.2%);
	transition: all 0.5s;
	.chapter
}



.title_background {
	background-color: #3e95d4;
	position: relative;
	min-height: max-content;
	height: 40%;
	width: 96%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: safe center;
	padding-left: 2%;
	padding-right: 2%;
	left: 0vh;
}

#title {
	position: static;
	align-items: center;
	border: 2px solid black;
	text-align: center;
	padding: 1% 3%;
	margin: 2%;
	max-width: 40%;
	min-width: max-content;
	background-color: #fff;
	text-decoration: underline;
}

#smaller_title {
	position: static;
	align-items: center;
	border: 2px solid black;
	text-align: center;
	padding: 0.5% 2%;
	width: 30%;
	margin-top: 1%;
	margin-bottom: 3%;
	min-width: max-content;
	background-color: #fff;
}

#content_container {
	transition: all 0.5s ease;

}

#side_menu {
	height: 100vh;
	transform: translateX(-100%);
	position: fixed;
	z-index: 1;
	top: 0;
	left: 0;
	background-color: #fff;
	overflow-x: hidden;
	transition: all 0.5s ease;
	overflow-y: scroll;
	scrollbar-color: rgb(40, 51, 53) rgb(170, 200, 204);
}

#side_menu>.items>p {
	margin-left: 40px;
}

.items a {
	text-decoration: none;

	&:visited {
		color: unset;
	}

	&.active {
		color: var(--dark-green);
	}

	&:hover {
		color: var(--dark-green);
		filter: brightness(60%);
	}
}

.side_menu_pages {
	position: relative;
	width: 100%;
	font-size: calc(1.5vh + 1.5vw);
	text-align: center;
	padding: 2%;
	padding-left: 5%;
	color: black;
	transition: all 0.3s;
}

.side_menu_pages::after,
.side_menu_h3::after {
	content: "\A";
	white-space: pre;
}

.current_page::before {
	content: "";
	position: absolute;
	left: 3%;
	top: 50%;
	transform: translateY(-50%);
	background-color: black;
	height: calc(1vh + 2vw);
	width: 0.2vw;
	border-radius: 15%;
}

#menu_side_menu_background {
	background-image: linear-gradient(to bottom right, var(--light-blue), var(--dark-blue));
	height: auto;
	position: relative;
	content: "     ";
}

.items1,
.items2 {
	position: relative;
	width: 100%;
	height: max-content;
	border-bottom: 0.3vh solid black;
	margin-bottom: 5vh;
}

.side_menu_h3 {
	text-align: center;
	font-size: calc(2vw + 1vh);
	overflow-wrap: break-word;
	padding-bottom: 3vh;
}

.side_menu_box {
	width: 100%;
	transition: all 0.3s;
	cursor: pointer;
	padding: 7% 0%;
	border-top: 3px rgba(0, 0, 0, 0.377) solid;
}

.last_side_menu_box {
	border-bottom: 3px rgba(0, 0, 0, 0.377) solid;
}

.side_menu_box:hover {
	background-color: rgb(67, 80, 81);
}

.side_menu_box:hover .side_menu_pages {
	color: rgb(238, 238, 238);
}

.text>* {
	text-align: start;
	margin-bottom: 2vh;
}

.text {
	margin-right: 0;
	margin-left: 0;
	width: 90vw;
	padding: 20px;
}

#main,
.title_background,
.title,
#smaller_title,
.text,
.text_header,
#open_side_menu_button,
#caption,
#unordered_list {
	/*transition: all 0.5s;*/
}

#open_side_menu_button {
	position: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2.7rem;
	height: 2.2rem;
	/*scale: calc(-1vh + -1vw);*/
	background-color: white;
	border: 2px solid var(--dark-green);
	border-radius: 8%;
	transition: all 0.5s;
}

#line1,
#line2,
#line3 {
	position: absolute;
	width: 1.7rem;
	height: 0.2rem;
	background-color: var(--dark-green);
	transition: all 0.5s;
}


.page_end {
	height: 20vh;
}

.chapter_buttons {
	display: flex;
	justify-content: space-between;
	margin-top: 32px;
	margin-bottom: 0px;
}

.table1 {
	border-collapse: collapse;
	min-width: 50vw;
	width: fit-content;
	height: fit-content;
	position: relative;
	left: 50%;
	transform: translate(-50%);
	margin-bottom: 10vh;
}

.table_header,
.table_data {
	border: 2px solid black;
	width: max-content;
	height: max-content;
	padding: 0.5vh 1vw;
	overflow: hidden;
}

.table_header {
	background-color: rgb(252, 187, 163);
	font-weight: bold;
	text-align: center;
}

.table_data {
	text-align: start;
	padding-left: 2%;
	background-color: rgb(247, 222, 190);
}

.table_row:hover .table_data {
	filter: brightness(0.88);
}

.image1 {
	width: 60vw;
	height: auto;
	position: relative;
	left: 50%;
	transform: translate(-50%);
	margin-top: 3vh;
	border: 4px solid black;
	border-radius: calc(2vh + 2vw);
	margin-bottom: 1vh;

}

#caption {
	position: relative;
	width: 30vw;
	margin-left: 35vw;
	margin-right: 35vw;
	margin-bottom: 10vh;
	text-align: center;
}

#unordered_list {
	position: relative;
	margin-top: 5vh;
	margin-left: 20vw;
	margin-right: 20vw;

}

.horizontal_rule {
	margin-top: 5vh;
	margin-bottom: 10vh;
	border: 2px dashed
}

.list_item {
	padding: 1%;
}

#main img.default {
	width: 60vw;
	height: auto;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 3vh;
	border: 4px solid black;
	border-radius: calc(2vh + 2vw);
	margin-bottom: 1vh;
}

.button_style {
	background-color: #9C9C9C;
	border: none;
	text-align: center;
	cursor: pointer;
	border-radius: 10px;
	padding: 15px;
}

.button_style:hover {
	background-color: #747474;
}

h1 {
	margin-top: 1px;
}

button,
span,
img {
	user-select: none;
}

.salasana-nämäOvat {
	user-select: auto;
}