/*! HTML5 Boilerplate v7.2.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 {
  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
   ========================================================================== */

a {
  display: block;
  text-decoration: none;
  color: inherit;
}

strong {
  font-weight: 600;
}

html, body, #conteudo {
  width: 100%;
  height: 100%;
}

body {
  background-color: #000;
  background-image: url('../img/bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

h1 img {
  width: 100%;
}

h1 {
  position: absolute;
  bottom: 55%;
  left: 50%;
  transform: translate(-50%,50%);
  width: 50%;
  z-index: 10;
  animation: moveBottomLeft 1s 5s ease-in-out forwards;
}
    @keyframes moveBottomLeft {
      0% { bottom: 55%; left: 50%; }
      100% { bottom: 22%; left: 28%; }
    }

h1.animUp {
  animation: moveTop 1s ease-in-out forwards;
}
    @keyframes moveTop {
      0% {  bottom: 22%; left: 28%; }
      100% { bottom: 96%; left: 28%; }
    }

h1.animDown {
  animation: moveBottom 1s ease-in-out forwards;
}
    @keyframes moveBottom {
      0% { bottom: 96%; left: 28%; }
      100% { bottom: 22%; left: 28%; }
    }

#contato {
  position: absolute;
  bottom: 30px;
  right: 0;
  padding: 10px 60px;
  background: #ff9a05;
  font-size: 22px;
  font-weight: 600;
  color: #000;
  opacity: 0;
}

#contato a:hover {
  color: #ffd800;
}

    #contato.on {
      animation: fadeInLeft 1s 5.5s ease-in-out forwards;
      pointer-events: auto;
    }

    #contato.off {
      animation: fadeOut 1s ease-in-out forwards;
      pointer-events: none;
    }

        @keyframes fadeInLeft {
          0% { opacity: 0; right:-200px; }
          100% { opacity: 1; right:0; }
        }

#video {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 50%;
  max-width: 900px;
  height: 500px;
  opacity: 0;
  z-index: 11;
      animation: fadeIn 1s 6s ease-in-out forwards;
}

    #video.on {
      animation: fadeIn 1s 1s ease-in-out forwards;
      pointer-events: auto;
    }

    #video.off {
      animation: fadeOut 0.5s ease-in-out forwards;
      pointer-events: none;
    }

#cta {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0;
  z-index: 15;
  color: #666;
  text-align: center;
  line-height: 1.1;
      animation: fadeInOut 5s 6s ease-in-out infinite;
}

    #cta.on {
      animation: fadeInOut 5s 1s ease-in-out infinite;
    }

    #cta.off {
      animation: fadeOut 0.5s ease-in-out forwards;
    }

#cta div {
  font-size: 300%;
}

        @keyframes fadeInOut {
          0% { opacity: 0; margin-top: 0; }
          15% { opacity: 1; margin-top: 0; }
          30% { opacity: 1; margin-top: 0; }
          40% { opacity: 1; margin-top: 10px; }
          50% { opacity: 1; margin-top: 0; }
          60% { opacity: 1; margin-top: 10px; }
          70% { opacity: 1; margin-top: 0; }
          85% { opacity: 1; margin-top: 0; }
          100% { opacity: 0; margin-right:0; }
        }

#texto {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  max-width: 1200px;
  font-size: 22px;
  font-weight: 400;
  color: #ccc;
  opacity: 0;
  z-index: 9;
}

    #texto.on {
      animation: fadeIn 1s 1s ease-in-out forwards;
      pointer-events: auto;
    }

    #texto.off {
      animation: fadeOut 0.5s ease-in-out forwards;
      pointer-events: none;
    }

        @keyframes fadeIn {
          0% { opacity: 0; }
          100% { opacity: 1; }
        }

        @keyframes fadeOut {
          0% { opacity: 1; }
          100% { opacity: 0; }
        }

#texto ul {
  list-style: none;
  padding: 10px 10%;
}

#texto li {
  margin-bottom: 20px;
}

#texto li svg {
  margin-left: -40px;
  height: 30px;
  width: 40px;
  float: left;
}

            /* start of desktop styles */

            @media screen and (max-width: 1300px) {

                #texto {
                  width: 90%;
                }

                #contato, #texto {
                  font-size: 20px;
                }
            }

            @media screen and (max-width: 1100px) {

                #contato, #texto {
                  font-size: 18px;
                }
            }

            @media screen and (max-width: 991px) {

                #contato, #texto {
                  font-size: 16px;
                }
            }

            @media screen and (max-width: 767px) {

                #contato, #texto {
                  font-size: 14px;
                }
            }

            @media screen and (max-width: 479px) {

                body {
                  overflow: scroll;
                }
                h1 {
                  position: relative;
                  left: 0;
                  top: 50%;
                  transform: translate(0,-50%);
                  width: 100%;
                  margin: 0 auto;
                  z-index: 15;
                  animation: moveTopM 1s 5s ease-in-out forwards;
                }
                    @keyframes moveTopM {
                      0% { top: 50%; }
                      100% { top: 70px; }
                    }
                h1.animUp {
                   animation: moveTopper 1s ease-in-out forwards;
                }
                    @keyframes moveTopper {
                      0% { top: 70px; }
                      100% { top: 5px;  }
                    }
                h1.animDown {
                   animation: moveBkTop 1s ease-in-out forwards;
                }
                    @keyframes moveBkTop {
                      0% { top: 5px; }
                      100% { top: 70px; }
                    }

                #contato {
                  position: fixed;
                  display: block;
                  left: 0;
                  bottom: 0;
                  transform: none;
                  bottom: 0px;
                  width: 100%;
                  padding: 5px 0;
                  font-size: 14px;
                  text-align: center;
                }
                #video {
                  top: 55%;
                  width: 100%;
                  height: 250px;
                }
                #cta {
                  top: 90%;
                }
                #texto {
                  top: 50%;
                  font-size: 14px;
                }
                #texto ul {
                  padding: 5px 0 0 15%;
                }

                #texto li {
                  margin-bottom: 10px;
                }

            }

            @media screen and (max-width: 374px) {

                #contato, #texto {
                  font-size: 12px;
                }
            }



/* ==========================================================================
   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 */
    -webkit-box-shadow: none !important;
    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;
  }
}

