/*!
 * Custom styles for sites based on this CMS
 */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Alerts */
.alert {
    text-align: center;
    margin: 40px 0;
    padding: 10px;
    /*border: 2px solid;*/
    font-size: 16px;
    line-height: 1.5;
}
.alert.alert-success {
    color: #3c763d;
    /*border-color: #5cb85c;*/
    background-color: #dff0d8;
}
.alert.alert-info {
    color: #31708f;
    /*border-color: #5bc0de;*/
    background-color: #d9edf7;
}
.alert.alert-warning {
    color: #8a6d3b;
    /*border-color: #f0ad4e;*/
    background-color: #fcf8e3;
}
.alert.alert-danger {
    color: #a94442;
    /*border-color: #d9534f;*/
    background-color: #f2dede;
}

/* Form elements */
.special-field {
    display: none !important;
    visibility: hidden !important;
}
.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}
.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px;
}
.error-summary > :last-child {
    margin-bottom: 0;
}

/* fix form fields */
form .field {
    margin-bottom: 20px;
}
form .field .form-control {
    margin-bottom: 0;
}
form .field .field-error {
    display: none;
}
form .field.has-error {
    margin-bottom: 15px;
}
form .field.has-error .form-control {
    margin-bottom: 5px;
    border-color: #ed0013;
}
form .field.has-success .form-control {
    border-color: #5cb85c;
}
form .field.has-error .field-error {
    display: block;
    margin: 2px 0 0 74px;
    font-size: 12px;
    line-height: 1.3em;
    color: #ff4747;
}
.result-message {
    margin-left: 74px;
    color: #19171c;
}
.form-page .result-message {
    margin-left: 0;
}
.result-message .alert {
    margin: 0;
}
@media screen and (max-width: 640px) {
    form .field.has-error .field-error,
    .result-message {
        margin-left: 0;
    }
}

/* fixes */
img {
    height: auto;
}
[class^="yii"] img {
    margin: 0;
}
.img.left, img.left {
    margin: 11px 20px 40px 0;
    max-width: 50%;
}
.img.right, img.right {
    margin: 11px 0 40px 20px;
    max-width: 50%;
}
p .img.left, p img.left, p .img.right, p img.right {
    margin-top: 11px;
    margin-bottom: 13px;
}
.left {
    float: left;
}
.right {
    float: right;
}
.center {
    text-align: center;
}
@media screen and (max-width: 540px) {
    .img.left, img.left, .img.right, img.right {
        margin: 20px auto;
        max-width: 100%;
        float: none;
    }
    p .img.left, p img.left, p .img.right, p img.right {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}
.intro p {
    margin: 0;
}
#map {
    line-height: normal;
}
#map-box .gm-style-cc {
    visibility: visible;
}
/* https://habrahabr.ru/post/204238/ */
.disable-hover,
.disable-hover * {
    pointer-events: none !important;
}

form .field.mb0 {
    margin-bottom: 0;
}
form .field.mb0 {
    margin-bottom: 0;
}
form .field .checkbox-item.has-error .field-error {
    display: block;
    margin-left: 20px;
    font-size: 12px;
    line-height: 1.3em;
    color: #ff4747;
}

.share-block {
    display: flex;
    margin-bottom: 20px;
}
.share-block .share-block-label {
    font-size: 14px;
    margin-right: 10px;
    line-height: 30px;
}
.sharethis-inline-share-buttons {
    margin-bottom: 0;
    width: 250px;
}
.st-btn {
    padding: 0 5px !important;
    height: 30px !important;
    line-height: 30px !important;
}
.st-btn > img {
    top: 5px !important;
    margin: 0;
    max-width: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.rating[title] {
    cursor: default;
}
.rating.plus {
    color: #42ab44;
}
.rating.minus {
    color: #d34545;
}

.replay-to-author {
    font-weight: normal;
    display: block;
    color: #969696;
}
.cancel-reply {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    line-height: 14px;
    width: 16px;
    height: 16px;
    text-align: center;
    border: 1px solid;
    border-radius: 50%;
}

/* fix post with gallery */
.text-box:before, .text-box:after {
    display: table;
    content: "";
    line-height: 0;
}
.text-box:after {
    clear: both;
}

.text-box {
    font-size: 11pt;
    line-height: 1.5;
}

.comment-item:target > .comment-wrap .author {
    color: #ed0013;
}

.game-inner-page .item p.title {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}