/**
 * @file
 * Positioning for responsive layout .
 *
 * 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 uses the Zen Grids plugin for Compass: http://zengrids.com
 */
/*
 * Center the page.
 */
#main,
#footer,
.region-bottom {
  /* For screen sizes larger than 1200px, prevent excessively long lines of text
     by setting a max-width. */
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

/*
 * Apply the shared properties of grid items in a single, efficient ruleset.
 */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  padding-left: 10px;
  padding-right: 10px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  word-wrap: break-word;
  *behavior: url("/sites/all/themes/politireformen/js/box-sizing-polyfill/boxsizing.htc");
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}

/*
 * Containers for grid items and flow items.
 */
#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}
#header:before, #header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}

/*
 * Navigation bar
 */
@media all and (max-width: 480px) {
  #page #header {
    background-repeat: repeat;
  }

  #logo img {
    width: 178px;
    margin-top: 1em;
    margin-bottom: 0.3em;
  }

  #header .region-header .block {
    text-align: left;
  }

  #header #search-block-form input.form-text {
    width: 100px;
    float: left;
  }

  #header .region-header #donate-button {
    float: right;
  }

  #header .region-header #donate-button .pane-content a {
    font-size: 26px;
    padding: 4px 10px;
  }

  #navigation ul.nice-menu {
    background: #2D0224;
    width: 100%;
  }

  #navigation ul.nice-menu li {
    float: none;
    padding: 0.5em 0;
    border-bottom: 1px solid #440336;
  }

  ul.nice-menu a {
    color: #ffffff;
    text-decoration: none;
  }

  /* End max-width 480px mobile */
}
@media all and (min-width: 480px) {
  #main {
    padding-top: 30px;
    /* Move all the children of #main down to make room. */
    position: relative;
  }

  #navigation {
    position: absolute;
    top: -30px;
    /* Move the navbar up inside #main's padding. */
    height: 30px;
    width: 100%;
  }

  #navigation ul.nice-menu {
    /*       font-size: 0.8em; */
    font-weight: normal;
  }
  #navigation ul.links,
  #navigation ul.menu {
    /* Menu block links */
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    *zoom: 1;
  }
  #navigation ul.links li,
  #navigation ul.menu li {
    list-style-image: none;
    list-style-type: none;
    margin-left: 0;
    white-space: nowrap;
    display: inline;
    float: left;
    padding-left: 5px;
    padding-right: 5px;
  }
  #navigation ul.links li:first-child, #navigation ul.links li.first,
  #navigation ul.menu li:first-child,
  #navigation ul.menu li.first {
    padding-left: 0;
  }
  #navigation ul.links li:last-child,
  #navigation ul.menu li:last-child {
    padding-right: 0;
  }
  #navigation ul.links li.last,
  #navigation ul.menu li.last {
    padding-right: 0;
  }
  #navigation a {
    color: white;
    text-decoration: none;
    /*       padding: 0 5px; */
  }
  #navigation a:hover {
    color: #7F3F5D;
  }

  #logo {
    /* padding-top: 20px; */
  }
  #logo img {
    /* width: 160px; */
  }

  #header .region-header .panel-pane {
    /* 	  	margin-bottom: 0.5em; */
  }
  #header .region-header #social-media-links ul {
    /* 	  		margin: 0 0 0 0; */
  }
  #header .region-header #search-block-form input.form-text {
    /* 	  		width: 160px; */
  }
  #header .region-header #donate-button .pane-content a {
    /* 	  			font-size: 18px; */
  }
}
@media all and (min-width: 480px) and (max-width: 740px) {
  #navigation ul.links,
  #navigation ul.menu {
    /* Menu block links */
    line-height: 1em;
  }
}
@media all and (min-width: 480px) and (max-width: 959px) {
  /*
   * Use 3 grid columns for smaller screens.
   */
  #header {
    padding-left: 0;
    padding-right: 0;
  }

  #logo {
    padding-left: 10px;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    *behavior: url("/sites/all/themes/politireformen/js/box-sizing-polyfill/boxsizing.htc");
    _display: inline;
    _overflow: hidden;
    _overflow-y: visible;
    float: left;
    width: 66.66667%;
    margin-left: 0%;
    margin-right: -66.66667%;
    margin-top: 2.85714em;
  }
  #logo img {
    width: 200px;
    margin-left: 16px;
    margin-top: -10px;
  }

  .region-header {
    padding-left: 10px;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    *behavior: url("/sites/all/themes/politireformen/js/box-sizing-polyfill/boxsizing.htc");
    _display: inline;
    _overflow: hidden;
    _overflow-y: visible;
    float: left;
    width: 66.66667%;
    margin-left: 0%;
    margin-right: -66.66667%;
    margin-left: 33%;
  }

  #navigation ul.nice-menu, #navigation ul.links,
  #navigation ul.menu {
    font-size: 1.4em;
  }
  #navigation ul.nice-menu {
    font-size: 1.2em;
  }
  #navigation ul.links,
  #navigation ul.menu {
    /* Menu block links */
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    *zoom: 1;
  }
  #navigation ul.links li,
  #navigation ul.menu li {
    list-style-image: none;
    list-style-type: none;
    margin-left: 0;
    white-space: nowrap;
    display: inline;
    float: left;
    padding-left: 10px;
    padding-right: 10px;
  }
  #navigation ul.links li:first-child, #navigation ul.links li.first,
  #navigation ul.menu li:first-child,
  #navigation ul.menu li.first {
    padding-left: 0;
  }
  #navigation ul.links li:last-child,
  #navigation ul.menu li:last-child {
    padding-right: 0;
  }
  #navigation ul.links li.last,
  #navigation ul.menu li.last {
    padding-right: 0;
  }
  #navigation a {
    color: white;
    text-decoration: none;
    padding: 0 12px;
  }
  #navigation a:hover {
    color: #7F3F5D;
  }

  /*
   * The layout when there is only one sidebar, the left one.
   */
  .sidebar-first #content {
    /* Span 2 columns, starting in 2nd column from left. */
    float: left;
    width: 66.66667%;
    margin-left: 33.33333%;
    margin-right: -100%;
  }
  .sidebar-first .region-sidebar-first {
    /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
  }

  /*
   * The layout when there is only one sidebar, the right one.
   */
  .sidebar-second #content {
    /* Span 2 columns, starting in 1st column from left. */
    float: left;
    width: 66.66667%;
    margin-left: 0%;
    margin-right: -66.66667%;
  }
  .sidebar-second .region-sidebar-second {
    /* Span 1 column, starting in 3rd column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 66.66667%;
    margin-right: -100%;
  }

  /*
   * The layout when there are two sidebars.
   */
  .two-sidebars #content {
    /* Span 2 columns, starting in 2nd column from left. */
    float: left;
    width: 66.66667%;
    margin-left: 33.33333%;
    margin-right: -100%;
  }
  .two-sidebars .region-sidebar-first {
    /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
  }
  .two-sidebars .region-sidebar-second {
    /* Start a new row and span all 3 columns. */
    float: left;
    width: 100%;
    margin-left: 0%;
    margin-right: -100%;
    padding-left: 0;
    padding-right: 0;
    clear: left;
  }
  .two-sidebars .region-sidebar-second .block {
    padding-left: 10px;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    *behavior: url("/sites/all/themes/politireformen/js/box-sizing-polyfill/boxsizing.htc");
    _display: inline;
    _overflow: hidden;
    _overflow-y: visible;
  }
  .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
    /* Span 1 column, starting in the 1st column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
    clear: left;
  }
  .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
    /* Span 1 column, starting in the 2nd column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 33.33333%;
    margin-right: -66.66667%;
  }
  .two-sidebars .region-sidebar-second .block:nth-child(3n) {
    /* Span 1 column, starting in the 3rd column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 66.66667%;
    margin-right: -100%;
  }
}
@media all and (min-width: 960px) {
  /*
   * Use 5 grid columns for larger screens.
   */
  #header {
    padding-left: 0;
    padding-right: 0;
  }

  #logo {
    padding-left: 10px;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    *behavior: url("/sites/all/themes/politireformen/js/box-sizing-polyfill/boxsizing.htc");
    _display: inline;
    _overflow: hidden;
    _overflow-y: visible;
    float: left;
    width: 50%;
    margin-left: 0%;
    margin-right: -50%;
    margin-top: 1.42857em;
  }

  .region-header {
    padding-left: 10px;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    *behavior: url("/sites/all/themes/politireformen/js/box-sizing-polyfill/boxsizing.htc");
    _display: inline;
    _overflow: hidden;
    _overflow-y: visible;
    float: left;
    width: 50%;
    margin-left: 50%;
    margin-right: -100%;
  }

  .view-mode-slide .slide-text {
    padding-left: 10px;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    *behavior: url("/sites/all/themes/politireformen/js/box-sizing-polyfill/boxsizing.htc");
    _display: inline;
    _overflow: hidden;
    _overflow-y: visible;
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
  }
  .view-mode-slide .field-image {
    float: left;
    width: 66.66667%;
    margin-left: 33.33333%;
    margin-right: -100%;
  }

  .view-pt-homepage-slideshow .widget_pager {
    margin-left: 33.33333%;
  }
  .view-pt-homepage-slideshow .views-slideshow-pager-field-item {
    display: inline;
    float: left;
    padding-left: 1ex;
    padding-right: 1ex;
    margin-right: 1ex;
    background-color: red;
  }

  #navigation ul.nice-menu, #navigation ul.links,
  #navigation ul.menu {
    font-size: 1.5em;
  }
  #navigation ul.links,
  #navigation ul.menu {
    /* Menu block links */
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    *zoom: 1;
  }
  #navigation ul.links li,
  #navigation ul.menu li {
    list-style-image: none;
    list-style-type: none;
    margin-left: 0;
    white-space: nowrap;
    display: inline;
    float: left;
    padding-left: 15px;
    padding-right: 15px;
  }
  #navigation ul.links li:first-child, #navigation ul.links li.first,
  #navigation ul.menu li:first-child,
  #navigation ul.menu li.first {
    padding-left: 0;
  }
  #navigation ul.links li:last-child,
  #navigation ul.menu li:last-child {
    padding-right: 0;
  }
  #navigation ul.links li.last,
  #navigation ul.menu li.last {
    padding-right: 0;
  }
  #navigation a {
    color: white;
    text-decoration: none;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-shadow: 2px 2px 0px black;
  }
  #navigation a:hover {
    color: #7F3F5D;
  }

  /*
   * The layout when there is only one sidebar, the left one.
   */
  .sidebar-first #content {
    /* Span 4 columns, starting in 2nd column from left. */
    float: left;
    width: 66.66667%;
    margin-left: 33.33333%;
    margin-right: -100%;
  }
  .sidebar-first .region-sidebar-first {
    /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
  }

  /*
   * The layout when there is only one sidebar, the right one.
   */
  .sidebar-second #content {
    /* Span 4 columns, starting in 1st column from left. */
    float: left;
    width: 66.66667%;
    margin-left: 0%;
    margin-right: -66.66667%;
  }
  .sidebar-second .region-sidebar-second {
    /* Span 1 column, starting in 5th column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 66.66667%;
    margin-right: -100%;
  }

  /*
   * The layout when there are two sidebars.
   */
  .two-sidebars #content {
    /* Span 3 columns, starting in 2nd column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 33.33333%;
    margin-right: -66.66667%;
  }
  .two-sidebars .region-sidebar-first {
    /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
  }
  .two-sidebars .region-sidebar-second {
    /* Span 1 column, starting in 5th column from left. */
    float: left;
    width: 33.33333%;
    margin-left: 66.66667%;
    margin-right: -100%;
  }
}
