*{
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}
h1{
    font-size: 30px;
    margin-top: 50px;
    display: block;
    transition: all .2s linear;
}

body{
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.gif{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.wrapper{
    z-index: 9;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.gif img{
        max-width: 500px;
        min-height: 300px;
        max-height: 400px;
        position: relative;
        z-index: 1;
}


footer, .footer{
    background-color: #2f2f2f;
    color : #fff;
    padding: 15px 0;
    text-align: right;
    width: 100%;
    position: absolute;
    bottom: 0;
}
footer p, .footer p{
    max-width: 90%;
    margin: auto;
    font-size: 12px;
    font-style: italic;
}

.more{
    position: absolute;
    right: -18px;
    border-radius: 100%;
    background-color: #FFF;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px 0 rgba(0,0,0,.1);
    font-size: 20px;
    color: #6370ce;
    font-weight: bold;
}

.gif a, button{
    color: #fff;
    background-color: #5fce5e;
    cursor: pointer;
    outline: none;
}

.loading .button{
  background-color: #d47676
}

.loading .wrapper #gifMain{
  opacity: 0;
}

.loading{
  background-color: #101010;
}

.loading h1{
 color: #fff;
}

.loading .loader{
  opacity: 1;
}

.loader{
  position: absolute;
  z-index: 0;
  opacity: 0;
  transition: all .2s linear
}

body{
  transition: all .2s linear;
}

.lnk{
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.smil{
    font-size: 40px;
    margin-left: 10px;
    text-decoration: none;
}

.gif a.smil{
    text-decoration: none;
}

.cat{
    max-width: 100px;
    margin-bottom: 50px;
}

.cat img{
    width: 100%; 
    margin: auto;
    min-width: unset;
    min-height: unset;
}

.viewed{
  text-align: center;
  margin: 30px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.viewed p{
  color: #bbb;
}

#switcher{
  display: none;
  justify-content: center;
  align-items: center;
}

#start{
  display: none;
}

.com-switch{
  display: flex;
  justify-content: center;
  align-items: center;
}

#switcher img{
  max-width: 30px;
}



@media screen and (max-width: 980px) {
    .container {
        max-width: 90%;
        display: block;
        margin: 30px auto 0 auto;
    }

    .container.pierro{
      margin: 0 auto;
    }

    .gif img {
        min-height: unset;
        display: block;
        width: 100%;
        margin: auto;
        min-width: unset;
    }

    h1 {
        font-size: 20px;
        display: block;
        text-align: center;
        margin-top: 20px;
    }

    .lnk{
      margin-top: 30px;
    }

    .button, button{
      padding: 1em 3em !important;
    }

    footer p, .footer p {
        text-align: center;
    }

    body {
      min-height: 100vh;
      position: relative;
    }

    .cat {
        max-width: 50px !important;
        margin-bottom: unset;
        position: absolute;
        top: 15px !important;
        max-width: 50px;
    }

  }

  @media screen and (max-height:740px){

    
    
    
    }

  .pierro.active{
    -webkit-animation: bgcolor 3s forwards;
    animation: bgcolor 3s forwards;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
  }

  @keyframes bgcolor {
    0% {
    }

    30% {
    }

    60% {
    }

    90% {
    }

    100% {
        background-color: #966ed5
    }
}

  .pierro .wrapper a{
    color: #fff !important;
}

.anim{
    display: flex;
    justify-content: center;
    align-items: center;
}
.anim img{
    position: absolute;
}

.anim #gif{
    z-index: 2; 
}

.anim #fck{
    z-index: 1; 
}

.spin{
    background-color: rgba(0,0,0,0);
    margin: 100px;
    opacity: .2;; 
    transition: all .2s linear;
}

.rotate{
    animation-name: spin;
    animation-duration: 3000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear; 
    max-width: 50px;
    opacity: .6;
}


.spin.cat img{
    background-color: rgba(0,0,0,0) !important;
    animation-name: spin;
    animation-duration: 2000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear; 
  }
  
  @keyframes spin {
      from {
          transform:rotate(0deg);
      }
      to {
          transform:rotate(360deg);
      }
  }

  .pspin{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    height: calc(100vh - 44px);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
  }




  #gif {
    animation: shrink 3s linear forwards;
    -webkit-animation-fill-mode: forwards;
  }
  @keyframes shrink {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(2);
    }
  }

  #fck{
    animation: fck 3s linear forwards;
    -webkit-animation-fill-mode: forwards;
  }
  @keyframes fck {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.5);
    }
  }

  .message{
        z-index: 9;
        position: absolute;
        bottom: 200px;
  }

  .pierro h1{
      color: #fff;
  }

  .pierro .gif{
    height: 100vh; 
    width: 100%;
  }



  .button,  button {
    display: inline-block;
    margin: 0.3em;
    padding: 1.2em 5em;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 3px;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: none; 
    font-size: 15px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  .button:hover, button:hover {
    box-shadow: 1px 6px 15px rgba(0,0,0,0.5);
  }

  .red {
    background-color: #F44336 !important;
    color: white;
  }
  

  .ripple {
    position: absolute;
    background: rgba(0,0,0,.25);
    border-radius: 100%;
    transform: scale(0.2);
    opacity:0;
    pointer-events: none;
    -webkit-animation: ripple .75s ease-out;
    -moz-animation: ripple .75s ease-out;
    animation: ripple .75s ease-out;
  }
  
  @-webkit-keyframes ripple {
    from {
      opacity:1;
    }
    to {
      transform: scale(2);
      opacity: 0;
    }
  }
  
  @-moz-keyframes ripple {
    from {
      opacity:1;
    }
    to {
      transform: scale(2);
      opacity: 0;
    }
  }
  
  @keyframes ripple {
    from {
      opacity:1;
    }
    to {
      transform: scale(2);
      opacity: 0;
    }
  }

.lnk{
    z-index: 9;
}

.pierro .lnk{
    opacity: 0;
    position: absolute;
    bottom: 120px;
}

.pierro{
    overflow: hidden;
    width: 100%;
}

.pierro .wrapper{
  width: 100%;
}


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

  .viewed{
    margin: 20px 0 55px 0;
  }

 .pierro .cat{
    position: unset;
    top: unset;
    left: unset;
 }
 .pierro .spin{
    margin: 30px;
 }
 .container.pierro{
    max-width: 100%;
 }
 .pierro .wrapper{
    width: 100%;
 }
 .pierro .message{
    bottom: 150px;
    width: 100%;
    display: flex;
justify-content: center;
align-content: center;
 }

 .pierro .lnk {
    bottom: 80px;
}
}