/**
 * @file
 * Layout Styling (DIV Positioning)
 *
 * Define CSS classes to create a table-free, 3-column, 2-column, or single
 * column layout depending on whether blocks are enabled in the left or right
 * columns.
 *
 * This layout is based on the Zen Columns layout method.
 *   http://drupal.org/node/201428
 *
 * Only CSS that affects the layout (positioning) of major elements should be
 * listed here.  Such as:
 *   display, position, float, clear, width, height, min-width, min-height
 *   margin, border, padding, overflow
 */


/*
 * Body
 */
body {
}

#page-wrapper,
.region-bottom {
  margin: 0 auto;
  min-width: 100vw; /* Don't allow the browser to make the site unreadable. */
  min-height: 100vh;
}

#page {
    /*overflow: hidden;*/
}

/*
 * Header
 */
#header {
  margin: 0px;
  padding-left: 0px;
}
#header .section {
  position: relative;
  background: url(../images/shapka.png) no-repeat #ffffff;
  background-size: cover;
  height: 150px;
}

.region-header {
  float: right; /* LTR */
  margin: 10px;
  margin-top: 0px;
}

/*
 * Main (container for everything else)
 */
#main-wrapper {
  margin: 0px;
  position: relative;
}

/*
 * Content
 */
#content {
  float: left; /* LTR */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to #content .section. */
  min-height: 400px;
  margin: 0 20px;
  width: calc(100% - 40px);
  overflow-x: auto;
}

#content .section,
.no-sidebars #content .section {
  margin: 0px;
  padding: 0;
}

/*
 * Navigation
 */
#navigation {
  float: left; /* LTR */
  width: 100%;
  margin-left: 0; /* LTR */
  margin-right: -100%; /* LTR */ /* Negative value of #navigation's width + left margin. */
  margin-top: -5px;
  padding: 0; /* DO NOT CHANGE. Add padding or margin to #navigation .section. */
  height: 30px; /* The navigation can have any arbritrary height. We picked one
                    that is the line-height plus 1em: 1.3 + 1 = 2.3
                    Set this to the same value as the margin-top below. */
}

.with-navigation #content {
  margin-top: 35px; /* Set this to the same value as the navigation height above. */
}

#navigation .section {
  padding: 0 10px;
}



/*
 * Triptych
 */
#triptych {
  margin-top: 10px;
  padding: 10px 0;
}

.region-triptych-first,
.region-triptych-middle,
.region-triptych-last {
  float: left; /* LTR */
  width: 33.3%;
}

.region-triptych-first .section,
.region-triptych-middle .section,
.region-triptych-last .section {
  margin: 0 10px;
  padding: 0;
}

/*
 * Footer
 */
#footer {
padding-left: 5px;
}

#footer .section {
  margin: 10px;
}

.region-prefooter {
  float: right; /* LTR */
  width: 100%;
}

.region-prefooter .section {
  margin: 0 10px;
  padding: 0;
}

.region-footer {
}

/*
 * Page bottom
 */
.region-bottom /* See also the #page-wrapper declaration above that this div shares. */ {
}

/*
 * Prevent overflowing content
 */
#header,
#content,
#navigation,
.region-footer,
.region-bottom {
  overflow: visible;
  word-wrap: break-word; /* A very nice CSS3 property */
}

/*
 * If a div.clearfix doesn't have any content after it and its bottom edge
 * touches the bottom of the viewport, Firefox and Safari will mistakenly
 * place several pixels worth of space between the bottom of the div and the
 * bottom of the viewport. Uncomment this CSS property to fix this.
 * Note: with some over-large content, this property might cause scrollbars
 * to appear on the #page-wrapper div.
 */
#page-wrapper {
  overflow: hidden;
}


.region-triptych-first,
.region-triptych-middle,
.region-triptych-last,
.region-prefooter {
  display: inline;
  float: left; /* LTR */
  position: relative;
}

#messages .section .messages{
	width: 90%;
}

#mainmenu {
  margin-top: -10px;
}
