.Esikatselu{
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	text-align: left;
}

.Esikatselu .content{
	display: inline-block;
}
.Esikatselu .content.flexZoom{
	display: flex;
	flex-wrap: wrap;
}
.Esikatselu .content > *{
	backface-visibility: hidden;
	transform: translateZ(0px);
}

.Esikatselu .sivu{
	position: relative;
	display: block;
	background-color: #fff;
	overflow:hidden;
	float: left;
	clear: left;
	margin: .25em;
}
.Esikatselu .content.flexZoom .sivu{
	flex: 0 0 auto;
	float: none;
	clear: none;
}

.Esikatselu .tehtava_container{
	position: relative;
	display: block;
	margin: 0em;
	padding: 0em;
	text-align: left;
	box-sizing: border-box;
	
	transition: background-color 500ms;
}

.Esikatselu .tehtava_container.korostettu{
	background-color: var(--korostettu-taustavari);
}

.Esikatselu .header_container{
	position: relative;
	display: block;
	margin: 0em;
	padding: 0em;
	text-align: left;
	box-sizing: border-box;
}

.Esikatselu .footer_container{
	position: absolute;
	bottom: 0em;
	display: block;
	margin: 0em;
	padding: 0em;
	text-align: left;
	box-sizing: border-box;
}

.Esikatselu .tehtava, .Esikatselu .header, .Esikatselu .footer{
	border-width: 0em;
}

/*** MUOKKAUS ***/
.Esikatselu .muokkauspainikkeet{
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	/* bottom: 0; */
	height: 100%;
	
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 1px;

	pointer-events: none;
}
.Esikatselu .muokkauspainikkeet .nappi{
	flex: 1 1 auto;
	max-height: var(--painike-mitat);
	width: var(--painike-mitat);
	height: auto;

	font-size: .8em;
	pointer-events: all;

	border-top-left-radius: 0 !important;
	border-bottom-left-radius: 0 !important;

	border-width: 0 !important;
}
.Esikatselu .tehtava_container.korostettu .muokkauspainikkeet .nappi{
	opacity: 0.5;
}

/* Tekstityokalu */
#tekstityokalu_container{
	position: absolute;
	margin: 0;
	padding: 0;
	z-index: 999999;
	
	display: flex;
	background-color: #fff;
	
	/* border-radius: .2em; */
	border-radius: calc(var(--painike-mitat) / 2);
	overflow: hidden;
}

.Esikatselu .tekstityokalu_container .nappi{
	border-radius: 0 !important;
	border-width: 0 !important;
	font-size: .8em;

	pointer-events: all;
}

#tekstityokalu_container #moveB.nappi{
	margin-left: 1px;
}


.no-touch .Esikatselu .tehtava_container .muokattavaTeksti:hover::before,
.Esikatselu .tehtava_container .muokattavaTeksti:focus::before{
	content: '';
	background-color: var(--painike-taustavari);
	opacity: .3;
	position: absolute;
	left: -0.2em;
	right: -0.2em;
	top: -0.15em;
	bottom: -0.15em;
	z-index: -1;
	
	border: 1px solid transparent;
	border-radius: 1px;

	pointer-events: none;
}
.Esikatselu .tehtava_container .muokattavaTeksti:focus::before{
	background-color: transparent !important;
	border-color: var(--painike-taustavari-hover) !important;
}

html.tekstisiirto-siirrossa *{
	cursor: move !important;
}