html,
body {
	min-height: 100%;
	padding: 0;
	margin: 0;
	position: relative;
	overflow-x: hidden;
}

/* ================================[ ETUSIVU TAUSTA ELEMENTIT ]================================ */

.taustagradient {
	background: #ffffff;
	min-height: 100dvh;
	background: linear-gradient(
	to top,
	#ffffff 0%,
	#5ABFE6 100%
	);
}

.varsi {
	position: absolute;
	background-image: url("kuvat/varsi.png");

	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;

	width: 495px;

	background-repeat: repeat-y;
	background-position: center-top;
	background-size: auto;
	pointer-events: none;
}

.pilvi {
	position: fixed;
	background-image: url("kuvat/pilvi.png");

	bottom: 0;
	left: 0;

	width: 100%;
	height: 723px;
	z-index: 1;

	background-repeat: repeat-x;
	background-size: 1500px 723px;
	background-position: bottom left;
	animation: pilviLiike 20s linear infinite; 
}

@keyframes pilviLiike {
	from { background-position: 0 0; }
	to   { background-position: 1500px 0; }
}

.aurinko img {
	width: 580px;
	position: absolute;
	top: 1%;
	right: 1%;
}

.logo {
	position: absolute;
	bottom: 1%;
	left: 1%;
	z-index: 10;
	
	color: #156F36;
	font-size: 22px;
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	
	display: flex;
	flex-direction: column;
	align-items: center;

}

.logo img{
	width: 120px;
}

/* ============================================================================================ */




/* ================================[ OKSAT ]================================ */

.oksasto {
	position: relative;
	width: 100%;
	padding-top: 60px;
}

.oksa {
	position: relative;
	display: block;

	width: fit-content;
	height: 172px;
	z-index: 2;
	margin-top: -40px;
	
	transition: transform 0.2s ease;
	
	text-align: center;
	text-decoration: none;
}

.oksa img {
	vertical-align: bottom;
	pointer-events: auto;
}

.oksa:nth-child(odd) {
	left: 50%;
	transform: translateX(-50%) translateX(310px);
	transform-origin: center left;
}

.oksa:nth-child(odd):hover {
	transform: translateX(-50%) translateX(310px) rotate(-3deg) translateY(-6px);
}

.oksa:nth-child(even) {
	left: 50%;
	transform: translateX(-50%) translateX(-310px);
	transform-origin: center right;
}

.oksa:nth-child(even):hover {
	transform: translateX(-50%) translateX(-310px) rotate(3deg) translateY(-6px);
}

.oksa:nth-child(even) img {
	transform: scaleX(-1);
}

.oksa p {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	
	font-family: "Caveat Brush";
	font-size: 40px;
	color: white;
	text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
               1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
			  
}

/* ========================================================================= */




/* ================================[ 404 ]================================ */

.virhe-taustagradient {
	background: #3B4738;
	min-height: 100dvh;
	background: linear-gradient(
	to top,
	#ffffff 0%,
	#3B4738 100%
	);
}

.virhe-wrapper {
	z-index: 2;
	position: absolute;
	display: flex;
	flex-direction: column;
	
	justify-content: center;
	align-items: center;
	
	width: 100%;
	min-height: 100dvh;
}

.virhe-wrapper p {
	margin-top: 20px;
	text-align: center;
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	font-size: 40px;
	color: #545D40;
}

.virhe-wrapper a p {
	margin: 0;
	font-size: 20px;
	transition: 0.15s ease;
	color: black;
}

.virhe-wrapper a {
	text-decoration: none;
}

.virhe-wrapper a p:hover {
	transform: scale(1.2);
}

.virhe-wrapper img {
	width: 30vh;
}

/* ======================================================================= */




/* ================================[ LAYOUT ]================================ */

.kasvitausta {
	background-image: url(kuvat/kasvitausta.png);
	background-size: cover;
	background-position: right;
}

@keyframes kuvioliike {
	from {background-position: 0 0;}
	to {background-position: 200px 200px;}
}

.boksi {
	width: 50%;
	min-height: 100%;
	height: 100dvh;
	
	background-color: rgba(0, 0, 0, 0.50);
	
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	
	border: 3px solid #156F36;
	margin: 0 auto;
	overflow-x: hidden;
}

.kirjoitus {
	width: 80%;
	margin: 0 auto;
	flex-direction: column;
	word-wrap: break-word;
	
	font-size: 27px;
	color: white;
	font-family: "Zalando Sans SemiExpanded", sans-serif;
}

.kirjoitus li {
	margin: 15px 0;
}

.kirjoitus h2 {
	text-align: center;
}

.kirjoitus form {
	text-align: center;
}

.kirjoitus textarea {
	width: 80%;
	height: 400px;
	resize: none;
	
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	font-size: 18px;
	color: white;
	
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border: 3px solid #4AB063;
	background-color: rgba(0, 0, 0, 0.70);
}

.kirjoitus button {
	width: 120px;
	height: 40px;
	
	transition: transform 0.15s ease;
	
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border: 3px solid #4AB063;
	background-color: black;
	
	color: white;
	font-family: "Zalando Sans SemiExpanded", sans-serif;
}

.kirjoitus button:hover {
	cursor: pointer;
	transform: scale(1.1);
}

/* ========================================================================== */




/* ================================[ SIDEBAR ]================================ */

#hampurilainen {
	position: fixed;
	top: 20px;
	left: 20px;

	background: none;
	border: none;
	cursor: pointer;

	z-index: 100;
}

#sidebar {
	position: fixed;
	padding-top: 70px;
	padding-left: 10px;
	top: 0;
	left: -40dvh;
	
	width: 40dvh;
	height: 100dvh;
	
	background-image: url(kuvat/lehtikuvio.png);
	animation: kuvioliike 10s linear infinite;
	background-size: 200px 200px;

	transition: left 0.25s ease;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border: 3px solid #156F36;
	
	display: flex;
	flex-direction: column;
	align-items: left;
	
	z-index: 101
}

#sidebar.open {
	left: 0;
}

#sidebar a {
	display: flex;
	align-items: center;
	padding: 15px;
	
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	color: white;
	font-size: 32px;
	text-decoration: none;
	width: fit-content;
	
	transition: transform 0.15s ease;
	transform-origin: left
}

#sidebar a:hover {
	cursor: pointer;
	transform: scale(1.2);
}

.sidebar-linkit {
	overflow-y: auto;
	padding-bottom: 70px;
}

#rasti {
	position: absolute;
	top: 15px;
	right: 15px;
	
	background: none;
	border: none;
	cursor: pointer;
}

.ikonit {
	width: 32px;
	padding-right: 10px;
}

/* =========================================================================== */



/* ================================[ MOBIILI VER. LAYOUT ]================================ */

@media screen and (max-width: 1500px) {
	.boksi {
		width: 70%;
	}
}

@media screen and (orientation: landscape) and (max-width: 1500px) {
	#sidebar {
		left: -50dvw;
		width: 50dvw;
	}
}

@media screen and (max-width: 1000px) {
	.boksi {
		width: 100%;
	}
}

@media screen and (orientation: landscape) and (max-width: 1000px) {
	#sidebar {
		left: -50dvw;
		width: 50dvw;
	}
}

@media screen and (max-width: 800px) {
	.boksi {
		width: 100%;
	}
	
	.kirjoitus {
		margin-top: 65px;
		overflow-y: auto;
		font-size: 20px;
	}
	
	#sidebar a {
		font-size: 25px;
	}
	
	.kirjoitus textarea {
	width: 100%;
	}
}

@media screen and (orientation: landscape) and (max-width: 800px) {
	#sidebar {
		left: -50dvw;
		width: 50dvw;
	}
}

/* ======================================================================================= */



/* ================================[ MOBIILI VER. ETUSIVU ]================================ */

@media screen and (max-width: 1000px) {
	.varsi {
		left: 30%;
	}
	
	.oksa {
		margin-top: 40px;
	}
	
	.oksa p {
		font-size: 60px;
	}
	
	.oksa:nth-child(odd) {
		left: 30%;
		transform: translateX(-50%) translateX(310px);
		transform-origin: center left;
	}

	.oksa:nth-child(odd):hover {
		transform: translateX(-50%) translateX(310px) rotate(-3deg) translateY(-6px);
	}
	
	
	.oksa:nth-child(even) {
		left: 30%;
		transform: translateX(-50%) translateX(310px);
		transform-origin: center left;
	}

	.oksa:nth-child(even):hover {
		transform: translateX(-50%) translateX(310px) rotate(-3deg) translateY(-6px);
	}

	.oksa:nth-child(even) img {
		transform: scaleX(1);
	}
	
	.aurinko img {
		display: none;
	}
}

/* ======================================================================================== */