/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */
/*
 * 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; }

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */
.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0; }

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@font-face {
  font-family: "American Typewriter";
  src: url("../fonts/AmericanTypewriter-01.ttf"); }

.video-wrapper {
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative; }
  .video-wrapper embed,
  .video-wrapper object,
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%; }

/*
@media screen and (min-width: $break-large) {}
*/
body {
  font-family: "American Typewriter"; }
  @media screen and (min-width: 768px) {
    body {
      transform: scale(1.2);
      transform-origin: top center; } }

h1 {
  font-family: "American Typewriter";
  font-weight: 500;
  font-size: 24px;
  letter-spacing: .05em; }
  @media screen and (min-width: 768px) {
    h1 {
      font-size: 18px;
      line-height: 28px; } }

h2 {
  font-family: "American Typewriter";
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .075em;
  text-transform: uppercase; }

p {
  font-family: "American Typewriter";
  margin: 0;
  letter-spacing: .05em;
  line-height: 2.45em;
  margin-bottom: 2.45em; }
  @media screen and (min-width: 768px) {
    p {
      font-size: 11px; } }

img {
  display: block; }

header .bar {
  height: 43px;
  background: black; }

@media screen and (min-width: 768px) {
  header {
    position: absolute;
    top: 0;
    width: 1000px; }
    header .bar {
      width: 100%;
      margin: auto; } }

@media screen and (min-width: 1000px) {
  header .bar {
    width: 857px; } }

.caption {
  height: 32px;
  text-align: center;
  font-size: 10px;
  padding-top: 10px;
  padding-bottom: 0px; }
  .caption span {
    border-bottom: 1px solid #8C8C8C; }

main {
  width: calc(100vw - 32px);
  padding: 16px;
  opacity: 1;
  position: relative;
  margin: auto; }
  @media screen and (min-width: 768px) {
    main {
      width: 1000px;
      padding: 0;
      height: 100vh; } }
  @media screen and (min-width: 768px) {
    main .layer-formula {
      opacity: 1;
      position: absolute;
      top: 295px;
      width: 975px;
      height: 5286px;
      margin-left: 10px;
      background: transparent url("../img/diagram2.png");
      background-size: 100%; } }
  main h1 {
    margin-bottom: 3rem; }
    @media screen and (min-width: 768px) {
      main h1 {
        position: absolute;
        display: inline;
        left: 151px;
        top: 141px;
        margin-bottom: 0; } }
  main .wrapper-tree {
    background: transparent url("../img/tree.png") no-repeat;
    background-size: 100%;
    width: 100%;
    padding-bottom: 140%; }
    @media screen and (min-width: 768px) {
      main .wrapper-tree {
        position: absolute;
        left: 552px;
        top: 115px;
        width: 340px;
        height: 454px;
        padding-bottom: 0; } }
  main .wrapper-p {
    background: #EBEBEB;
    padding: 16px;
    margin-bottom: 16px; }
    @media screen and (min-width: 768px) {
      main .wrapper-p {
        background: transparent;
        padding: 0;
        margin-bottom: 0; } }
  @media screen and (min-width: 768px) {
    main .wrapper-p1 {
      position: absolute;
      left: 106px;
      width: 431px;
      top: 405px; } }
  @media screen and (min-width: 768px) {
    main .wrapper-p2 {
      position: absolute;
      left: 521px;
      width: 428px;
      top: 1052px; }
      main .wrapper-p2 p {
        line-height: 29px; } }
  @media screen and (min-width: 768px) {
    main .wrapper-p3 {
      position: absolute;
      left: 111px;
      top: 2253px;
      width: 388px; }
      main .wrapper-p3 p {
        line-height: 29px; } }
  main .photo-block ul {
    width: 100vw;
    margin: 0;
    padding: 0;
    list-style-type: none; }
    @media screen and (min-width: 768px) {
      main .photo-block ul {
        width: auto; } }
    main .photo-block ul li {
      float: left;
      padding-right: 1px;
      width: calc(50vw - 17px); }
      @media screen and (min-width: 768px) {
        main .photo-block ul li {
          width: auto; } }
      main .photo-block ul li img {
        width: 100%; }
        @media screen and (min-width: 768px) {
          main .photo-block ul li img {
            width: 225px;
            height: 338px; } }
  main .wrapper-photo-1 img {
    width: 100%;
    height: auto; }
  @media screen and (min-width: 768px) {
    main .wrapper-photo-1 {
      position: absolute;
      left: 161px;
      top: 659px;
      width: 320px;
      height: 452px; } }
  @media screen and (min-width: 768px) {
    main .wrapper-photo-2 {
      position: absolute;
      left: 152px;
      top: 1489px;
      width: 453px; }
      main .wrapper-photo-2 li {
        width: 225px; } }
  @media screen and (min-width: 768px) {
    main .wrapper-photo-3 {
      position: absolute;
      left: 394px;
      top: 2606px;
      width: 452px; }
      main .wrapper-photo-3 li {
        width: 225px; } }
  main .wrapper-photo-4 img {
    width: 100%;
    height: auto; }
  @media screen and (min-width: 768px) {
    main .wrapper-photo-4 {
      position: absolute;
      left: 152px;
      top: 4292px;
      width: 320px;
      height: 478px; }
      main .wrapper-photo-4 img {
        width: 100%;
        height: auto; } }
  main .wrapper-video {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    margin-bottom: 24px; }
    main .wrapper-video iframe {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%; }
    @media screen and (min-width: 768px) {
      main .wrapper-video {
        position: absolute;
        left: 156px;
        top: 4902px;
        width: 720px; }
        main .wrapper-video iframe {
          width: 720px;
          height: 454px; } }
  @media screen and (min-width: 768px) {
    main .wrapper-msg {
      position: absolute;
      top: 5698px;
      width: 100%; } }
  main .wrapper-msg .msg {
    text-align: center;
    margin: auto;
    border-top: 1px solid #8C8C8C;
    border-bottom: 1px solid #8C8C8C; }
    @media screen and (min-width: 768px) {
      main .wrapper-msg .msg {
        width: 426px; } }
    main .wrapper-msg .msg .sig {
      margin: auto;
      width: 102px;
      height: 145px;
      background: transparent url("../img/sig.png");
      background-size: 100%; }

footer {
  margin-bottom: 4rem; }
  footer .wrapper-social {
    text-align: center; }
    footer .wrapper-social ul {
      list-style: none;
      display: inline-block;
      margin: 0;
      padding: 0; }
      footer .wrapper-social ul li {
        float: left;
        margin: 12px; }
        footer .wrapper-social ul li img {
          width: 32px;
          height: 32px; }
  @media screen and (min-width: 768px) {
    footer {
      position: absolute;
      width: 100%;
      top: 6047px;
      height: 260px; } }
  footer .wrapper-logo {
    margin: 36px auto;
    width: 128px;
    height: 33px;
    background: transparent url("../img/svg/logo.svg");
    background-size: contain; }

.underline {
  display: block; }

/* ==========================================================================
   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
 */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
  /* 1 */ }

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  -webkit-clip-path: none;
  clip-path: none;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit; }

/*
 * 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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
    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:
     * 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; } }
