/*! 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
   ========================================================================== */

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

@font-face {
  font-family: 'Gotham-Light';
  src: url('../fonts/gotham-light.eot');
  src: url('../fonts/gotham-light.eot?#iefix') format('embedded-opentype'),
    url('../fonts/gotham-light.woff') format('woff'),
    url('../fonts/gotham-light.ttf') format('truetype'),
    url('../fonts/gotham-light.svg#gotham-light') format('svg');
  font-weight: normal;
  font-style: normal;
}

html {
  color: #222;
  background-color: #000;
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Open Sans', sans-serif;
}


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

* {
  box-sizing: border-box;
}

/*
 * 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
   ========================================================================== */
body {
  position: relative;
  margin: 0;
  min-height: 100%;
  background-color: #000;
}

.header {
  position: absolute;
  top: 0;
  left: 5vh;
  right: 5vh;
  max-width: 1560px;
  margin: 0 auto;
}

.header img,
.header-mobile img {
  max-width: 100%;
  height: auto;
}

.col-3 {
  width: 33.3%;
  float: left;
  list-style-type: none;
  padding: 0 5vw;
}

.share-title {
  font-size: 2.75em;
  color: #FFF;
  line-height: 1.2;
  text-align: center;
}

.right {
  float: right;
}

#video-overlay-play-button {
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  padding: calc(50vh - 50px) calc(50vw - 50px);
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  opacity: 0.95;
  cursor: pointer;
  background-image: linear-gradient(transparent, #000);
  transition: opacity 150ms;
  z-index: 1000;
}

.container {
  min-height: 100vh;
  height: auto;
  display: flow-root;
  background-repeat: no-repeat;
  background-position: center 100%;
  background-image: url(../img/background.jpg);
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
}

.action {
  margin: 1em auto 0 auto;
  width: 25vw;
  text-align: center;
  font-size: 2.2em;
  letter-spacing: 0.1em;
  min-width: 260px;
}

.action a {

  margin-right: auto;
  margin-left: auto;
}

#content {

  max-width: 1180px;
  margin: 0 auto;
}

.img-responsive {
  height: auto;
  max-width: 100%;
}

#name {
  margin: -5vw auto 0 auto;
  width: 30vw;
}
.home-title{
  padding-top: 25vh;
  margin: 0 auto;
  width: 40vw;
}
#form {
  margin: 0 auto 0 auto;
  width: 25vw;
  text-align: center;
  font-size: 2.2em;
  letter-spacing: 0.1em;
  min-width: 260px;
}

.input-group input,
.input-button>button {
  display: block;
  font-size: 1em;
  width: 80%;
  margin: 0 auto;
  height: 2em;
  border: 1px solid #FFF;
  padding: 2px 15px;
  text-align: center;
  border-radius: 5px;
  background-color: rgb(255, 255, 255, 0.8);
}

.input-button>button {
  font-size: 0.8em;
  font-family: "Gotham-Medium", sans-serif;
  box-sizing: border-box;
  color: #92ba1f;
  display: inline-block;
  width: 30%;
  margin: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background-color: rgb(255, 255, 255, 1);
  height: 2.5em;
  white-space: nowrap;
  cursor: pointer;
}

.input-group .input-button>input {
  font-size: 0.8em;
  font-family: "Gotham-Medium", sans-serif;
  box-sizing: border-box;
  width: 68%;
  margin: 0;
  display: inline-block;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  height: 2.5em;
}

.input-button {
  margin-bottom: 1em;
}

#form input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.tyc {
  text-transform: uppercase;
  font-family: "Gotham-Light";
  border-radius: 5px;
  background-color: transparent;
  color: rgb(148, 148, 148);
  font-size: 0.6em;
  letter-spacing: -0.05em;
  display: inline-block;
  padding: 0.1em 1.5em;
  text-decoration: none;
}

#form>.input-group input::placeholder {
  font-size: 1em;
  font-family: "Gotham-Medium", sans-serif;
  color: #92ba1f;
  letter-spacing: -0.05em;
  margin: 1em auto;
}


#form>.input-group input:focus {

  border: 1px solid #202020;
  outline-color: #92ba1f;
}

#form .input-group {
  margin-bottom: 1em;
}

#form span.error-msg {
  font-size: 0.75em;
  ;
  letter-spacing: 1px;
  line-height: 1;
  position: absolute;
  width: 100%;
  color: red;
  transform: translate(-50%, 3px);
}

#start,
.btn-green {
  cursor: pointer;
  font-family: "Gotham-Medium", sans-serif;
  display: block;
  padding: 0.35em 1.25em;
  text-decoration: none;
  color: #FFF;
  box-shadow: none;
  border: none;
  margin: 0 auto 0.8em auto;
  border-radius: 0.13em;
  background-color: rgb(146, 186, 31);
  box-shadow: 1.5px 2.6px 16px 0px rgba(255, 255, 255, 1);
  font-size: 1.1em;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.btn-green.lower{
  text-transform: none;
}

#form>button:hover {
  background: #0463ac;
  color: #ffffff;

}

#preview {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  width: 60%;
  margin: 0 auto;
  border-radius: 8%;
}

#video-container,
#video-container>video {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #000;
}

#video-container:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

#video-container.call:after {
  background-image: url(../img/llamada.jpg);
  background-size: cover;
  background-position: center center;
}

#photo {
  visibility: hidden;
  position: absolute;
  z-index: 1000;
  top: 51%;
  transform: translate(-46%, -64%);
  left: 50%;
  width: 52%;
}

.portrait #photo {
  transform: translate(-46%, -63%);
  height: 61%;
  width: auto;
}

#logo {
  padding: 3vw;
  width: 65%;
}
#video {
  background: black url(../img/loading.gif) center center no-repeat;
}

input.error {
  border-color: red !important;
}

.title-final {
  width: 45vw;
  margin: 0 auto;
}

.share-wrapper {

  min-width: 260px;
  margin: -5vw auto 0 auto;
  position: relative;
}

#postal {
  margin-top: 30px;
}

.share-wrapper p {
  font-size: 20px;
  text-transform: uppercase;
  color: #FFF;
  text-align: center;

}

.social-share {
  padding-top: 30vh;
  margin: 0 auto;
  width: 30vw;
  padding-bottom: 5vh;

}
#social-share{
  padding-bottom: 0;
}

.social-share a {
  text-decoration: none;
}

.social-share img {
  display: inline-block;
  width: 20%;
  padding: 2%;
  cursor: pointer;
  box-sizing: border-box;
}

.social-icon {
  text-align: center;
  width: 20vw;
  margin: 0 auto;
  min-width: 230px;


}

.social-share:after {
  content: "";
  clear: both;
  display: table;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: #202020;
  position: absolute;
  bottom: 0;
  transform: translate(-50%, 0);
  max-width: 100%;
  left: 50%;
}

.footer a {
  text-decoration: none;
  color: #202020;
}



/*Modal*/

.cta {
  background-color: transparent;
  border: none;
  color: rgb(146, 186, 31);
  display: inline-block;
  font-size: 1em;
  font-weight: 700;

  padding: 0.3em 1em;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.cta:hover {
  opacity: 0.6;
  text-decoration: none;
}

.cta h4 {
  padding: 0 2em;
  line-height: 1;
  position: absolute;
  margin: 1em auto;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  color: rgb(146, 186, 31);
  width: 80%;
  font-size: 0.95em;
  font-family: "Gotham-Medium", sans-serif;
}

.cta img {
  max-width: 70%;
  height: auto;

}

.title h3 {

  color: rgb(255, 255, 255);
  line-height: 1;
  text-align: center;
  text-shadow: -0.05em 0.05em 0.1em rgba(0, 0, 0, 0.5);
  font-size: 1.6em;

}

#social-link {
  font-size: 1.4em;
}
#social-share{
  font-size: 1.4em;
  text-align: center;
}


#social-link .title {
  padding: 0 2em;
}

.modaloverlay {
  background: rgba(0, 0, 0, 0.8);
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  -webkit-transition: opacity 400ms ease-in;
  -moz-transition: opacity 400ms ease-in;
  transition: opacity 400ms ease-in;
  z-index: -1;
  display: none;
  overflow: none;
}

.modaloverlay.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  z-index: 99999;
}

.modaloverlay .modal {
  background-color: white;
  height: 100%;
  position: relative;
  margin: 0 auto;
  padding: 3em;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 60em) {
  .modaloverlay .modal {
    height: 90%;
    margin: 2.5% auto;
    max-height: 57em;
    max-width: 66em;
    width: 85%;
  }
}

.modaloverlay .modal>iframe,
.modaloverlay .modal>div {
  border: none;
  min-width: 100%;
  min-height: 80%;
}

.modaloverlay .close {
  background-color: rgb(146, 186, 31);
  color: white;
  font-size: 24px;
  padding: 8px 12px;
  position: absolute;
  right: 0;
  text-align: center;
  text-decoration: none;
  top: 0;
  z-index: 1;

  border: none;

  cursor: pointer;
}



/* ==========================================================================
   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.

   $bp-small: 48em; // 768px
$bp-medium: 64em; // 1024px
$bp-large: 85.375em; // 1366px
$bp-xlarge: 120em; // 1920px
$bp-xxlarge: 160em; // 2560px
   ========================================================================== */

@media (max-width: 1860px) {

  #form,
  .action {
    font-size: 1.4em;
  }

  .share-title {
    font-size: 2.3em;
  }

  .social-share {
    width: 30vw;
  }

}

@media (max-width: 1300px) {

  #form,
  .action {
    font-size: 1.2em;
  }

  .share-title {
    font-size: 2.1em;
  }

  .social-share {
    width: 45vw;
  }
}

@media (max-width: 992px) {

  #form,
  .action {
    font-size: 1em;
  }
  .home-title{
    width: 60vw;
  }
  .share-title {
    font-size: 1.6em;
  }


  #logo {
    padding: 3vw;
    width: 65%;
  }

  .social-share {
    padding-top: 20vh;
    width: 60vw;
  }
}

@media (max-width: 768px) {
  .home-title{
    width: 90vw;
  }
  .container {
    background-image: url(../img/background.jpg);
  }

  .col-3 {
    padding: 0;
  }

  .header {
    left: 0;
    right: 0;
  }

  #logo-mobile,
  #socio-fest-logo-mobile {
    max-width: 25%;
    clear: both;
    display: block;
    margin: 0 auto;
  }

  #logo {
    width: 65%;
  }

  #logo,
  #socio-fest-logo {
    margin: 0.5em 0.5em 0;
  }

  #socio-fest-logo-mobile {
    max-width: 50%;
  }

  #content {
    width: 100%;
    padding: 0.5em 1em 3em 1em;
  }


  #form {
    width: 90%;
    min-width: 250px;
  }

  .input-button>button {
    padding: 0;
    width: 35%;
  }

  .input-group .input-button>input {

    width: 62%;
    ;
  }

  #social-link .title {
    padding: 0 2.5em;
  }

  #name {
    width: 80%;
  }

  .title-final {
    width: 90vw;
  }

  .title h3 {
    font-size: 1.1em;
    letter-spacing: -0.01em;
  }

  .cta img {
    max-width: 50%;
    height: auto;
  }

  .cta h4 {
    font-size: 0.85em;
    width: 55%;
    letter-spacing: -0.001em;
  }

  #preview {
    width: 43%;
  }

  .social-share {
    font-size: 1em;
    width: 90vw;
    min-width: 230px;
    padding-top: 30vh;
  }

  #social-link {
    font-size: 1.1em;
  }

  .tyc {
    background-color: transparent;
    color: rgb(148, 148, 148);


  }

  .social-share img {
    padding: 2.5px;
  }

  .share-title {
    clear: both;
    padding-top: 2em;
    width: 65%;
    margin: auto;
    font-size: 1.2em;
  }

}

@media screen and (orientation:landscape) {
  #video-container.call:after {
    background-image: url(../img/llamada_rotated.jpg);
  }
}

@media (max-width: 768px) and (orientation:landscape) {

  .container {

    background-image: url(../img/background.jpg);
  }
}

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