/* -- Tweaks for mobile devices -- */

/* tablet-only stuff */
@media (min-width: 1000px) and (max-width: 1200px) {
  
  .pane-page-logo img {
    padding-top: 1em;
    width: 100%    
  }

}

@media only screen and (max-width: 760px) {

  /* Top nav header */
  
  /* hide menu items by default. */
  .rw-panels-region-top {
    display:none;
  }
    
  .rw-panels-region-top,
  .rw-panels-region-mobilenav
  {
    background: #f0f0f0;
    margin: 0 1px;
  }
  
  .rw-panels-region-mobilenav {
    margin-top: 0.5em;
    padding-bottom: 0.3em;
  }  

  img.rw-hamburger {
    display: inline;
    margin-top:12px;
    width: 40px;
  }

  .rw-hamburger-wrapper {
    padding-bottom: 0;
  }

  .rw-top-links {
    float: right;
    padding-top: 1em;
    display: flex;
  }

  .rw-top-links br {
      display:none
  }

  .rw-top-links a {
    color: #333;
  }



  /* Mobile nav menu */
    
  ul.menu.nav li a {
    border-bottom: solid #fff 1px;
    font-size: 1.2em;
  }
  
  ul.menu.nav li.last a {
    padding-left: 1em;
    width: 100%;
  }
  
  .pane-search-form {
    margin-bottom: 0.5em;
  }


  /* Branding and logo */
  
  .pane-page-logo {
    text-align: center;
  }
  .pane-page-logo a#logo img {
    width: 60%;
  }
  
  .rw-panels-region-branding {
    margin-top: 0;
    margin-bottom: 0;
  }
  
  
  /* Panel pane stuff */ 
  .pane-page-logo {
    margin-top: 1.5em;
    margin-bottom: 1em;
  }
  
  .rw-welcome-pane {
    margin-top: 0.5em;
    margin-bottom: 1em;
  }
    
  .rw-panels-region-main .panel-pane {
    margin: 1em auto;
  }
  
  .rw-panels-region-main .pane-bundle-rw-image-text-pane {
    border: solid #00cc33 5px;
    border-radius: 11px;
    padding: 0.5em;
  }

  .rw-panels-region-main .rw-welcome-pane,
  .rw-panels-region-main .pane-fpid-36 /* copyright */
  {
    border: none;
    margin-top: 0;
  }
  
  .rw-panels-region-main .panel-pane.pane-fpid-27 /* My timetable*/ 
  {
    margin-bottom: 0;
    text-align: center;
  }
  
.pane-bundle-rw-ad-pane {
  text-align: center;
}
  
  /* GCSE / ALEVEL */
  
  .gcse_links, .a_levels_links {
    margin-left: 4em;
  }
  
  .gcse_links, .a_levels_links ul li {
    line-height: 1.5em;
  }
  
  .gcse_pane_content ul,
  .a_levels_pane_content ul
  {
    padding-left: 0;
  }

  .a_levels_pane .a_levels_pane_content,
  .gcse_pane .gcse_pane_content
   {
     border: none;
   }

  /* User / login */
  .toboggan-unified #login-message {
    font-size: 1.2em;
    margin-bottom: 1em;
  }
  
  .toboggan-unified #login-links {
    display: none;
  }
  
  .panel-pane.pane-user-login {
    margin-left: 1em;
    margin-top: 0;
    width: 90%;
    float: none;
  }
  
  .pane-user-login .form-text, 
  .pane-user-login .form-password 
  {
    width: 90%;
  }

  .confirm-parent, 
  .password-parent 
  {
    width: auto;
  }
    
  
  /* Forum */
  
  th.forum-topics,
  td.forum-number-topics,
  th.forum-posts,
  td.forum-number-posts,
  th.forum-icon,
  td.forum-list-icon,
  .pane-forum-statistics,
  .pane-forum-legend,
  span.forum-collapsible,
  table.forum-table .views-field-topic-icon,
  table.forum-table .views-field-comment-count,
  table.forum-table .views-field-last-updated,
  table.forum-table .views-field-comment-count
   {
    display: none;
  }
  
  table.forum-table td,
  table.forum-table th {
    padding: 0.5em;
  }
  
  /* .node content */
  
  .content {
    line-height: 1.5em;
  }
  
  .content li {
    margin-bottom: 1em;
  }
  
  .node-study-resource p {
    margin-bottom: 2em;
  }



  /* Rest */ 

  h1 {
    font-size: 1.7em;
  }
    
  h2.pane-title {
    font-size: 1.3em;
    margin-top: 0;
  }
  
  .quick-revise,
  .field-type-fivestar
   {
    display: none;
  }
  
  .pane-system-main-menu ul.menu.nav li {
    text-align: center;
  }
  .pane-system-main-menu ul.menu.nav li a {
    border-bottom: solid #fff 1px;
    font-size: 1.2em;
  }
  
  .pane-system-main-menu ul.menu.nav li.first a
   {
    border-top: solid #fff 1px;
  }

  .pane-rw-blocks-rw-sr-footer .pane-content li {
    float: none;
    line-height: 2em;
    width: auto;
  }

  .rw-footer .nav {
    text-align: center;
  }

    ul.menu.nav a.maths {
        background: url(../images/revisionmaths_menu_small.png) no-repeat center 8px;
        color: transparent;
        width: 100%;
        margin: 0;
    }

    ul.menu.nav a.science {
        background: url(../images/revisionscience_menu_small.png) no-repeat center 8px;
        color: transparent;
        width: 100%;
        margin: 0;
    }

} /* /@media max-width: 768px */