/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  background-color: #434343;
  color: #fafafa;
  font-size: 13px;
  font-family: 'Lato', sans-serif;
  font-weight: 100;
  outline:none;

}
#tflogo{
  position: absolute;
  left: min(104px,7vw);
  top: 64px;
  width:200px;
}
#skylogo{
  background-color: #ffffff;
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:176px;
}
#skyimage{
  position: absolute;
  top:0;
  right:0;
  height:176px;
}
#frontpagecontainer{
  overflow-y: auto;
  position:absolute;
  top: 232px;
  left:  min(104px,7vw);
  right: min(104px,7vw);
  bottom: 32px;
  display: grid;
  grid-template-columns: 1fr ;
  grid-template-rows: calc( (100vw - 200px)*0.5 ) auto;
}
#highlights{
  margin:0;
  padding:0;
/*  position:absolute;
  top:   232px;
  left:  104px;
  right: 104px;*/
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows:1fr 1fr;
  grid-template-areas: "a b c" "a d e";
  grid-gap: 16px 16px;
  height: calc( (100vw - 200px)*0.5 );
}
#main_display_content{
/*  position:absolute;
  top: calc(232px + (100vw - 200px)*0.5 + 8px);
  left:  104px;
  right: 104px;
  bottom: 32px;*/
  padding: 0;
  color: #e3e3e3;
  font-family: 'Open sans',sans-serif;
  font-weight: 300;
  font-size:   16px;
  line-height: 22px;
  padding-bottom: 32px;
}

#contactbar{
  position:absolute;
  bottom: 4px;
  height: 24px;
  left: min(104px,7vw);
  right:min(104px,7vw);
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  overflow-x: hidden;
}
.contactitemcontainer{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width:100%;
}
.contactitem{
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: min(12px,1.1vw);
  width:100%;
  overflow: hidden;
  white-space: nowrap;
  padding-left: 4px;
  padding-right:4px;
}


#menubar{
  background-color: #434343;
  position:absolute;
  top:152px;
  height: 48px;
  left: min(104px,7vw);
  right:min(104px,7vw);
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  border: 0.6px solid #f3f3f3;
  overflow-x: hidden;
}
a{
  text-decoration: none;
  color:inherit;
}
p{
  margin-block-start: 0;
  margin-block-end: 2em;
}
h1{
  font-size: max(16px, min(48px,8vw) );
  font-family: 'Lato', sans-serif;
  line-height: 1.1;
  color: #527aac;
  font-weight: 100;
  margin: 0;
  margin-top: 24px;
}
div.highlight{
  background-color: #527aacee;
}
div.nohighlight{
}

a.highlight{
  background-color: #527aacee;
}

a.nohighlight{
}

a.menuitemcontainer{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width:100%;
}

.menuitem{
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: min(24px,3.2vw );
  width:100%;
  overflow: hidden;
  white-space: nowrap;
  padding-left: 4px;
  padding-right:4px;
}
a.menuitemcontainer:hover {
  background-color: #527aacee;
}
div.menuitemcontainer:hover {
  background-color: #527aacee;
}

.twocolumn{
  column-count: 3;
}
@media screen and (max-width:1200px){
  .twocolumn{
    column-count: 2;
  }
}
@media screen and (max-width:600px){
  .twocolumn{
    column-count: 1;
  }
}

#content{
  position:absolute;
  top:200px;
  bottom: 32px;
  left:  min(104px,7vw);
  right: min(104px,7vw);
  padding: 24px;
  background-color: #f3f3f3;
  color: #333333;
  font-family: 'Open sans',sans-serif;
  font-weight: 300;
  font-size:14px;
  line-height: 18px;
  overflow-y: auto;
  overflow-x: auto;
}

div.searchcontext{
  font-weight: 100;
  color: #434343;
}
#searchbox{
  position:absolute;
  right:min(104px,7vw);
  top: 64px;
  width: 200px;
  height: 24px;
  background-color: #f3f3f3;
  border: 1px solid #434343;
  border-radius: 8px;
  padding: 8px;
}
span.title{
  font-weight: 700;
}
a.search{
  font-weight: 300;
  color: #527aac;
}
ul.search{
  list-style: none;
  padding-left:0;
}
li.search{
  padding: 8px;
}
em{
  background-color: #ffff00;
  border-radius: 8px;
}
#searchWindow{
  display:none;
  z-index: 1000; // on top
  position:absolute;
  right:min(104px,7vw);
  top: 88px;
  width: min(400px,80vw);
  height: 300px;
  background-color: #f3f3f3;
  border: 1px solid #434343;
  border-radius: 3px;
  font-family: 'Open sans', sans-serif;
  color: #434343;
  padding:8px;
  overflow-y: auto;
  overflow-x: hidden;
}

#addbox {
  padding: 24px;
  left: 24px;
  right:24px;
  bottom: 24px;
  height: 200px;
  background-color: #6f8fb7;
  color: #fafafa;
  display:flex;
  align-content: flex-start;
  margin-top:24px;
}
h1.addbox{
  font-family: 'Open sans', sans-serif;
  font-weight: bold;
  font-size: 13px;
  line-height: 16px;
  color:#ffffff;
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 0;
}
div.addbox{
  padding:8px
}

#ryhmaoverlay{
  bottom: 0;
  width:100%;

}

#ryhmaraami{
  display: flex;
  justify-content:center;
  align-items:stretch;
  position: absolute;
  bottom: 0;
  width:100%;
}
#ryhmakuva{
  /*width: 800px;*/
  /*height: 700px;*/
  max-height: calc(100vh - 350px);
  max-width: calc( 100vw - 100px);
  position:absolute;
  /*	border: 1px solid;*/
  margin-top: -20px;
  /*z-index: -1;*/
  bottom: 0;
  margin-left:auto;
  margin-right:auto;
  display:block;
}
#ml4utvideo{
  max-width: 100%;
  max-height: 90%
}
#mlvideo{
  max-width: 100%;
  max-height: 90%
}
#webinarvideo{
  max-width: 100%;
  max-height: 90%
}


#contactraami{
  display: flex;
  flex-flow: row nowrap;
  position: absolute;
  bottom:16px;
  left:0;
  right:0;
  z-index: 1;
  align-content: stretch;
  justify-content: center;
}
#iikka{
  /*	border: 1px solid white;*/
  padding:15px 15px 15px 15px;
  background-color: #6f8fb7cc;

  border-radius:5px;
  color:rgb(227,228,229);
  width:200px;
  height:auto;
  margin: 16px;

}
#kaisa{
  padding:15px 15px 15px 15px;
  background-color: #6f8fb7cc;
  border-radius:5px;
  color:rgb(227,228,229);
  width:200px;
  margin: 16px;
}
#mika{
  /*	border: 1px solid white;*/
  padding:15px 15px 15px 15px;
  background-color: #6f8fb7cc;
  border-radius:5px;
  color:rgb(227,228,229);
  width:200px;
  margin: 16px;

}
.umpf{
  font-weight: 700;
}
#publist{
  display: grid;
  grid-template-columns: 60px auto 60px;
  grid-template-rows: auto;
  grid-gap: 24px 8px;
  width:100%;
}
#webinarlist{
  disploay: flex;
  align-content:flex-start;
  margin-top:8px;
}
.piilo{
  display: none;
}

img.icon{
  width:24px;
  height:24px;
  padding: 4px;
}


/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: none;
    font-weight: bold;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

