/*
*   name           FavContent
*   version        1.1
*   description    Responsive and customizable Joomla!3 module
*   demo           http://extensions.favthemes.com/favcontent
*   author         FavThemes
*   author URL     http://www.favthemes.com
*   copyright      Copyright (C) 2012-2016 FavThemes.com. All Rights Reserved.
*   license        Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html
*/

/*
******************************************************************************************

1. reset
2. layout
3. icon and image
4. content
5. grid
6. image title and icon effects
7. layout effects

******************************************************************************************
*/

/*
******************************************************************************************

/// favcontent css

******************************************************************************************
*/

  /*
  /////////////////////////////////

1. reset

  /////////////////////////////////
  */

div[id^="favcontent"] a,
div[id*=" favcontent"] a,
div[id^="favcontent"] a:hover,
div[id*=" favcontent"] a:hover,
div[id^="favcontent"] a:focus,
div[id*=" favcontent"] a:focus {
  text-decoration: none!important;
}

  /*
  /////////////////////////////////

2. layout

  /////////////////////////////////
  */

div[id^="favcontent-box"],
div[id*=" favcontent-box"] {
	margin-bottom: 14px;
  margin-top: 14px;
}

/*
///  light
*/

div[id^="favcontent-box"].favstyle-light,
div[id*=" favcontent-box"].favstyle-light,
div[id^="favcontent-box"].favstyle-light h3 a,
div[id*=" favcontent-box"].favstyle-light h3 a,
div[id^="favcontent-box"].favstyle-light p,
div[id*=" favcontent-box"].favstyle-light p {
  color: #444!important;
}
div[id^="favcontent-box"].favstyle-light img,
div[id*=" favcontent-box"].favstyle-light img {
  border: 1px solid #ddd!important;
}

/*
///  dark
*/

div[id^="favcontent-box"].favstyle-dark,
div[id*=" favcontent-box"].favstyle-dark,
div[id^="favcontent-box"].favstyle-dark h3 a,
div[id*=" favcontent-box"].favstyle-dark h3 a,
div[id^="favcontent-box"].favstyle-dark p,
div[id*=" favcontent-box"].favstyle-dark p {
  color: #ddd;
}
div[id^="favcontent-box"].favstyle-dark img,
div[id*=" favcontent-box"].favstyle-dark img {
  border: 1px solid #333!important;
}

  /*
  /////////////////////////////////

3. icon and image

  /////////////////////////////////
  */

/*
///  icon
*/

div[id^="favcontent-icon"],
div[id*=" favcontent-icon"] {
  cursor: pointer;
  margin: 0 auto;
  margin-top: 5px;
  margin-bottom: 20px;
}
div[id^="favcontent-icon"] i,
div[id*=" favcontent-icon"] i {
  float: left;
  width: 100%;
  padding: 50% 0;
  margin-top: -0.5em;
  margin-bottom: -0.5em;
  text-align: center;
  position: relative;
  font-size: 4em;
}

/*
///  icon/image description
*/

div[id^="favcontent-description-icon"],
div[id*=" favcontent-description-icon"],
div[id^="favcontent-description-image"],
div[id*=" favcontent-description-image"] {
  cursor: pointer;
  margin-top: 5px;
  margin-bottom: 5px;
}
div[id^="favcontent-description-icon"] i,
div[id*=" favcontent-description-icon"] i {
  float: left;
  width: 100%;
  padding: 50% 0;
  margin-top: -0.5em;
  margin-bottom: -0.5em;
  text-align: center;
  font-size: 1.8em;
}
div[id^="favcontent-icon"] a:hover,
div[id*=" favcontent-icon"] a:hover,
div[id^="favcontent-icon"] a:focus,
div[id*=" favcontent-icon"] a:focus,
div[id^="favcontent-description-icon"] a:hover,
div[id*=" favcontent-description-icon"] a:hover,
div[id^="favcontent-description-icon"] a:focus,
div[id*=" favcontent-description-icon"] a:focus {
  text-decoration: none;
}
div[id^="favcontent-icon"]:after,
div[id*=" favcontent-icon"]:after,
div[id^="favcontent-description-icon"]:after,
div[id*=" favcontent-description-icon"]:after {
  content: "";
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
}

/*
///  image
*/

div[id^="favcontent-image"],
div[id*=" favcontent-image"],
div[id^="favcontent-description-image"],
div[id*=" favcontent-description-image"] {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  padding-bottom: 10px;
}
div[id^="favcontent-image"] img,
div[id*=" favcontent-image"] img {
  width: 100%;
}

/*
///  image title
*/

h4[id^="favcontent-image-title"] a,
h4[id*=" favcontent-image-title"] a,
h4[id^="favcontent-description-image-title"] a,
h4[id*=" favcontent-description-image-title"] a {
  padding: 14px 21px;
  background-color: rgba(17,17,17,.67);
  font-weight: normal;
}
h4[id^="favcontent-image-title"],
h4[id*=" favcontent-image-title"],
h4[id^="favcontent-description-image-title"],
h4[id*=" favcontent-description-image-title"] {
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 20%;
}
h4[id^="favcontent-image-title"] a:hover,
h4[id*=" favcontent-image-title"] a:hover,
h4[id^="favcontent-image-title"] a:focus,
h4[id*=" favcontent-image-title"] a:focus,
h4[id^="favcontent-description-image-title"]:hover,
h4[id*=" favcontent-description-image-title"]:hover,
h4[id^="favcontent-description-image-title"]:focus,
h4[id*=" favcontent-description-image-title"]:focus {
  text-decoration: none;
}

  /*
  /////////////////////////////////

4. content

  /////////////////////////////////
  */

/*
///  title
*/

h3[id^="favcontent-title"],
h3[id*=" favcontent-title"],
h3[id^="favcontent-title"],
h3[id*=" favcontent-title"] {
  margin: 0!important;
  padding: 0!important;
  font-weight: normal;
  border: none!important;
}
h3[id^="favcontent-title"] a:hover,
h3[id*=" favcontent-title"] a:hover,
h3[id^="favcontent-title"] a:focus,
h3[id*=" favcontent-title"] a:focus {
  background-color: transparent!important;
}

/*
///  description
*/

div[id^="favcontent-description"] p:first-child,
div[id*=" favcontent-description"] p:first-child {
  margin: 0;
}
div[id^="favcontent-description"].clearfix,
div[id*=" favcontent-description"].clearfix {
  margin-top: 20px;
}
.favcontent-imgicon-left {
  float: left;
  margin-right: 14px;
}
.favcontent-imgicon-right {
  float: right;
  margin-left: 14px;
}

/*
///  read more
*/

div[id^="favcontent-readmore"],
div[id*=" favcontent-readmore"] {
  margin-top: 14px;
}
div[id^="favcontent-readmore"] a.btn,
div[id*=" favcontent-readmore"] a.btn {
  text-shadow: 2px 1px 1px rgba(0, 0, 0, 0.25);
  background-image: none;
  border: 1px solid transparent;
  box-shadow: none;
}
div[id^="favcontent-readmore"] a.btn:hover,
div[id*=" favcontent-readmore"] a.btn:hover,
div[id^="favcontent-readmore"] a.btn:focus,
div[id*=" favcontent-readmore"] a.btn:focus {
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0px 5px 11px 0px rgba(0, 0, 0, 0.18), 0px 4px 15px 0px rgba(0, 0, 0, 0.15);
}

  /*
  /////////////////////////////////

5. grid

  /////////////////////////////////
  */

@media (min-width: 980px) {

  /*
  ///  6 columns
  */

  div[id^="favcontent-box"].span2 h4,
  div[id*=" favcontent-box"].span2 h4 {
    font-size: 14px;
  }
  div[id^="favcontent-box"].span2 h4 a,
  div[id*=" favcontent-box"].span2 h4 a {
    padding: 7px 14px;
  }
  div[id^="favcontent-box"].span2 div[id^="favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span2 div[id^="favcontent-description-icon"] i,
  div[id^="favcontent-box"].span2 div[id*=" favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span2 div[id*=" favcontent-description-icon"] i {
    font-size: 1.2em;
  }
  div[id^="favcontent-box"].span2 div[id^="favcontent-icon"] i,
  div[id*=" favcontent-box"].span2 div[id^="favcontent-icon"] i,
  div[id^="favcontent-box"].span2 div[id*=" favcontent-icon"] i,
  div[id*=" favcontent-box"].span2 div[id*=" favcontent-icon"] i {
    font-size: 3.3em;
  }

  /*
  ///  5 columns
  */

  div[id^="favcontent-box"].span2-4,
  div[id*=" favcontent-box"].span2-4 {
    width: 17.790056%;
  }
  div[id^="favcontent-box"].span2-4 h4,
  div[id*=" favcontent-box"].span2-4 h4 {
    font-size: 16px;
  }
  div[id^="favcontent-box"].span2-4 h4 a,
  div[id*=" favcontent-box"].span2-4 h4 a {
    padding: 10px 16px;
  }
  div[id^="favcontent-box"].span2-4 div[id^="favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span2-4 div[id^="favcontent-description-icon"] i,
  div[id^="favcontent-box"].span2-4 div[id*=" favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span2-4 div[id*=" favcontent-description-icon"] i {
    font-size: 1.4em;
  }
  div[id^="favcontent-box"].span2-4 div[id^="favcontent-icon"] i,
  div[id*=" favcontent-box"].span2-4 div[id^="favcontent-icon"] i,
  div[id^="favcontent-box"].span2-4 div[id*=" favcontent-icon"] i,
  div[id*=" favcontent-box"].span2-4 div[id*=" favcontent-icon"] i {
    font-size: 4em;
  }

  /*
  ///  4 columns
  */

  div[id^="favcontent-box"].span3 h4,
  div[id*=" favcontent-box"].span3 h4 {
    font-size: 18px;
  }
  div[id^="favcontent-box"].span3 h4 a,
  div[id*=" favcontent-box"].span3 h4 a {
    padding: 12px 18px;
  }
  div[id^="favcontent-box"].span3 div[id^="favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span3 div[id^="favcontent-description-icon"] i,
  div[id^="favcontent-box"].span3 div[id*=" favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span3 div[id*=" favcontent-description-icon"] i {
    font-size: 1.8em;
  }
  div[id^="favcontent-box"].span3 div[id^="favcontent-icon"] i,
  div[id*=" favcontent-box"].span3 div[id^="favcontent-icon"] i,
  div[id^="favcontent-box"].span3 div[id*=" favcontent-icon"] i,
  div[id*=" favcontent-box"].span3 div[id*=" favcontent-icon"] i {
    font-size: 5em;
  }

  /*
  ///  3 columns
  */

  div[id^="favcontent-box"].span4 h4,
  div[id*=" favcontent-box"].span4 h4 {
    font-size: 24px;
  }
  div[id^="favcontent-box"].span4 h4 a,
  div[id*=" favcontent-box"].span4 h4 a {
    padding: 16px 24px;
  }
  div[id^="favcontent-box"].span4 div[id^="favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span4 div[id^="favcontent-description-icon"] i,
  div[id^="favcontent-box"].span4 div[id*=" favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span4 div[id*=" favcontent-description-icon"] i {
    font-size: 2em;
  }
  div[id^="favcontent-box"].span4 div[id^="favcontent-icon"] i,
  div[id*=" favcontent-box"].span4 div[id^="favcontent-icon"] i,
  div[id^="favcontent-box"].span4 div[id*=" favcontent-icon"] i,
  div[id*=" favcontent-box"].span4 div[id*=" favcontent-icon"] i {
    font-size: 6em;
  }

  /*
  ///  2 columns
  */

  div[id^="favcontent-box"].span6 h4,
  div[id*=" favcontent-box"].span6 h4 {
    font-size: 28px;
  }
  div[id^="favcontent-box"].span6 h4 a,
  div[id*=" favcontent-box"].span6 h4 a {
    padding: 18px 24px;
  }
  div[id^="favcontent-box"].span6 div[id^="favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span6 div[id^="favcontent-description-icon"] i,
  div[id^="favcontent-box"].span6 div[id*=" favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span6 div[id*=" favcontent-description-icon"] i {
    font-size: 2.4em;
  }
  div[id^="favcontent-box"].span6 div[id^="favcontent-icon"] i,
  div[id*=" favcontent-box"].span6 div[id^="favcontent-icon"] i,
  div[id^="favcontent-box"].span6 div[id*=" favcontent-icon"] i,
  div[id*=" favcontent-box"].span6 div[id*=" favcontent-icon"] i {
    font-size: 12em;
  }

  /*
  ///  1 columns
  */

  div[id^="favcontent-box"].span12 h4,
  div[id*=" favcontent-box"].span12 h4 {
    font-size: 32px;
  }
  div[id^="favcontent-box"].span12 h4 a,
  div[id*=" favcontent-box"].span12 h4 a {
    padding: 21px 28px;
  }
  div[id^="favcontent-box"].span12 div[id^="favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span12 div[id^="favcontent-description-icon"] i,
  div[id^="favcontent-box"].span12 div[id*=" favcontent-description-icon"] i,
  div[id*=" favcontent-box"].span12 div[id*=" favcontent-description-icon"] i {
    font-size: 5em;
  }
  div[id^="favcontent-box"].span12 div[id^="favcontent-icon"] i,
  div[id*=" favcontent-box"].span12 div[id^="favcontent-icon"] i,
  div[id^="favcontent-box"].span12 div[id*=" favcontent-icon"] i,
  div[id*=" favcontent-box"].span12 div[id*=" favcontent-icon"] i {
    font-size: 20em;
  }

}

@media handheld, only screen and (max-width: 979px) {

  div[id^="favcontent-box"],
  div[id*=" favcontent-box"] {
    margin-bottom: 21px;
  }
  div[id^="favcontent-icon"] i,
  div[id*=" favcontent-icon"] i {
    font-size: 6em;
  }
  div[id^="favcontent-box"].span3 div[id^="favcontent-icon"] i,
  div[id*=" favcontent-box"].span3 div[id^="favcontent-icon"] i,
  div[id^="favcontent-box"].span3 div[id*=" favcontent-icon"] i,
  div[id*=" favcontent-box"].span3 div[id*=" favcontent-icon"] i {
    font-size: 4em;
  }
  div[id^="favcontent-box"].span2,
  div[id*=" favcontent-box"].span2,
  div[id^="favcontent-box"].span2-4,
  div[id*=" favcontent-box"].span2-4,
  div[id^="favcontent-box"].span3,
  div[id*=" favcontent-box"].span3,
  div[id^="favcontent-box"].span4,
  div[id*=" favcontent-box"].span4,
  div[id^="favcontent-box"].span6,
  div[id*=" favcontent-box"].span6  {
    margin-left: 2.127659574468085%;
    float:left;
  }
  div[id^="favcontent-box"].span2,
  div[id*=" favcontent-box"].span2,
  div[id^="favcontent-box"].span2-4,
  div[id*=" favcontent-box"].span2-4,
  div[id^="favcontent-box"].span4,
  div[id*=" favcontent-box"].span4 {
    width: 31.6239%;
  }
  div[id^="favcontent-box"].span2:first-child,
  div[id*=" favcontent-box"].span2:first-child,
  div[id^="favcontent-box"].span2-4:first-child,
  div[id*=" favcontent-box"].span2-4:first-child,
  div[id^="favcontent-box"].span4:first-child,
  div[id*=" favcontent-box"].span4:first-child,
  div[id^="favcontent-box"].span6:first-child,
  div[id*=" favcontent-box"].span6:first-child {
    margin-left: 0;
  }
  div[id^="favcontent-box"].span2:nth-child(4),
  div[id*=" favcontent-box"].span2:nth-child(4),
  div[id^="favcontent-box"].span2-4:nth-child(4),
  div[id*=" favcontent-box"].span2-4:nth-child(4) {
    margin-left: 0;
    clear: both;
  }
  div[id^="favcontent-box"].span2-4:nth-child(4),
  div[id*=" favcontent-box"].span2-4:nth-child(4),
  div[id^="favcontent-box"].span2-4:nth-child(5),
  div[id*=" favcontent-box"].span2-4:nth-child(5) {
    width: 31.6239% !important;
  }

}

@media handheld, only screen and (max-width: 767px) {

  div[id^="favcontent-box"].span3,
  div[id*=" favcontent-box"].span3 {
    margin-left: 2.127659574468085%;
    float:left;
  }
  div[id^="favcontent-box"].span3:first-child,
  div[id*=" favcontent-box"].span3:first-child {
    margin-left: 0;
  }
  div[id^="favcontent-box"].span3:nth-child(4)
  div[id*=" favcontent-box"].span3:nth-child(4) {
    margin-left: 0;
    clear: both;
  }
  div[id^="favcontent-box"].span3 div[id^="favcontent-icon"] i,
  div[id*=" favcontent-box"].span3 div[id^="favcontent-icon"] i,
  div[id^="favcontent-box"].span3 div[id*=" favcontent-icon"] i,
  div[id*=" favcontent-box"].span3 div[id*=" favcontent-icon"] i {
    font-size: 6em;
  }

  /* columns into 2 rows */

  div[id^="favcontent-box"].span2,
  div[id*=" favcontent-box"].span2,
  div[id^="favcontent-box"].span2-4,
  div[id*=" favcontent-box"].span2-4,
  div[id^="favcontent-box"].span3,
  div[id*=" favcontent-box"].span3,
  div[id^="favcontent-box"].span6,
  div[id*=" favcontent-box"].span6 {
    width: 48.93617021276595%;
  }
  div[id^="favcontent-box"].span4,
  div[id*=" favcontent-box"].span4,
  div[id^="favcontent-box"].span2-4:nth-child(4),
  div[id*=" favcontent-box"].span2-4:nth-child(4),
  div[id^="favcontent-box"].span2-4:nth-child(5),
  div[id*=" favcontent-box"].span2-4:nth-child(5) {
    width: 48.93617021276595% !important;
  }
  div[id^="favcontent-box"].span2:nth-child(3),
  div[id*=" favcontent-box"].span2:nth-child(3),
  div[id^="favcontent-box"].span2-4:nth-child(3),
  div[id*=" favcontent-box"].span2-4:nth-child(3),
  div[id^="favcontent-box"].span3:nth-child(3),
  div[id*=" favcontent-box"].span3:nth-child(3),
  div[id^="favcontent-box"].span4:nth-child(3),
  div[id*=" favcontent-box"].span4:nth-child(3),
  div[id^="favcontent-box"].span2:nth-child(5),
  div[id*=" favcontent-box"].span2:nth-child(5),
  div[id^="favcontent-box"].span2-4:nth-child(5),
  div[id*=" favcontent-box"].span2-4:nth-child(5),
  div[id^="favcontent-box"].span3:nth-child(5),
  div[id*=" favcontent-box"].span3:nth-child(5),
  div[id^="favcontent-box"].span4:nth-child(5),
  div[id*=" favcontent-box"].span4:nth-child(5) {
    margin-left: 0;
    clear: both;
  }
  div[id^="favcontent-box"].span2:nth-child(4),
  div[id*=" favcontent-box"].span2:nth-child(4),
  div[id^="favcontent-box"].span2-4:nth-child(4),
  div[id*=" favcontent-box"].span2-4:nth-child(4),
  div[id^="favcontent-box"].span3:nth-child(4),
  div[id*=" favcontent-box"].span3:nth-child(4) {
    margin-left: 2.127659574468085%;
    clear: none;
  }
  div[id^="favcontent-box"].span2-4:last-child,
  div[id*=" favcontent-box"].span2-4:last-child,
  div[id^="favcontent-box"].span4:last-child,
  div[id*=" favcontent-box"].span4:last-child {
    float: none;
    width: 100%;
    margin-left: 0;
  }

}

@media handheld, only screen and (max-width: 480px) {

  div[id^="favcontent-box"].span2,
  div[id*=" favcontent-box"].span2,
  div[id^="favcontent-box"].span2-4,
  div[id*=" favcontent-box"].span2-4,
  div[id^="favcontent-box"].span3,
  div[id*=" favcontent-box"].span3,
  div[id^="favcontent-box"].span4,
  div[id*=" favcontent-box"].span4,
  div[id^="favcontent-box"].span6,
  div[id*=" favcontent-box"].span6 {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

}

  /*
  /////////////////////////////////

6. image title and icon effects

  /////////////////////////////////
  */

/*
///  no effect
*/

.favcontent-effect-none {
  -webkit-transition: none;
  -moz-transition: none;
  -o-transition: none;
  transition: none;
}
.favcontent-effect-none i {
  cursor: default;
}

/*
///  effect 1
*/

.favcontent-effect1 {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.favcontent-effect1:hover {
  -webkit-animation-name: effect1;
  animation-name: effect1;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}

@-webkit-keyframes effect1 {
  16.65% {
    -webkit-transform: translateX(4%);
    transform: translateX(4%);
  }

  33.3% {
    -webkit-transform: translateX(-4%);
    transform: translateX(-4%);
  }

  49.95% {
    -webkit-transform: translateX(2%);
    transform: translateX(2%);
  }

  66.6% {
    -webkit-transform: translateX(-2%);
    transform: translateX(-2%);
  }

  83.25% {
    -webkit-transform: translateX(1%);
    transform: translateX(1%);
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes effect1 {
  16.65% {
    -webkit-transform: translateX(4%);
    transform: translateX(4%);
  }

  33.3% {
    -webkit-transform: translateX(-4%);
    transform: translateX(-4%);
  }

  49.95% {
    -webkit-transform: translateX(2%);
    transform: translateX(2%);
  }

  66.6% {
    -webkit-transform: translateX(-2%);
    transform: translateX(-2%);
  }

  83.25% {
    -webkit-transform: translateX(1%);
    transform: translateX(1%);
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

/*
///  effect 2
*/

.favcontent-effect2 {
  -webkit-transition: all 400ms linear;
  -moz-transition: all 400ms linear;
  -o-transition: all 400ms linear;
  transition: all 400ms linear;
}
.favcontent-effect2:hover {
  -webkit-animation-name: effect2;
          animation-name: effect2;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-timing-function: ease-in-out;
          animation-timing-function: ease-in-out;
}

@-webkit-keyframes effect2 {
  20% {
    -webkit-transform: scale3d(.8, .8, .8);
            transform: scale3d(.8, .8, .8);
  }

  40% {
    opacity: 1;
    -webkit-transform: scale3d(1.3, 1.3, 1.3);
            transform: scale3d(1.3, 1.3, 1.3);
  }

  100% {
    opacity: 0;
    -webkit-transform: scale3d(.8, .8, .8);
            transform: scale3d(.8, .8, .8);
  }
}

@keyframes effect2 {
  20% {
    -webkit-transform: scale3d(.8, .8, .8);
            transform: scale3d(.8, .8, .8);
  }

  40% {
    opacity: 1;
    -webkit-transform: scale3d(1.3, 1.3, 1.3);
            transform: scale3d(1.3, 1.3, 1.3);
  }

  100% {
    opacity: 0;
    -webkit-transform: scale3d(.8, .8, .8);
            transform: scale3d(.8, .8, .8);
  }
}

/*
///  effect 3
*/

.favcontent-effect3 {
  -webkit-transition: all 1s ease-in-out 0s;
          transition: all 1s ease-in-out 0s;
}
.favcontent-effect3:hover {
  -webkit-transform: rotate(-360deg) scale(1, 1);
  -moz-transform: rotate(-360deg) scale(1, 1);
  -o-transform: rotate(-360deg) scale(1, 1);
  transform: rotate(-360deg) scale(1, 1);
}

/*
///  effect 4
*/

.favcontent-effect4 {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.favcontent-effect4:hover {
  -webkit-animation-name: effect4;
  animation-name: effect4;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}

@-webkit-keyframes effect4 {
  10% {
    -webkit-transform: translateY(30%);
    transform: translateY(30%);
  }

  30% {
    -webkit-transform: translateY(-30%);
    transform: translateY(-30%);
  }

  50% {
    -webkit-transform: translateY(20%);
    transform: translateY(20%);
  }

  70% {
    -webkit-transform: translateY(-20%);
    transform: translateY(-20%);
  }

}

@keyframes effect4 {
  10% {
    -webkit-transform: translateY(30%);
    transform: translateY(30%);
  }

  30% {
    -webkit-transform: translateY(-30%);
    transform: translateY(-30%);
  }

  50% {
    -webkit-transform: translateY(20%);
    transform: translateY(20%);
  }

  70% {
    -webkit-transform: translateY(-10%);
    transform: translateY(-10%);
  }

}

/*
///  effect 5
*/

.favcontent-effect5 {
  -webkit-transition: all 300ms linear;
  -moz-transition: all 300ms linear;
  -o-transition: all 300ms linear;
  transition: all 300ms linear;
}
.favcontent-effect5:hover {
  transform: translate(0px, 20%);
  -webkit-transform: translate(0px, 20%);
}

/*
///  effect 6
*/

.favcontent-effect6 {
  -webkit-transition: all 400ms linear;
  -moz-transition: all 400ms linear;
  -o-transition: all 400ms linear;
  transition: all 400ms linear;
}
.favcontent-effect6:hover,
.favcontent-effect6:focus {
  -webkit-transform-origin: top center 0;
  -ms-transform-origin: top center 0;
  transform-origin: top center 0;
  -webkit-animation-name: effect6;
  animation-name: effect6;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
}

@-webkit-keyframes effect6 {
  20% {
    -webkit-transform: rotate(25deg);
    transform: rotate(25deg);
  }

  40% {
    -webkit-transform: rotate(-20deg);
    transform: rotate(-20deg);
  }

  60% {
    -webkit-transform: rotate(5deg);
    transform: rotate(5deg);
  }

  80% {
    -webkit-transform: rotate(-5deg);
    transform: rotate(-5deg);
  }

  100% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}

@keyframes effect6 {
  20% {
    -webkit-transform: rotate(25deg);
    -ms-transform: rotate(25deg);
    transform: rotate(25deg);
  }

  40% {
    -webkit-transform: rotate(-20deg);
    -ms-transform: rotate(-20deg);
    transform: rotate(-20deg);
  }

  60% {
    -webkit-transform: rotate(5deg);
    -ms-transform: rotate(5deg);
    transform: rotate(5deg);
  }

  80% {
    -webkit-transform: rotate(-5deg);
    -ms-transform: rotate(-5deg);
    transform: rotate(-5deg);
  }

  100% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}

/*
///  effect 7
*/

.favcontent-effect7 {
  -webkit-transition: all 400ms linear;
  -moz-transition: all 400ms linear;
  -o-transition: all 400ms linear;
  transition: all 400ms linear;
}
.favcontent-effect7:hover,
.favcontent-effect7:focus {
  -webkit-transform-origin: center center 0;
  -ms-transform-origin: center center 0;
  transform-origin: center center 0;
  -webkit-animation-name: effect7;
  animation-name: effect7;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
}

@-webkit-keyframes effect7 {
  20% {
    -webkit-transform: rotate(25deg);
    transform: rotate(25deg);
  }

  40% {
    -webkit-transform: rotate(-20deg);
    transform: rotate(-20deg);
  }

  60% {
    -webkit-transform: rotate(25deg);
    transform: rotate(25deg);
  }

  80% {
    -webkit-transform: rotate(-25deg);
    transform: rotate(-25deg);
  }

  100% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}

@keyframes effect7 {
  20% {
    -webkit-transform: rotate(25deg);
    -ms-transform: rotate(25deg);
    transform: rotate(25deg);
  }

  40% {
    -webkit-transform: rotate(-20deg);
    -ms-transform: rotate(-20deg);
    transform: rotate(-20deg);
  }

  60% {
    -webkit-transform: rotate(5deg);
    -ms-transform: rotate(5deg);
    transform: rotate(5deg);
  }

  80% {
    -webkit-transform: rotate(-5deg);
    -ms-transform: rotate(-5deg);
    transform: rotate(-5deg);
  }

  100% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}

/*
///  effect 8
*/

.favcontent-effect8 {
  -webkit-transition: all 2s ease-in-out 0s;
  -moz-transition: all 2s ease-in-out 0s;
  -o-transition: all 2s ease-in-out 0s;
  transition: all 2s ease-in-out 0s;
}
.favcontent-effect8:hover {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-perspective-origin: 50% 100px;
  -moz-perspective-origin: 50% 100px;
  -o-perspective-origin: 50% 100px;
  perspective-origin: 50% 100px;
  -webkit-animation-duration: 1.2s;
          animation-duration: 1.2s;
}


  /*
  /////////////////////////////////

7. layout effects

  /////////////////////////////////
  */

/*
///  js classes
*/

.favhide { opacity:0; }
.favshow { opacity:1; }

/*
///  no layout effect
*/

.layout-effect-none {
   -webkit-animation: none;
   -moz-animation: none;
   -o-animation: none;
   -ms-animation: none;
   animation: none;
}

/*
///  layout effect 1
*/

.layout-effect1 {
  -webkit-animation-name: layout-effect1;
  -moz-animation-name: layout-effect1;
  animation-name: layout-effect1;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes layout-effect1 {

  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

}

@-moz-keyframes layout-effect1 {

  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

}

@keyframes layout-effect1 {

  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

}

/*
///  layout effect 2
*/

.layout-effect2 {
  -webkit-animation-name: layout-effect2;
  -moz-animation-name: layout-effect2;
  animation-name: layout-effect2;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes layout-effect2 {

  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }

}

@-moz-keyframes layout-effect2 {

  0% {
    opacity: 0;
    -moz-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    -moz-transform: none;
    transform: none;
  }

}

@keyframes layout-effect2 {

  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    -moz-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    -moz-transform: translate3d(0, -100%, 0);
    transform: none;
  }

}

/*
///  layout effect 3
*/

.layout-effect3 {
  -webkit-animation-name: layout-effect3;
  -moz-animation-name: layout-effect3;
  animation-name: layout-effect3;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes layout-effect3 {

  0% {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }

}

@-moz-keyframes layout-effect3 {

  0% {
    opacity: 0;
    -moz-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }

  100% {
    opacity: 1;
    -moz-transform: none;
    transform: none;
  }

}

@keyframes layout-effect3 {

  0% {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    -moz-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    -moz-transform: none;
    transform: none;
  }

}

/*
///  layout effect 4
*/

.layout-effect4 {
  -webkit-animation-name: layout-effect4;
  -moz-animation-name: layout-effect4;
  animation-name: layout-effect4;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes layout-effect4 {

  0% {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }

}

@-moz-keyframes layout-effect4 {

  0% {
    opacity: 0;
    -moz-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }

  100% {
    opacity: 1;
    -moz-transform: none;
    transform: none;
  }

}


@keyframes layout-effect4 {

  0% {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    -moz-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    -moz-transform: none;
    transform: none;
  }

}

/*
///  layout effect 5
*/

.layout-effect5 {
  -webkit-animation-name: layout-effect5;
  -moz-animation-name: layout-effect5;
  animation-name: layout-effect5;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes layout-effect5 {

  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }

}

@-moz-keyframes layout-effect5 {

  0% {
    opacity: 0;
    -moz-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  100% {
    opacity: 1;
    -moz-transform: none;
    transform: none;
  }

}

@keyframes layout-effect5 {

  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    -moz-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    -moz-transform: none;
    transform: none;
  }

}

/*
///  layout effect 6
*/

.layout-effect6 {
  -webkit-animation-name: layout-effect6;
  -moz-animation-name: layout-effect6;
  animation-name: layout-effect6;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes layout-effect6 {

  0% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3);
  }

  50% {
    opacity: 1;
  }

}

@-moz-keyframes layout-effect6 {

  0% {
    opacity: 0;
    -moz-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3);
  }

  50% {
    opacity: 1;
  }

}

@keyframes layout-effect6 {

  0% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    -moz-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3);
  }

  50% {
    opacity: 1;
  }

}

/*
///  layout effect 7
*/

.layout-effect7 {
  -webkit-animation-name: layout-effect7;
  -moz-animation-name: layout-effect7;
  animation-name: layout-effect7;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes layout-effect7 {

  0% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  100% {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }

}

@-moz-keyframes layout-effect7 {

  0% {
    -moz-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    -moz-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -moz-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    -moz-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
  }

  60% {
    -moz-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    -moz-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  100% {
    -moz-transform: perspective(400px);
    transform: perspective(400px);
  }

}

@keyframes layout-effect7 {

  0% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    -moz-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    -webkit-transition-timing-function: ease-in;
    -moz-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    -moz-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    -webkit-transition-timing-function: ease-in;
    -moz-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    -moz-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    -moz-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  100% {
    -webkit-transform: perspective(400px);
    -moz-transform: perspective(400px);
    transform: perspective(400px);
  }

}

/*
///  layout effect 8
*/

.layout-effect8 {
  -webkit-animation-name: layout-effect8;
  -moz-animation-name: layout-effect8;
  animation-name: layout-effect8;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes layout-effect8 {

  0% {
    opacity: 0;
    -webkit-transform: scale3d(.1, .1, .1) translate3d(0, 1000px, 0);
    transform: scale3d(.1, .1, .1) translate3d(0, 1000px, 0);
    -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
    animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
    transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
  }

}

@keyframes layout-effect8 {

  0% {
    opacity: 0;
    -webkit-transform: scale3d(.1, .1, .1) translate3d(0, 1000px, 0);
    transform: scale3d(.1, .1, .1) translate3d(0, 1000px, 0);
    -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
    animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
    transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
  }

}
