/*!
 * 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;
    font-size: 16px;
    line-height: 1.5;
}
.alert.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
}
.alert.alert-info {
    color: #31708f;
    background-color: #d9edf7;
}
.alert.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
}
.alert.alert-danger {
    color: #a94442;
    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: #dd0920;
}
form .field.has-success .form-control {
    border-color: #ed0013;
}
form .field.has-error .field-error {
    display: block;
    margin-left: 74px;
    font-size: 13px;
    line-height: 1.5;
    color: #ff4747;
}
.login-form .field.has-error .field-error {
    margin-left: 134px;
}
.result-message {
    margin-left: 74px;
}
.result-message .alert {
    margin: 0;
}
@media screen and (max-width: 660px) {
    form .field.has-error .field-error, .login-form .field.has-error .field-error,
    .result-message {
        margin-left: 0;
    }
}
/* search gaems */
.form.search-form .field {
    margin-bottom: 0;
}
.reset-search,
.no-touch .reset-search:hover {
    position: absolute;
    right: 44px;
    bottom: 5px;
    padding: 0;
    width: 29px;
    height: 29px;
    line-height: 29px;
    font-size: 22px;
    text-align: center;
    text-decoration: none;
}

/* 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;
}
.fileinput-wrapper {
    margin-bottom: 0;
}

/* https://habrahabr.ru/post/204238/ */
.disable-hover,
.disable-hover * {
    pointer-events: none !important;
}

code, pre {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 90%;
    background: #f2f2f2;
    border-radius: 2px;
    padding: 0 5px;
}
pre {
    line-height: 1.2;
}

.accordion p > .download-link {
    margin: 6px 0;
}

.ajax-loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("../i/ajax-loader.gif") no-repeat center;
    vertical-align: bottom;
}

#nav-box {
    background-image: none;
}

.no-border-tbl .download.url.internal {
    background: url("../i/link-internal.svg") no-repeat 0 0/25px 24px;
}

.no-border-tbl .download.url.external {
    background: url("../i/link-external.svg") no-repeat 0 0/25px 24px;
}
