/*-----------------------------------------------
INDEX
-------------------------------------------------
	Global
	Layout
		Navigation
		Startpage, respbox
		Subpages
	Misc
------------------------------------------------*/

/*-----------------------------------------------
GLOBAL
-----------------------------------------------*/

html { font-size: 62.5%; }

/* R, styles.inc */
body {
  margin: 0; 
  padding: 0;
  padding-top: 80px;
  line-height: 1em;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
   background-color: #F4F5EF;
}

body.simple {
 background-color: #F4F5EF;
 padding-top: 0; 
}

div#devel_basic_pagepath {
 cursor: default;
 position: fixed;
 right: 0;
 bottom: 0;
 background: #f1f3f4;
 color: #5f6368;
 padding: 6px;
 z-index: 10001;
 font-family: system-ui;
 font-size: 12px;
 border-top: 1px solid #cacdd1;
 border-left: 1px solid #cacdd1;
 line-height: 1;
}

body.blank { 
 background-color: #ffffff;
 padding-top: 0; 
}

* { outline: none; }

img { border:0; }

a.flag-disabled { pointer-events: none; }

a.flag-disabled img { filter: grayscale(1); }

h1 { 
 margin: 0 0 1em 0;
 line-height: 1.2em;
}

h1 + p { margin-top: 1em; }

h2 { 
 margin: 1.5em 0 1em 0;
 line-height: 1.2em;
}

h2 + p { margin-top: 1em; }

h3 { 
 margin: 1.5em 0 1em 0;
 line-height: 1.2em;
}

h3 + p { margin-top: 1em; }

p { margin: 1.5em 0; }

ul, ol { margin: 1em 0; }

a { transition: all 300ms ease-in-out 0s; }

a:focus,
a:hover {  
  opacity: 0.7;
  transition: opacity 300ms ease-in-out 0s;
}

/* styles.inc */
a:focus { border-top: 1px dotted #000000;  border-bottom: 1px dotted #000000; }

mark.large { font-size: 140%; }

div,
textarea,
select,
option,
input[type="text"],
input[type="password"] {
 -webkit-box-sizing:border-box;
 -ms-box-sizing:border-box;
 -moz-box-sizing:border-box;
 box-sizing:border-box;
}

form { margin: 0; }

/* styles.inc */
legend,
label { 
 text-transform: uppercase;
 font-weight: normal;
}

div.f2-optwrap label { text-transform: initial; }

div.f2-fieldwrap div#kayttoehdot { padding-bottom: var(--f2-gap-size); }

label b { font-weight: normal; }

body.simple form#f2-form {
 background-color: #f9f6ee;
 padding: 15px 15px 30px 15px;
 border-radius: 5px;
}

div#f2-pagenos { margin-bottom: 0; }

div#f2-pages { margin-top: 0; }

div.f2-page p:last-child { 
 margin-top: 0; 
 margin-bottom: 0; 
}

div.f2-field fieldset legend label { font-weight: bold; }

input, select { padding: 5px; }

textarea, input[type="text"],input[type="textfield"],input[type="password"] {
 /* webkit-appearance ipadille ja iphonelle */
 -webkit-appearance: none;
 border: 1px solid #bbbbbb;
}

textarea, input[type="text"],input[type="textfield"],input[type="password"] {
 color: #000000;
 border: 1px solid #bbbbbb;
 -webkit-border-radius: 0px;
 -moz-border-radius: 0px;
 border-radius: 0px;
 padding: 10px;
 margin-top: 5px;
}

select {
 color: #000000;
 border: 1px solid #bbbbbb;
 padding: 9px 10px;
 margin-top: 5px;
}

select option { padding: 3px 10px; }

select option:hover { background: #e2e2e2; }

select option:checked {  
 background: #e2e2e2;
 color: #000000;
}

select option:active {  
 background: #e2e2e2;
 color: #000000;
}

input[type=radio], input[type=checkbox] { margin: 5px 5px 5px 0; }

input[type=text]:focus,
input[type=radio]:focus,
input[type=checkbox]:focus,
input[type=password]:focus,
textarea:focus {
 border: 1px solid #000000;
 -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
 -moz-box-shadow:    0px 0px 20px 0px rgba(0, 0, 0, 0.2);
 box-shadow:         0px 0px 20px 0px rgba(0, 0, 0, 0.2);
 transition: initial;
 transition: box-shadow 300ms ease-in-out 0s;
}

select:focus { 
 border: 1px solid #000000;
 -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
 -moz-box-shadow:    0px 0px 20px 0px rgba(0, 0, 0, 0.2);
 box-shadow:         0px 0px 20px 0px rgba(0, 0, 0, 0.2);
 transition: initial;
 transition: box-shadow 300ms ease-in-out 0s;
}

fieldset {
 margin: 0;
 padding: 0;
 border: 0;
}

/* styles.inc */
.button, .likebutton {
 padding: 10px 15px;
 line-height: 1em;
 -webkit-appearance: none;
 -webkit-border-radius: 5px;
 -moz-border-radius: 5px;
 border-radius: 5px;
}

.button.major { text-transform: uppercase; }

/* styles.inc */
.buttonsmall { padding: 8px 10px; }

.buttondisabled,
.buttondisabled:hover,
.buttondisabled:focus,
input.buttondisabled,
input.buttondisabled:hover,
input.buttondisabled:focus,
button.buttondisabled,
button.buttondisabled:hover,
button.buttondisabled:focus {
 border: 1px solid #cccccc;
 background: #cccccc;
 color: #ffffff;
 cursor: default;
}

/* styles.inc */
div.button {
 cursor: pointer;
 display: inline-block;
 vertical-align: bottom;
}

/* styles.inc */
a.button-like { 
	padding: 9px 18px 11px 18px;
	text-decoration: none;
	line-height: 1.4em;
	display: inline-block; 
	transition: all 500ms ease-in-out 0s;
}

/* styles.inc */
a.button-like:hover { 
	opacity: 1;
	transition: background-color 500ms ease-in-out 0s; 
}

.clear { clear:both; }

.nowrap { white-space: nowrap; }

.admin-linkset { line-height: 1em; }

.top { vertical-align: top; }
.bottom { vertical-align: bottom; }
.right { text-align: right; }
.center { text-align: center; }

.table { display: table; }
.table-row { display: table-row; }
.table-cell { display: table-cell; }
.table-gap { display: table-cell; width: 50px; }

table td p:only-child { margin: 0; }

table td p:first-child { margin-top: 0; }

table td p:last-child { margin-bottom: 0; }

/* styles */
table th,
table thead { 
	font-weight: bold;
	text-transform: uppercase;
}

.data-header { padding: 8px; }
.data { padding: 8px; }

table.muotoiltu { border-collapse: collapse; }

/* styles.inc */
table.muotoiltu th { 
	padding: 8px;
	text-transform: uppercase;
}

table.muotoiltu td { padding: 8px; }

/*-----------------------------------------------
LAYOUT
-----------------------------------------------*/

body.simple div#wrapper { background-color: #F4F5EF; }

div#wrapper-inner.wrapper-simple {
 padding: 20px 0;
}

div#container { padding-top: 30px; }

div#container-simple {
 margin: 0 auto;
 width: 730px;
 max-width: calc(100vw - 20px);
 padding: 25px 35px 35px 35px;
 background: #ffffff;
 border: 1px solid #e0e0e0;
 line-height: 1.4em;
}

div.spacer-line {
 background: #ffffff;
 height: 20px;
 clear: both;
 margin: 0 0 30px -5px;
 width: calc(100% + 10px);
 box-shadow: 0px 8px 6px -6px rgba(0, 0, 0, 0.25);
}

div#login-button-wrapper { display: inline; }

div#login-button-wrapper div.login-button,
div#login-button-wrapper div.useraccount-button,
div#login-button-wrapper div.logout-button { display: none; }

a#yllapito-login-icon { top: 7px; }

ul#skiplink-wrap, ul#skiplink-wrap li {
 display: inline;
 height: 0;
 line-height: 0;
 padding: 0 !important;
}

ul#skiplink-wrap li a {
 display: inline;
 height: 0;
 left: -3000px;
 position: absolute;
 top: -2000px;
 width: 0;
}

/* R */
div#container,
div#container-simple,
div#container-blank { background: #ffffff; } 

div#container-blank { margin: 8px; }

div#header-print { display: none; }

/* styles.inc */
/* div#topHeaderCont { } */

/* R */
div#topHeaderWrap { 
 margin: auto;
 text-align: right;
}

div#topHeaderWrap .table { display: inline-table; }

div#topheaderLinkCont { 
	padding: 0 45px 0 0;
	vertical-align: middle;
}

div#topheaderLinkCont div.admin-linkset { display: inline-block; }

div#topheaderLinkCont div.topheaderLinkWrap { 
	display: inline-block;
	padding-left: 20px;
}

/* styles.inc */
div#topheaderLinkCont div.topheaderLinkWrap a.topheaderLink { 
 text-transform: uppercase;
 text-decoration: none;
}

div#searchWrapCont { width: 290px; }

form#pagesearch-searchform div#searchform-searchfields { width: 290px; }

form#pagesearch-searchform div#autocomplete-no-resultsgeneral {	width: 290px; }

div#generalsearch-searchterm-wrap { opacity: 0.4; }
div#generalsearch-searchterm-wrap:focus-within { opacity: 1; }

/* R, styles.inc */
div#headerCont {
	display: table;
	width: 100%;
	height: 70px;
	background: #ffffff;
 -webkit-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
 -moz-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
	box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 201;
	transition: all linear .5s;
}

div#headerCont .table-cell { vertical-align: middle; }

/* R */
div#logoWrap { 
	padding: 16px 24px 10px 24px;
  transition: all linear .5s;
}


div#logoWrap a:focus,
div#logoWrap a:hover {  
  opacity: 1;
  transition: opacity 300ms ease-in-out 0s;
	border-top: 0;
	border-bottom: 0;
}

/* R */
header div#logoWrap img { 
 height: 50px;
 margin: 10px 0;
 transition: all linear .5s;
}

header.fixed-header div#logoWrap img { 
	margin: 0 auto 0 0;
  transition: all linear .5s;
}

div#logoWrap a:focus img,
div#logoWrap a:hover img { 
	opacity: 0.7;
  transition: opacity 300ms ease-in-out 0s;
}

/* R */
div#navWrap { padding-right: 16px; }


/* R */
div#page-wrap,
div#page-wrap-fp {
  margin: auto;
  display: table;
	background: #ffffff;
}

div#page-wrap-fp { width: 100%; }

/* R */
div#main,
div#main-fp {
 display: table-cell;
 vertical-align: top;
 line-height: 1.4em;
 padding: 45px 0 90px 0;
}

/* R, styles.inc */
div#navBreadcrumb { 
	margin: auto;
	padding: 15px 0 45px 0;
} 

/* R */
div#main-fp div#navBreadcrumb { padding: 15px 0 0 0; }

/*--- NAVIGATION ---*/

.sm-netland > li { border-left: none; }

/* R */
/* div#navWrap .sm-netland a span.sub-arrow { } */

/* R */
/* .sm-netland a span.sub-arrow { } */

/* .sm-netland a.has-submenu { } */

.sm-netland a { text-transform: uppercase; }

/* R */
/* .sm-netland ul:not(.ui-autocomplete) { } */

.sm-netland ul a { text-transform: initial; }

.sm-netland a:focus { border-top: 0; border-bottom: 0; }

/* mobinavi */
div#smartnavi-toggler-cont { 
 box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
 padding: 10px 0;
}

/*--- STARTPAGE, RESPBOX---*/

div.liftbox.teksti p:first-child { margin-top: 0; }

/* R */
div.liftbox .box_img img.liftbox-img { margin-bottom: 0px; }

/* div.liftarea-cont-wrap.rowfull { } */

/* R */
/* div.liftarea-cont.first { } */

/* R */
div.liftarea-cont-wrap.rowfull .liftarea-cont,
div.liftarea-cont-wrap.rowfull.has_row_style .liftarea-cont {
	margin-top: 45px;
	margin-bottom: 0;
}

div.liftarea-cont-wrap.rowfull.prevrowfull .liftarea-cont { margin-top: 0; }

div.liftarea-cont-wrap.has_row_style .liftarea-cont {	
	margin-top: 23px;
	margin-bottom: -23px;
}

div.liftarea-cont-wrap.has_row_style.nextrownostyle .liftarea-cont { margin-bottom: 0; }

/* R */
div.liftarea-cont-wrap2 { margin: auto; }

div.liftbox.kuva.haslink div.box_img img,
div.liftbox.kuva.haslink div.box_img h1 { cursor: pointer; }

div.liftbox h1 {	margin: 0 0 1em 0; }

div.liftbox h1:first-child {
	margin-top: 0;
	margin-bottom: 10px;
}

div.liftbox h2 {margin: 1.5em 0 1em 0; }

div.liftbox h2:first-child {
	margin-top: 0;
	margin-bottom: 10px;
}

div.liftbox-1 h3,
div.liftbox-2 h3,
div.liftbox-3 h3 { margin: 1.5em 0 1em 0; }

div.liftbox-1 h3:first-child,
div.liftbox-2 h3:first-child,
div.liftbox-3 h3:first-child { 
	margin-top: 0;
	margin-bottom: 5px;
}

div.liftbox.kuva div.box_img h1 {
 margin: 0;
 bottom: 4px;
}

div.liftbox iframe { border: 0; }

/* styles.inc */
a.respbox-link-button { 
	padding: 9px 18px 11px 18px;
	text-decoration: none;
	line-height: 1.4em;
	display: inline-block; 
	transition: all 500ms ease-in-out 0s;
}

/* styles.inc */
a.respbox-link-button:hover { 
	opacity: 1;
	transition: background-color 500ms ease-in-out 0s; 
}

/*--- SUBPAGES ---*/

/* div#page-text-wrap {  } */

/*--- BLOG ---*/

div.blogTags { margin: 45px 0; }

hr.blogDivider {	margin: 45px 0; }

hr.commentDivider {	margin: 45px 0; }

div.blogPager .pager-other:hover { background: none; }

div.commentText blockquote { font-style: italic; }

/*--- CALENDAR---*/

/* R */
/* div.cal-wrapper.table { } */

/* R */
/* div.cal-wrapper div#cal-container-left {} */

/* R */
div.cal-wrapper div#cal-container-right { padding-left: 45px; }

td.data-header.cal-grid-month {	border: 0; }

td.data.cal-grid-weekday { border-top: 0; }

table#cal-grid-wrapper td.data {
	border-left-width: 0;
	border-right-width: 0;
}

/* styles.inc */
/* td.data-header.cal-grid-month {} */

/* styles.inc */
td.cal-grid-weekday {
	padding: 8px 3px;
}
 
/* styles.inc */
/* td.cal-grid-week {} */

td.cal-grid-week a { text-decoration: none; }

td.cal-grid-month a { 
	text-transform: uppercase;
	text-decoration: none;
}

table#cal-grid-wrapper td.data.cal-grid-today { border-width: 2px; }

table.cal-search-wrapper { margin-top: 45px; }

/* styles.inc */
td.cal-search-title {
	text-align: center;
	padding-left: initial;
	text-transform: uppercase;
	border: 0;
}

/* R, styles.inc */
td.cal-search-container { 
	border: 0;
	padding: 20px;
}

input#cal-search-freetext {	width: 100%; }

div.cal-wrapper div#cal-search-startdate-wrapper { padding-right: 10px; }

div.cal-wrapper div#cal-search-enddate-wrapper { padding-left: 10px; }

div.cal-wrapper div#cal-search-startdate-wrapper input, div.cal-wrapper div#cal-search-enddate-wrapper input { width: 100%; }

div#cal-search-submit-wrapper input.button { width: 100%; }

/*--- FILEBANK---*/

/* styles.inc */
div#fb-search-wrapper.th-box-tr {
	padding: 20px !important;
	border: 0;
	display: flex;
	justify-content: center;
}

div#fb-search-wrapper input { margin-top: 0; }

.treeTable th.data-header { 
	border-left: 0;
	border-right: 0;
}

.treeTable th.data-header:last-child,
.treeTable td:last-child  { border-right-width: 1px; }


/*-----------------------------------------------
MISC
-----------------------------------------------*/

div#vk-flash {
 background: #ffffff;
 border: 1px solid #aaa;
 text-align: center;
 padding-top: 15px;
 display: none;
}

#pagemask-black { top: 0; }

#pagemask-white { z-index: unset; }

.ui-dialog { z-index: 99999 !important; }

.ui-dialog-titlebar {
 padding: .5em 1em .3em;
 position: relative;
}

.ui-widget-header {
 border: 1px solid #aaa;
 background: #ccc;
 color: #222;
 font-weight: bold;
}

/*--- PAGER ---*/

p.pager-wrapper { margin-top: 30px; }

/* styles.inc */
.pager-current,
.pager-other:hover { 
 padding: 7px 10px;
 margin: 0;
}

.pager-other { 
 padding: 7px 10px;
 margin: 0;
}


