/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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 {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * 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;
}

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


/*------------------------------------*\
  TYPOGRAPHY
\*------------------------------------*/

@font-face {
  font-family:'TT-Travels-Medium';
  src:url('../fonts/TTTravels-Medium.eot');
  src:url('../fonts/TTTravels-Medium.eot?#iefix') format('embedded-opentype'),
    url('../fonts/tt_travels-medium-webfont.woff') format('woff'),
    url('../fonts/tt_travels-medium-webfont.ttf') format('truetype'),
    url('../fonts/TTTravels-Medium.svg#TTTravels-Medium') format('svg');
    font-weight:normal;
    font-style:normal;
}

@font-face {
  font-family:'TT-Travels-Black';
  src:url('../fonts/TTTravels-Black.eot');
  src:url('../fonts/TTTravels-Black.eot?#iefix') format('embedded-opentype'),
    url('../fonts/tt_travels-black-webfont.woff') format('woff'),
    url('../fonts/tt_travels-black-webfont.ttf') format('truetype'),
    url('../fonts/TTTravels-Black.svg#TTTravels-Black') format('svg');
    font-weight:normal;
    font-style:normal;
}

@font-face {
    font-family: 'TT_Travels_Bold';
    src: url('../fonts/TTTravels-Bold.eot');
    src: url('../fonts/TTTravels-Bold.eot?#iefix') format('embedded-opentype'),
        url("../fonts/TTTravels-Bold.otf") format("opentype"), /* Open Type Font */
        url("../fonts/TTTravels-Bold.ttf") format("truetype"), /* Safari, Android, iOS */
        url('../fonts/TTTravels-Bold.woff2') format('woff2'),
        url('../fonts/TTTravels-Bold.woff') format('woff'),
        url('../fonts/TTTravels-Bold.svg#TTTravels-Bold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TT_Travels_ExtraBold';
    src: url('../fonts/TTTravels-ExtraBold.eot');
    src: url('../fonts/TTTravels-ExtraBold.eot?#iefix') format('embedded-opentype'),
        url("../fonts/TTTravels-ExtraBold.otf") format("opentype"), /* Open Type Font */
        url("../fonts/TTTravels-ExtraBold.ttf") format("truetype"), /* Safari, Android, iOS */
        url('../fonts/TTTravels-ExtraBold.woff2') format('woff2'),
        url('../fonts/TTTravels-ExtraBold.woff') format('woff'),
        url('../fonts/TTTravels-ExtraBold.svg#TTTravels-Thin') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TT_Travels_Regular';
    src: url('../fonts/TTTravels-Regular.eot');
    src: url('../fonts/TTTravels-Regular.eot?#iefix') format('embedded-opentype'),
        url("../fonts/TTTravels-Regular.otf") format("opentype"), /* Open Type Font */
        url("../fonts/TTTravels-Regular.ttf") format("truetype"), /* Safari, Android, iOS */
        url('../fonts/TTTravels-Regular.woff2') format('woff2'),
        url('../fonts/TTTravels-Regular.woff') format('woff'),
        url('../fonts/TTTravels-Regular.svg#TTTravels-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TT_Travels_Light';
    src: url('../fonts/TTTravels-Light.eot');
    src: url('../fonts/TTTravels-Light.eot?#iefix') format('embedded-opentype'),
        url("../fonts/TTTravels-Light.otf") format("opentype"), /* Open Type Font */
        url("../fonts/TTTravels-Light.ttf") format("truetype"), /* Safari, Android, iOS */
        url('../fonts/TTTravels-Light.woff2') format('woff2'),
        url('../fonts/TTTravels-Light.woff') format('woff'),
        url('../fonts/TTTravels-Light.svg#TTTravels-Light') format('svg');
    font-weight: normal;
    font-style: normal;
}


/*------------------------------------*\
  GENERAL STYLES
\*------------------------------------*/

body {
    font-family: 'TT-Travels-Medium';
    font-size: 14px;
    color: #111111;
    line-height: 1.375;
    word-break: break-word;
    text-align: center;
    background-image: url(../img/3d-nauha.jpg);
    background-size: 200%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'TT_Travels_Bold';
}

h1 {
  font-size:  2.1em;
  line-height: 1.2;
}

h3 {
  font-size: 2.25em;
  line-height: 1.28;
  margin: 2px 0;
}

h4 {
  font-size: 1.25em;
  line-height: 1;
  text-transform: uppercase;
  margin: 10px 0;
}

img {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
}

section {
  margin: 80px 0;
}

iframe {
  width: 100%;
  max-width: 100%;
  max-height: 200px;
}

.title-center {
  margin-bottom: 40px;
}

.post-hero {
  width: 100%;
  height: 300px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(../img/01_herokuva.jpeg);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  width: auto !important;
  height: 300px;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%);
}

.video-hero {
  position: relative;
  overflow: hidden;
}

.content-wrapper {
  width: 90%;
  margin: 50px auto 50px;
}

.content-wrapper h1 {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ingressi {
  margin-bottom: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.5em;
}

.tulokset {
  background-color: #ea9abf;
  color: #000000;
  padding: 40px 0 80px;
  margin-bottom: 0;
}

.tulokset .content-wrapper {
  margin: 40px auto 80px;
}

.tulokset h4 {
  margin-bottom: 35px;
}

.tulokset .flex-wrapper {
  margin-top: 80px;
}

.tulokset .third {
  margin: 20px 0;
}

.tulokset .third span {
  font-family: 'TT_Travels_Bold';
  font-size: 3em;
  display: block;
}

.video-title {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.narrow {
  max-width: 1000px;
  margin: 40px auto 0;
}

.n2-logo {
    position: absolute;
    top: -123px;
    left: 0;
    width: 60px;
    height: 60px;
}

.logo-holder {
  position: relative;
  margin-top: 120px;
}

footer {
  margin-top: 110px;
}

footer .content-wrapper {
  max-width: 1000px;
  margin: 0 auto 60px;
}

@media only screen and (min-width:360px) {

  body {
    font-size: 16px;
  }
   
}


@media only screen and (min-width:410px) {

  h1 {
    font-size:  3em;
  }

  .tulokset .third span {
    font-size: 4em;
  }
   
}


@media only screen and (min-width:480px) {

  .post-hero {
    height: 684px;
  }

  .hero-video {
    height: 684px;
  }

  iframe {
    max-height: 300px;
  }

}

@media only screen and (min-width:600px) {

  .flex-wrapper {
    display: flex;
    justify-content: space-between;
  }

  .half {
    width: 49%;
  }

  .third {
    width: 31%;
  }

  .tulokset .third span {
    font-size: 1.7em;
  }

  iframe {
    max-height: 400px;
  }

  .logo-holder {
    margin-top: 140px;
  }

  .n2-logo {
    top: -123px;
  }


}

@media only screen and (min-width:768px) {


  hero-video {
      max-height: none;
      min-height: 100vh;
  }

  .tulokset .third span {
    font-size: 2.4em;
  }

  iframe {
    max-height: 600px;
  }

}

@media only screen and (min-width:1024px) {

  body {
    background-size: 100%;
  }

  .post-hero {
    height: 100vh;
  }

  .hero-video {
    min-height: 100vh;
    height: auto !important;
  }

  h1 {
    font-size:  3.75em;
    line-height: 1.23;
  }

  h3 {
    font-size: 2.25em;
    line-height: 1.28;
  }

  section {
    margin: 120px 0;
  }

  .ingressi {
    font-size: 1.9em;
  }

  .tulokset .third span {
    font-size: 3.2em;
  }

  .tulokset {
    padding: 60px 0 100px;
  }

  .tulokset h4 {
    margin-bottom: 50px;
  }

  iframe {
    max-height: none;
    min-width: 100%;
    min-height: 700px;
  }

  .logo-holder {
    margin-top: 180px;
  }

  .n2-logo {
    top: -144px;
    width: 100px;
    height: 100px;
  }

  footer {
    margin-top: 150px;
  }

}


@media only screen and (min-width:1280px) {

  .content-wrapper {
      margin: 90px auto 50px;
      max-width: 1920px;
  }

  .tulokset .third span {
    font-size: 4em;
  }

  iframe {
    min-height: 800px;
  }

  .logo-holder {
    margin-top: 180px;
  }


}

@media only screen and (min-width:1600px) {

  .tulokset .third span {
    font-size: 5em;
  }

  iframe {
    min-height: 900px;
  }

}



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

/*
 * Hide visually and from screen readers
 */

.hidden,
[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: " ";
  display: table;
}

.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: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  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;
  }
}

