/* .-merkki viittaa class-systeemiin */
/* #-merkki viittaa id:hen */ 

*{ 
    box-sizing: border-box; 
} 

body { 
    font-family: Arial, Helvetica, sans-serif; 
}
header { 
    background-color:rgba(96, 116, 159, 0.86); 
    border-radius: 2px;
    padding: 15px; 
    text-align: center;  
    color: black;
    min-height: 110px;
} 

/* ------------------------------------------------------------------------------------------------------------- */

@font-face { 
    font-family: HederWest; 
    src: url(fonts/Adler.ttf); 
}

h1 { font-size: 1.85em; 
    
} 
h2 { 
    font-size: 6vw;
    font-family: HederWest; 
    color:#19334d;
} 
h3 {
    font-size: 0.95em; 
    font-family: Lucida, monospace;
}

h4 {
    font-size: 20px; 
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

p { 
    font-family: Arial, Helvetica, sans-serif;
}
/* <p> class */ 
.kuvaus { 
    margin-bottom: 60px;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
}
/* ------------------------------------------------------------------------------------------------------------- */

/* ------------------------------------------------------------------------------------------------------------- */
nav ul { 
    list-style-type: none;
    padding: 0;
    overflow: hidden; 
    background-color:rgba(125, 149, 183, 0.78);
    border-radius: 2px;
} 

li { 
    float: left;
}

li a:link { 
    display: block; 
    color:white; 
    text-align: center; 
    padding: 14px 16px;
    text-decoration:none;
}
 li a:hover { 
    background-color: #525964; 
    text-decoration: underline;
} 
.active { 
    background-color:#56688f; 
    text-decoration: none;
} 

.alert {
    padding: 6px; 
    text-align: center; 
    border-style: double;
    } 
.box { 
    padding: 3px;
    border-style: solid;
    float: left;
    }

/* ------------------------------------------------------------------------------------------------------------- */

article { 
    margin-left: 10px;
    padding: 20px;
    height: 85%;
    width: 96%;
    background-color: #e8f0f9;
    border-radius: 2px;
}

section:after{ 
    content: ""; 
    display: table; 
    clear: both; 
} 
table { 
    border-collapse: collapse; 
    width: 70%; 
    font-family: Arial, Helvetica, sans-serif;
}
th,td  { 
    padding: 4px; 
    text-align: left; 
    font-size: 1.0em;
}

footer { 
    margin-top: 10px;
    left: 0; 
    bottom: 0; 
    width: 100%;
    border-radius: 5px;
    background-color:rgba(96, 116, 159, 0.86);
    padding: 10px;
    text-align: center;
    color: white;
} 

@media screen and(max-width: 600px) { 
    nav { 
        grid-area: 1 / span 6;
    }
    article { 
        width: 100%; 
        height: auto;
    }
}

@media screen and(min-width: 200px) { 
    nav, article { 
        width: 100%; 
        height: auto;
    }
}
/* ------------------------------------------------------------------------------------------------------------- */
/* KUVAT */
/* ------------------------------------------------------------------------------------------------------------- */ 
.etusivu { 
    margin: 5px;
    float: left;
    width: 90%;
    max-width: 250px;
    background-size:cover;
}
.etusivu img {
    width: 95%;
    max-width: 400px; 
}
.photos { 
    display:block; 
    margin-left: 40px; 
    margin-right: auto;
    width: 50%;
    max-width: 400px;
    margin-bottom: 20px;
}

/* ------------------------------------------------------------------------------------------------------------- */
/* GALLERY */ 
/* ------------------------------------------------------------------------------------------------------------- */ 

.main { 
    max-width: 1000px; 
    margin: auto;
}

/* GALLERY inside the album */

.grid-gallery { 
    --size: 100px; 
    display: flex; 
    flex-wrap: wrap;
    gap: 5px; 
    place-items: start center; 
    margin-bottom: 20px;
}
.grid-gallery img {
    width: auto;
    height: 100px;
    object-fit: cover;
    grid-column: auto / span 2;
    border-radius: 5px;
    flex: 1 1 auto;
}
.grid-gallery img:nth-child(5n - 1) { 
  grid-column: 2 / span 2 
}

/* Buttons */
.button { 
    background-color: #56688f; /* Lilac */
    border: none;
    border-radius: 4px;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: HederWest;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}
.button:hover { 
    background-color: #353c77;
    color: gray;
}
.button:disabled {
    background-color: #6c768d;
    opacity: 75%; 
}
.backButton { 
    background-color: #56688f; /* Lilac */
    border: none;
    border-radius: 4px;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: HederWest;
    font-size: 12px;
    margin: 2px 1px;
    margin-bottom: 40px;
    cursor: pointer;
}
.backButton:hover { 
    background-color: #353c77;
    color: gray;
}
/* a class =*/

.painike:link {
    color: white;
    background-color: transparent;
    text-decoration: none;
}
.painike:visited { 
    color: white;
    background-color: transparent;
    text-decoration: none;
}
.painike:hover { 
    color:azure; 
    background-color: transparent;
    text-decoration: none;
} 

/* ------------------------------------------------------------------------------------------------------------- */
/* HIDE BOX */ 
/* ------------------------------------------------------------------------------------------------------------- */ 
#hiddenBox { 
    width: 100%;
    padding: 5px 5px;
    text-align: left;
    background-color: #d1d1d1;
    display: none;    /* Alkujaan piilotettu*/
}
.smallButton { 
    background-color: #56688f; /* Lilac */
    border: none;
    border-radius: 4px;
    color: white;
    padding: 10px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block; 
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 13px;
    margin: 4px 2px;
    cursor: pointer;
}
.smallButton:hover { 
    background-color: #353c77;
    color: gray;
}
.smallButton:disabled {
    background-color: #6c768d;
    opacity: 75%; 
}
/* ------------------------------------------------------------------------------------------------------------- */ 
/* GOOGLE KALENTERI */ 
/* ------------------------------------------------------------------------------------------------------------- */ 

.googleCalendar{
position: relative; 
padding-top: 25%;
padding-bottom: 75%; 
height: 0; 
overflow: hidden; 
}

.googleCalendar iframe{
position: absolute; 
top:0; 
left: 0; 
width: 90%; 
height: 75%;
} 

/* ------------------------------------------------------------------------------------------------------------- */ 
/* TANSSI NAVI */ 
/* ------------------------------------------------------------------------------------------------------------- */ 

.tanssinav { 
    float:left; 
    border-style: groove;
    border-color:#56688f;
    width: 10%; 
    padding:10px;
    background-color: #526084;
} 
.tanssinav:link{ 
    display: block;  
    text-align: center; 
    text-decoration:none;

}
.tanssinav:hover { 
    background-color: #202f56;
} 
.tanssinav:active { 
    background-color: #353c77;
    color: white;
} 

.painike2:link {
    color: #ffffff;
    background-color: transparent;
    text-decoration: none;
}
.painike2:visited { 
    background-color: transparent;
    text-decoration: none;
}
.painike2:hover { 
    color:azure; 
    background-color: transparent;
    text-decoration: none;
}

mySearch {
  width: 100%;
  font-size: 18px;
  padding: 11px;
  border: 1px solid #ddd;
}

/* ------------------------------------------------------------------------------------------------------------- */ 

