body {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-family: Georgia, "Times New Roman", Times, serif;
}

#wrapper {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

header {
  width: 100%;
  position: relative;
  height: 338px;
  background-color: #333;
}

img.etusivu {
  width: 100%;
  height: 83.5%;
  position: relative;
  margin: auto;
}

article img {
  width: 100%;
  position: relative;
}

img.article {
  z-index: -1;
  margin-top: -82px;
}

nav.main-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ada7f8;
  margin: 0;
}

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

nav.main-nav li {
  margin-left: 0px;
  margin-bottom: 5px;
  padding: 0;
  float: left;
}

nav.main-nav li a {
  text-decoration: none;
  color: #333;
  height: 20px;
  line-height: 20px;
  padding: 0 27.5px;
  font-size: 14px;
}

nav.main-nav li a:hover {
  color: #fff;
}

nav.main-nav li.active a {
  color: #fff;
}

.syksy_2018 {
  position: relative;
  top: 12px;
  font-size: 26px;
  font-weight: bold;
}

/* Dropdown Button */
.dropbtn {
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ada7f8;
  min-width: 180px;
  z-index: 999;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  line-height: 1.75;
  border: 1px solid black;
 padding-bottom: 5px;
}


/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 22px 22px;
  text-decoration: none;
  display: inline-block;
	
  
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  color: #fff;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

main {
  position: relative;
  padding-top: 0px;
}

footer {
  background-color: #ada7f8;
  bottom: 0;
  width: 100%;
  height: 60px;
  clear: both;
  position: relative;
  margin-top: -20px;
}

.topnav {
  overflow: hidden;
  background-color: #ada7f8;
}

.topnav a {
  float: left;
  display: block;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.active {
  color: white;
}

.topnav .icon {
  display: none;
}

.syksy_18 {
  text-decoration: none;
}

.topnav {
  display: none;
}

.line {
  border-top: solid 1px #333;
  display: flex;
  flex-direction: row;
}

@media only screen and (max-width: 600px) {
  #wrapper {
    max-width: 100%;
    height: 20px;
  }

  .topnav {
    display: block;
    z-index: 100;
  }

  img.etusivu {
    top: 0px;
    max-width: 100%;
	height: 170px;
  }

  img.article {
    max-width: 100%;
    margin-top: 0px;
  }

  .line {
    border-top: solid 0px #333;
      display: flex;
  flex-direction: row;
  }

  .syksy_2018 {
    font-size: 18px;
    font-weight: bold;
  }

  a href {
    text-decoration: none;
  }

  header {
    max-width: 100%;
    height: 230px;
  }

  .main-nav {
    display: none;
  }

  .topnav a {
    float: left;
    display: block;
    color: #333;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
  }

  a.active {
    color: #fff;
  }

  .topnav .icon {
    display: none;
  }

  .dropdown {
    float: left;
    overflow: hidden;
  }

  .dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: #333;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ada7f8;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }

  .topnav a:hover,
  .dropdown:hover .dropbtn {
    color: #ffffff;
  }

  .dropdown-content a:hover {
    color: white;
    background-color: #ada7f8;
   
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child),
  .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .topnav.responsive .dropdown {
    float: none;
  }
  .topnav.responsive .dropdown-content {
    position: relative;
  }
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

@media screen and (min-width: 601px) and (max-width: 1000px) {
  .topnav {
    display: block;
    z-index: 100;
  }

  img.etusivu {
    top: 0px;
    max-width: 100%;
    height: 271px;
  }

  img.article {
    max-width: 100%;

    margin-top: 0px;
  }

  .line {
    border-top: solid 0px #333;
      display: flex;
  flex-direction: row;
  }

  .syksy_2018 {
    font-size: 24px;
    font-weight: bold;
  }

  a href {
    text-decoration: none;
  }

  header {
    max-width: 100%;
    height: 331px;
  }

  .main-nav {
    display: none;
  }

  .topnav a {
    float: left;
    display: block;
    color: #333;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
  }

  a.active {
    color: #fff;
  }

  .topnav .icon {
    display: none;
  }

  .dropdown {
    float: left;
    overflow: hidden;
  }

  .dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: #333;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ada7f8;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 999;
  }

  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }

  .topnav a:hover,
  .dropdown:hover .dropbtn {
    color: #ffffff;
  }

  .dropdown-content a:hover {
    color: white;
    background-color: #ada7f8;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .topnav a:not(:first-child),
  .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .topnav.responsive .dropdown {
    float: none;
  }
  .topnav.responsive .dropdown-content {
    position: relative;
  }
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}


@media screen and (min-width: 1001px) {
    
#wrapper {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

nav.main-nav li a {
  text-decoration: none;
  color: #333;
  height: 20px;
  line-height: 20px;
  padding: 0 30px;
  font-size: 13px;
}

}



#myDropdown a.active {
	color: #fff;
}

#sub-items a.active {
	color: #fff;
}

#vts1.active {
	color: #fff;
}

/* MUUT TIMANTTIKORUT*/


#myDropdown1 a.active {
	color: #fff;
}

#tk-items a.active {
	color: #fff;
}

#tk1.active {
	color: #fff;
}


@media only screen and (min-device-height: 768px) and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape) {
  	
#wrapper {
  max-width: 100%;
  position: relative;
  margin: auto;
}

nav.main-nav li a {
  text-decoration: none;
  color: #333;
  height: 20px;
  line-height: 20px;
  padding: 0 calc(15px + (100vw - 750px) * (15 - 30) / (710 -  1000));
  font-size: 14px;
}

img.etusivu {
  width: 100%;
  height: calc(282px - (102vh - 768px )*(0.045));
  position: relative;
  margin: auto;
}

}



@media not all and (min-resolution:.001dpcm) and (min-width: 1000px;)
{ @supports (-webkit-appearance:none) {

    header {
    max-width: 100%;
    height: 340px;
  }
}}
