@charset "utf-8";
/* CSS Document */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 350px;
}

body {
  line-height: 1.5em;
  font: 100% roboto,arial,sans-serif;
  min-height: 100%;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/*
a {
  color: #981793;
  position: relative;
  text-decoration: none;
}

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

a:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}
*/


a {
  display:block;
  color: #981793;
  /*
  color: #5e9eff;
  */
  padding:10px
}


main a {
  padding: 0px;
  text-decoration: none;
  display: inline;
}

header h1 {
  height: 80px;
  line-height: 80px;
  padding-left: 10px;
  color: #79B30B;
}

section {
  margin: 10px 0 10px 0
}

main.wrapper {
  display: grid;
  grid-template-columns: 1fr min(80ch, calc(100% - 64px)) 1fr;
  grid-column-gap: 32px;
}

main.wrapper > * {
  grid-column: 2;
}

main.full-bleed {
  width: 100%;
  grid-column: 1 / -1;
}

main#links {
  line-height: 2.5;
  overflow-wrap: break-word;
  margin: 10px 0 10px 20px;
  text-overflow: ellipsis;
  overflow: hidden;
  min-width: fit-content;
}

main p {
  margin:10px;
}

main h2 { font-size: 1.2em; }

main h3 { font-size: 1em; }

main ul.koulutus {
  list-style-type: none;
  padding: 0 0 0 20px;
  margin: 10px 0 10px 0;
}

nav {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  /* background: #B9CAFF; */
  background: #333
}

ul.primary {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

li.nav {
  float: left;
}

li.nav a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li.nav a:hover {
  background-color: #111;
}

address {
  margin-left: 10px;
}

footer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  width: 100%;
  min-width: 200px;
  background:#FF8539;
}

footer h1 { font-size: 1.2em; }

footer h2 { font-size: 1em; }

footer a {
  padding: 0px;
  text-decoration: none;
  display: inline;
}

footer div.footer-yht {
  flex-grow: 1;
  flex-basis: 200px;
  min-width: 200px;
  max-width: 300px;
  margin: 10px;
}

footer ul.yht {
  min-width: 160px;
}

footer .huom {
  margin: 10px 0px 10px 0px
}

img {
  margin: 10px; /*top,right,bottom,left*/
}

img.adjust.default {
  width: 320px;
  height: 184px;
}


img.adjust.profile-picture {
  width: 300px;
  height: 225px;
}

img.adjust.logo {
  width: 226px;
  height: 226px;
}

img.selkaranka {
  height: 400px;
}

section.push_img {
  margin: 10px 0 10px 0px;
  text-overflow: ellipsis;
  overflow: hidden;
  min-width: 300px;
}

.links { line-height: 2.5em; }

@media (min-width: 600px) {
  img.adjust {
    display: block;
    max-width: 100%;
    float: right;
  }

  img.adjust.default.left { float: left; }
}

@media (max-width: 600px) {
  img.adjust {
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }
}


