* {
  box-sizing: border-box;
}

body {
  font-family: adobe-jenson-pro-display, serif;
}

.content-margin {
  width: 100%;
  max-width: 815px;
  margin: 0 auto;
}

header {
  width: 100%;
  height: 440px;
  padding: 25px;
  background-image: url("Lighthouse.jpg");
  background-size: 100% auto;
  background-position: center;
  color: white;
}

#top-bar {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 150;
  overflow: normal;
  justify-content: flex-start;
}

#header-nav {
  flex: 1;
  max-width: 450px;
}

header hr {
  position: relative;
  overflow: hidden;
}

#header-logo {
  padding-bottom: 10px;
}

#header-nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-around;
  padding: 0;
  margin: 0;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  display: none;
  list-style: none;
  background-color: white;
  padding: 15px;
  z-index: 1000;
  font-weight: bold;
  border: 1px solid #DEDEDE;
  width: 170px;
}

.header-nav-item {
  color: #FFFFFF;
  text-decoration: none;
}

.dropdown-content hr {
  border: 1px solid #DEDEDE;
  width: 100%;
  box-sizing: border-box;
}

.header-nav-property {
  color: black;
  text-decoration: none;
}

#nav-overlay {
  display: none;
  position: fixed;
  background-color: #041F3A;
  width: 100%;
  height: 100%;
  z-index: 100;
  left: 0;
  top: 0;
}

#mobile-header-nav {
  margin-top: 155px;
}

#mobile-header-nav-links,  #mobile-header-nav-properties{
  list-style: none;
  position: relative;
  padding: 0;
  text-align: center;
}

#mobile-header-nav-links li {
  margin: 10px auto;
}

.mobile-header-nav-item {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
  font-size: 30px;
}

#mobile-header-property-tag {
  color: #1B67B3;
  font-size: 22px;
}

.mobile-header-property {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 28px;
  font-weight: normal;
}

#mobile-header-nav hr {
  opacity: 0.1;
  width: 85%;
  box-sizing: border-box;
}

#header-text h1{
  font-size: 60px;
  font-weight: normal;
  line-height: 55px;
}

.times-logo {
  width: 75px;
}

#main-text h2 {
  font-size: 50px;
  font-weight: normal;
}

#main-text a{
  color: black;
  font-size: 30px;
  font-weight: normal;
}

#properties {
  display: flex;
  flex-wrap: wrap;
  color: #FFFFFF;
  justify-content: space-between;
  margin: 15px -2px;
  padding: 25px 0 80px 0;
}

.property-box {
  width: 385px;
  height: 223px;
  padding: 0 25px;
  margin: 15px 2px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-content: flex-end;
}

.property-box-logo {
  height: 65px;
  display: flex;
}

.property-box-logo img {
  align-self: flex-end;
}

.property-box-text {
  flex-grow: 1;
}

.property-box-links {
  padding: 0 0 40px 0;
}

.subscribe {
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  background-color: Transparent;
  height: 40px;
  width: 121px;
  font-family: adobe-jenson-pro-display, serif;
  font-size: 12px;
  font-weight: bold;
}

.img-arrow {
  width: 13px;
  height: 10px;
}

.property-box-links .img-arrow{
  filter: invert(100%);
}

#suffolk {
  background-color: #052139;
}

#suffolk .property-logo {
  height: 23px;
}

#riverhead {
  background-color: #094B59;
}

#riverhead .property-logo {
  height: 23px;
}

#shelter {
  background-color: #295778;
}

#shelter .property-logo {
  height: 37px;
}

#northforker {
  background-color: #000000;
}

#northforker .property-logo {
  height: 18px;
}

.visit-site {
  color: white;
  font-size: 21px;
  margin: 24px;
  font-weight: normal;
}

footer {
  background-color: #F3F3F3;
  padding: 25px;
  display: flex;
  font-size: 14px;
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  align-items: center;
}

#footer-left {
  flex-grow: 1;
  line-height: 30px;
}

#footer-logo {
  margin-right: 20px;
}

#footer-right {
  text-align: right;
  flex-grow: 1;
  line-height: 30px;
}

footer h4 {
  font-weight: bold;
  margin: 0;
}

footer p {
  color: #A3A3A3;
  margin: 0;
}

#footer-nav-links {
  display: flex;
  list-style: none;
  flex-direction: row;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}

.footer-nav-item {
  margin: 0 0 0 27px;
  font-weight: bold;
}

.footer-nav-item a {
  text-decoration: none;
  color: #000000;
}

.mobile-only {
  display: none;
}

.hide {
  display: none !important;
}

// menu icon styles
.mobile-menu-icon {
  display: inline-block;
  cursor: pointer;
}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: #FFFFFF;
  margin: 6px 0;
  transition: 0.4s;
}

.change .bar1 {
  -webkit-transform: rotate(-45deg) translate(-9px, 6px) ;
  transform: rotate(-45deg) translate(-9px, 6px) ;
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  -webkit-transform: rotate(45deg) translate(-8px, -8px) ;
  transform: rotate(45deg) translate(-8px, -8px) ;
}

@media(max-width: 800px) {
  #header-text h1 {
    font-size: 44px;
    line-height: 48px;
  }

  .property-box {
    width: 100% !important;
  }

  header {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 70% 65%;
  }

  #main-text {
    padding: 0 25px;
  }

}

@media(max-width: 450px) {
  #top-bar {
    justify-content: space-between;
  }

  header hr {
    z-index: 150;
  }

  .mobile-only {
    display: block;
  }

  #header-nav {
    display: none;
  }

  #header-text h1 {
    font-size: 32px;
    line-height: 42px;
  }

  #main-text h2 {
    font-size: 30px;
  }

  #main-text p {
    font-size: 20px;
  }

  .visit-site {
    font-size: 16px;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  #footer-right {
    text-align: center;
  }

  #footer-nav-links {
    justify-content: center;
  }

  .footer-nav-item {
    margin: 0 15px;
  }
}
