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

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


body,html{
  min-height: 100%;
  max-width: 100%;
  overflow: hidden;
}

body,html{
  display: flex;
  flex:1;
  font-family: 'Roboto', sans-serif;

}
#intro{
  background: #333;
  flex:1;
  position: relative;
  z-index: 1;
}


@keyframes lettere{
  0%{
    transform: scale(0)
  }
  100%{
    transform: scale(1)
  }
}


#intro i {
  font-style: normal;
  color: #fff;
  font-weight: 900;
  display: inline-block;
  font-size: 10vw;
  position: absolute;
  top: 40%;

  animation: lettere 1000ms ;
}

#intro i:empty {
  width: 2vw;
}

@keyframes lettere{
  0%{
    transform: scale(0)
  }
  100%{
    transform: scale(1)
  }
}


#intro i:nth-of-type(1){ left:  10vw; }
#intro i:nth-of-type(2){ left:  20vw; }
#intro i:nth-of-type(3){ left:  25vw; }
#intro i:nth-of-type(4){ left:  31vw; }
#intro i:nth-of-type(5){ left:  38vw; }
#intro i:nth-of-type(6){ left:  45vw; }
#intro i:nth-of-type(8){ left:  55vw; }
#intro i:nth-of-type(10){ left:  65vw; }
#intro i:nth-of-type(11){ left:  72vw; }
#intro i:nth-of-type(12){ left:  80vw; }


/* ----------------------------------------------
 * Generated by Animista on 2019-9-5 14:49:10
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation tracking-in-expand
 * ----------------------------------------
 */
 @-webkit-keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
@keyframes tracking-in-expand {
  0% {
  
    opacity: 0;
    transform: scale(0) rotate(5deg)
  }
  40% {
    opacity: 0.6;
   
  }
  100% {
    opacity: 1;
  
    transform: scale(1) rotate(0deg)
  }
}
#intro{
  color: #fff;
}
@keyframes sfera {
  0% {
    opacity: 0; 
    transform: translate(-50%,-50%)  scale(0)  
  }
  100% {
    opacity: 1;
    transform: translate(-50%,-50%)  scale(1)
  }
}

#intro:before{
  content:'';
  display: block;
  width: 200vw;
  height: 200vw;
  background: #222;
  border-radius: 100%;
  top: 50%;
  left:50%;
  position: absolute;
  transform: translate(-50%,-50%) scale(0.1);
  animation: sfera 3s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

#intro:after{
  content:'';
  display: block;
  width: 200vw;
  height: 200vw;
  background: #000;
  border-radius: 100%;
  top: 50%;
  left:50%;
  position: absolute;
  transform: translate(-50%,-50%) scale(0.1);
  animation: sfera 3s 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
.sottotitolo{
  text-align: center;
  font-size: 1.22em;
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0.5;
  position: relative;
  z-index: 2;

  -webkit-animation: tracking-in-expand 2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
  animation: tracking-in-expand 1s 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;

}
.tracking-in-expand {
  position: relative;
  z-index: 2;
  text-align: center;
  font-style: normal;
  color: #fff;
  font-weight: 900;
  display: block;
  font-size: 4em;
  line-height: 1em;
	-webkit-animation: tracking-in-expand 2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	        animation: tracking-in-expand 1s 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@keyframes logo{
  0%{

    font-size: 2.8vw;
     
  }
  100%{
    height: 10vw;
    width: 30vw;
    font-size: 1vw;
   
  }
}
.logo{
  position: absolute;
  top: 0%;
  left:0%;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  font-size: 2.8vw;
  animation: logo 1s 3s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;

}

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

.ale{
  opacity: 0;
  position: absolute;
  z-index: 3;
  bottom: 0;
  height: 70vw;
  right: 0;
  width: 70vw;
 
  margin: 0;

  animation: ale 1s 3s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}


.ale img{
  height: 100%;
  position: absolute;
  top: 0;
}

.frase:before{
  content:'"';
  font-weight: 900;
  font-size: 4em;
  opacity: 0.5;
  transform: rotate(-10deg);
  display: inline-block;
}


.frase:after{
  content:'"';
  font-weight: 900;
  font-size: 4em;
  opacity: 0.5;
  display: block;
  line-height: 0.5em;
  text-align: right;
  transform: rotate(10deg);
  
}


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

.frase{
  position: absolute;
  left: 0;
  /* bottom: 10vh; */
  font-size: 2vw;
  color: #fff;
  z-index: 10;
  max-width: 40vw;
  padding: 5vw;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.2em;
  top: 50%;
  transform: translate(0,-50%);

  animation: frase 1s 3s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}


@keyframes bocca{
  0%{
    transform: translate(0,2vh)
  }
  10%{
    transform: translate(0,1vh)
  }
  40%{
    transform: translate(0,3vh)
  }
  50%{
    transform: translate(0,0.2vh)
  }

  70%{
    transform: translate(0,2vh)
  }

  80%{
    transform: translate(0,1vh)
  }

  100%{
    transform: translate(0,2vh)
  }
}

.ale .viso{
  z-index: 2;
}
.ale .bocca{
  z-index: 1;
  
}

.ale.parla .bocca{
  animation: bocca 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) infinite;
}

.refresh{
  background: #a30;
  width: 10vw;
  height: 10vw;
  display: block;
  position: absolute;
  bottom: 10vh;
  z-index: 3;
  border: none;
  border-radius: 100%;
  left: 18vw;
  box-shadow: 0px 20px 50px rgba(255,255,255,0.2);
  transition: all 300ms;
  outline: none;
  animation: frase 1s 3s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.refresh:hover{
  transform: scale(1.1)
}

.refresh i {
  font-size: 5vw;
  color: #fff;
  
}

#intro.done:after,#intro.done:before{
  display: none;
}

#intro.done{
  background: #000;
}

#intro.done .bg{
  display: block;
  position: absoute;
  top:0;
  bottom:0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  background: url("/img/bg/unicorn.jpg") 50% 50%;
  background-size: cover;
  
}

.madeby{
  color:rgba(255,255,255,0.7);
  text-transform: uppercase;
  font-size: 0.5em;
  font-weight: bold;
  letter-spacing: 0.8em;
  animation: tracking-in-expand 1s 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}