@import 'https://fonts.googleapis.com/css?family=Oswald:300|Teko|Contrail+One|Rationale';
@import url('https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@600&display=swap');
@font-face{ font-family:kiekko-espoo;src:url(../../fonts/KIEKKO-ESPOO-HEADLINE-Bold.ttf) format("truetype"); font-weight:700}

/* 
https://www.youtube.com/watch?v=FEmysQARWFU&ab_channel=KevinPowell 
https://www.youtube.com/watch?v=oLgtucwjVII&ab_channel=CodingNepal
*/


@media (max-width: 899px) {
	:root {
		font-size: 	17px;
	}
}

@media (min-width: 900px) {
	:root {
		font-size: 	20px;
	}
}

html {
	scroll-behavior: smooth;
}

::-webkit-scrollbar {
	width: 1em;
}

::-webkit-scrollbar-track {
	background: var(--color-dark-blue);
}

::-webkit-scrollbar-thumb {
	background: var(--color-light-blue);
	border-radius: 2vw;
	border-width: .1em;
	border-style: solid;
	border-color: var(--color-mid-blue);
}

body {
	margin-top: 0;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 0;
	color: var(--color-dark-blue);
	line-height: 1.2em;
	padding: 0;
	text-decoration: none;
	text-align: left;
	font-family: "Oswald", arial;
	width: 100%;
	background-color: var(--color-white);
 	}
	
	
h1 {
	display: block;
	margin-top: 0px;
	margin-bottom: 20px;
	padding: 0px;
	text-align: center;
	font-size: 3rem;
	line-height: 3rem;
	font-family: 'Teko', Arial;
	color: var(--color-mid-blue);
	border-bottom-color: var(--color-mid-blue);
	border-bottom-width: 1px;
	border-bottom-style: dotted;
}

h2 {
	display: block;
	margin-top: 25px;
	margin-bottom: 20px;
	padding-bottom: 0px;
	text-align: center;
	font-size: 2.5rem;
	line-height: 2.5rem; 
	font-family: 'Teko', Arial;
	color: var(--color-mid-blue);
	border-bottom-color: var(--color-light-blue);
	border-bottom-width: 1px;
	border-bottom-style: dashed;
}

h3 {
	display: block;
	margin-top: 10px;
	margin-bottom: 15px;
	padding-bottom: 5px;
	text-align: center;
	font-size: 2rem;
	line-height: 2rem;
	font-family: 'Teko', Arial;
	color: var(--color-mid-blue);
	border-bottom-color: var(--color-light-blue);
	border-bottom-width: 1px;
	border-bottom-style: dotted;
}

h4 {
	font-family: 'Contrail One', Arial;
	margin-top: 15px;
	padding: 2px;
	margin-bottom: 0px;
	font-size: 1.5	rem;
	font-weight: normal;
	vertical-align: baseline;
	text-align: center;
	border-bottom-style: solid;
	border-bottom-color: var(--color-dark-blue);
	border-bottom-width: 2px;
	}

button {
	font-size: inherit;

}

p.blokki {
	display: block;
	margin-top: 0px;
	margin-bottom: 2px;
	padding: 3px;
	vertical-align: top;
	transition: color 2s;
	border-bottom-style: solid;
	border-bottom-color: var(--color-light-blue);
	border-bottom-width: 1px;
	}

DIV.alaotsikko {
	font-family: 'Contrail One', Arial;
	margin-top: 15px;
	padding: 2px;
	margin-bottom: 2px;
	font-size: 1.1em;
	vertical-align: baseline;
	border-bottom-style: solid;
	border-bottom-color: var(--color-dark-blue);
	border-bottom-width: 2px;
	}

.runko {
	margin: auto;
	max-width: 1500px;
	justify-content: center;
	align-items: stretch;
	min-height: calc(100vh - 330px);
}

@media (max-width: 1199px) {
	.ei_kapeassa {
		display: none;
	}

}
@media (max-width: 999px) {
	.ei_kapeassa {
		display: none;
	}

}

@media (min-width: 1000px) {
	div.palstat {
		display: flex;
	}
}

div.palsta {
	width: 100%;
	margin: 10px;
}
	
@media (max-width: 899px) {
	article {
		width: 100%;
		width: 100%;
		padding: 0px;
	}
	.runko {
		display: block;
		padding: 10px;
	}
}

@media (min-width: 900px) {
	article {
		width: 300%;
		margin: 20px;
		padding: 10px;
	}
	.runko {
		display: flex;
		padding: 50px;
	}
}


	
article {
//	opacity: 0%;
//	transform: translateY(-50px);
	margin-top: 40px;
	border-color: var(--color-mid-blue);
	border-width: 0px;
	border-style: dotted;
	animation-fill-mode: forwards;
	animation: article-load 500ms ease-in 0ms;
}	

@keyframes article-load {
	0% {
		transform: translateY(100vh);
		opacity: 0%;
	}
	100% {
		transform: translateY(0);		
		opacity: 100%;
	}
}

FOOTER {
	width: 100%;
	color: var(--color-white);
	background: var(--color-dark-blue);
	border-top-style: solid;
	border-top-color: var(--color-light-blue);
	border-top-width: 2px;
	padding-top: 5px;
	padding-bottom: 20px;
	font-size: 0.9em;
	text-align: center;
	min-height: 15px;
	}

DIV.footer_laatikko {
	margin-left: auto;
	margin-right: auto;
	vertical-align: top;
	display: inline-block;
	padding: 2px;
	text-align: center;
	min-height: 15px;
	min-width: 15%;
	}

DIV.footer_laatikko_otsikko {
	font-family: 'Contrail One' , Arial;
	color: var(--color-light-yellow);
	padding: 2px;
	}
	
.levea_taulukko {
	margin-left: 5px;
	margin-right: 5px;
	overflow-x: auto;
	overflow-y: hidden;
	}
	
.linkkinappi {
	font-family: 'Contrail One', Arial;
	font-size: 20px;
	border-color: var(--color-dark-blue);
	margin: 5px;
	padding: 3px;
	border-style: solid;
	border-width: 2px;
	border-radius: 5px;
	background-color: var(--color-light-blue);
	color: var(--color-white);
}

.linkkinappi_container {
	padding: 15px;
}

a.ylaviiva {
	border-top-color: var(--color-light-blue);
	border-top-width: 1px;
	border-top-style: solid;
	color: inherit;
	}

a.viim_ottelu {
	display: block;
	width: 100%;
	color: inherit;
  }	
a.viim_ottelu:hover {
	text-decoration: underline
	text-decoration-skip: ink;
}	

DIV.symphony {
	margin: 10px;
	font-size: 0.6em;
}
	
DIV.viim_ottelut_otsikko {
	font-family: 'Contrail One', Arial;
	font-size: 1.2em;
	width: 100%;
	}



a.viim_ottelu:hover {
	}
	

DIV.lomake_otsikko {
	padding: 1px;
	margin-bottom: 10px;
	font-size: 1.2em;
	font-weight: bold;
	text-align: left;
	vertical-align: baseline;
	border-bottom-style: dotted;
	border-bottom-color: var(--color-mid-blue);
	border-bottom-width: 0px;
	}

DIV.lomake_rivi {
	margin-top: 3px;
	padding-top: 2px;
	padding-left: 2px;
	margin-bottom: 1px;
	font-size: 1em;
	text-align: left;
	vertical-align: baseline;
	border-bottom-style: solid;
	border-bottom-color: var(--color-mid-blue);
	border-bottom-width: 0px;
	}

.pieni_kentta_lomakkeessa {
	font-family: 'Overpass Mono', monospace;
    height: 1.5em;
	font-size: 0.8em;
	color: var(--color-black);
    border-style: solid;
	border-top: none;
	border-left: none;
	border-right: none;
	border-bottom-color: var(--color-mid-blue);
	border-bottom-width: 2px;
	background-color: var(--color-mid-blue-10);
}

.pieni_kentta_lomakkeessa_100px {
	font-family: 'Overpass Mono', monospace;
    height: 1.5em;
	width: 100px;
	font-size: 0.8em;
	color: var(--color-black);
    border-style: solid;
	border-top: none;
	border-left: none;
	border-right: none;
	border-bottom-color: var(--color-mid-blue);
	border-bottom-width: 2px;
	background-color: var(--color-mid-blue-10);
}

select.suuri_kentta_lomakkeessa {
	font-family: 'Teko', Arial;
	font-family: 'Overpass Mono', monospace;
	border-style: inset;
	border-color: navy;
	border-width: 1px;
	background: white;
	font-size: 20px;
	color: var(--color-mid-blue);
	max-width: 90%;
	}
	
select.pieni_kentta_lomakkeessa {
	max-width: 90%;
	}

input.suuri_kentta_lomakkeessa {
	font-family: 'Overpass Mono', monospace;
	border-style: solid;
	border-color: navy;
	border-width: 1px;
	background: white;
	font-size: 20px;
	-wap-input-format: "*N";
	max-width: 90%;
	}

input.suuri_kentta_lomakkeessa:hover {
	color: var(--color-mid-blue);
	}
	
input.pieni_kentta_lomakkeessa {
	width: 90%;
	}

.suuri_nappi_lomakkeessa {
	font-family: 'Contrail One', Arial;
	border-style: outset;
	border-color: var(--color-mid-blue);
	border-width: 2px;
	border-radius: 5px;
	border-color: var(--color-mid-blue);
	font-size: 1.2em;
	font-weight: bold;
	color: white;
	margin: 10px;
	padding: 5px;
	text-shadow: -1px -1px rgba(0, 0, 0, 1.0), 
		-1px 0px rgba(0, 0, 0, 1.0), 
		-1px 1px rgba(0, 0, 0, 1.0), 
		0px -1px rgba(0, 0, 0, 1.0),
		0px 1px rgba(0, 0, 0, 1.0),
		1px -1px rgba(0, 0, 0, 1.0),
		1px 0px rgba(0, 0, 0, 1.0), 
		1px 1px rgba(0, 0, 0, 1.0), 
		2px 2px 1px rgba(0, 0, 0, 0.7);
	cursor: hand;
	}

.pieni_nappi_lomakkeessa {
	font-family: 'Contrail One', Arial;
	display: inline-block;
	margin: 2px;
	border-color: var(--color-mid-blue);
	border-style: solid;
	border-width: 1px;
	border-radius: 5px;
	padding-top: 2px;
	padding-bottom: 2px;
	padding-left: 5px;
	padding-right: 5px;
	min-height: 15px;
	text-decoration: none;
	color: var(--color-white);
	font-size: 0.8em;
	text-align: center;
	background: var(--color-light-blue);
	text-shadow: 1px 1px rgba(0,0,0,1.0);
	cursor: pointer;
	}
.pieni_nappi_lomakkeessa:hover {
	border-style: outset;
	background: var(--color-light-blue);
	text-align: center;
	}

div.infolaatikko {
	display: block;
	font-family: 'Teko', Arial;
	font-size: 1.3em;
	line-height: 1.3em;
	margin-top: 40px;
	margin-bottom: 40px;
	margin-left: auto;
	margin-right: auto;
	width: 90%;
	color: var(--color-mid-blue);
	font-weight: bold;
	border-color: var(--color-mid-blue);
	border-style: solid;
	border-width: 2px;
	border-radius: 30px;
	padding-top: 20px;
	padding-bottom: 20px;
	padding-left: 25px;
	padding-right: 25px;
	min-height: 15px;
	text-decoration: none;
	text-align: center;
	}
	
div.infolaatikko2 {
	display: block;
	font-family: 'Teko', Arial;
	font-size: 1.5em;
	line-height: 1.3em;
	margin-top: 40px;
	margin-bottom: 40px;
	margin-left: auto;
	margin-right: auto;
	width: 90%;
	color: var(--color-mid-blue);
	font-weight: bold;
	padding-top: 20px;
	padding-bottom: 20px;
	padding-left: 25px;
	padding-right: 25px;
	min-height: 15px;
	text-decoration: none;
	text-align: center;
	}
	
TABLE.kalenteri {
	margin-top: 20px;
	table-layout: fixed;
	display: table;
	font-size: 0.8em;
	width: 100%;
	border: 0px;
	}

TR.kalenteri_header {
	padding: 0px;
	text-align: center;
	font-size: 1.2em;
	font-weight: bold;
	vertical-align: baseline;
	}

TD.kalenteri_header {
	margin: 2px;
	background: var(--color-mid-blue);
	color: var(--color-white);
	border-color: var(--color-dark-blue);
	border-style: outset;
	border-width: 1px;
	border-radius: 10px;
	}

TR.kalenteri {
	text-align: center;
	height: 70px;
	vertical-align: top;
	}

TD.kalenteri {
	margin: 2px;
	border: 0px;
	-webkit-transition: background 0.5s;
	transition: background 0.5s;
	border-color: var(--color-mid-blue);
	border-style: solid;
	border-width: 1px;
	border-radius: 10px;
	}

TD.kalenteri:hover {
	background: rgba(0,114,206,0.2);
	}
	
.kalenteri_pvm {
	padding-left:5px;
	padding-right:5px;
	border-bottom-color: var(--color-dark-blue);
	border-bottom-style: solid;
	border-bottom-width: 1px;
	border-bottom-radius: 10px;
	font-size: 1em;
	font-weight: bold;
	text-align: center;
	border-radius: 10px;
	}
	
.kalenteri_kotiottelu {
	background: var(--color-light-blue);
}

.kalenteri_joukkue {
	display: inline-block;
}

.kalenteri_vierasottelu {
	background: var(--color-light-yellow);
}

DIV.kalenteri_tulos {
	font-size: 1em;
	}

a.kalenteri {
	color: var(--color-mid-blue);
	font-size: 1.2em;
	font-weight: bold;
	}

#sivunAlkuun {
	display: none;
	position: fixed;
	bottom: 100px;
	right: 20px;
	height: 60px;
	width: 60px;
	z-index: 99;
	font-family: 'Teko', Arial;
	border-style: solid;
	border-width: 3px;
	border-color: var(--color-dark-blue);
	outline-style: solid;
	outline-width: 3px;
	outline-color: var(--color-white);
	background-color: var(--color-mid-blue); 
	color: var(--color-white);
	cursor: pointer;
	padding: 10px;
	border-radius: 30px;
	font-size: 25px;
}

#sivunAlkuun:hover {
	border-color: var(--color-light-blue);
	outline-color: var(--color-light-yellow);
	color: var(--color-light-yellow);
}

IMG {
	max-width : 100%;
	max-height : auto;
	}

IMG.tulostaulu_logo {
	max-width : 100px;
	max-height : auto;
	vertical-align: top;
	}
	
.small {
	font-size: 0.8em;
}