/*
 * responsive.custom.css is for custom media queries that are not set via the
 * theme settings, such as cascading media queries.
 *
 * By default all the other responsive stylesheets used in Adaptivetheme use a
 * "stacking method", however cascading media queries use a waterfall method so
 * you can leverage the cascade and inheritance for all browsers that support
 * media queries.
 *
 * @SEE http://zomigi.com/blog/essential-considerations-for-crafting-quality-media-queries/#mq-overlap-stack
 *
 * NOTE: this file loads by default, to disable go to your theme settings and
 * look under the "CSS" settings tab.
 */

/*
 * Really small screens and up
 */
/* @media only screen and (min-width: 220px) {} */

/*
 * Smalltouch sizes and up
 */
/* @media only screen and (min-width: 320px) {} */

/*
 * Smalltouch sizes and down
 */
@media only screen and (max-width: 767px) {
  /* 
   * Float Region Blocks - custom media query CSS example:
   * 
   * Float regions blocks is an Extension you can enable in the appearance
   * settings for your theme. This feature allows you to automatically float
   * blocks in regions, you can switch it on and off depending on your
   * requirements. For design purposes you many want to remove the floats for
   * devices where the entire theme is just one column - for example small
   * mobile phones. The following CSS is inside the custom media query:
   *
   *   @media only screen and (max-width: 480px){}
   *
   * This will target devices with a maximum width of 480px - most small phones.
   * In these smaller screen sizes we can remove the float and widths so all
   * blocks stack instead of displaying horizonally. The selector used is an
   * "attribute selector" which will match on any float block class. Use your
   * inspector or Firebug to get the classes from the page output if you need
   * more granular control over block alignment and stacking.
   */
  .region[class*="float-blocks"] .block {
    float: none;
    width: 100%;
  }
  
  #header {
    background: none;
  }

  .at-mt #block-menu-menu-menu.at-menu-toggle h2 a {
      background: none;
      border: none;
  }

  .at-mt #block-menu-menu-menu.at-menu-toggle ul.menu li a {
      background: none;
      border-bottom: none;
  }
    #menu-bar li {
    font-size: 1.6em;
    line-height: 2em;
  }
  
/* banner */  
.region-secondary-content .banner  {
}
.region-secondary-content .banner img {
  width: 100%;
  float: none;
  margin: 0;
}
.region-secondary-content h1 {
    font-size: 24px;
    padding: 1em 35px;
}
  
/*    .front #columns table,
    .section-trade-history #columns table { 
      display: block; 
    }*/
    .front #columns thead,  
    .section-trade-history #columns thead { 
      display: block; 
    }
    .front #columns tbody ,
    .section-trade-history #columns tbody { 
      display: block; 
    }
    .front #columns th,
    .section-trade-history #columns th { 
      display: block; 
    }
    .front #columns td ,
    .section-trade-history #columns td { 
      display: block; 
    }
    .front #columns  tr ,
    .section-trade-history #columns  tr { 
      display: block; 
    } 
    .front thead tr,
    .section-trade-history thead tr { 
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
    .front tr:nth-child(2n+1),
    .section-trade-history tr:nth-child(2n+1) { 
      background-color: #C9E8F3;
    }
    .front td,
    .section-trade-history td  { 
      border: none;
      border-bottom: 1px solid #eee; 
      position: relative;
      padding-left: 50%; 
    }
    .front td:before ,
    .section-trade-history td:before { 
      position: absolute;
      top: 6px;
      left: 6px;
      width: 45%; 
      padding-right: 10px; 
      white-space: nowrap;
      font-weight: 700;
    }
    .front td:nth-of-type(1):before { content: "Trade Nr"; }
    .front td:nth-of-type(2):before { content: "Water type"; }
    .front td:nth-of-type(3):before { content: "Zone"; }
    .front td:nth-of-type(4):before { content: "Trade type"; }
    .front td:nth-of-type(5):before { content: "L/s"; }
    .front td:nth-of-type(6):before { content: "m³/year"; }

    .section-trade-history td:nth-of-type(1):before { content: "Date"; }
    .section-trade-history td:nth-of-type(2):before { content: "Water type"; }
    .section-trade-history td:nth-of-type(3):before { content: "Trading area"; }
    .section-trade-history td:nth-of-type(4):before { content: "m³/day"; }
    .section-trade-history td:nth-of-type(5):before { content: "m³/year"; }
    .section-trade-history td:nth-of-type(6):before { content: "Trade type"; }
    .section-trade-history td:nth-of-type(7):before { content: "Duration (yrs)"; }

  .section-about-us #columns h3 {
    text-align: center;
  }
  .section-about-us  #content img {
    float: none;
    margin: 1em auto -1em;
    display: block;
  }


    
}

/*
 * Tablet sizes and up
 */
/* @media only screen and (min-width: 768px) {} */

/*
 * Small desktops/laptops
 */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  
  #menu-bar li {
    font-size: 1em;
  }
  .region-secondary-content h1 {
    font-size: 24px;
    padding: 1.5em 0 0 35px;
  }
}
