/*
 * 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, regardless of screen size.
 *
 * @SEE http://zomigi.com/blog/essential-considerations-for-crafting-quality-media-queries/#mq-overlap-stack
 *
 * NOTE: this file loads by default, to disable got to your theme settings and
 * look under the "CSS" settings tab.
 */

/*
 * Tablet sizes and down
 */
@media only screen and (max-width: 1024px) {
  html { 
    background-color: #fff;
  }
  body { 
    background: none;
  }
  body.admin-menu {
    margin-top: 40px !important;
  }
  #logo {
    padding-left: 15px;
  }
  .region-header {
    left: 115px;
    right: 15px;
  }
  #block-system-user-menu ul.menu li,
  #block-system-main-menu ul.menu li {
    padding: 0 10px;
  }
  #breadcrumb {
    margin-left: 128px;
  }
  #columns {
    clear: both;
    background: none;
    margin: 0;
    padding: 10px 20px 0;
  }
  .front #columns {
    margin-top: 30px;
  }
  .homebox-column {
    height: auto !important;
  }
  .forum-node-create-links-top,
  .topic-reply-link,
  .last-post-link {
    top: 20px;
    right: 20px;
  }
}

/*
 * Small tablet and down
 */
@media only screen and (max-width: 640px) {
  #columns {
    padding: 10px 10px 0;
  }
  #name-and-slogan {
    display: none;
  }
  #page-title {
    max-width: none !important;
  }
  th.views-field-picture-1,
  td.views-field-picture-1,
  th.forum-last-post,
  td.forum-last-post,
  th.forum-last-reply,
  td.forum-last-reply,
  th.views-field-last-updated,
  td.views-field-last-updated,
  #breadcrumb {
    display: none;
  }
  .forum-post-panel-main {
    margin-left: 0;
  }
  .field-name-body,
  .field-name-comment-body {
    clear: left;
  }
  .forum-tools {
    float: none;
    clear: both;
  }
  .flag-outer {
    width: auto;
  }
  .forum-node-create-links-top,
  .topic-reply-link,
  .last-post-link {
    position: static;
  }
  .forum-node-create-links .forum-add-node {
    margin: 0 10px 0 0;
  }
  .region-sidebar-second .region-inner {
    margin: 0 5px;
  }
  #node-1363 .box {
    width: 40%;
    margin: 2%;
  }
  #node-1363 .box div {
    font-size: 22px;
  }
  #node-1363 .box div.icon {
    font-size: 64px;
  }
  #node-1363 .box div.brand {
    font-size: 64px;
  }
}

/*
 * Smartphone sizes and down
 */
@media only screen and (max-width: 480px) {
  /* 
   * Float Region blocks example:
   * In smaller screen sizes we can remove the float and widths so all blocks
   * stack instead of displaying horizonally. The selector used here 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.
   * 
   * "Float Region blocks" is an extension for floating blocks in regions, see
   * your themes appearance settings, under the Extensions tab.
   */
  .region[class*="float-blocks"] .block {
    float: none;
    width: 100%;
  }
  body.admin-menu {
    margin-top: 60px !important;
  }
  #name-and-slogan,
  nav.breadcrumb-wrapper {
    display: none;
  }
  .region-header {
    left: 90px;
    right: 5px;
  }
  #block-system-user-menu ul {
    margin-top: 15px;
  }
  #collapsed-menu-button {
    color: #231F20;
    position: absolute;
    top: 85px;
    right: -15px;
    border: 0 none;
    font-size: 38px;
    z-index: 100;
  }
  #mobile-menu-inner {
    left: auto !important;
    right: 0;
  }
  #menu-attached-button.top {
    border: 1px solid #ccc;
    border-radius: 0 0 0 10px;
    bottom: -36px;
    color: #1a2129;
    display: none;
    font-size: 38px;
    left: auto;
    line-height: 1em;
    padding: 0 0 15px 10px;
    right: 0;
    text-decoration: none;
  }
  #menu-attached-button.top.active {
    display: block;
  }
  #mobile-menu ul {
    padding: 0;
    margin: 0;
  }
  #mobile-menu li {
    padding: 4px 15px;
  }
  #mobile-menu li > a {
    color: #1a2129;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
  }
  .homebox-column-wrapper {
    float: none;
    width: 100% !important;
  }
  .node-content input.form-text,
  .node-content select.form-select,
  textarea {
    width: 98%;
  }
  .last-post-link {
    clear: left;
  }
}

