html {
  -webkit-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	height: 100%;
}

body {
	background: #EFEDE6;
	font-family: "Trebuchet MS", Helvetica, sans-serif;
	font-size: 16px;
	color: #2D232E;
	margin: 0;
	padding: 0;
	}


.main {
	margin-left: 230px; /* same as nav width */
	padding: 50px; /* teksti alkaa top */
	height: 100%;
}

.text {
	max-width: 50%; /* 800px */
	line-height: 1.5;
}


.dot {
	max-width: 50%; /* 800px */
	line-height: 1.5;
    list-style: circle !important;
}

.dot li {
	padding-left: 0.5em;
}

.dot li:before {
	padding-right: 4px;
}

p {
	margin-right: 10%; /* 70px */
}


h1 {
	font-size: 1.7em;
}


h2 {
  color: #5e4e53 !important;
  font-size: 1.4em;
}


h3 {
    font-size: 1.2em;
}

nav {
	width: 230px;
    height: 100%;
	background: #2D232E;
	position: fixed !important;
	top: 0;
	left: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	z-index: 10;
}


nav ul {
	list-style: none;
	height: 100%;
	margin: 0;
	padding: 0;
}

nav li a {
    display: block;
    color: #f8df7b;
    text-decoration: none;
    margin-top: 12%; /* linkkivali */
    padding-left: 20%; /* 45px; */
}


nav li a.active {
	background-color: #EFEDE6;
	font-weight: bold;
    color: #2D232E;
}

nav li a:hover:not(.active) {
	font-weight: bold;
}

#logo {
	max-width: 80%;
	padding-top: 8%; /* 20px; */
	padding-bottom: 5%; /* 15px; */
	display: block;
    margin-left: auto;
    margin-right: auto;
	z-index: 12;
}


footer {
	position: fixed;
	clear: both;
	display: block;
    color: #f8df7b;
	bottom: 1%; /* 5px; */
	width: 230px;
	height: 7%; /* 70px; /** korkeus **/
	text-align: center;
    z-index: 12;
}

footer img {
    padding: 0px !important;
    border: 2px solid #000;
    border-radius: 6px;
}

.main a {
	color: #2e72c0;
	text-decoration: underline;
	font-weight: bold;
}

.main a:visited {
	color: #639ada;
	text-decoration: underline;
	font-weight: bold;
}

::selection {
	color: #ffffff;
	background: #847e81;
}

::-moz-selection {
	color: #ffffff;
	background: #847e81;
}

.text ul {
	list-style: none;
}

.text li {
	padding-left: 0.5em;
}

.text li:before {
	padding-right: 4px;
}

* {
  box-sizing: border-box;
}

.column {
  float: left;
  max-width: 33.33%;
  padding: 15px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

img {
    padding: 8px 0 8px 0;
}

/** video **/
object {
    padding: 8px 0 8px 0;
}

/** myös video **/
iframe {
    padding: 8px 0 8px 0;
}

figure {
    display: inline-block;
    text-indent: 0;
    margin: 0.5em;
    padding: 0.1em;
    max-width: 100%;
}

figcaption {
    border: solid 3px #5e4e53;
    background: #fbfaf9;
    border-radius: 5px;
    padding: 0.5em;
    color: #5e4e53;
}

hr.cool {
    border-top: #EFEDE6 3px solid;
    max-width: 80%;
}


/** MEDIA SCREEN AAA **/
@media only screen and (max-width: 800px) {
  /* For mobile phones: */
  .main .text .dot .column .row .gallery .grow .gcolumn .fslightbox-toolbar-button {
    width: 100%;
  }
}


/** SOCIAL MEDIA **/

.linked {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    display: inline-block;
    opacity: 0.4;
    background:transparent url('/social/li.png') no-repeat center;
}

.linked:hover {
    opacity: 1.0;
}

.youtube {
    width: 40px;
    height: 40px;
    display: inline-block;
    opacity: 0.4;
    background:transparent url('/social/yt.png') no-repeat center;
}

.youtube:hover {
    opacity: 1.0;
}

@media only screen and (max-width: 800px) {
    .linked, .youtube, .cool {
        display: none;
        overflow: hidden;
        position: relative;
    }
}



/*** SCROLLBAR ***/
::-webkit-scrollbar {
	max-width: 15px;
}

::-webkit-scrollbar-track {
	background: #EFEDE6;
}

::-webkit-scrollbar-thumb {
	background: #2D232E;
}

/** TAULUKKO **/
table {
  border-collapse: collapse;
  max-width: 60%;
}

td, th {
  border: 1px solid #8c8c8c;
  text-align: left;
  padding: 10px;
}

tr:nth-child(odd) {
  background-color: #fff;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

tr:hover {
    background-color: #D6EEEE;
    
}

/** NAPPI **/
.nappi {
    background-color: #2D232E;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.nappi a {
    color: #F8DF7B !important;
    margin: 15px;
}


/** GALLERIA **/

.gallery {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.grow {
    display: -ms-flexbox; /* IE10 */
    display: flex;
    -ms-flex-wrap: wrap; /* IE10 */
    flex-wrap: wrap;
    padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.gcolumn {
    -ms-flex: 25%; /* IE10 */
    flex: 25%;
    max-width: 80%;
    padding: 0 8px;
    -webkit-column-count: 4; /* Chrome, Safari, Opera */
    -moz-column-count: 4; /* Firefox */
    column-count: 4;
}

.gcolumn img {
    vertical-align: middle;
    max-width: 100%;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
.gcolumn {
    -ms-flex: 50%;
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.gcolumn {
    -ms-flex: 100%;
    flex: 100%;
    max-width: 100%;
  }
}


.fslightbox-toolbar-button:nth-child(5) {
    display: none !important;
}

.fslightbox-toolbar-button:first-child {
    display: none !important;
}




