/* Space out content a bit */
body {
  margin:0;
  padding-bottom: 30px;
}

.img-center{
text-align: center;
margin: auto;
}

.other-color{
    background: #e2e2e2;
  }

.mag-img {
  width: 95%;
  height: auto;
  vertical-align: center;
  margin: 0px;
  padding: 0px;
}

.home-text {
line-height: 25px;
text-indent: 20px;
}

.about-text {
line-height: 20px;
text-indent: 20px;
}

.social-links {
  line-height: 17px;
}

h1, h2, h3 {
  font-family: Georgia, Serif;
  font-weight: bold;
}
/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.marketing,
.footer {
  padding-right: 15px;
  padding-left: 15px;
}

/* Custom page header */
.header {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  background: #00557e; /* Old browsers */
  background: -moz-linear-gradient(top,  #00557e 0%, #003b59 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00557e), color-stop(100%,#003b59)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #00557e 0%,#003b59 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #00557e 0%,#003b59 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #00557e 0%,#003b59 100%); /* IE10+ */
  background: linear-gradient(to bottom,  #00557e 0%,#003b59 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00557e', endColorstr='#003b59',GradientType=0 ); /* IE6-9 */

}
/* Make the masthead heading the same height as the navigation */
.header h3 {
  padding-bottom: 19px;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 40px;
}

.mag-background {
  background: #00557e; /* Old browsers */
  background: -moz-linear-gradient(top,  #00557e 0%, #003b59 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00557e), color-stop(100%,#003b59)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #00557e 0%,#003b59 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #00557e 0%,#003b59 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #00557e 0%,#003b59 100%); /* IE10+ */
  background: linear-gradient(to bottom,  #00557e 0%,#003b59 100%); /* W3C */

}

.img-button {

  padding: 0px;
  border: none;
  background-color: white;
}

.nav-pills > li {
  margin-top:20px;
  float: left;
}


.nav-pills > li > a {
  border-radius: 4px;
  color: white;
}

.nav-pills > li > a:hover {
  border-radius: 4px;
  color:  #00557E;
}

.nav-pills > li + li {
  margin-left: 2px;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  color: #00557E;
  background-color: white;
}



/* Custom page footer */
.footer {
  padding-top: 19px;
  color: #777;
  border-top: 1px solid #e5e5e5;
}

.container {
    max-width: 850px;
  }

.container-narrow > hr {
  margin: 30px 0;
}

/* Main marketing message and sign up button */
.jumbotron {
  margin-top: 30px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}
.jumbotron .btn {
  padding: 14px 24px;
  font-size: 21px;
}

/* Supporting marketing content */
.marketing {
  margin: 40px 0;
}
.marketing p + h4 {
  margin-top: 28px;
}




/*Extra small devices (phones, up to 480px): No media query since this is the default in Bootstrap*/
@media screen and (max-width: 767px) { 
/* -------Mobile Navagtion---- */

  .nav-pills > li {
    float: none;
    text-align: center;
    margin-top:0px;
  }

  .nav-pills > li > a {
    border-radius: 4px;
  }

  .nav-pills > li + li {
    margin-top: 2px;
    margin-left: 0;
  }

  .nav-pills > li.active > a,
  .nav-pills > li.active > a:hover,
  .nav-pills > li.active > a:focus {
  color: #00557E;
  background-color: white;
  }

  .logo-center {
    text-align: center;
    margin: auto;
    margin-bottom: 20px;
  }

   .img-center{
    width: 40%;
  } 

  .hidden-sx {
    display: none;
  } 

  .fb-side {
    margin-top: 30px;
  }

/* ---------------------------- */

}




/*Small devices (tablets, 768px and up)*/
@media screen and (min-width: 768px) and (max-width: 991px) { 
    /* Remove the padding we set earlier */
  .header,
  .marketing,
  .footer {
    padding-right: 0;
    padding-left: 0;
  }
  /* Space out the masthead */
  .header {
    margin-bottom: 30px;
  }
  /* Remove the bottom border on the jumbotron for visual effect */
  .jumbotron {
    border-bottom: 0;
  }

  .logo-contact {
    padding-top: 0px;
  }







}

/*Medium devices (desktops, 992px and up)*/
@media screen and (min-width: 992px) and (max-width: 1199px) { 
  .logo-contact {
    padding-top: 100px;
  }

 }

/*Large devices (large desktops, 1200px and up)*/
@media screen and (min-width: 1200px) { 

  .logo-contact {
    padding-top: 100px;
  }

 }



.magazine-grid {
  display: flex;
  flex-wrap: wrap;
  row-gap: 40px;
  margin: 0 -15px;
}

.magazine-grid > div {
  width: 100%;
  position: relative;
  text-align: center;
  padding-left: 15px;
  padding-right: 15px;
}


@media (min-width: 768px) {
  .magazine-grid > div {
    width: 50%;
  }

  .magazine-grid > div:nth-child(odd)::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 15px;
    width: calc(200% - 30px);
    border-top: 1px solid #eee;
  }
}
 