/* 984. */
@media screen and (max-width: 984px) {
  .mobile-user-bar .navbar-header.affix,
  .affix {
    position: static;
  }
  .front .region-sidebar-right {
    width: 100%;
    background-color: #7fb42a;
  }
  #block-views-related-info-rel-info-block {
    border-radius: 0;
    width: 100%;
  }
}

/*  min-width: 769. */
@media only screen and (min-width: 769px) {
  .navbar-header {
    display: none;
  }
}

/* 640. */
@media only screen and (max-width: 767px) {
  /* Button HOME. */
  #responsive-home-button {
    display: none;
  }
  /* Home. */
  .front #content_full #content-wrapper {
    max-width: 97%;
  }
  /* Wrapper. */
  #layout-header,
  .region-featured-wrapper,
  .layout,
  #layout-header .container,
  #layout-body.container {
    border: 0;
  }
  .layout-content {
    background: transparent;
  }
  .not-front #content_full #content-wrapper {
    max-width: 100%;
    margin: 10px 0 0;
  }
  /* Language selector. */
  .language-selector-close,
  .language-selector-open {
    border: 1px solid #036;
    right: 15px;
    top: 15px;
    width: 130px;
  }
  .language-selector-close a,
  .language-selector-open a,
  .language-selector-close a:visited,
  .language-selector-open a:visited {
    font-size: 14px;
  }
  .language-selector-open img,
  .language-selector-close img {
    right: 8px;
    top: 0;
  }
  /* Menu button. */
  .navbar {
    min-height: 48px;
  }
  #menu-button {
    outline: none;
    display: inline-block;
    position: relative;
    left: 9px;
    top: 5px;
    text-decoration: none;
    margin: 0 0 7px 0;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: normal;
    border: 1px solid #002244;
    background-color: #fff;
    background-image: none;
    color: #222;
  }
  #menu-button:hover,
  #menu-button:active,
  #menu-button.menu-open {
    background-color: #074a8b;
    border: 1px solid #6699cc;
    color: #fff;
  }
  .front #menu-button {
    left: 23px;
  }
  /* Main menu. */
  .front #sidebar-left #nav .menu-name-main-menu > ul.nav > li.first {
    display: none;
  }
  #sidebar-left #nav .menu-name-main-menu > ul.nav > li.first {
    margin-bottom: 6px;
  }
  #sidebar-left #nav .menu-name-main-menu > ul.nav > li {
    clear: both;
  }
  #sidebar-left #nav .menu-name-main-menu > ul.nav > li span.nolink {
    display: block;
    padding: 10px 0;
    text-align: center;
  }
  .dropdown-menu {
    -webkit-box-shadow: 0 0 0 0;
    box-shadow: 0 0 0 0;
  }
  /* Main title. */
  .front #layout-header #main-title {
    padding: 15px 135px 0 110px;
  }
  #layout-header #main-title {
    font-size: 26px !important;
    padding: 15px 135px 0 95px;
    line-height: 1.2;
  }
  /* Blocks. */
  #sidebar-right #block-menu-block-5 {
    background: none;
    width: 100%;
    border-radius: 0;
  }
  #sidebar-right #block-menu-block-5 .panel-heading {
    width: 100%;
    border-radius: 0;
  }
  #sidebar-right #block-menu-block-5 ul {
    margin: 0 0 5px;
    width: 100%;
  }
  #block-views-related-info-rel-info-block {
    border-radius: 0;
  }
  .not-front div#panel_survey {
    padding: 0px 0 5px 5px;
    width: 100%;
    overflow: inherit;
    border: 0;
    border-radius: 0;
  }
  /* Footer. */
  #layout-footer {
    border: 0;
    border-bottom: 12px solid #0065a2;
    text-align: left;
  }
  #layout-footer a {
    display: block;
    float: right;
  }
}

/* 600. */
@media only screen and (max-width: 600px) {
  /* Language selector. */
  .language-selector-close,
  .language-selector-open {
    right: 3px;
    top: 3px;
    padding: 0;
    line-height: 1;
  }
  .language-selector-close a,
  .language-selector-open a,
  .language-selector-close a:visited,
  .language-selector-open a:visited {
    font-size: 8.8px;
  }
  .language-selector-open img,
  .language-selector-close img {
    right: 4px;
    top: -3px;
  }
  /* Main title. */
  #layout-header #main-title {
    font-size: 22px !important;
    padding: 30px 0 0 95px;
    line-height: 1.2;
  }
  /* Button HOME. */
  #responsive-home-button {
    display: block;
    float: left;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: 0;
  }
  #responsive-home-button a {
    outline: none;
    display: inline-block;
    position: relative;
    left: 10px;
    top: 5px;
    text-decoration: none;
    margin: 0 10px 0 0;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: normal;
    border: 1px solid #69c;
    border-radius: 0;
    background-color: #074a8b;
    color: #fff;
  }
}

/* 320. */
@media only screen and (max-width: 320px) {
  /* Main title. */
  #layout-header #main-title {
    font-size: 17px !important;
  }
}
