/*
    Pythagoras Communications Ltd
    Header Navigation 
*/

/* Global styles */

@import url("https://fonts.googleapis.com/css?family=Muli");
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Muli";
}

h1 {
  font-size: 24px;
  font-weight: bold;
  color: #662e6b;
}

h2 {
  font-size: 19px;
  font-weight: bold;
  color: #662e6b;
}

body {
  font-size: 16px;
  padding: 0;
}

.navbar-fixed-top,
.navbar-fixed-bottom {
  position: relative;
}

html > body {
  padding: 0;
}

.navbar-inverse {
  background-color: #662e6b;
  border-color: #090909;
}

.navbar-brand img {
  position: relative;
  top: unset;
  left: unset;
  width: 300px;
  display: block;
  /* margin-top: -67px; */
  /* height: 150px; */
}

.visible-lg-block {
  height: 100%;
}

#donateButton {
  font-size: 1.5em !important;
  font-weight: 700;
  background-color: #fff;
  color: #642f6c;
  border-color: #642f6c;
  margin: 10px;
  display: inline-block;
  margin-top: 25px !important;
  float: right;
  padding: 10px 45px;
  border-radius: 15px;
  border-width: 2.5px;
  text-decoration: none;
}

#donateButton:active,
#donateButton:focus,
#donateButton:hover {
  background-color: #c0d32b;
}

.navbar-right.hidden-xs {
  display: none;
}

.register-bar,
.menu-bar {
  clear: both;
  width: 100%;
}

/*Top Bar*/

body > .container {
  padding-top: 10px;
}

body > .container:before {
  background-color: #642f6c;
  padding-top: 10px;
  width: 100%;
  left: 0;
  top: 0;
  right: 0;
  position: absolute;
}

/*nav text */

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: #c0d32b;
}

.navbar-inverse .navbar-nav > li > a {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
}

/*nav drop down */

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
  background-color: #fff;
  color: #000;
  width: 100%;
  margin: 0;
}

.nav.navbar-nav li.weblink.dropdown.open li a {
  text-align: center;
  padding: 7px 44px;
  text-decoration: none;
}

.dropdown-menu .divider {
  display: none;
}

.nav.navbar-nav li.weblink.dropdown.open li:last-of-type a {
  border-bottom: 0 none;
}

#navbar ul.dropdown-menu {
  margin-top: 0;
  width: 100;
}

.navbar-inverse li.weblink {
  width: 24.65%;
  border-right: 1px solid white;
  text-align: center;
}

.navbar-inverse li.weblink:first-child {
  border-left: 1px solid white;
}

.navbar-inverse ul.nav.navbar-nav.weblinks {
  width: 100%;
  margin-left: -15px;
}

li.dropdown a.navbar-icon {
  display: none;
}

.navbar-inverse .navbar-nav .open .dropdown-menu {
  width: 100%;
}

/* Mobile Portrait and Landscape */

@media (max-width: 480px) {
  .navbar-inverse .navbar-nav > li {
    width: 100%;
    text-align: left;
    padding: 5px;
    border-right-width: 0;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
    text-align: left !important;
    padding: 15px !important;
    background-color: #fff;
    border-bottom: 1px solid #662f6b;
    color: #662f6b;
    font-weight: 600;
  }
  .navbar-inverse .navbar-brand {
    color: #fff;
  }
  .visible-sm-block.visible-md-block.visible-lg-block.navbar-brand {
    display: block !important;
  }
  a#donateButton {
    padding: 15px 20px;
  }
  .navbar-brand img {
    width: 130px;
    margin-top: 40px;
  }
}

@media (min-width: 481px) and (max-width: 1199px) {
  .navbar-inverse .navbar-nav > li {
    width: 100%;
    text-align: left;
    padding: 5px;
    border-width: 0;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
    text-align: left !important;
    padding: 15px !important;
    background-color: #fff;
    border-bottom: 1px solid #662f6b;
    color: #662f6b;
    font-weight: 600;
  }
  .navbar-inverse .navbar-brand {
    color: #fff;
  }
  .visible-sm-block.visible-md-block.visible-lg-block.navbar-brand {
    display: block !important;
  }
  .navbar-inverse li.weblink:first-child,
  .navbar-inverse .navbar-collapse,
  .navbar-inverse .navbar-form {
    border-width: 0;
  }

  .navbar-brand img {
    width: 180px;
    margin-top: 40px;
  }
}

/* Landing page weblinks box */

.landing-tile-txt {
  list-style-type: none;
  height: 30%;
  padding: 0;
  margin: 0px;
}

/* Home Page Tiles */

.home-tile {
  height: 300; /* NP- original 150px; */
  margin-bottom: 37px;
}

.home-tile-txt {
  padding: 56px 0px;
  text-align: center;
  border: 1px solid #000;
}

.home-tile-txt a {
  font-size: 26px;
  color: #642f6c;
}

#home-page-tiles {
  margin-top: 68px;
}

/* Full Screen */

@media (min-width: 992px) {
  /* Home Page Tiles */
  .home-tile.col-md-4:first-child {
    padding-right: 40px;
  }
  .home-tile.col-md-4:nth-child(2) {
    padding: 0px 28px;
  }
  .home-tile.col-md-4:nth-child(3) {
    padding-left: 40px;
  }
  /* Home Page Social */
  .home-page-social div.embed-responsive-16by9:nth-child(2) {
    padding: 0px !important;
    padding-left: 45px !important;
  }
}

@media (min-width: 1200px) {
  /* Landing Page Links */
  .pagelink:first-child {
    padding-right: 40px;
  }
  .pagelink:nth-child(2) {
    padding-right: 32px;
    padding-left: 24px;
  }
  .pagelink:nth-child(3) {
    padding-right: 24px;
    padding-left: 32px;
  }
  .pagelink:nth-child(4) {
    padding-left: 40px;
  }
  .pagelink a {
    padding: 105px 30px !important;
  }
  /* Landing Page Links Image */
  .pagelink img {
    position: absolute;
    bottom: 0px;
    right: 28px;
    opacity: 0.6;
    height: 233px;
    width: 234px;
  }
  .pagelink:first-child img {
    right: 40px;
  }
  .pagelink:nth-child(4) img {
    right: 15px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .pagelink a {
    padding: 80px 30px !important;
  }
}

@media (max-width: 991px) {
  .pagelink {
    width: 100%;
    margin-top: 15px;
  }
}

/* All Text Links */

a {
  color: blue;
  text-decoration: underline;
}

.faqs a {
    color: blue!important;
    text-decoration: underline;
    font-weight: bold;
}

a:visited {
  color: purple;
}

@media (max-width: 466px) {
  #donateButton {
    width: 150px;
    font-size: 15px !important;
  }

  .navbar-brand img {
    margin-top: 40px;
  }
}

/*Breadcrumb */
.breadcrumb {
  font-size: small;
}

.page-header {
  margin: 20px 0 20px;
}

.page-heading {
  padding-top: 2px;
}

/*Mobile View menu button*/
.navbar-inverse .navbar-toggle {
  border-color: white;
}

/* Sign In Nav */

li.open ul.dropdown-menu {
  display: block;
}

#userProfile {
  padding-top: 10px;
}

#userProfile li {
  list-style-type: none;
  padding-right: 10px;
  padding-left: 10px;
  float: left;
}

#userProfile li {
  border-right: 1px solid #000;
}

.signout,
.signin {
  border-right-width: 0px !important;
  position: relative;
}

li.signout:after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  right: -4px;
  border: 1px solid #000;
  border-right-width: 0px;
  border-top-width: 0px;
  transform: rotate(-45deg);
  top: 7px;
}

#userProfile li a {
  font-weight: bold;
  color: darkblue;
}

#userProfile li.open ul.dropdown-menu li {
  float: none;
  padding: 0px;
  border: 0px;
}

@media (max-width: 708px) {
  #userProfile li {
    display: none;
  }

  #userProfile li.signout,
  #userProfile li.signin {
    display: block;
  }

  #userProfile li.signout ul > li {
    display: block;
  }

  #userProfile li.signout ul {
    z-index: 1;
  }

  .navbar-inverse {
    z-index: 0;
  }
}

@media (max-width: 992px) {
  .navbar-brand {
    margin-top: -40px;
  }
}

.please-donate {
  display: none !important;
}

@media (max-width: 1199px) {
  .please-donate {
    display: block !important;
  }

  #donateButton {
    display: none !important;
  }
}

/* Logo */
.navbar-brand {
  padding-left: 0px;
}

@media (max-width: 708px) {
  .dropdown-backdrop {
    position: absolute !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #header > div:nth-child(2) {
    float: none !important;
  }
  .dropdown-menu li a {
    padding: 1px 20px !important;
  }
}

/* Background Images */
.pagelink a {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

/* Housing Page Five Column Styling */
.five-columns > .col-sm-2 {
  margin-top: 5px;
}
@media (min-width: 768px) {
  .five-columns > .col-sm-2 {
    width: 20%;
  }
}

/* Fix for images on various screen sizes */

@media (max-width: 767px) {
  .housing-banner {
    display: block;
    width: 100%;
    background-image: url(/housing/housing-banner-768px.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    /* height: 400px; */
    padding-top: 105.72%; /* (img-height / img-width * container-width) */
    /* (812 / 768 * 100) */
  }
  .housing-comments {
    display: block;
    width: 100%;
    background-image: url(/housing/housing-comments-768px.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    /* height: 400px; */
    padding-top: 443.35%; /* (img-height / img-width * container-width) */
    /* (3405 / 768 * 100) */
  }
}

@media (min-width: 768px) {
  .housing-banner {
    display: block;
    width: 100%;
    background-image: url(/housing/housing-banner-992px.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    /* height: 400px; */
    padding-top: 88.205%; /* (img-height / img-width * container-width) */
    /* (875 / 992 * 100) */
  }

  .housing-comments {
    display: block;
    width: 100%;
    background-image: url(/housing/housing-comments-992px.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    /* height: 400px; */
    padding-top: 159.47%; /* (img-height / img-width * container-width) */
    /* (1582 / 992 * 100) */
  }
}

@media (min-width: 992px) {
  .housing-banner {
    display: block;
    width: 100%;
    background-image: url(/housing/housing-banner-1200px.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    /* height: 400px; */
    padding-top: 72.91%; /* (img-height / img-width * container-width) */
    /* (875 / 1200 * 100) */
  }
  .housing-comments {
    display: block;
    width: 100%;
    background-image: url(/housing/housing-comments-1200px.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    /* height: 400px; */
    padding-top: 66.83%; /* (img-height / img-width * container-width) */
    /* (802 / 1200 * 100) */
  }
}

/* Fix for images on various screen sizes */

/* @media (min-width: 1200px) {
} */
