/*********************************************
 *
 *
 *              M - koko
 *
 *
 ********************************************/

@media all and (min-width: 900px) and (max-width: 1399px) {

#infobar {
background-color: green;
}

#infobar:after {
  content: 'M (min-width: 750px) and (max-width: 1099px)';
}

body, td { 										

font-size:17px;

}

.logo_boxes {
display: grid;
grid-gap: 0px;
grid-template-columns: [col] 420px [col] 80px;
grid-template-rows: [row] auto [row] auto [row];

position: absolute;
top: 20px;
right: 0px;
  }

.box {

padding: 0px;
}

.a {
  grid-column: col;
  grid-row: row;
}
.b {
  grid-column: col 2;
  grid-row: row;
}

.c {
  grid-column: col / span 2;
  grid-row: row 2;
}




.logot {
position: absolute;
top: 10px;
right: 0px;


 
}

.logot_links {

}
.logot_puh {


margin-top: 0px;

text-align: left;
line-height: 25px;
margin-right: 20px;

color: #FFF;
font-weight: bold;
font-size: 15px;
}

.logot_big {
text-align: right;
}

.logot_puh H1 {
color: #FFF;
font-size: 15px;
font-family: 'Archivo Black', sans-serif;
}

.logot_puh a:link, .logot_puh a:visited, .email {
  color:#FFF;
  text-decoration:none;
  font-size: 22px;
  font-weight: normal;
  font-family: 'Archivo Black', sans-serif;
    text-shadow: 3px 3px #000000;

  
}

.logot_puh a:hover {
  color:#FFF;
  text-decoration:none;
}


.boxes {
  display: flex;
  flex-grow: 3;
  align-items: stretch;
  
    flex-wrap: wrap;

}


.boxes div {
background-color: #00366d;
flex: 1 0 0px;
    border: 3px solid #000;

   justify-content: space-between;
   padding: 40px;
   margin: 10px;
   border-radius: 10px;
color: #FFF;
}
.boxes div h1 {
color: #FFF;
}


.toppic {
position: absolute;

top: 00px;

min-height: 170px;




width: 100%;
background-color: transparent;
z-index: 99;
text-align: left;
}

.toppic2 {




border-right: 0px solid #000000;
border-left: 0px solid #000000;
border-top: 0px solid #999999;
height: 555px;

width: 100%;
margin-left: 0px;
margin-right: 0px;


z-index: 10;

text-align: center;

}

.bgtable {

position: absolute;

top: 230px;

min-height: 110px;


width: 100%;
background-color: transparent;
z-index: 99;

border: 0px solid #114B89;



}

.bgtable {
right: 0;

margin-right: auto;
max-width: 100%;
width: 100%;
}

.mainbg {
margin-top: 0px;
padding: 10px;

padding-left: 30px;
padding-right: 30px;
max-width: 100%;

margin-left: auto;
margin-right: auto;
}


.content {




}

.content_text {
margin: 0px;
width: 100%;
display: table;
}

.toparea {
height: 250px;
/* Pieni kuva
width: 1100px;
-moz-border-radius-bottomright: 10px;
border-bottom-right-radius: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-left-radius: 10px;
*/



}




#logotext {
position: absolute;
top: 8%;
left: 10px;
right: auto;
max-height: 230px;
max-width: 720px;
width: 50%;
margin: 0;
margin-left: 0;
margin-right: auto;
}






.main_header {
display: block;

padding-top: 15px;
padding-left: 20px;
padding-bottom: 0px;
}

.footerdiv {

margin-left: 0px;
margin-right: 0px;
}


.footerdiv {


min-height: 50px;


width: 100%;

z-index: 99;

border: 0px solid #114B89;

margin-left: auto;
margin-right: auto;


}

/* Taulukkorakenne */

.outer {

display: table;
width: 100%;
border-spacing: 20px;


}

.inner {
width: 50%;
display: table-cell;
}

.inner2 {
width: 40%;
display: table-cell;
}


.inner3 {
width: 20%;
display: table-cell;
}
.outer div {
vertical-align: top;
}

.main {
vertical-align: top;
display: table-cell;
width: 100%;
max-width: 100%;
/*
-moz-box-shadow: 0px 0px 9px #ADA9A9;
-webkit-box-shadow: 0px 0px 9px #ADA9A9;
box-shadow: 0px 0px 9px #ADA9A9;
*/


}

.sidebar {
padding: 20px;

vertical-align: top;
display: table-cell;

white-space: nowrap;
/*
-moz-box-shadow: 0px 0px 9px #ADA9A9;
-webkit-box-shadow: 0px 0px 9px #ADA9A9;
box-shadow: 0px 0px 9px #ADA9A9;
*/
-moz-border-radius: 5px;
border-radius: 5px;
}

.content_text {
display: table;
}


.main_55 {

display: table-cell;
width: 55%;
}
.main_45 {
padding-left: 20px;
display: table-cell;
width: 45%;
vertical-align: top;
}

.main_50 {
display: table-cell;
width: 50%;

vertical-align: top;

}

.main_65 {

display: table-cell;
width: 65%;
vertical-align: top;
}

.main_35 {

display: table-cell;
width: 35%;
vertical-align: top;
}




/* Navigointi */


#navbg {
height:25px;
width: 100%;
margin-top: 185px;

margin-left: 0px;
margin-right: 0px;


}


  .navi {
    overflow: visible;
    width: auto;

 
  }

  .navi.opacity {
    opacity: 1;
  }
  


  .navi li a {
    background-color: transparent;
    border: 0 solid red;
    color: #FFF;
    font-size: 20px;
    z-index: 15;
    padding: 0px;
    padding-left: 15px;
        padding-right: 15px;
    margin: 0px;



    

  }

  .navi li {
    position: relative;
    list-style: none;
    float: left;
    display: block;
   
    overflow: visible;
    margin: 0px;
    height: 25px;


    
  }
  
  
   .navi  li~li { border-left: 0px solid #A6A6B2; }
  

  
  .navi li > ul {
    position: absolute;
    top: auto;
    left: 0; 
  }
  
  .navi li > ul li {
    width: 100%;
  }
  
  .navi li ul li > ul {
    margin-left: 100%;
    top: 0; 
  }
  .navi li ul li a {
    border-bottom: none; 
    border-radius: 0px;
  }
  .navi li ul.open {
    display: block;
    opacity: 1;
    visibility: visible;
    z-index: 1; 
  }
  .navi li ul.open li {
    overflow: visible;
    max-height: 100px; 
  }
  .navi li ul.open ul.open {
    margin-left: 100%;
    top: 0; 
  }
  

#map {
background-color: #efefef;
height: 250px;
width: 100%;



}



/* Mobipainikkeet */
#mobi {
display: none;
}

/* Muut */
.mainbg img {
max-width: 100%;
width: auto;
}


.feedback {
width: 650px;
}



@keyframes fadein {
    from { opacity: 0; margin-left: 30px; }
    to   { opacity: 1; margin-left: 0px; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; margin-left: 30px; }
    to   { opacity: 1; margin-left: 0px; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; margin-left: 30px; }
    to   { opacity: 1; margin-left: 0px; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; margin-left: 30px; }
    to   { opacity: 1; margin-left: 0px; }
}


@keyframes fadein2 {
    from { opacity: 0; margin-left: -10px; }
    to   { opacity: 1; margin-left: 0px; }
}

/* Firefox < 16 */
@-moz-keyframes fadein2 {
    from { opacity: 0; margin-left: -10px; }
    to   { opacity: 1; margin-left: 0px; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein2 {
    from { opacity: 0; margin-left: -10px; }
    to   { opacity: 1; margin-left: 0px; }
}

/* Internet Explorer */
@-ms-keyframes fadein2 {
    from { opacity: 0; margin-left: -10px; }
    to   { opacity: 1; margin-left: 0px; }
}


.logot_small {
display: none;
}
}
