/**
 * @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.
 */

#page,
.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 {
   
    float:left;
    width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  padding: 0;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  word-wrap: break-word;
  _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;
}
body.not-front div#content div.view-residencias-vista .view-content {
    width: 75%;    
}
.url-len-sig a {       
    clear: both;   
    padding-bottom: 20px;    
}
/*
 * Navigation bar
 */
 
 
 #navigation {
    position: absolute;
    top: 0; /* Move the navbar up inside #main's padding. */
    height: 3em;
    width: 63.1%;
    margin-left: 38%;
    top: 91px;
  }

body.page-node-1273 #navigation {
    width: 62%;
}
 
@media all and (min-width: 480px) {
    /*ie no interpreta esta hoja de estilos, solo chorme y FF*/
    
  

    .sidebar-first #block-views-areas-block{
        width: 180px;
    }
    
    
    
  #main {
    padding-top: 3em; /* Move all the children of #main down to make room. */
    position: relative;
  }
  
  .views-field-field-documents table td , .views-field-field-docs-adjuntos table td{
      padding: 13px 10px 13px;
  }
  
  .views-field-field-documents table td + td, .views-field-field-docs-adjuntos table td + td{
    padding: 0 0 18px 9px;
    margin-top: -13px;
  }
  
  .views-field-field-docs-adjuntos table td + td{
      margin-top: 0;
  }
  
  .view-BannerPrograma, .view-BannerArea{
    position: relative;    
    left: -275px;
    width: 980px;
    height: 180px;
    margin: 0;
    }
    
    .sidebar-first #block-views-areas-block{
        padding: 15px;
        margin: 0;
    }
  
}

/*
 * Use 3 grid columns for smaller screens.
 */

@media all and (min-width: 480px) and (max-width: 959px) {

  /*
   * 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.667%;
    margin-left: 33.333%;
    margin-right: -100%;
   
  }
  .sidebar-first .region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 33.333%;
    margin-left: 0%;
    margin-right: -33.333%;
  }

  /*
   * 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.667%;
    margin-left: 0%;
    margin-right: -66.667%;
  }
  .sidebar-second .region-sidebar-second { /* Span 1 column, starting in 3rd column from left. */
    float: left;
    width: 33.333%;
    margin-left: 66.667%;
    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.667%;
    margin-left: 33.333%;
    
  }
  .two-sidebars .region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 33.333%;
    margin-left: 0%;
    margin-right: -33.333%;
  }
  .two-sidebars .region-sidebar-second { /* Start a new row and span all 3 columns. */
    float: left;
    width: 100%;
    margin-left: 0%;
    margin-right: -100%;
    position: relative;
    zoom: 1;
    padding-left: 0;
    padding-right: 0;
    clear: left;
    border: 1px solid #f00;
  }
  .two-sidebars .region-sidebar-second:before,
  .two-sidebars .region-sidebar-second:after {
    content: "";
    display: table;
  }
  .two-sidebars .region-sidebar-second:after {
    clear: both;
  }
  .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;
    _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.333%;
    margin-left: 0%;
    margin-right: -33.333%;
    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.333%;
    margin-left: 33.333%;
    margin-right: -66.667%;
  }
  .two-sidebars .region-sidebar-second .block:nth-child(3n) { /* Span 1 column, starting in the 3rd column from left. */
    float: left;
    width: 33.333%;
    margin-left: 66.667%;
    margin-right: -100%;
  }
  
  
}

/*
 * Use 5 grid columns for larger screens.
 */

@media all and (min-width: 960px) {
    
    
    .view-imas .view-bannerimas{    
        left:-275px;
       top: -50px;
    }
    

  /*
   * The layout when there is only one sidebar, the left one.
   */
   
  
  /*añadido*/
  
  #footers .centrar.region-bottom{
     width: 980px;     
  }
  

  .sidebar-first #content { /* Span 4 columns, starting in 2nd column from left. */
    padding-top: 50px;
    margin-left: 20%;
  }
  
  

body.not-front.no-sidebars div#content .view-content, body.not-front.page-todos-los-eventos div#content .view-content{
    width: 75%;    
}


body.not-front.no-sidebars div#content .view-content, body.not-front.page-todos-los-eventos div#content .view-content{
    width: 100%;
}

body.not-front.no-sidebars view-todas-las-noticias div#content .view-content,
body.not-front.page-todos-los-eventos div#content .view-content{
    width: 100%;
}

body.not-front.no-sidebars div#content .view-atencio-al-ciutad- .view-content{
    width:70%;
}

  .sidebar-first #content { /* Span 4 columns, starting in 2nd column from left. */    
     
    float: right;
    width: 75%;    
    padding-top: 0;
    margin-left: 0;
    margin-top: -10px;
    
  }
  
  .view-unprograma .view-header{
      height: 0;
  }
  
  .sidebar-first #content { /* Span 4 columns, starting in 2nd column from left. */
      
   
  }
  
  .sidebar-first #block-views-areas-block, .sidebar-first #block-views-imas-menu-block{
      background-color: #eaeaea;
      padding: 20px;
      margin-top: 20px;
  }
  /*prueba compass*/
  .sidebar-first #block-views-areas-block, .sidebar-first #block-views-imas-menu-block{      
      margin-top: 60px;
  }
  
  #block-views-imas-menu-block ul li{
      padding: 40px 0;
      display: block;
  }
  

  
      
  
  .sidebar-first .region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 24%;
    margin-left: 0%;
    margin-right: -20%;
    
  }
  
  /*sobreescribimos los estilos para poner el menú a la altura que corresponde*/
  .sidebar-first .region-sidebar-first { /* Sffffinter. */
    float: left;
    width: 24%;
    margin:0;
  }

  /*
   * 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: 80%;
    margin-left: 0%;
    margin-right: -80%;
  }
  .sidebar-second .region-sidebar-second { /* Span 1 column, starting in 5th column from left. */
    float: left;
    width: 20%;
    margin-left: 80%;
    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: 60%;
    margin-left: 20%;
    margin-right: -80%;
  }
  .two-sidebars .region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 22%;
    margin-top: 10px;
    margin-left: 0%;
    margin-right: -20%;
  }
  .two-sidebars .region-sidebar-second { /* Span 1 column, starting in 5th column from left. */
    float: left;
    width: 21%;
    margin-left: 80%;
    margin-right: -100%;
  }
  

  
}

