/*Computer Modern Serif-fontit */
/*normiteksti*/
@font-face {
	font-family: 'Computer Modern Serif';
	font-style: normal;
	font-weight: normal;
	src: url('https://www.lemma.fi/pages/fonts/latinmodern-math.woff') format('woff'),
	local('Times');
	unicode-range: U+0000-2100, U+2150-1F003;
	font-display: swap;
}

/*emojit ja muut erikoismerkit timesilla*/
@font-face {
	font-family: 'Computer Modern Serif';
	font-style: normal;
	font-weight: normal;
	src: local('Times');
	unicode-range: U+1F004-1FFFF;
}

/*bold*/
@font-face {
	font-family: 'Computer Modern Serif';
	font-style: normal;
	font-weight: bold;
	ascent-override: 80.6%;
	src: url('https://www.lemma.fi/pages/fonts/cmunbx.ttf') format('truetype'),
	local('Times');
	unicode-range: U+0000-03B7, U+03B9-1F003;
	font-display: swap;
}

/*bold equals, not identical, theta, emojit */
@font-face {
	font-family: 'Computer Modern Serif';
	font-style: normal;
	font-weight: bold;
	ascent-override: 80.6%;
	src: local('Cambria Math'), local('Times');
	unicode-range: U+003D, U+2249, U+2262, U+226E-2271, U+1F004-1FFFF;
}


/*italic*/
@font-face {
	font-family: 'Computer Modern Serif';
	font-style: italic;
	font-weight: normal;
	ascent-override: 80.6%;
	src: url('https://www.lemma.fi/pages/fonts/cmunti.woff2') format('woff2'),
	local('Times');
	unicode-range: U+0000-036F, U+0400-1F003;
	font-display: swap;
}

/*kreikkalaiset slantted*/
@font-face {
	font-family: 'Computer Modern Serif';
	font-style: italic;
	font-weight: normal;
	src: url('https://www.lemma.fi/pages/fonts/cmunsl.woff2') format('woff2'),
	local('Times');
	unicode-range: U+0370-03B7, U+03B9-03FF;
	font-display: swap;
}

/*italic not equal, not identical */
@font-face {
	font-family: 'Computer Modern Serif';
	font-style: italic;
	font-weight: normal;
	src: local('Cambria Math'), local('Times');
	unicode-range: U+03B8, U+2249, U+2260, U+2262, U+2270, U+2271, U+1F004-1FFFF;
}

/*italic bold*/
@font-face {
	font-family: 'Computer Modern Serif';
	font-style: italic;
	font-weight: bold;
	ascent-override: 80.6%;
	src: url('https://www.lemma.fi/pages/fonts/cmunbi.woff2') format('woff2'),
	local('Times');
	unicode-range: U+0000-03B7, U+03B9-1F003;
	font-display: swap;
}


/*italic bold not equal, not identical*/
@font-face {
	font-family: 'Computer Modern Serif';
	font-style: italic;
	font-weight: bold;
	ascent-override: 80.6%;
	src: local('Cambria Math'), local('Times');
	unicode-range: U+003D, U+03B8, U+2249, U+2260, U+2262, U+2270, U+2271, U+1F004-1FFFF;
}

a {
    background-color: transparent;
	color: #339900;
	cursor: pointer;
}

.js_enabled #cookie-message {
    display: none;
    z-index: 90;
}

#cookie-message {
    background-color: #d5e6ed;
    position: absolute;
    color: #662d91;
    left: 2%;
    right: 2%;
    margin: 0 auto;
    padding: 1em;
    top: 70px;
    z-index: 1;
}

html {
    height: 100%;
    width: 100%;
    overflow-x: hidden !important;
}

body {
    background-image: none;
	background-color: #AFDBF5;
    color: black;
    font-family: "Times";
    font-size: 16px;
	line-height: 1.15;
    margin: 0 auto;
    min-width: 320px;
    width: 96%;
    left: 2%;
    right: 2%;
    overflow-x: hidden !important;
    overflow-y: auto;
}

::-moz-selection {
/* Code for Firefox */
background: rgba(0,0,255,0.99);
color: white;
}

::selection {
background: rgba(0,0,255,0.99);
color: white;
}


#otsake {
background-color: darkblue;
border-style: none;
color: #FFFFFF;
height: 70px;
margin: 0;
min-width: 320px;
padding: 0;
position: fixed;
top: 0;
width: 96%;
z-index: 51;
}

.ikonit {
display: flex;
float: left;
font-size: 32px;
height: 40px;
margin: 0;
padding: 0;
align-items: center;
text-decoration: none;
}

.ikoniosa {
cursor: pointer;
min-width: 20px;
overflow: hidden;
}

.ikoniosa:hover {
background-color: #D0D0D0;
}

.ikoniosa a {
color: #FFFFFF;
}

.ikoniosa a:visited {
color: #FFFFFF;
}

.ikoniteksti {
color: #FFFFFF;
cursor: pointer;
display: block;
font-size: 28px;
height: 36px;
text-align: center;
text-decoration: none;
vertical-align: bottom;
width: 100%;
}

#kielivalikko {
align-items: center;
display: flex;
float: left;
height: 40px;
justify-content: center;
max-width: 70px;
margin: 0 2px;
min-width: 70px;
text-align: center;
text-decoration: none;
width: 70px;
}

#kielivalikko:hover {
background-color: darkblue;
}

#otsake a:hover {
    background-color: #D0D0D0;
}

#ylaotsikko {
	background: linear-gradient(to bottom, yellow, orange);
	background-clip: text;
    color: transparent;
    font-size: 32px;
    height: 40px;
    left: 50%;
    overflow: hidden;
    position: absolute;
    text-align: center;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

#ylaotsikkolyhyt {
	background: linear-gradient(to bottom, yellow, orange);
	background-clip: text;
    color: transparent;
    font-size: 24px;
    height: 40px;
    left: 50%;
    overflow: hidden;
    position: absolute;
    display: none;
    text-align: center;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

@media only screen and (max-width: 420px) {
    /* For mobile phones: */ #ylaotsikko {
        display: none;
    }

    #ylaotsikkolyhyt {
        display: inline-block;
    }
}

@media only screen and (max-width: 620px) {
    /* For mobile phones: */ #ylaotsikko {
        display: none;
    }

    #ylaotsikkolyhyt {
        display: inline-block;
    }
}

@media only screen and (max-width: 820px) {
    /* For mobile phones: */ #ylaotsikko {
        left: 55%;
    }
}

#pisteet {
font-size: 28px;
height: 40px;
overflow: hidden;
padding: 0 4px;
position: absolute;
right: 60px;
text-align: right;
top: 2px;
white-space: nowrap;
width: 10%;
}

#pistenro {
background: linear-gradient(to bottom, yellow, orange);
background-clip: text;
color: transparent;
}

#profiili {
	border-left: 1px solid white;
    display: inline-block;
    font-size: 32px;
    height: 40px;
    overflow: visible;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    white-space: nowrap;
    width: 60px;
}

#kirjaudu {
	background-color: /*#FFFFFF*/;
    display: inline-block;
    font-size: 35px;
    height: 40px;
    overflow: visible;
    padding: 0 2px;
    position: absolute;
    right: 0;
    text-align: right;
    top: 0;
    vertical-align: middle;
    white-space: nowrap;
}

#kirjaudu a {
    color: darkblue;
}


#profiili:hover, kirjaudu:hover {
	background-color: #D0D0D0;
    cursor: pointer;
}

.profiili-sisalto {
    display: none;
    position: absolute;
}

#profiili:hover .profiili-sisalto, #profiili:active .profiili-sisalto {
    display: block;
    position: absolute;
    right: 0;
    top: 40px;
}

#aloitusnappula {
    display: none;
}

#lopetusnappula {
    display: none;
}

/*profiilin solut*/
#p1 {
    background-color: darkblue;
    float: left;
	position: relative;
    text-align: left;
    width: 100%;
	z-index: 1;
}

#p2 {
    background-color: darkblue;
    clear: left;
    float: left;
    text-align: left;
    width: 100%;
}

#p1 a, #p2 a {
    color: #FFFFFF;
    display: inline-block;
    width: 100%;
}

.ikonikasa {
cursor: pointer;
display: none;
float: left;
}

.ikonikasa :hover {
background-color: #D0D0D0;
}

@media only screen and (max-width: 620px) {
    /* For mobile phones: */ #profiili, #profiili:hover .profiili-sisalto, #profiili:active .profiili-sisalto {
        right: 0;
    }

   #pisteet {
        display: none;
    }

   .ikoniosa {
        display: none;
    }

   .ikonikasa {
        display: inline-block;
    }
	
	.alaotsikko {
		width: 0;
		display: none;
	}
}

#ikoniLaja {
    color: #FFFFFF;
    cursor: pointer;
    display: none;
    font-size: 18px;
    left: 2%;
    overflow-y: auto;
    position: fixed;
    top: 70px;
    width: 40px;
}

.piilotettumenu {
    background-color: darkblue;
    color: #FFFFFF;
    cursor: pointer;
    display: none;
    font-size: 18px;
    left: 2%;
    overflow-y: auto;
    position: fixed;
    top: 70px;
}

.piilo a {
    color: #FFFFFF;
    display: inline-block;
    width: 100%;
    border-top: 1px solid white;
}

.piilo a:hover {
    background-color: #D0D0D0;
}


#otsikkoalarivi {
border-top: 1px solid white;
display: flex;
flex-direction: row;
font-size: 18px;
height: 30px;
justify-content: center;
left: 0;
position: absolute;
top: 40px;
width: 100%;
}

.alaotsikko {
align-self: baseline;
background-color: darkblue;
border-bottom: 1px solid white;
border-left: 1px solid white;
text-align: center;
text-wrap: nowrap;
overflow: hidden;
width: 100%;
}

.alaotsikko:nth-child(2) {
border-left: none;
}

.otsikkolink {
background-color: darkblue;
color: #FFFFFF;
cursor: pointer;
display: inline-block;
height: 29px;
line-height: 1.5;
width: 100%;
}

.toend {
	display: inline-flex;
	float: right;
	margin-right: 2px;
}

[lang=en], [lang=fi] {
    visibility: hidden;
}

.muutotsikot {
    display: none;
}

#mallivastauspaikka {
display: none;
padding: 2px 0;
}

.mallidiv {
    padding-bottom: 0.5em;
    padding-top: 0.5em;
}

#kommentit {
    display: none;
    padding: 4px 0;
}

#fommentit {
    display: none;
    padding: 4px 0;
}

#sisalto {
    background-color: #FFFFFF;
    background-size: 100%;
    background-repeat: repeat;
    border-style: none;
    border-width: 0;
    display: block;
    font-family: "Computer Modern Serif";
    font-size: 16px;
    letter-spacing: 0;
    margin-bottom: 0;
    top: 70px;
    position: absolute;
    min-width: 310px;
    overflow-x: auto;
    padding: 0 0.5% 20px 0.5%;
    left: 2%;
    right: 2%;
}

#alake {
    background-color: darkblue;
    border-style: none;
	color: #FFFFFF;
    font-size: 16px;
    height: 20px;
    left: 0;
    margin: 0;
    min-width: 310px;
    padding: 0;
    position: absolute;
    right: 0;
    text-align: center;
    width: 100%;
}

#huom {
    color: red;
    font-size: 32px;
}

.center {
    margin: 0 auto;
    width: 50%;
}

.keskita {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
}

.autokoko {
    height: auto;
    width: auto;
}

.keskitasata {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.face {
    background-color: #FFFFFF;
    height: 18px;
    padding: 1px;
    position: absolute;
    right: 10px;
    vertical-align: middle;
    width: 18px;
}

p {
    color: black;
    font-size: 20px;
    text-align: left;
}

h1 {
    color: #000000;
    font-size: 32px;
    margin: 0.67em 0;
    text-align: center;
}

h2 {
    color: #000000;
    font-size: 28px;
    text-align: center;
}

h3 {
    color: #000000;
    font-size: 24px;
    text-align: center;
}

h4 {
    color: #000000;
    font-size: 24px;
    text-align: left;
}

h5 {
    color: #000000;
    font-size: 20px;
    margin-bottom: 2px;
    margin-top: 2px;
    text-align: left;
}

h6 {
    color: #000000;
    font-size: 20px;
    margin-bottom: 2px;
    margin-top: 2px;
    text-align: center;
}

form {
    display: block;
    margin-top: 0;
    margin-block-end: 0; }

table {
    background-color: #D0D0D0;
    border-color: #000000;
    border-style: solid;
    border-width: 1px;
    margin: auto;
    padding: 1px;
    text-align: center;
}

th,td {
    background-color: #FFFFFF;
    border-color: #000000;
    border-style: solid;
    border-width: 1px;
    padding: 0;
    text-align: center;
}

.cms {
    font-family: "Computer Modern Serif";
}

.collapse {
    border-collapse: collapse;
}

.sisasolu {
    padding-left: 5px;
    padding-right: 5px;
}

.mittatulokset1 {
    width: 50px;
}

.mittatulokset2 {
    width: 90px;
}

li {
    color: black;
    font-size: 20px;
    text-align: left;
}

img {
    background-color: #FFFFFF;
}

button, input[type=button], input[type=submit] {
    background-color: #FFFFFF;
    border-color: #909090;
    border-radius: 10px;
    border-style: solid;
    border-width: 5px;
    box-shadow: none;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    line-height: 1.25;
    margin: 0;
    padding: 2px 3px;
}

input[type=button].pieninappula, button.pieninappula {
    background-color: #FFFFFF;
    border-color: #909090;
    border-radius: 8px;
    border-style: solid;
    border-width: 4px;
    box-shadow: none;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    line-height: 1.25;
    margin: 1px 1px;
    max-height: 30px;
    padding: 1px 2px;
}

input[type=button].pieninnappula, button.pieninnappula {
    background-color: #FFFFFF;
    border-color: #909090;
    border-radius: 8px;
    border-style: solid;
    border-width: 3px;
    box-shadow: none;
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    line-height: 1.25;
    margin: 0;
    padding: 1px;
}

input[type=search] {
    border: 1px solid #000000;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    margin: 6px 0;
    padding: 1px 4px;
    vertical-align: middle;
    width: 80px;
}

input[type=text], input[type=email], input[type=password] {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    margin: 8px 0;
    min-width: 240px;
    padding: 8px 4px;
    width: 50%;
	max-width: 400px;
}

button:focus, input[type=button]:focus, input[type=submit]:focus {
    outline: none
}

button:hover, input[type=button]:hover, input[type=submit]:hover {
    border-color: #000000;
}

input[type="checkbox"] {
    background-color: #00FFFF;
    cursor: pointer;
    display: inline-block;
    height: 14px;
    margin: 4px 1px 4px 4px;
    vertical-align: middle;
    width: 14px;
}

input[type=button]:hover {
    border-color: #000000;
}

input[type=number] {
    background-color: #FFFFFF;
    border-color: #000000;
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    box-sizing: border-box;
    padding: 1px 4px;
    vertical-align: middle;
    width: 6em;
}

input[type=number].pistekoko {
    width: 50px;
}

select {
background-color: #FFFFFF;
border-color: #000000;
border-radius: 8px;
border-style: solid;
border-width: 1px;
font-family: inherit;
margin: 0;
padding: 0.1em 0.2em;
text-align: left;
text-transform: none;
vertical-align: baseline;
}

select > option {
font-family: "Computer Modern Serif";
}

.pudotusvalikko {
display: inline-block;
font-size: 20px;
margin: 1px 0 0 1px;
position: relative;
}

.pudotusnappula {
background-color: #ffffff;
color: black;
padding: 1px 26px 1px 4px;
font-size: 16px;
border: none;
cursor: pointer;
border: 1px solid black;
border-radius: 10px;
}

.pudotusnappula:hover {
background-color: lime;
}

/*style the arrow inside the select element:*/
.pudotusnappula:after {
position: absolute;
content: "";
top: 10px;
right: 5px;
width: 0;
height: 0;
border: 6px solid transparent;
border-color: #000000 transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.pudotusnappula.arrow-active:after {
border-color: transparent transparent #000000 transparent;
top: 3px;
}

.pudotusvalinnat {
display: none;
position: absolute;
background-color: #ffffff;
max-height: var(--valikkokorkeus, 620px);
width: 100%;
overflow: auto;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 90;
border-radius: 10px;
}

.pudotusvalinta {
color: black;
padding: 3px;
text-decoration: none;
display: block;
}

.pudotusvalinta:hover {
background-color: #ddd;
}

.nayta {
display: block;
}

a:link, .spanlink {
background-color: transparent;
color: #FF0000;
cursor: pointer;
text-decoration: none;
}

a:visited {
color:#339900;
}

.otsikkolink:visited {
color: #FFFFFF;
}

a:hover {
background-color: #D0D0D0;
color: #339900; 
text-decoration: none;
}

a:active {
background-color: #F0F0F0;
color: #339900; 
text-decoration:none;
}

a.hidden {
display:none;
}

a.t{
color:#FF0000;
}

a.g{
color:#339900;
}


textarea {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
}

.vasemmalla {
clear: both;
float: left;
}

.pointer {
cursor: pointer;
}