/*
 * main.css
 *
 * Webmaster: SerJika
 */

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# NORMALIZE 
# PRINT - @media print
# HELPERS - Helper classes, e.g. Clearings

----------------------------------------------------------------
 */


/*
   ##   ##    ###    ######   ##   ##    ##     ##       ######   ######   ####### 
   ###  ##   ## ##   ##   ##  ##   ##    ##     ##         ##         ##   ##      
   ###  ##  ##   ##  ##   ##  ### ###   ####    ##         ##        ##    ##      
   ## # ##  ##   ##  ######   ## # ##   ## #    ##         ##       ##     #####   
   ## # ##  ##   ##  ## ##    ## # ##  ######   ##         ##      ##      ##      
   ##  ###   ## ##   ##  ##   ##   ##  ##   #   ##         ##     ##       ##      
   ##   ##    ###    ##   ##  ##   ## ###   ##  ######   ######   ######   ####### 
                                                                                   
*/


/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/*! Source: http://meyerweb.com/eric/tools/css/reset/
 * reset.css
 * v2.0 | 20110126
 * License: none (public domain)
 */

/*!
 * Bootstrap v3.3.6 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

 /*!
 * Bootstrap v4.0.0-alpha.2 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */


/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

/**
 * Prevent iOS and IE text size adjust after device orientation change,
 * without disabling user zoom.
 */

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/**
 * Remove default margin.
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  /*vertical-align: baseline;*/ /* 2 */
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 * Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css
 */

audio,
canvas,
iframe,
svg,
video {
    vertical-align: middle;
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
 */

[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * Improve readability of focused elements when they are also in an
 * active/hover state.
 */

a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */

abbr[title],
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */

b,
strong {
  font-weight: bold;
}

/**
 * dfn - Address styling not present in Safari and Chrome.
 */

dfn,
cite,
em,
i {
  font-style: italic;
}

/**
 * Address styling not present in IE 8/9.
 */

mark,
ins {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}


/* Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9/10.
 */

img {
  border: 0;
  vertical-align: middle;
  height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari.
 */

figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
  -webkit-box-sizing: content-box;
     -moz-box-sizing: content-box;
          box-sizing: content-box;
/*
 * A better looking default horizontal rule
 * Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css
 */
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * style.css
 * http://underscores.me/
 * Contain overflow in all browsers.
 */
 
pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	/*font-size: 0.9375rem;*/
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */

code,
kbd,
pre,
samp,
tt,
var {
  font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", Courier, monospace;
  font-size: 1em;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/* Forms
   ========================================================================== */

/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */

/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */

button,
input,
optgroup,
select,
textarea {
  margin: 0; /* 3 */
  color: inherit; /* 1 */
  font: inherit; /* 2 */ 
  line-height: inherit; /* bootstrap.css */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */

button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
 */

input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  box-sizing: content-box; /* 2 */
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * 1. Remove default vertical scrollbar in IE 8/9/10/11.
 * 2. Allow only vertical resizing of textareas.
 *    Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css
 */

textarea {
  overflow: auto; /* 1 */
  resize: vertical; /* 2 */
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */

optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
} 

/*
 * mystyle.css
 *
 * РќРµРјРµС†РєРёРµ РєР°РІС‹С‡РєРё = \201e Рё \201c, вЂћР»Р°РїРєРёвЂњ, U+201E Рё U+201C, &bdquРѕ; Рё &ldquРѕ;
 * Р¤СЂР°РЅС†СѓР·СЃРєРёРµ РєР°РІС‹С‡РєРё =\00AB Рё \00BB, В«С‘Р»РѕС‡РєРёВ», U+00AB Рё U+00BB, &lР°quРѕ; Рё &rР°quРѕ;
 */

blockquote {
  margin: 0 2.5em 1em;
}

blockquote {
  quotes: '\201e' '\201c';
  font-size: 1.2em;
}

blockquote:before {
  padding-right: 0.15em;
  content: open-quote;
  font-size: 1.5em;
  font-weight: bold;
}

blockquote:after {
  padding-left: 0.1em;
  content: close-quote;
  font-size: 1.5em;
  font-weight: bold;
}

q {
  quotes: '\00AB' '\00BB' '\201e' '\201c';
}

q:before {
  content: open-quote;
}

q:after {
  content: close-quote;
}

address {
	margin: 0 0 1.5em;
}

/*
 * From bootstrap.css
 */

[role="button"] {
  cursor: pointer;
}

a,
area,
button,
[role="button"],
input,
label,
select,
summary,
textarea {
  -ms-touch-action: manipulation;
      touch-action: manipulation;
}

/*
 * From bootstrap.css whith modifications
 */

div, span, p, a, ol, ul, li, h1, h2, h3, h4, h5, h6,
footer, header, main, article, aside, nav, section, form,
table, caption, tbody, tfoot, thead, tr, th, td, hgroup,
pre, em, img, strong, sub, sup, b, u, i, dl, dt, dd, wbr,
blockquote, q, abbr, address, cite, menu, mark, audio, video,
fieldset,  label, legend, iframe, details, command, datalist,
canvas, figure, figcaption, embed, meter, output, progress,
summary, time {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

/* 
 * Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ 
 */
/*
*,
*:before,
*:after { 
	box-sizing: inherit;
}*/


/*
   ######   ######   ######   ##   ##  ######  
   ##   ##  ##   ##    ##     ###  ##    ##    
   ##   ##  ##   ##    ##     ###  ##    ##    
   ######   ######     ##     ## # ##    ##    
   ##       ## ##      ##     ## # ##    ##    
   ##       ##  ##     ##     ##  ###    ##    
   ##       ##   ##  ######   ##   ##    ##    
                                               
*/
/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        text-shadow: none !important;
        background: transparent !important;
        -webkit-box-shadow: none !important;
                box-shadow: none !important;
    }

    a,
    a:visited {
      text-decoration: underline;
    }

    a[href]:after {
      content: " (" attr(href) ")";
    }

    abbr[title]:after {
      content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
      content: "";
    }

    pre,
    blockquote {
      border: 1px solid #999;
      page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
      display: table-header-group;
    }

    tr,
    img {
      page-break-inside: avoid;
    }

    img {
      max-width: 100% !important;
    }

    p, h2, h3 {
      orphans: 3;
      widows: 3;
    }

    h2, h3 {
      page-break-after: avoid;
    }
}



/*
   ##   ##  #######  ##       ######   #######  ######    #####  
   ##   ##  ##       ##       ##   ##  ##       ##   ##  ##   ## 
   ##   ##  ##       ##       ##   ##  ##       ##   ##  ##      
   #######  #####    ##       ######   #####    ######    #####  
   ##   ##  ##       ##       ##       ##       ## ##         ## 
   ##   ##  ##       ##       ##       ##       ##  ##   ##   ## 
   ##   ##  #######  ######   ##       #######  ##   ##   #####  
                                                                 
*/


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.fade {
  opacity: 0;
  -webkit-transition: opacity .15s linear;
       -o-transition: opacity .15s linear;
          transition: opacity .15s linear;
}

.fade.in {
  opacity: 1;
}

.hidden,
.hide,
.collapse {
    display: none !important;
}

.show,
.collapse.in {
  display: block !important;
}

.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  -webkit-transition-timing-function: ease;
       -o-transition-timing-function: ease;
          transition-timing-function: ease;
  -webkit-transition-duration: .35s;
       -o-transition-duration: .35s;
          transition-duration: .35s;
  -webkit-transition-property: height, visibility;
       -o-transition-property: height, visibility;
          transition-property: height, visibility;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 * 3. Including the :before selector is not necessary to clear the floats, 
 *    but it prevents top-margins from collapsing in modern browsers. (СЃ) Nicolas Gallagher
 * 4. For IE 6/7 only
 *    Include this rule to trigger hasLayout and contain floats.
 */

.clearfix:before, /* 3 */
.clearfix:after,
.container:before,
.container:after,
.container-fluid:before,
.container-fluid:after,
.row:before,
.row:after,
div[class*="col-"]:before,
div[class*="col-"]:after,
.nav:before,
.nav:after,
.navbar:before,
.navbar:after,
.navbar-header:before,
.navbar-header:after,
.navbar-collapse:before,
.navbar-collapse:after {
  content: " "; /* 1 */
  /*display: table; /* 2 */
}

.clearfix:after,
.container:after,
.container-fluid:after,
.row:after,
div[class*="col-"]:after,
.nav:after,
.navbar:after,
.navbar-header:after,
.navbar-collapse:after {
  clear: both;
}

.clearfix,
.container,
.container-fluid,
.row,
div[class*="col-"],
.nav,
.navbar,
.navbar-header,
.navbar-collapse  {
  zoom: 1; /* 4 */
}

/* ! Source: http://phonegap-tips.com/articles/essential-phonegap-css-webkit-tap-highlight-color.html
 * Notice! Link must have attribute: ontouchstart="return true;"
 */

.mobile-link {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent; /* For some Androids */
}
.mobile-link:active {
  -webkit-transform: scale3d(0.9, 0.9, 1);
}

/* ! Source: http://css-live.ru/articles-css/ravnomernoe-vyravnivanie-blokov-po-shirine.html
 * The alignment of blocks in width
 */

.justify-blocks {
  text-align: justify;
  line-height: 0;           /* Reset to parent */
  font-size: 1px;           /* for Opera */
  text-justify: newspaper;  /* IE 6-7 */
  zoom: 1;                  /* IE 6-7 */
  text-align-last: justify; /* turn on the last line */
}
.justify-blocks:after {
  width: 100%;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  content: '';
  display: inline-block;
}
.justify-blocks-child  {
  position: relative;
  display: inline-block;
  text-align-last: left;
  line-height: normal; /* recoverable in children, except the last one*/
  font-size: 16px;     /* recoverable in children, except the last one*/
  vertical-align: top; /* without it Opera will be indented under the elements */
  display : inline;    /* IE 6-7 */
  zoom : 1;            /* IE 6-7 */
}

 /* -----------------------------------------*/

.circle {
  border-radius: 50%;
}

.inline-block, .display-inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.block-relative {
  position: relative;
}

.table {
  display: table;
  margin-bottom: 0;
}

.table-cell {
  display: table-cell;
  vertical-align: middle;
}

.affix, .fixed {
  position: fixed;
}

.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.pull-right {
  float: right !important;
}

.pull-left {
  float: left !important;
}

.small-text {
  font-size: 65%;
}

.medium-text {
  font-size: 75%;
}

.large-text,
big {
  font-size: 125%;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.border-opacity {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  border: 5px solid #cfcfce;
  opacity: 0.5;
  height: 100%;
  width: 100%;
}

.text-muted {
  color: #777;
}

.text-danger {
  color: #843534;
}

.text-warning {
  color: #8a6d3b;
}

.text-success {
  color: #3c763d;
}

