/**
 * @file
 * Mobile menu.
 *
 * A mobile Menu has two forms: tablet menu and mobile menu.
 */
@media (max-width: 1024px) {

  #big-menu {
    display: none;
  }
  #block-fw-menu-fw-mobile-menu {
    height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
  }
  #block-fw-menu-fw-mobile-menu .content {
    padding-bottom: 175px;
  }
  #top {
    height: 50px;
    top: 0;
  }
  .login {
    margin-top: -24px;
    margin-right: 5%;
  }
  #small-menu-hook {
    margin-left: 20px;
    margin-top: 16px;
    float: left;
    display: block;
  }
  #small-menu-hook a {
    color: #9eabb1;
    -webkit-transition: color 0.3s ease-in-out;
    -moz-transition: color 0.3s ease-in-out;
    -ms-transition: color 0.3s ease-in-out;
    -o-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
  }
  #small-menu-hook a:hover {
    color: white;
  }
  .logo {
    margin-left: 47px;
    margin-top: 8px;
  }
  .small-menu {
    display: none;
    background: #394450;
    position: fixed;
    height: 100%;
    z-index: 0;
    margin-top: 0;
  }
  .small-menu > div {
    width: 265px;
    border-right: 1px solid;
  }
  .small-menu ul {
    margin: 0;
  }
  .small-menu li a {
    display: block;
    padding: 10px 15px;
    color: #9eabb1;
    border-top: 1px solid #505f70;
    border-bottom: 1px solid #262d35;
  }
  .small-menu li a:hover {
    background: #4c5660;
    color: white;
  }
  .small-menu h4 {
    border-top: 1px solid #505f70;
    border-bottom: 1px solid #262d35;
    background: linear-gradient(top, #303a44 0%, #2c343e 100%);
    background: -webkit-linear-gradient(top, #303a44 0%, #2c343e 100%);
    background: -moz-linear-gradient(top, #303a44 0%, #2c343e 100%);
    background: -o-linear-gradient(top, #303a44 0%, #2c343e 100%);
    color: white;
    text-transform: uppercase;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
    padding: 13px 15px 10px 15px;
    margin: 0;
  }
  .small-menu .form-text {
    padding: 16px 30px 14px 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #161a1f;
    -webkit-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    border-radius: 15px;
    margin-top: 12px;
    width: 92%;
    margin-left: 10px;
    font-size: 0.95em;
  }
  .small-menu .form-actions {
    padding: 0;
    position: relative;
  }
  .small-menu .form-submit {
    border: none;
    width: 20px;
    margin-right: 19px;
    float: right;
    margin-top: -37px;
    opacity: 0;
    z-index: 3;
    position: relative;
  }
  .small-menu i.icon-search {
    margin-top: -32px;
    margin-left: 230px;
    position: absolute;
    z-index: 2;
  }

  /* Contact info.
   ******************************************************************************/
  .small-menu .fw-contact-info {
    margin-top: 30px;
    padding: 15px 15px 0 15px;
    color: #7D8E96;
    font-size: 0.85em;
    line-height: 1.3em;
    text-align: center;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.15);
  }
  .small-menu .fw-contact-info h4 {
    background: none;
    border: none;
    margin: 0 0 10px 0;
    padding: 0;
    color: #9EABB1;
  }
  .small-menu .fw-contact-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
  }
  .small-menu .fw-contact-info ul li {
    margin: 0;
    padding: 0;
    width: 50%;
    text-align: center;
    line-height: 1.3em;
    float: left;
  }
  .small-menu .fw-contact-info ul li strong {
    display: block;
  }
  .small-menu .fw-contact-info ul li:nth-child(even) {
    float: right;
  }
  .small-menu .fw-contact-info ul li a {
    padding: 0;
    background: none;
    border: none;
  }

  /* Google Search
   ******************************************************************************/
  .freedomworks-cse form.gsc-search-box tbody {
    border-top: none;
  }
  .freedomworks-cse form.gsc-search-box .gsc-input input {
    padding: 8px !important;
    margin: 8px 0px 5px 0 !important;
  }
  .freedomworks-cse .gsc-input-box {
    background: none !important;
    border: none !important;
    height: auto !important;
    box-shadow: none !important;
  }
  .freedomworks-cse .gsc-input>input:hover,
  .gsc-input-box-hover {
    border: none !important;
  }
  .freedomworks-cse .gsc-input>input:focus,
  .gsc-input-box-focus {
    border: none !important;
  }
  .freedomworks-cse .gsc-search-button {
    position: absolute;
    top: 5px;
    right: 3px;
    padding: 12.5px;
    border-radius: 0 5px 5px 0;
    border: none;
  }
  #block-fw-menu-fw-mobile-menu form.gsc-search-box input.gsc-input {
    border: 1px solid #ccc !important;
    padding-left: 5px !important;
    width: 99%;
  }

} /* @media */

/* Phone Menu
 ******************************************************************************/
@media (max-width: 768px) {
  .logo {
    width: 200px;
  }
  .login a span {
    display: none;
  }
  .login > a {
    width: 22px !important;
  }
  .login .account-menu {
    margin-left: -110px !important;
  }
  #top .contribute {
    display: none;
  }
}

/* Tablet Menu
 ******************************************************************************/
@media (min-width: 768px) and (max-width: 1024px) {
  .desktop-visible {
    display: none;
  }
  .tablet-visible {
    display: block;
  }
  #top {
    height: 57px;
    padding-top: 10px;
    box-shadow: 0 2px 8px 0px rgba(0, 0, 0, 0.4);
  }
  .contribute {
    float: right;
    margin-right: 3.8%;
    margin-top: 15px;
  }
  #small-menu-hook {
    margin-left: 30px;
    margin-top: 15px;
  }
  .logo {
    float: left;
    margin-left: 15px;
    margin-top: 4px;
  }
  .logo a {
    margin: 0;
  }
  .login {
    float: right;
    margin-top: 13px;
    margin-right: 3.1%;
  }
}
@media (max-width: 767px) {
  .contribute a {
    border-radius: 0;
    width: 100%;
    padding: 14px 0 10px 0;
    display: block;
  }
}
