@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300..700");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");
@import url("https://fonts.googleapis.com/css2?family=Material+Icons+Outlined");
@import url("https://use.typekit.net/lux7tou.css");

/*******************************************************************************************************************************/

:root {
	--editavari: #11094F;
	--paavari: #763AD6;
	--paavari-taustavari: #DCCDF5;
	--paavari-vaalea: #EFD7FF;
	--musta: #000000;
	--harmaa: #707070;
	--harmaa-vaalea: #EEEEEE;
	--harmaa-vaalea2: #CCCCCC;
	
	--oikeinvari: #519d8d;
	--vaarinvari: #d55740;

	--taustapattern: url(https://iioppi.fi/Edita/koodit/2024-v1/src/kuvat/edita_alakoulu_lehdet_pattern_EDITA.jpg);

	--leipafontti: "ff-tisa-sans-web-pro", sans-serif;
	--leipateksti: 1em/1.2 var(--leipafontti);
	--otsikkofontti: 1em/1.2 "duper", sans-serif;
	--otsikkovari: #11094F;

	--painike-fontti: 700 .85em/1.2 var(--leipafontti);
	--painike-mitat: 1.75em;

	--painike-vari: #FFF;
	--painike-vari-hover: #FFF;
	--painike-vari-selected: #FFF;
	--painike-vari-disabled: #AAAAAA;
	--painike-taustavari: #763AD6;
	--painike-taustavari-hover: #4B299D;
	--painike-taustavari-selected: #4B299D;
	--painike-taustavari-disabled: #EEEEEE;
	--painike-pyoristys: .5em;

	--painike2-vari: #763AD6;
	--painike2-vari-hover: #4B299D;
	--painike2-vari-selected: #4B299D;
	--painike2-vari-disabled: #AAAAAA;
	--painike2-taustavari: #EEEEEE;
	--painike2-taustavari-hover: #EEEEEE;
	--painike2-taustavari-selected: #EEEEEE;
	--painike2-taustavari-disabled: #EEEEEE;

	--painike3-vari: #11094F;
	--painike3-vari-hover: #11094F;
	--painike3-vari-selected: #11094F;
	--painike3-vari-disabled: #AAAAAA;
	--painike3-taustavari: #EEEEEE;
	--painike3-taustavari-hover: #D0D0D0;
	--painike3-taustavari-selected: #D0D0D0;
	--painike3-taustavari-disabled: #EEEEEE;

	--painikeToggle-toggle_off-vari: #DDDDDD;
	--painikeToggle-toggle_off-vari-hover: #D0D0D0;

	--nappi-vari: #FFF;
	--nappi-vari-hover: #FFF;
	--nappi-vari-selected: #FFF;
	--nappi-vari-disabled: #AAAAAA;
	--nappi-taustavari: #763AD6;
	--nappi-taustavari-hover: #4B299D;
	--nappi-taustavari-selected: #4B299D;
	--nappi-taustavari-disabled: #EEEEEE;
	--nappi-pyoristys: 50%;

	--nappi2-vari: #763AD6;
	--nappi2-vari-hover: #4B299D;
	--nappi2-vari-selected: #4B299D;
	--nappi2-vari-disabled: #AAAAAA;
	--nappi2-taustavari: #EEEEEE;
	--nappi2-taustavari-hover: #EEEEEE;
	--nappi2-taustavari-selected: #EEEEEE;
	--nappi2-taustavari-disabled: #EEEEEE;

	--nappi-suljeikkuna-vari: var(--harmaa);

	/*** UUDET ***/
	--edita: #11094F;
	--valkoinen: #FFFFFF;
	--paavari-tausta-50: #ECECF2;
	--paavari-vaalea-100: #E1D3F6;
	--paavari-vaalea-200: #D4BFF6;
	--paavari-500: #6D36C4;
	--paavari-tumma-700: #5322A3;
	--paavari-tumma-900: #3C1875;
	--harmaa-vaalea-100: #E6E6E7;
	--harmaa-vaalea-2200: #CECDD0;
	--harmaa-tumma-700: #3A3941;
	--tausta-transparent: rgba(246, 244, 244, 0.75);/* url(<path-to-image>) lightgray 0% 0% / 25px 25px repeat, rgba(246, 244, 244, 0.75); */
}

/*******************************************************************************************************************************/

svg [font-family="TisaPro_Ita_Italic"],
svg [font-family="TisaPro-Ita"] {
	font-family: "ff-tisa-web-pro", serif;
	font-weight: 400;
	font-style: italic;
}
svg [font-family="TisaPro_MediIta_Italic"],
svg [font-family="TisaPro-MediIta"] {
	font-family: "ff-tisa-web-pro", serif;
	font-weight: 600;
	font-style: italic;
}
svg [font-family="Tisa_Sans_Pro_Light_Regular"],
svg [font-family="TisaSansPro-Light"] {
	font-family: "ff-tisa-sans-web-pro", sans-serif;
	font-weight: 300;
	font-style: normal;
}
svg [font-family="TisaSansPro_Regular"],
svg [font-family="Tisa_Sans_Pro_Regular"],
svg [font-family="TisaSansPro"] {
	font-family: "ff-tisa-sans-web-pro", sans-serif;
	font-weight: normal;
	font-style: normal;
}
svg [font-family="Tisa_Sans_Pro_Italic_Italic"],
svg [font-family="TisaSansPro-Italic"]{
	font-family: "ff-tisa-sans-web-pro", sans-serif;
	font-weight: normal;
	font-style: italic;
}
svg [font-family="Tisa_Sans_Pro_Medium_Regular"],
svg [font-family="TisaSansPro-Medium"]{
	font-family: "ff-tisa-sans-web-pro", sans-serif;
	font-weight: 500;
	font-style: normal;
}
svg [font-family="Tisa_Sans_Pro_Medium_Italic_Italic"],
svg [font-family="TisaSansPro-MediumItalic"]{
	font-family: "ff-tisa-sans-web-pro", sans-serif;
	font-weight: 500;
	font-style: italic;
}
svg [font-family="TisaSansPro_Bold_Bold"],
svg [font-family="Tisa_Sans_Pro_Bold_Bold"],
svg [font-family="TisaSansPro-Bold"] {
	font-family: "ff-tisa-sans-web-pro", sans-serif;
	font-weight: 700;
	font-style: normal;
}
svg [font-family="Tisa_Sans_Pro_Black_Regular"],
svg [font-family="TisaSansPro-Black"]{
	font-family: "ff-tisa-sans-web-pro", sans-serif;
	font-weight: 900;
	font-style: normal;
}

svg [font-family="Duper_Regular"] {
	font-family: "duper", sans-serif;
	font-weight: 400;
	font-style: normal;
}
svg [font-family="Duper_Ita_Italic"] {
	font-family: "duper", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-style: italic;
}

svg [font-family="Duper_Bold_Bold"] {
	font-family: "duper", sans-serif;
	font-weight: 700;
	font-style: normal;
}
svg [font-family="Duper_BoldIta_Bold_Italic"] {
	font-family: "duper", sans-serif;
	font-weight: 700;
	font-style: normal;
	font-style: italic;
}

/*** GOOGLE SYMBOLS ***/
.material-symbols-outlined {
	font-size: inherit;
	line-height: inherit;
}
.material-icons-outlined {
	color: var(--paavari);
	font-size: inherit;
	line-height: inherit;
}

/*******************************************************************************************************************************/

* {
	position: relative;
	box-sizing: border-box;
	font-feature-settings: inherit !important;
}

nw {
	white-space: nowrap;
}
nc {
	text-transform: none;
}

html {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	overflow: hidden;
	touch-action: manipulation;
	/* background-color: #fff; */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-width: 100%;
	min-height: 100%;
	font: var(--leipateksti);
}
html.preloader::after,
html *.preloader::after {
	content: '';
	position: absolute;
	left: calc(50% - 18px);
	top: calc(50% - 18px);
	width: 36px;
	height: 36px;
	background-image: url(images/preloader.gif);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
}
body {
	margin: 0;
	padding: 0;
}
html,
html body {
	line-height: 1.2;
}
html:not(.nyckel),
html:not(.nyckel) body {
	-webkit-text-size-adjust: none;
	-moz-font-feature-settings: "lnum", "ss01", "case" !important;
	-webkit-font-feature-settings: "lnum", "ss01", "case" !important;
	font-feature-settings: "lnum", "ss01", "case" !important;
}
html.lukittu,
html.lukittu * {
	pointer-events: none !important;
	cursor: default !important;
}


/*** h ***/
h1, h2, h3, h4, h5, h6 {
	display: block;
	margin: 0;
	padding: 0;
}
h1 {
	/* font-size: 1.71em;
	color: var(--otsikkovari);
	font-weight: 700;
	margin-top: .88em;
	margin-bottom: .88em; */
	font-size: 1.4em;
	color: var(--otsikkovari);
	font-weight: 700;
	margin-top: .7em;
	margin-bottom: .7em;
}
h2, h3 {
	font: var(--otsikkofontti);
	font-weight: 700;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: .07em;
}
h2 {
	font-size: 1.05em;
	margin-bottom: 1.43em;
	margin-bottom: .48em;
}
h3 {
	font-size: .84em;
	margin-top: 1.79em;
	margin-bottom: .6em;
}
h4 {
	font-size: 1.2em;
	font-weight: 600;
	margin-top: 1.25em;
	margin-bottom: .42em;
	color: var(--otsikkovari);
}
h5 {
	font-size: 1em;
	font-weight: 600;
	margin-top: 1.5em;
	margin-bottom: .5em;
	color: var(--otsikkovari);
}
h6 {
	font-size: .85em;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-top: 1.76em;
	margin-bottom: .59em;
}
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
	margin-top: 0;
}
h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child, h6:last-child {
	margin-bottom: 0;
}


/*** ol ***/
ol.pallo, ol.viiva, ol.abc, ol.nro, ol.tyhja, ol.merkki {
	position: relative;
	margin: .5em 0 1em;
	padding: 0;
	list-style: none;
}
ol > li {
	margin: 0 0 .5em;
	padding: 0 0 0 1em;
}
ol.tyhja > li {
	padding: 0;
}
ol.pallo > li::before {
	content: '•';
	font-weight: bold;
	color: var(--paavari);
	position: absolute;
	left: .25em;
} 
ol.viiva > li::before {
	content:'–';
	position: absolute;
	left: .15em;
}
ol.merkki > li::before {
	content: attr(data-merkki);
	position: absolute;
	left: .25em;
}
ol.pallo:first-child, ol.viiva:first-child, ol.abc:first-child, ol.nro:first-child, ol.tyhja:first-child, ol.merkki:first-child {
	margin-top: 0;
}
ol.pallo:last-child, ol.viiva:last-child, ol.abc:last-child, ol.nro:last-child, ol.tyhja:last-child, ol.merkki:last-child {
	margin-bottom: 0;
}
ol > li:last-child {
	margin-bottom: 0;
}
ol ol.pallo {
	margin: 0;
}
ol ol.pallo > li,
ol ol.pallo > p {
	margin-top: 0;
	margin-bottom: 0;
}
ol.abc {
	counter-reset: ol-abc-counter;
}
ol.abc ol.abc {
	counter-reset: ol-abc2-counter;
}
ol.abc ol.abc ol.abc {
	counter-reset: ol-abc3-counter;
}
ol.nro {
	counter-reset: ol-nro-counter;
}
ol.nro ol.nro {
	counter-reset: ol-nro2-counter;
}
ol.nro ol.nro ol.nro {
	counter-reset: ol-nro3-counter;
}
ol.abc > li::before,
ol.nro > li::before {
	position: absolute;
	left: .75em;
	transform: translateX(-100%);
	font-weight: 600;
	font-style: normal;
}
ol.abc > li::before {
	content: counter(ol-abc-counter, lower-latin) ')';
	counter-increment: ol-abc-counter;
}
ol.abc ol.abc > li::before {
	content: counter(ol-abc2-counter, lower-latin) ')';
	counter-increment: ol-abc2-counter;
}
ol.abc ol.abc ol.abc > li::before {
	content: counter(ol-abc3-counter, lower-latin) ')';
	counter-increment: ol-abc3-counter;
}
ol.nro > li::before {
	content: counter(ol-nro-counter, decimal) '.';
	counter-increment: ol-nro-counter;
	color: var(--paavari);
}
ol.nro ol.nro > li::before {
	content: counter(ol-nro2-counter, decimal) '.';
	counter-increment: ol-nro2-counter;
}
ol.nro ol.nro ol.nro > li::before {
	content: counter(ol-nro3-counter, decimal) '.';
	counter-increment: ol-nro3-counter;
}


/* ol.ABC > li::before {
	text-transform: uppercase;
	font-weight: normal;
} */


/*** p ***/
p {
	margin: .5em 0;
	padding: 0;
}
p:first-child {
	margin-top: 0;
}
p:last-child {
	margin-bottom: 0;
}


/*** a ***/
a {
	color: var(--paavari);
	font-weight: 500;
	white-space: normal;
	text-decoration: underline;
	cursor: pointer;
}
html.no-touch a:hover{
	color: #000;
}
a.disabled {
	color: var(--harmaa);
	pointer-events: none;
}
.a-svg-kuvake {
	display: inline-block;
	width: .8em;
	height: .8em;
	margin-left: .25em;
}
.a-svg-kuvake svg {
	width: 100%;
	height: 100%;
	transform: translateY(.05em);
}

/*** tehtavananto ***/
.tehtavananto {
	font-weight: 500;
}


/*** vastaus ***/
.vastaus {
	font-style: italic;
	color: #777777;
}


/*** valilehdet ***/
.valilehdet {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	z-index: 1;
	gap: 8px;
	pointer-events: none;
}
.valilehti {
	font-family: var(--leipafontti);
	font-weight: bold;
	font-size: 17px;
	border-radius: .5em;
	padding: .2em 1em;
	min-height: 2em;
	color: var(--paavari);
	background-color: var(--paavari-vaalea);
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: all;
}
.valilehti.selected,
html.no-touch .valilehti:not(.disabled):not(.selected):hover {
	color: #fff;
	background-color: var(--paavari);
}
.valilehti.disabled:not(.selected) {
	color: var(--harmaa) !important;
	background-color: var(--harmaa-vaalea) !important;
	pointer-events: none !important;
}
.valilehti.selected {
	pointer-events: none;
}
.valilehti.selected.disabled {
	opacity: .75;
}


/*** FLEX ***/
.flex-r {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}
.flex-c {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}


/*** * ***/
*[contenteditable="true"] {
	cursor: text;
	-webkit-user-select: text;
	user-select: text;
}
*[data-aani],
*[data-kaiutin],
*[data-aikakohta] {
	cursor: pointer !important;
}
*[data-aikakohta]:not(.nappi).kaiutin::after {
	content: '';
	position: absolute;
	top: 0em;
	left: 0em;
	width: 1.5em;
	height: 1.5em;
	background-image: url(images/nappi/kuuntele.png);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}


/*** container ***/
#container {
	position: relative;
	margin: 0 auto;
	max-width: 100vw;
	overflow: hidden;
	font-size: 20px;
	cursor: default;
	-webkit-user-select: none;
	user-select: none;
}
html.preloader #container > *:not(#suljeIkkunaB) {
	visibility: hidden;
}


/*** painikkeet ***/
.painikkeet,
#painikkeet {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
	gap: .4em;
}
.painikkeet > *:not(.disabled),
#painikkeet > *:not(.disabled) {
	pointer-events: all;
}
#container > #painikkeet {
	position: absolute;
	left: 1em;
	right: 1em;
	bottom: 1em;
	z-index: 10000;
}
html.fixed.scrollX #container > #painikkeet {
	margin-bottom: 18px;
}
html.fixed.scrollY #container > #painikkeet {
	margin-right: 18px;
}
/*html:not(.fixed) #container > #painikkeet {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	padding: .3em .4em .5em;
}*/
html:not(.fixed) #container > #painikkeet:empty {
	padding: 0;
}


/*** eteneminen ***/
#container > #eteneminen {
	position: absolute;
	z-index: 10000;
}


/*** copy ***/
*[data-copy]:not([data-copy=""])::after {
	content: attr(data-copy);
	position: absolute;
	bottom: .5em;
	left: .5em;
	font-size: .5em;
	color: #000;
	text-align: left;
	font: var(--leipateksti);
	pointer-events: none;
}


/*** puhekupla ***/
.puhekupla {
	position: relative;
	display: inline-block;
	padding: 1em;
	border-radius: .5em;
	background-color: #E2E2E2;
	text-align: center;
}
.puhekupla.valkoinen {
	background-color: #fff;
}
.puhekupla::after {
	content: '';
	position: absolute;
	z-index: -1;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 1.5em .5em 0 .5em;
	border-color: #E2E2E2 transparent transparent;
	left: 2em;
	bottom: -1.25em;
	transform: rotate(10deg);
}
.puhekupla.valkoinen::after {
	border-color: #fff transparent transparent;
}
.puhekupla.oikea::after {
	left: auto;
	right: 2em;
	transform: rotate(-10deg);
}
.puhekupla.sivu::after {
	left: -1em;
	bottom: .1em;
	transform: rotate(72deg);
}
.puhekupla.sivu.oikea::after {
	left: auto;
	right: -1em;
	bottom: .1em;
	transform: rotate(-72deg);
}
.puhekupla.sivu.keskella::after {
	bottom: calc(50% - 1em);
}
.puhekupla[data-aani],
.puhekupla[data-kaiutin],
.puhekupla[data-aikakohta] {
	background-image: url(images/nappi/kuuntele_musta.png);
	background-size: 1em;
	background-position: left .1em top .1em;
	background-repeat: no-repeat;
}


/*** ilmoitus ***/
.ilmoitus {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,.3);
	z-index: 1000;
	font-size: 20px;
}
.ilmoitus-wrapper {
	padding: .25em;
	border-radius: .5em;
	background-color: #FFF;
	max-width: 20em;
	width: calc(100% - 2em);
	max-height: calc(100% - 2em);
	overflow: hidden;
}
.ilmoitus-sisalto {
	padding: 2em;
	overflow: auto;
    max-height: 100%;
}
.ilmoitus-sisalto::-webkit-scrollbar {
	width: 2px;
	height: 2px;
	border-radius: 1px;
}
.ilmoitus-sisalto::-webkit-scrollbar-track {
	background: #FFFFFF;
}
.ilmoitus-sisalto::-webkit-scrollbar-thumb {
	background: var(--harmaa-vaalea2);
}
.ilmoitus-sisalto::-webkit-scrollbar-thumb:hover {
	background: var(--harmaa-vaalea2);
} 
.ilmoitus-suljeB {
	position: absolute;
	right: .5em;
	top: .5em;
}


/*** div-zoom ***/
.div-zoom {
	
}
.div-zoom-wrapper {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: auto;
}
.div-zoom-content {
	position: absolute;
	width: 100%;
	height: 100%;
}
.div-zoom:not([data-zoom="1"]):not(.dragging) .div-zoom-content {
	cursor: move;
	cursor: grab;
}
.div-zoom.dragging .div-zoom-content {
	cursor: move;
	cursor: grabbing;
}
.div-zoom-buttons {
	position: absolute;
	left: .75em;
	bottom: .75em;
	display: flex;
	flex-direction: column;
}
.nappi.div-zoom-b {
	width: 1.25em !important;
	min-width: 0 !important;
	height: 1.25em !important;
	line-height: 1.25 !important;
}
.nappi.div-zoom-b:not(:last-child) {
	margin-bottom: .2em;
}


/*** virhe ***/
virhe {
	display: block;
	color: red;
	font-weight: bold;
	border: 2px solid;
	padding: .25em;
	margin: .5em auto;
}


/*** ELEMENTIT ****************************************************************/

/*** NÄPPÄIMISTö ***/
.nappaimisto-toggleB {
	order: 100;
}
html[data-nappaimisto] #harjoituspohja-sisalto {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
#nappaimisto {
	flex: 0 1 auto;
	padding: .9em;
}
html[data-nappaimisto="numerot"] #nappaimisto-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	max-height: 4em;
}
html[data-nappaimisto="numerot"] #nappaimisto svg {
	width: 100%;
	height: 100%;
}
.nappaimistomerkki {
	cursor: pointer;
}
.nappaimistomerkki.click .nappaimistomerkki-tausta path {
	fill: var(--paavari);
}


/*** SELECT ***/
select {
	font-family: var(--leipafontti);
	font-size: 1em;
	padding: .25em 1.25em .25em .5em;
	cursor: pointer;
	color: var(--painike2-vari);
	border-radius: .5em;
	border: none;
	background-color: var(--painike2-taustavari);
	background-image: url(images/nappi/alas_musta.png);
	background-position: right center;
	background-repeat: no-repeat;
	background-size: auto 75%;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
}
select.lukittu,
select.disabled {
	background-image: none;
	pointer-events: none;
}
select.disabled {
	color: var(--painike2-vari-disabled);
}
option {
	padding: 0 !important;
	background-color: #fff !important;
	font-size: 17px;
	color: var(--musta);
	font-family: "inter", sans-serif;

	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
option[disabled="disabled"] {
	color: var(--harmaa);
}


/*** TEXTAREA ***/
textarea {
	font-size: 1em;
	padding-left: .25em;
	padding-right: .25em;
	font-family: var(--leipateksti);
	border: 2px solid var(--paavari-vaalea);
	border-radius: .25em;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
}
textarea[readonly] {
	cursor: default;
}


/*** RANGE ***/
input[type="range"].range {
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: .5em;
	background: none;
}
input[type="range"].range:focus {
	outline: none;
}
input[type="range"].range::-webkit-slider-runnable-track {
	width: 100%;
	height: 1em;
	cursor: pointer;
	background: #666;
	border-radius: 1em;
}
input[type="range"].range:hover::-webkit-slider-runnable-track,
input[type="range"].range:focus::-webkit-slider-runnable-track,
input[type="range"].range:active::-webkit-slider-runnable-track {
	background: #333;
}
input[type="range"].range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 1em;
	height: 1em;
	border: 1px solid #666;
	border-radius: 1em;
	background: #fff;
	cursor: pointer;
}
input[type="range"].range::-moz-range-track {
	width: 100%;
	height: 1em;
	cursor: pointer;
	background: #666;
	border-radius: 1em;
}
input[type="range"].range:hover::-moz-range-track,
input[type="range"].range:focus::-moz-range-track,
input[type="range"].range:active::-moz-range-track {
	background: #333;
}
input[type="range"].range::-moz-range-thumb {
	width: 1em;
	height: 1em;
	border: 1px solid #666;
	border-radius: 1em;
	background: #fff;
	cursor: pointer;
}
input[type="range"].range::-moz-focus-inner,
input[type="range"].range::-moz-focus-outer {
	border: none;
}
input[type="range"].range::-ms-track {
	width: 100%;
	height: 1em;
	cursor: pointer;
	color: transparent;
	background: #666;
	border-radius: 1em;
	border: none;
}
input[type="range"].range::-ms-fill-lower {
	display: none;
}
input[type="range"].range::-ms-fill-upper {
	display: none;
}
input[type="range"].range::-ms-thumb {
	width: 1em;
	height: 1em;
	border: 1px solid #666;
	border-radius: 1em;
	background: #fff;
	cursor: pointer;
}
input[type="range"].range::-ms-tooltip {
	display: none;
}
input[type="range"].range:hover::-ms-track,
input[type="range"].range:focus::-ms-track,
input[type="range"].range:active::-ms-track {
	background: #333;
}


/***/
#suljeIkkunaB {
	position: fixed;
	right: .8em;
	top: .8em;
	color: var(--nappi-suljeikkuna-vari) !important;
	z-index: 10000;
}
html.scrollY #suljeIkkunaB {
	margin-right: 18px;
}
html.no-touch #suljeIkkunaB:not(.disabled):not(.selected):hover {
	color: #000 !important;
}
#harjoituspohja-sisalto #suljeIkkunaB {
	position: absolute;
	margin-right: 0 !important;
}
#harjoituspohja-sisalto.scrollY #suljeIkkunaB {
	margin-right: 18px !important;
}


/*Alku*/
@font-face {
	font-family: 'Alku';
	src: url('https://iioppi.qridi.fi/fonts/Alku-Laiha.woff2') format('woff2');
	font-weight: 300;
}
@font-face {
	font-family: 'Alku Laiha';
	src: url('https://iioppi.qridi.fi/fonts/Alku-Laiha.woff2') format('woff2');
	font-weight: 300;
}
@font-face {
	font-family: 'Alku-Laiha';
	src: url('https://iioppi.qridi.fi/fonts/Alku-Laiha.woff2') format('woff2');
	font-weight: 300;
}
@font-face {
	font-family: 'Alku';
	src: url('https://iioppi.qridi.fi/fonts/Alku-Normaali.woff2') format('woff2');
	font-weight: normal;
}
@font-face {
	font-family: 'Alku Normaali';
	src: url('https://iioppi.qridi.fi/fonts/Alku-Normaali.woff2') format('woff2');
	font-weight: normal;
}
@font-face {
	font-family: 'Alku-Normaali';
	src: url('https://iioppi.qridi.fi/fonts/Alku-Normaali.woff2') format('woff2');
	font-weight: normal;
}
@font-face {
	font-family: 'Alku';
	src: url('https://iioppi.qridi.fi/fonts/Alku-Lihava.woff2') format('woff2');
	font-weight: bold;
}
@font-face {
	font-family: 'Alku Lihava';
	src: url('https://iioppi.qridi.fi/fonts/Alku-Lihava.woff2') format('woff2');
	font-weight: bold;
}
@font-face {
	font-family: 'Alku-Lihava';
	src: url('https://iioppi.qridi.fi/fonts/Alku-Lihava.woff2') format('woff2');
	font-weight: bold;
}
svg [name="Alku_Lihava"] tspan {
	font-weight: bold !important;
}
*[data-alku-fontti],
.alku-fontti,
.alku-fontti * {
	-moz-font-feature-settings: normal !important;
	-webkit-font-feature-settings: normal !important;
	font-feature-settings: normal !important;
}


/*** HARJOITUSPOHJA ***/
html.harjoituspohja {
	background-image: var(--taustapattern);
	background-attachment: fixed;
	background-position: top left;
	background-repeat: repeat;
	background-size: 300px auto;
}
#harjoituspohja {
	display: flex;
	flex-direction: row;
	justify-content: center;
	width: 100%;
	height: 100%;
}
#harjoituspohja-sisalto {
	flex: 1 1 100%;
	height: 100%;
}
#harjoituspohja-sisalto:empty {
	display: none;
}
#harjoituspohja-toiminnot {
	flex: 1 1 20em;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1em;
	padding: 1.25em 1.5em;
	background-color: #fff;
}
#harjoituspohja-toiminnot:empty {
	display: none;
}
#harjoituspohja-toiminnot > *:not(#painikkeet) {
	order: 0;
}
#harjoituspohja-toiminnot > *:nth-child(2) {
	flex: 1 1 100%;
}


/***/
#harjoituspohja-toiminnot #painikkeet {
	order: 1;
	width: 100%;
	align-content: flex-end;
}
#harjoituspohja-toiminnot #painikkeet > .painike {
	width: 100%;
}
#harjoituspohja-toiminnot #painikkeet > .painike:not(.toggle) {
	padding: 0;
}
#painikkeet-toggle-container {
	align-items: flex-start;
	flex-direction: column-reverse;
	gap: .4em;
	width: 100%;
}
#painikkeet-toggle-container:not(:last-child):not(:empty):not(.ei-valia) {
	margin-bottom: .6em;
}


/***/
#harjoituspohja-toiminnot #eteneminen {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	flex-direction: column;
}


/***/
#harjoituspohja-sisalto {
	/* display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center; */
}


/***/
#otsake h1 {
	margin-bottom: 0;
}
#otsake h3 {
	white-space: nowrap;
}
#otsake #tehtavananto {
	margin-top: 1em;
}
#otsake h1:nth-child(2) {
	margin-top: -0.25em;
}
#otsake h3:first-child {
	margin-right: 2em;
}


/*** PALAUTE ***/
#palaute {
	position: absolute;
	bottom: 3em;
	right: 0;
	align-items: flex-end;
	justify-content: flex-end;
	width: 100%;
}
#container > #palaute {
	width: auto;
}
#palaute-puhekupla * {
	-moz-font-feature-settings: normal !important;
	-webkit-font-feature-settings: normal !important;
	font-feature-settings: normal !important;
}
#palaute-puhekupla {
	margin: 0 auto;
	z-index: 1;
}
#palaute-puhekupla-wrapper {
	width: 10em;
	font-family: Alku;
	background-color: var(--paavari-taustavari);
}
#palaute-puhekupla-wrapper::after {
	transform: rotate(-45deg);
	bottom: -.9em;
	border-color: var(--paavari-taustavari) transparent transparent;
}
#palaute-hahmo {
	aspect-ratio: 25 / 35;
	height: 10em;
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: contain;
	/* position: absolute; */
}
#palaute.palaute-oikein #palaute-hahmo {
	background-image: url(../src/kuvat/palaute/hienosti_meni.png);
}
#palaute.palaute-vaarin #palaute-hahmo {
	background-image: url(../src/kuvat/palaute/mieti_viela.png);
}


/*** DIAT ***/
#diat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
}
.dia-piilossa {
	display: none !important;
}
html.mobile #diat {
	padding: 0 1em;
}
html.harjoitellaan-yhdessa .dia.autosize {
	padding: 15px;
}


/*** EUROT ***/
.euro {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}
/* .euro[data-euro="0.05"] {
	width: 1.2em;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background-image: url(../src/kuvat/eurot/snt05.png);
}
.euro[data-euro="0.10"]{
	width: 1.1em;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background-image: url(../src/kuvat/eurot/snt10.png);
}
.euro[data-euro="0.20"]{
	width: 1.25em;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background-image: url(../src/kuvat/eurot/snt20.png);
}
.euro[data-euro="0.50"]{
	width: 1.35em;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background-image: url(../src/kuvat/eurot/snt50.png);
} */
.euro[data-euro="1"]{
	width: 2.6em;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background-image: url(../src/kuvat/eurot/eur001.png);
}
.euro[data-euro="2"]{
	width: 2.9em;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background-image: url(../src/kuvat/eurot/eur002.png);
}
.euro[data-euro="5"]{
	width: 4.5em;
	aspect-ratio: 726 / 450;
	background-image: url(../src/kuvat/eurot/eur005.png);
}
.euro[data-euro="10"]{
	width: 4.5em;
	aspect-ratio: 726 / 450;
	background-image: url(../src/kuvat/eurot/eur010.png);
}
.euro[data-euro="20"]{
	width: 4.5em;
	aspect-ratio: 726 / 450;
	background-image: url(../src/kuvat/eurot/eur020.png);
}
.euro[data-euro="50"]{
	width: 4.5em;
	aspect-ratio: 726 / 450;
	background-image: url(../src/kuvat/eurot/eur050.png);
}
.euro[data-euro="100"]{
	width: 4.5em;
	aspect-ratio: 726 / 450;
	background-image: url(../src/kuvat/eurot/eur100.png);
}

/*** KORTTI ***/
.kortti[data-kortti] {
	width: 2em;
	aspect-ratio: 164 / 198;
	border: .1em solid var(--musta);
	background-color: #FFF;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}
.kortti[data-kortti="0"] { background-image: url(../src/kuvat/kortit_matematiikka/nk0.png); }
.kortti[data-kortti="1"] { background-image: url(../src/kuvat/kortit_matematiikka/nk1.png); }
.kortti[data-kortti="2"] { background-image: url(../src/kuvat/kortit_matematiikka/nk2.png); }
.kortti[data-kortti="3"] { background-image: url(../src/kuvat/kortit_matematiikka/nk3.png); }
.kortti[data-kortti="4"] { background-image: url(../src/kuvat/kortit_matematiikka/nk4.png); }
.kortti[data-kortti="5"] { background-image: url(../src/kuvat/kortit_matematiikka/nk5.png); }
.kortti[data-kortti="6"] { background-image: url(../src/kuvat/kortit_matematiikka/nk6.png); }
.kortti[data-kortti="7"] { background-image: url(../src/kuvat/kortit_matematiikka/nk7.png); }
.kortti[data-kortti="8"] { background-image: url(../src/kuvat/kortit_matematiikka/nk8.png); }
.kortti[data-kortti="9"] { background-image: url(../src/kuvat/kortit_matematiikka/nk9.png); }

.kortti[data-kortti="lkm1"] { background-image: url(../src/kuvat/kortit_matematiikka/lk1.png); }
.kortti[data-kortti="lkm2"] { background-image: url(../src/kuvat/kortit_matematiikka/lk2.png); }
.kortti[data-kortti="lkm3"] { background-image: url(../src/kuvat/kortit_matematiikka/lk3.png); }
.kortti[data-kortti="lkm4"] { background-image: url(../src/kuvat/kortit_matematiikka/lk4.png); }
.kortti[data-kortti="lkm5"] { background-image: url(../src/kuvat/kortit_matematiikka/lk5.png); }
.kortti[data-kortti="lkm6"] { background-image: url(../src/kuvat/kortit_matematiikka/lk6.png); }
.kortti[data-kortti="lkm7"] { background-image: url(../src/kuvat/kortit_matematiikka/lk7.png); }
.kortti[data-kortti="lkm8"] { background-image: url(../src/kuvat/kortit_matematiikka/lk8.png); }
.kortti[data-kortti="lkm9"] { background-image: url(../src/kuvat/kortit_matematiikka/lk9.png); }
.kortti[data-kortti="lkm10"] { background-image: url(../src/kuvat/kortit_matematiikka/lk10.png); }

.kortti[data-kortti="yhta_kuin"] { background-image: url(../src/kuvat/kortit_matematiikka/ltm_yk.png); }
.kortti[data-kortti="plus"] { background-image: url(../src/kuvat/kortit_matematiikka/ltm_plus.png); }
.kortti[data-kortti="minus"] { background-image: url(../src/kuvat/kortit_matematiikka/ltm_minus.png); }
.kortti[data-kortti="pienempi_kuin"] { background-image: url(../src/kuvat/kortit_matematiikka/ltm_pk.png); }
.kortti[data-kortti="suurempi_kuin"] { background-image: url(../src/kuvat/kortit_matematiikka/ltm_sk.png); }


/***/
symboli_yhdysluokka {
	display: inline-block;
	min-width: 1.75em;
	color: transparent;
}
symboli_yhdysluokka::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 1.75em;
	height: 1.75em;
	transform: translateY(-50%);
	background-image: url(../src/kuvat/symbolit/symboli_yhdysluokka.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

symboli_kruunu {
	display: inline-block;
	min-width: 1.6em;
	color: transparent;
}
symboli_kruunu::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 1.6em;
	height: 1.75em;
	transform: translateY(-50%);
	background-image: url(../src/kuvat/symbolit/symboli_kruunu.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

symboli_tahti {
	display: inline-block;
	min-width: 1.6em;
	color: transparent;
}
symboli_tahti::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 1.6em;
	height: 1.75em;
	transform: translateY(-50%);
	background-image: url(../src/kuvat/symbolit/symboli_tahti.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

symboli_timantti {
	display: inline-block;
	min-width: 1.6em;
	color: transparent;
}
symboli_timantti::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 1.6em;
	height: 1.75em;
	transform: translateY(-50%);
	background-image: url(../src/kuvat/symbolit/symboli_timantti.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}