﻿/* -------------------------------------------------------
    This file contains almost all needed CSS-definitions.
---------------------------------------------------------- */

@font-face {
    font-family: 'Harrington'; /*a name to be used later*/
    src: url('HarringtonTTF/HARNGTON.TTF'); /*URL to font*/
}

/* HTML tag definitions in alphabetical order */

body {
    background-image: url("Images/wersoi.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: #e6e6e6;
    width: auto;
    font-family: Harrington,Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px inherit;
    color: #ffffff;
    height: 100%;
    margin: 0;
    user-select: none;
}

h1 {
    font-family: Harrington,Verdana, Geneva, Tahoma, sans-serif;
    color: #006699;
    text-shadow: 1px 1px 3px #000000;
    font-size: 32px;
}

ul {
    list-style-type: none;
    margin: 2px;
}

/* Class definitions in alphabetical order */

.aImg {
    position: relative;
    border: 2px solid #000000;
    box-shadow: 3px 3px 3px #000000;
    margin: 6px;
}

.aImg:hover {
    cursor:zoom-in;
    border: 2px solid #ff6a00;
}


.back-to-top {
    display: none;
    position: fixed; /* Fixed/sticky position */
    bottom: 30px; /* Place the button at the bottom of the page */
    right: 20px; /* Place the button 30px from the right */
    z-index: 999; /* Make sure it does not overlap */
    color: #FE642E; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 5px; /* Some padding */
}

.back-to-top:hover {
    color: red; 
} 

.closeButton {
    position: absolute;
    top: 3px;
    right: 5px;
    color: #000000;
    z-index: 998;
    cursor: pointer;
}

.contentContainer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    color: #000000;
    border-top-left-radius: 12px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    height: auto;
    overflow: hidden;
    margin-top: 30px;
}

.esiKuva {
    width: 30%;
    float: left;
    margin-right: 20px;
    margin-bottom: 5px;
    box-shadow: 2px 2px 5px #000000;
}

.esittelyDiv {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 10px;
    left: 20px;
    margin-top: 55px;
    padding-top: 10px;
    margin-bottom: 20px;
    margin-right: 10px;
    overflow: auto;
}

.esittelykuva {
    width: 100%;
}

.etusivu {
    width: auto;
    height: 90%;
    margin: 15px;
    padding-left: 30px;
    bottom: 10px;
    padding-top: 30px;
    margin-right: 20px;
    margin-bottom: 0;
    background-image: url("Images/tauslogo.png");
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.6;
}

.etusivunKuva {
    width: 30%;
    float: right;
    display: flex;
    opacity: 0.5;
    padding-left: 10px;
}

.footerBlock {
    position: absolute;
    bottom: 2px;
    left: 10px;
    height: 20px;
    color: #000000;
    font-size: 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.iconContainer {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #000000;
    padding-top: 10px;
    margin-bottom: 5px;
    width: 100%;
    text-align: center;
}

/*---------------------------------------------------------------------*/
/* Image PopUp window styling
/*---------------------------------------------------------------------*/

.ImgPopup {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    text-align: center;
}

.ImgPopupWrap {
    display: block;
    text-align: center;
    width: 90%;
    margin: 0 auto; /* Centers the block within the parent */
}

.ImgPopClose {
    position: fixed;
    float: right;
    cursor: pointer;
    right: 46px;
    top: 25px;
    color: #CCCCCC;
    font-size: 24px;
    z-index: 99999;
}

.ImgPopClose:hover {
    color: #FFFFFF;
}

.ImgPopHeader {
    position: relative;
    width: 100%;
    height: 44px;
    margin: 0;
    color: green;
    font-size: 24px;
    padding: 10px;
    background-color: #E6E6E6;
    border-bottom: 1px solid green;
}

.ImgPopupHeaderText {
    float: left;
    padding-right: 10px;
}

.ImgPopupText {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #FFFFFF;
    font-size: 18px;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding: 3px;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.ImgPopContent {
    display: table;
    overflow-y: auto;
    overflow-x: auto;
    min-width: 300px;
    margin: 0 auto; /* Centers the block within the parent */
    user-select: none;
}

.img-arrow{
    position: absolute;
    font-size: 48px;
    bottom: 50px;
    color: #FFFFFF;
    opacity: 0.8;
}

.img-arrow:hover{
    opacity: 1.0;
    cursor: pointer;
}

.keikkaList {
    padding: 5px;
}

.kuvarivi {
    position: relative;
    width:100%;
}

.kuvaCell {
    display: table-cell;
    position: relative;
    width: 15%;
    border-top-right-radius: 50% 50%;
    border-top-left-radius: 50% 50%;
    border-bottom-right-radius: 50% 50%;
    background-color: #FFFFFF;
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    padding: 5px;
    padding-bottom: 0;
    opacity: 0.6;
    box-shadow: 2px 2px 5px #000000;
    cursor: pointer;
    background-color: #EEEEEE;
    z-index: 499;
}

.kuvaLink {
    position: absolute;
    bottom: 0px;
    left: 3px;
    color: #000000;
    z-index: 999;
}

.kuvaTaulu {
    border: none;
    width: 94%;
    margin-left: 3%;
    margin-top: 20px;
}

.LoadAll {
    width: 220px;
    height: 120px;
    color: #006699;
    font-family: RalewayCustom,sans-serif;
    font-size: 22px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: #EEEEEE;
    z-index: 555;
    border-top-right-radius: 13px;
    border-bottom-right-radius: 13px;
    border-top-left-radius: 13px;
    border-bottom-left-radius: 13px;
    box-shadow: 2px 2px 5px #000000;
}

.LoadSpinLoc {
    display: block;
    top: 10px;
    text-align: center;
    padding: 5px;
}

.mainContainer {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 100%;
    margin: 0px;
}

.mainLogo {
    font-family: Harrington, Verdana, Geneva, Tahoma, sans-serif;
    text-shadow: 2px 2px 5px #000000;
    font-size: 90px;
    color: #ffffff;
    height: auto;
    padding-bottom: 10px;
}

.mapContainer {
    position: relative;
    width: 90%;
    margin-top: 50px;
    box-shadow: 2px 2px 5px #000000;
    border: 1px solid #000000;
} 

.menuContainer {
    position: absolute;
    text-align: left;
    padding: 10px;
    left: 20px;
    top: 10px;
    width: 280px;
}

.menuItem {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    color: #000000;
    padding: 2px;
    padding-left: 10px;
    margin-bottom: 5px;
    border-top-right-radius: 13px;
    border-bottom-right-radius: 13px;
    border-top-left-radius: 13px;
    border-bottom-left-radius: 13px;
    width: 90%;
    text-align: center;
    display: none;
    border: solid 1px #000000;
    background-color: #FFFFFF;
    opacity: 0.5;
}


.newsList {
    padding: 5px;
    cursor: pointer;
    width: auto;
}

.newsList:hover {
    color: #006699;
}

.pathBlock {
    position: relative;
    display: block;
    background-color: #000000;
    color: #FFFFFF;
    width: 100%;
    text-align: left;
    font-size: 22px;
    padding-left: 2px;
    padding-top: 2px;
    padding-bottom: 4px;
    background: linear-gradient(to right, #006699,#bfbfbf);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.pikkukuva {
    position: relative;
    border-top-right-radius: 50% 50%;
    border-bottom-right-radius: 50% 50%;
    border-top-left-radius: 50% 50%;
    border-bottom-left-radius: 50% 50%;
    width: 100%;
    cursor: pointer;
    border: 1px solid #000000;
}

.pikkukuva:hover {
    transform: scale(1.2);
    box-shadow: 2px 2px 5px #000000;
    border: 2px solid;
    position: relative;
    border-top-right-radius: unset;
    border-top-left-radius: unset;
}

.popClose {
    color: #808080;
    float: right;
    font-weight: bold;
    padding: 5px;
}

.popClose:hover, .popClose:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    font-size: 18px;
}

.popHead {
    padding-left: 15px;
    color: #000000;
    font-size: 20px;
}

.popUp {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

.popupContent {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 0;
    border: 1px solid #000000;
    width: 50%; /* Could be more or less, depending on screen size */
    box-shadow: 2px 2px 5px #000000;
}

.popViiva {
    display: block;
    width: 95%;
    margin-left: 10px;
    height: 2px;
    border: none;
    background: linear-gradient(to right, #006699,#FFFFFF);
    margin-top: 10px;
    margin-bottom: 10px;
}

.roundMenuIcon {
    color: #000000;
    background: #FFFFFF;
    padding: 5px;
    opacity: 0.6;
    margin-bottom: 5px;
    margin-left: 5px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border: solid 1px #000000;
    width: 16px;
    text-align: center;
    box-shadow: 2px 2px 5px #000000;
}

.roundMenuIcon:hover {
    color: #FFFFFF;
    background-color: grey;
    cursor: pointer;
}

.sivu {
    height: 90%;
    display: none;
    margin: 15px;
    margin-top: 30px;
    padding-left: 20px;
    margin-right: 20px;
    margin-bottom: 0;
    bottom: 0;
    background-image: url("Images/tauslogo.png");
    background-repeat: no-repeat;
    background-position: bottom right ;
    opacity: 0.8;
}

.taustakuva {
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.tekstiCell {
    padding: 20px;
    padding-top: 0;
    background-color: #FFFFFF;
    vertical-align: top;
    display: none;
    position: relative;
    font-size: 16px;
    top: -3px;
    border: 2px solid #000000;
    background-color: #EEEEEE;
    z-index: 500;
    box-shadow: 2px 2px 5px #000000;
    transition: 3s all ease;
    column-span: all;
}

.uutinen {
    padding: 15px;
    padding-left: 30px;
    padding-right: 30px;
}

.valiViiva {
    display: block;
    width: 90%;
    left:0;
    padding-left: 2px;
    height: 2px;
    border: none;
    background: linear-gradient(to right, #006699,#bfbfbf);
    margin-top: 30px;
    margin-bottom: 30px;
}

.videoDiv{
    display: inline-block;
    padding: 5px;
    padding-bottom: 1px;
    background-color: #000000;
    box-shadow: 2px 2px 5px #000000;
}

#Kuvat {
    background-image: url("Images/kollaasibww.jpg");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: cover;
    opacity: 0.8;
}

#Videot {
    background-image: url("Images/sivutaus.png");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 80%;
    opacity: 0.8;
    padding-top: 20px;
}

/*---------------------------------------------------------------------*/
/* 12-osien leveydet - käytetään sivun leveyden osiin jakamiseen
/* Responsive layoutia varten (bootstrap)
/*---------------------------------------------------------------------*/
.leveys-1 {
    width: 8.33%;
}

.leveys-2 {
    width: 16.66%;
}

.leveys-3 {
    width: 25%;
}

.leveys-4 {
    width: 33.33%;
}

.leveys-5 {
    width: 41.66%;
}

.leveys-6 {
    width: 50%;
}

.leveys-7 {
    width: 58.33%;
}

.leveys-8 {
    width: 66.66%;
}

.leveys-9 {
    width: 75%;
}

.leveys-10 {
    width: 83.33%;
}

.leveys-11 {
    width: 91.66%;
}

.leveys-12 {
    width: 100%;
}

/*---------------------------------------------------------------------*/
/* 12-osien sisennykset - käytetään msrginaalien luomiseen vasemmalle
/*---------------------------------------------------------------------*/

.sisennys-1 {
    margin-left: 8.33%;
}

.sisennys-2 {
    margin-left: 16.66%;
}

.sisennys-3 {
    margin-left: 25%;
}

.sisennys-4 {
    margin-left: 33.33%;
}

.sisennys-5 {
    margin-left: 41.66%;
}

.sisennys-6 {
    margin-left: 50%;
}

.sisennys-7 {
    margin-left: 58.33%;
}

.sisennys-8 {
    margin-left: 66.66%;
}

.sisennys-9 {
    margin-left: 75%;
}

.sisennys-10 {
    margin-left: 83.33%;
}

.sisennys-11 {
    margin-left: 91.66%;
}

.sisennys-12 {
    margin-left: 100%;
}



/* @media Rule for RESPONSIVE LAYOUT */
@media all and (max-width: 1250px) {

    .leveys-7 {
        width: 55%;
    }
   h2{
       font-size: 18px;
   }

}

@media all and (max-width: 1028px) {

    .leveys-7 {
        width: 50%;
    }
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 16px;
    }    .tekstiCell {
        padding: 15px;
        font-size: 14px;
    }
}

@media all and (max-width: 840px) {

    .leveys-7 {
        width: 45%;
    }
    h1 {
        font-size: 24px;
    }
    .tekstiCell {
        padding: 10px;
        font-size: 12px;
    }
}
@media all and (max-width: 770px) {
    body{
        background-image: unset;
    }
    
    .menuContainer {
        background-image: url("Images/etukuva.png");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: bottom right;
        display: inline-block;
        position: relative;
        width: 97%;
        text-align: center;
        left: 0;
        border-top: 2px solid;
        border-bottom: 2px solid;
        padding-top: 65px;
        overflow: hidden;
    }
    .roundMenuIcon{
        opacity: 0.8;
    }
    .menuItem {
        width: 70%; 
        left: 10%;
        display: inline-block;
        position: inherit;
        opacity: 0.8;
    }
    .contentContainer {
        display: inline;
        position: relative;
        height: auto;
        width: 90%;
        overflow: hidden;
    }
    .etusivu {
        padding: 3%;
        overflow: auto;
        padding-top: 0;
        font-size: 14px;
        background-position: bottom center;
        background-size: 50%;
    }
    .sivu {
        padding: 3%;
        overflow: auto;
        margin: 0;
        background-position: bottom center;
        background-size: 50%;
    }

    .sisennys-5{
        width: 5%;
    }
    h1 {
        font-size: 20px;
    }
    .tekstiCell {
        padding: 10px;
        font-size: 12px;
    }
    .mainLogo {
         font-size: 80px;
    }
    .pathBlock {
        width: 90%;
        left: 5%;
        background: linear-gradient(to right, #006699,#E6E6E6);
        border-top-right-radius: 16px;
        border-bottom-right-radius: 16px;
        display: none;
    }
    .footerBlock {
        left: 5%;
        height: 20px;
        width: 90%;
        text-align: center;
        display: block;
        position: relative;
    }
    .etusivunKuva{
        display: none;
    }
    .esittelyDiv {
        position: relative;
        width: 90%;
        left: 5%;
        margin-top: 0;
        padding-top: 10px;
        margin-bottom: 20px;
        margin-right: 0;
    }
    .pikkukuva:hover {
        transform: scale(1.5);
    }
    .kuvaTaulu {
        margin-top: 5px;
    }

    .mapContainer {
        width: 100%;
        text-align: center;
        box-shadow: 2px 2px 5px #000000;
        border: 1px solid #000000;
    }

    .popupContent {
        width: 90%;
    }


    #Kuvat {
        margin-bottom: 10px;
        margin-top: 10px;
        text-align: center;
    }

    #Videot {
        margin-bottom: 10px;
        text-align: center;
    }
}

@media all and (max-width: 655px) {

    .leveys-7, .leveys-2, .leveys-3, .leveys-1 {
        width: 90%;
    }
}