
.align-center {
	margin: 0 auto;
}

.float-left {
	float: left;
}

.float-right {
	float: right;
}
/** negative margin to offset baseline **/
.float-right.adjust {
	margin-top: -7px;
	position: relative;
}

.clear {
	clear: both;
}
ul.reset {
    list-style: none;
    padding: 0;
    margin: 0;
}

.text-left {
	text-align: left !important;
}
.text-align-center {
	text-align: center;
}

.strong {
    font-weight: bold;
}

.absolute {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/*
    Vertical align usage:
    <div class="vertical-align-container v-middle"> - vertically aligns all child elements
 */
.vertical-align-container {
    display: table;
}
.vertical-align-container > * {
    display: table-cell;
}
.vertical-align-container.v-top > * {
    vertical-align: baseline;
}
.vertical-align-container.v-middle > * {
    vertical-align: middle;
}
.vertical-align-container.v-bottom > * {
    vertical-align: bottom;
}

.ellipsis {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nowrap {
    white-space: nowrap !important;
}

.hoverable:hover {
    opacity: 0.6;
}

.clickable:hover {
    cursor: pointer;
}

.disabled {
    cursor: not-allowed;
    opacity: .65;
}

.abbr {
    border-bottom: 1px dashed gray;
    cursor: help;
}
.abbr.dark-bg {
    border-color: #c0c0c0;
}

@-moz-keyframes moz-uppercase-bugfix { from {padding-right: 1px;} to {padding-right: 0;} }
.capitalize {
    display: inline-block;
    -moz-animation: moz-uppercase-bugfix 0.001s;
}
.capitalize:first-letter {
    /*Buggy on FF, extra space. Animation above triggers re-render.*/
    text-transform: uppercase;
}

.external-link .fa {
    font-size: 1em;
    margin-left: 3px;
}

.expand-link {
    cursor: pointer;
}
.expand-link:not(.no-arrow):after {
    /*content: "\f0d7";*/
    content: "\f107";
    vertical-align: middle;
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    margin-left: 0.2em;
    font-size: 20px;
}

.scroll-to-link {
    cursor: pointer;
}
.scroll-to-link:after {
    content: "\f063";
    vertical-align: middle;
    display: inline-block;
    font: normal normal normal 12px/1 FontAwesome;
    margin-left: 0.3em;
    margin-top: 1px;
}

.attention-rect {
    position: absolute;
    border: 5px solid #ffbc00;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.attention-rect-outside-v .attention-rect {
    top: -7px;
    bottom: -7px;
}
.attention-rect-outside-h .attention-rect {
    left: -7px;
    right: -7px;
}

textarea.auto-height {
    resize: none;
    overflow: auto;
    min-height: 30px;
    max-height: 150px;
}


.form-group label > em,
.required-sign {
    color: red;
    position: absolute;
    /*right: 9px;*/
    cursor: help;
}
.form-group label > em::after,
.required-sign:after {
    content: '*';
}

.btn-to-top {
    width: 200px;
    margin: 0 auto 70px;
    display: block;
    text-align: center;
}

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    /*padding-top: 25px;*/
    height: 0;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Hide up/down arrows for input type=number */
input.hide-arrows::-webkit-outer-spin-button,
input.hide-arrows::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
input.hide-arrows[type='number'] {
    -moz-appearance: textfield;
}

/* it is very ugly on FF, replace by custom on critical pages */
select.custom-arrow {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url(/img/custom-inputs/dropdown-arrow.png) right / 20px no-repeat #fff;
    padding-right: 20px !important;
}
select.custom-arrow::-ms-expand {
    display: none;
}
input[type=text].custom-arrow:not(:focus) {
    background: url(/img/custom-inputs/dropdown-arrow.png) right / 20px no-repeat #fff;
    padding-right: 18px !important;
}

/* fades lower part of content, with ability to see all content */
.box-hide {
    overflow: hidden;
    max-height: 12em;
    position: relative;
}
.box-hide:before {
    content: '';
    display: block;
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 0;
    left: 0;
    height: 4em;
    background: -moz-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%);
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(255,255,255,0)),color-stop(100%,#fff));
    background: -webkit-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%);
    background: -o-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%);
    background: -ms-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%);
    background: linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%);
}
.box-hide-link {
    margin: 5px auto 10px;
}

.icon-info {
    color: #00aeff;
    font-size: 18px;
}

/* show short version on small screens */
.short {
    display: none;
}
@media(max-width: 670px) {
    .long {
        display: none;
    }
    .short {
        display: inline;
    }
}

/* prevent map or panorama scroll during drag on touch devices (otherwise page scroll using drag is impossible) */
.drag-overlay {
    /*display: none;*/
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.15s linear;
}
.touching .drag-overlay {
    /*display: block;*/
    opacity: 1;
}
.drag-overlay div {
    position: absolute;
    top: 50%;
    text-align: center;
    left: 40px;
    right: 40px;
    color:white;
    font-size: 16px;
    transform: translateY(-50%);
}

/**
    Show white semi-transparent cover and loader indicator over element with 'busy' class assigned.
    'loader.gif' color can be customized here: http://preloaders.net/ru/circular
 */
.busy, .busy a, .busy button, .busy input {
    cursor: wait !important;
}
.busy {
    position: relative;
}
.busy::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.7) url(/img/loader.gif) center 40% no-repeat;
}
/* decrease spinner for some small elements */
.busy.btn::before,
.busy.btn-flat::before {
    background-size: 35px;
}
.busy.edit-field-form::before,
.busy.busy-h32::before {
    background-size: 28px;
}
.busy.busy-h24::before {
    background-size: 20px;
}

@keyframes spin {
    100% { transform:rotate(360deg); }
}

.flip-hor {
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    transform: scaleX(-1);
    /*-ms-filter: fliph; !*IE*!
    filter: fliph; !*IE*!*/
}

.h100-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.h100-container > div {
    /*height: 1px;*/
    flex: 0 0 auto;
}
.h100-container > div.h-remaining {
    height: auto;
    flex: 1 1 auto;
    overflow: hidden;
}

.no-scroll {
    overflow-y: hidden;
}

.red-text {
    color: #ce0000;
}

.fa-check.green {
    color: #009e00;
    font-size: 1.2em;
}

blockquote {
    font-size: 1em;
    padding: 0.7em 20px 0.8em 35px;
    border-left: 6px solid #00b0d7;
    position: relative;
    background: #EDEDED;
}
blockquote::before {
    font-family: Arial, sans-serif;
    content: "\201C";
    color: #00b0d7;
    font-size: 3.6em;
    position: absolute;
    left: 10px;
    top: -6px;
}
blockquote::after {
    content: '';
}
blockquote span { /*author*/
    display: block;
    color: #333333;
    font-style: normal;
    font-weight: bold;
    margin-top: 1em;
}