﻿.imgFanfic {
    position: relative;
    max-height: 300px;
    overflow: hidden;
}

.imgFanfic img {
    width: 100%;
    -moz-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
    -webkit-transition: all .5s ease-out;
}

.imgFanfic:hover img {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
}

.imgFanfic:after {
    content: '';
    background-color: #000;
    height: 100%;
    left: 0;
    opacity: 0.7;
    position: absolute;
    top: 0;
    -webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    -ms-transition: opacity 0.3s;
    transition: opacity 0.3s;
    width: 100%;
}

.imgFanfic:hover:after {
    opacity: 0.6;
}

.autherBlock {
    padding: 5px 0 5px 0;
}

.avatarImg {
    height: 37px !important;
    max-width: 37px !important;
    border-radius: 50%;
}

.titleFanfic {
    position: absolute;
    z-index: 500;
    color: white;
    width: 100%;
    /*height: 100%;*/
    top: 40%;
}

.titleFanficH3 {
    text-align: center;
    vertical-align: middle;
}

@media(max-width: 767px) {
    .titleFanficH3 {
        font-size: 1.2em;
    }
}

@media(min-width: 768px) {
    .fixCategory {
        position: fixed;
        width: 13%;
    }
    .fixCloud {
        position: fixed;
        width: 20%;
        right: 9%;
    }
}

/****STARS****/
.rating {
    display: inline-block;
    position: relative;
    height: 30px;
    line-height: 1.2em;
    font-size: 30px;
}

.rating input {
    cursor: default !important;
}

.rating span {
    cursor: default !important;
}

.rating label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  cursor: pointer;
}

.rating label:last-child {
  position: static;
}

.rating label:nth-child(1) {
  z-index: 5;
}

.rating label:nth-child(2) {
  z-index: 4;
}

.rating label:nth-child(3) {
  z-index: 3;
}

.rating label:nth-child(4) {
  z-index: 2;
}

.rating label:nth-child(5) {
  z-index: 1;
}

.rating label input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.rating label .icon {
  float: left;
  color: transparent;
}

.rating label:last-child .icon {
  color: #000;
}

.rating label input:checked ~ .icon{
  color: #09f;
}

.rating label input:focus:not(:checked) ~ .icon:last-child {
  color: #000;
  text-shadow: 0 0 5px #09f;
}

@media(min-width:768px) {
    .starsRating {
        text-align: right;
    }
}

/******/