@import url('https://fonts.googleapis.com/css?family=Markazi+Text');
@import url('https://fonts.googleapis.com/css?family=Lalezar&subset=arabic');
@font-face {
	font-family: "ubuntu";
	src:	url("Ubuntu-R.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: "koodak";
	src: url("koodak.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: "Markazi Text";
	src: url('https://fonts.googleapis.com/css?family=Markazi+Text');
	font-weight: normal;
	font-style: normal;
}
:root {
	--primary-color: #172;
	--secondary-color: #333;
	--primary-font: "Ubuntu";
	--secodary-font: "Markazi Text";

}
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}
body {
	font-family: var(--primary-font);
	background-color: #eff0f1;
	color: var(--secondary-color);
}
.latin {
	font-family: var(--primary-font);
	font-size: 17px;
	word-break: normal;
	line-break: normal;
	overflow-wrap: normal;
	padding-left: 20px;
}
.markazi {
	font-family: var(--secodary-font);
	font-size: 18px;
	direction: rtl;
	padding-right: 20px;
	overflow-wrap: normal;
	word-break: normal;
	line-break: normal;
}
td {
	line-height: 170%;
}
.num {
	float: right;
	font-weight: lighter;
	color: #707070;
	font-size: 14px;
	padding-right: 13px;
}
tr {
	border-bottom: solid #172 1px;
}
a:active, a:link, a:hover, a:visited {
	text-decoration: none;
	color: inherit;
}
ul {
	list-style-type: none;
}
a {
	text-decoration: none;
}
.nauha {
	background-color: var(--primary-color);
	width: 100%;
	padding-top: 6px;
	font-family: var(--primary-font);
	font-size: 12px;
	float: right;
	padding-left: 66%;
	padding-bottom: 0;
	line-height: 50%;
	color: #fff;
	height: fit-content;
	justify-items: end;
}
.nauha a {
	color: #fff;
	position: relative;
	text-decoration: none;
  }

 .nauha a::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 1px;
	border-radius: 4px;
	background-color: #fff;
	bottom: 0;
	left: 0;
	transform-origin: right;
	transform: scaleX(0);
	transition: transform .3s ease-in-out;
  }

 .nauha a:hover::before {
	transform-origin: left;
	transform: scaleX(1);
  }
.otsikko {
	font-family: "ubuntu";
	font-weight: bold;
	font-size: 26px;
	color: #eff0f1;
	text-shadow: 1px 1px 1px var(--primary-color);
	padding-left: 0.3em;
	padding-top: 10px;
	background-color: #a2d8a5;
 }
table {
 	margin: 0 auto;
	width: 90%;
	max-width: 900px;
	border-collapse: collapse;
}
td {
	border-bottom: solid 1px #a2d8a5;
}
th > div {
	font-family: var(--primary-font);
	font-weight: lighter;
	font-size: 1.7em;
	color: #ad4a4a;
 }
.navbar {
	background-color: var(--primary-color);
	color: #fff;
	height: 70px;
}
.navbar ul {
	display: flex;
	flex-wrap: wrap;
}
.navbar a {
	color: #fff;
	position: relative;
	text-decoration: none;
	padding: 10px;
  }

.navbar a::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 4px;
	border-radius: 4px;
	background-color: #fff;
	bottom: 0;
	left: 0;
	transform-origin: right;
	transform: scaleX(0);
	transition: transform .3s ease-in-out;
  }

.navbar a:hover::before {
	transform-origin: left;
	transform: scaleX(1);
  }
.navbar .flex{
	justify-content: space-between;
	flex-wrap: wrap;
}
.kontti {
	max-width: 1100px;
	margin: 0 auto;
	overflow: auto;
	padding: 0 40px;
}
.flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}
.logo {
	letter-spacing: -5px;
	font-size: 36px;
	font-weight: 200;
	color: #ff3;
	text-shadow: 0px 0px 7px #333;
	line-height: 75%;
	/* -webkit-text-fill-color: var(--primary-color);
  	-webkit-text-stroke-width: 1px;
  	-webkit-text-stroke-color: #000; */
}
#logo a:link, a:hover, a:visited {
    text-decoration: none;
}
.logop {
	font-family: "Ubuntu";
	font-size: 18px;
	font-weight: 100;
	color: #354259;
	line-height: 75%;
	margin-top: 0;
}
.esitys {
	height: 130px;
	background-color: var(--primary-color);
	color: #fff;
	position: relative;
}
.esitys-teksti {
	animation: slideInFromLeft 1s ease-in;
}
.esitys-teksti p {
	font-weight:lighter;
	font-size: 19px;
	padding-bottom: 60px;
}
.esitys .grid {
	overflow: visible;
	grid-template-columns: 45% 45%;
}
.esitys::after, .esitys::before {
	content: '';
	position: absolute;
	height: 40px;
	bottom: -50px;
	right: 0;
	left: 0;
	background: #eff0f1;
	transform: skewY(-3deg);
	-webkit-transform: skewY(-3deg);
	-moz-transform: skewY(-3deg);
	-ms-transform: skewY(-3deg);
}
.esitys-lomake {
	position: relative;
	top: 0px;
	height: 180px;
	width: 400px;
	padding: 20px;
	z-index: 100;
	justify-self: flex-end;
	overflow: initial;
}

.form-inline {
	display: flex;
	flex-direction: row;
	width: 90%;
	width: 500px;
	margin: 0 auto;
}
.yleisruutu {
	background-color: #eff0f1;
	border-right: 0;
	border-left: 0;
	border-top: 0;
	border-bottom: var(--primary-color) solid 5px;
	height: 60px;
	width: 700px;
	padding: 5px 13px;
}
input:focus {
	outline: none;
  }
/* ::-ms-input-placeholder {
	font-size: medium;
	font-style: italic;
	font-weight: bold;
	padding: 15px 15px;
	color: #9b9b9b;
}  
::-webkit-input-placeholder {
	font-size: medium;
	font-style: italic;
	font-weight: bold;
	padding: 15px 15px;
	color: #9b9b9b;
} */
:-moz-placeholder {
	font-size: medium;
	font-style: italic;
	font-weight: bold;
	padding: 17px 17px;
	color: #9b9b9b;
}
.yleisruutu::placeholder {
	font-family: var(--primary-font);
	font-size: 16pt;
	color: #5a9764;
}
.yleisruutu#persiasana::placeholder, .yleisruutu#darisana::placeholder, .yleisruutu#farsi::placeholder, .yleisruutu#aanidari::placeholder, .yleisruutu#aanifarsi::placeholder, .yleisruutu#dari::placeholder, .yleisruutu#esimfarsi::placeholder{
	font-family: "Markazi Text";
}
textarea {
	width: 500px;
	margin: 0 auto;
	border-bottom: var(--primary-color) solid 5px;
	border-top: var(--primary-color) solid 1px;
	padding: 5px 13px;
	background-color: #eff0f1;
	border-top: var(--primary-color) solid 2px;
	border-left: 0;
	border-right: 0;
}
.error {
	text-align: center;
	text-decoration: none;
	font-family: "ubuntu";
	color: #ad4a4a;
	font-size: 1.3em;
	padding-top: 30px;
}
.nappi {
	display: inline-block;
	padding: 10px 20px;
	cursor: pointer;
	background: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 5px;
	margin: 10px 0 10px 296px;
}
.go {
	background-color: var(--primary-color);
	color: #fff;
	border-radius: 5px;
	padding: 10px 20px 10px 20px;
	margin: 15px auto;
	width: 150px;
	font-size: 1.2em;
}
.go:hover {
	transform: scale(0.98);
	background: #11a72a;
}
.ptyyli {
	margin-top: 50px;
	text-shadow: 0px 1px 4px #ebfa67;
	text-align: center;
	text-decoration: none;
	font-family: var(--primary-font);
	color: var(--primary-color);
	font-size: 2em;
	padding-bottom:13px;
}
.nappi:hover {
	transform: scale(0.98);
}
.esitys-lomake input[type="text"] {
	border: 0;
	border-bottom: 1px solid #CDC2AE;
	width: 100%;
	padding: 3px;
	font-size: 16px;
}
.esitys-lomake input:focus {
	outline: none;
}
.grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
	justify-content: space-between;
	align-items: center;
}
.laatikko {
	background-color: #F0F6E4;
	color: #333;
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
	padding: 19px;
	margin: 0;
}
.laatikko a:hover {
	border-bottom: 1px solid #333;
}
.teksti {
	font-size: 12px;
	padding-left: 15px;
	color: #5c5959;
	line-height: 140%;
}
.teksti a:hover {
	border-bottom: 1px solid #333;
	color: var(--secondary-color);
}
.bold{
	font-weight: bold;
	color: var(--primary-color);
}
.fardarHaku {
	display: flex;
	flex-flow:row nowrap;
	flex-direction: row;
	width: 45%;
	justify-content: space-around;
	align-items: baseline;
	margin: 0 auto;
	border-bottom: solid 1px #a2d8a5;
	color: #707070;
}
.fardarHaku > div {
	width: 50%;
	padding: 7px;
	font-size: 16px;
	text-decoration: none;
}
.fardarHaku > span {
	font-size: 14px;
	font-family: "Ubuntu";
	font-style: italic;
	color: #ad4a4a;
}
#fardarFa {
	direction: rtl;
	text-align: right;
	font-family: "Markazi Text";
}
#fardarFi {
	direction: ltr;
	text-align: left;
	font-family: "Ubuntu";
}
#spell {
	font-size: 14px;
	font-family: "Ubuntu";
	font-style: italic;
	color: #ad4a4a;
}
.seloste {
	margin: 0 auto;
	width: 50%;
	font-family: Ubuntu;
}
.seloste > section {
	font-size: 16px;
	color: var(--secondary-color)
}
.seloste > section > li {
	font-family: "Ubuntu";
	font-weight: bold;
	font-size: 16px;
	list-style: none;
	color: var(--primary-color);
}
.kaappi {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr;
	grid-template-areas:
	"db db db"
	"terveys terveys terveys"
	"osa1 osa2 loput"
	"futi futi futi";
	color: var(--primary-color);
	max-width: 1000px;
	margin: 0 auto;
	height: 130px !important;
	row-gap: 10px !important;
	gap: 13px;
}
.kaappi h1 {
	font-size: 20px;
	font-weight: lighter;
}
.kaappi2 {
	display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    grid-template-areas: "content";
}
.content {
	grid-area: content;
	display: grid;
	/* flex-wrap: wrap;
	justify-content: space-between; */
	grid-template-columns: repeat(3, 1fr);
	overflow: hidden;
	background-color: #fffcef;
	border-radius: 10px;
	padding: 13px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);;
}

  .terveys {
	grid-area: terveys;
}

  .osa1 {
	grid-area: osa1;
	background-color: rgb(247, 255, 232);
	border-radius: 10px;
	padding: 13px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
 }

  .osa2 {
	grid-area: osa2;
	background-color: rgb(240, 239, 239);
	border-radius: 10px;
	padding: 13px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

  .loput {
	grid-area: loput;
	background-color: rgb(241, 246, 255);
	border-radius: 10px;
	padding: 13px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.futi {
	grid-area: futi;
	display: flex;
	bottom: 0;
}
.db {
	grid-area: db;
	display: inline-block;
	border-radius: 10px;
	background-color: #fff2e7;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
	padding: 13px;
	margin: 0 auto;
	width: 100%;
}
.oikea {
	float: right;
	text-align: right;
	padding-right: 160px;
	font-size: 16px;
	font-style: italic;
	width: 50%;
}
#farsifont {
	font-family: var(--secodary-font);
	font-size: 18px;
	color: var(--primary-color);
	direction: rtl;
}
#parsi {
	font-family: var(--secodary-font);
	font-size: 26px;
	font-weight: 900;
	color: var(--primary-color);
	text-align: center;
}
#latin {
	font-family: var(--primary-font);
	font-size: 22px;
	font-weight: 600;
	color: #019119;
	text-align: center;
}
.ilmoitus {
	border: 1px solid var(--primary-color);
	background-color: #ebfa67;
	color: var(--primary-color);
	font-family: var(--primary-font);
	font-size: 20px;
	border-radius: 5px;
	width: fit-content;
	padding: 13px;
	float: right;
}
#ruske {
	color: #ad4a4a;
	font-style: normal;
	font-weight: bold;
}
hr {
	border-top: 0,5px solid var(--primary-color);
	width: 45%;
	margin: 0 auto;
}
.vasen {
	float: left;
	padding-left: 160px;
	font-size: 16px;
	font-style: italic;
	width: 50%;
}
.titr {
	padding-left: 13px;
	padding-top: 13px;
}
.futi nav {
	display:inline-block;
 	justify-content: space-between;
	background-color: var(--primary-color);
	color: #fff;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	padding: 20px;
}
.futi nav ul {
	list-style: none;
	padding: 0;
	display: flex;
	justify-content: center;
}

.futi nav li {
	margin: 0 8px;
}
/* Sisäänkirjautumisosio */
.sisaan {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	grid-template-areas:
	  "login rekisteri"
	  "selite selite";
	width: 50%;
	margin: 0 auto;
	justify-content: center;
	padding-top: 70px;
}
.login {
	grid-area: login;
	width: 100% !important;
	font-family: var(--primary-font);
	color: var(--primary-color);
	margin: 0 auto;
	padding: 25px;
	right: 5%;
}
.rekisteri {
	grid-area: rekisteri;
	width: 100% !important;
	font-family: var(--primary-font);
	color: var(--primary-color);
	border-left: 1px solid #b8beb9;
	padding-left: 50px;
	height: 300px;

}
.selite {
	grid-area: selite;
	width: 100%;
	border-top: 1px solid #b8beb9;
	padding-top: 50px;
	margin: 0 auto;
	text-align: center;
	color: var(--primary-color);
	font-size: medium;
	font-weight: lighter;
}
.inputruutu {
	position: relative;
	width: 300px;
	height: 50px;
	margin-bottom: 25px;
  }
  .inputruutu input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	border: 1px solid var(--secondary-color);
	outline: none;
	background: none;
	padding: 10px;
	border-radius: 4px;
	font-size: 1.2em;
  }
  .inputruutu:last-child {
	margin-bottom: 0;
  }
  .inputruutu span {
	position: absolute;
	top: 14px;
	left: 20px;
	font-size: 1em;
	transition: 0.6s;
  }
.inputruutu input:focus ~ span,
.inputruutu input:valid ~ span {
  transform: translateX(-13px) translateY(-35px);
  font-size: 1em;
}
.inputruutu [type="submit"] {
  width: 50%;
  background: var(--primary-color);
  color: #fff;
  border: #fff;
}
.inputruutu:hover [type="submit"] {
  background: #11a72a;
}
/* Muistinpano-osio */
.runko { grid-area: runko; font-size: 18px;}
.persia { grid-area: persia; padding-right: 15px; font-size: 16px; font-family: "Markazi Text";}
.suomi { grid-area: suomi; direction: ltr; padding-left: 15px; font-size: 16px;}
.pvm { grid-area: pvm; padding-right: 15px; font-size:xx-small; font-style: italic;}
.viite { grid-area: viite; direction: ltr; font-size:xx-small; font-style: italic;}
.ulkodiv { width: 70%; margin: 0 auto;}
.kakara {font-family: var(--primary-font); text-shadow: #000; color: var(--primary-color); font-size: 20px; text-align: left; width: 48%; margin: 0 auto;}

.grid-container {
	display: grid;
	width: 70%;
	margin: 0 auto;
	grid-template-areas:
	  'runko runko runko runko runko runko'
	  'runko runko runko runko runko runko'
	  'suomi suomi suomi persia persia persia'
	  'suomi suomi suomi persia persia persia'
	  'viite viite viite pvm pvm pvm';
	gap: 2px;
	background-color: #fffaf1;
	padding: 15px;
  }
  .grid-container > div {
	padding: 10px 0;
	color: var(--primary-color);
  }
  .dari-parent {
	display:grid;
	grid-template-columns: 50% 50%;
	grid-template-areas:
	'fa   da '
	'faspell daspell'
	'fasim desim';
	margin: 0 auto;
	width: 50%;    
    border-bottom: #a2d8a5 solid 1px;
}

.fa { grid-area: fa; font-size: 18px; font-family: "Markazi Text"; text-align: right; color: #5c5959; float: right;}
.faspell { grid-area: faspell; font-size: 14px; font-family: "Ubuntu"; font-style: italic; text-align: right; color: #ad4a4a;}
.fasim { grid-area: fasim; direction: rtl; line-break: auto; font-size: 14px; font-family: "Markazi Text"; padding-bottom: 5px; text-align: right;}
.da { grid-area: da; font-family: "Markazi Text"; font-size: 18px; text-align: right; color: #5c5959;}
.daspell { grid-area: daspell; direction: ltr; font-size: 14px; font-family: "Ubuntu"; font-style: italic; text-align: right; color: #ad4a4a;}
.desim { grid-area: desim; text-align: right; font-family: "koodak"; font-size: 14px; color: #5c5959; direction: rtl; padding-bottom: 5px;}

.korostus{
	background-color:#ebfa67;
}
.lomake {
	display: flex;
	flex-flow:row nowrap;
	flex-direction: row;
	width: 45%;
	justify-content: space-around;
	align-items: baseline;
	margin: 0 auto;
	border-bottom: solid 4px #a2d8a5;
	color: #707070;
}
.alanauha {
	display: flex;
	margin: 0 auto;
	bottom: 0;
	width: 100%;
	position: absolute;
}
.alanauha nav {
	display:inline-block;
	justify-content: space-between;
	background-color: var(--primary-color);
	color: #fff;
	margin-bottom: 0;
	width: 100%;
	padding: 20px;
}
.alanauha nav ul {
	list-style: none;
	padding: 0;
	display: flex;
	justify-content: center;
}

.alanauha nav li {
	margin: 0 8px;
}