﻿/* Common elements */
body {
  min-width: 340px;
  max-width: 1200px;
  margin-left: auto;
  margin-right:auto;
  position: relative;  
}

hr {
  border-bottom: 1px solid #eee;
  border-top: unset;
}

/* Banner Image */
#ansls-banner-img > img {
  width: 100%;
  margin-bottom: -5px;
}
@media screen and (min-width: 48.01em) {
  #ansls-banner-img {
  }
}

/* Header */
.header {
  padding-top: 1em;
  font-size: 16pt;
  padding-bottom: 1em;
  margin-bottom: 1em;
}

#ansls-title {
position: absolute;
right: 2vw;
top: 1vw;
color: white;
font-family: sans-serif;
font-weight: 500;
font-size: 3.8vw;
}

/* Address */
.address {
    position: absolute;
    top: 12vw;
    right: 2vw;
    font-size: 3vw;
    color: white;
    font-weight: 400;
    font-family: sans-serif;
    border-radius: 5px;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

@media screen and (max-width: 37em) {
  #ansls-title {
    font-size: 18px;
  }
  
  .address {
    font-size: 18px;
  }
}

/* Menu */
#layout.active .menu-link {

}

#layout.active #menu {

}

#menu {
  left: auto;
  margin-left: auto;
  width: auto;
  position: relative;
  top: auto;
  bottom: auto;
  overflow: visible;
  
}

#menu .pure-menu, #menu .pure-menu ul {
    border: none;
    background: #4062da;
    width: 100%;
    margin-bottom: -5px;
}

#menu a {
  padding: 0.7em;
  color: #DDD;
}

.pure-menu-item {
  float: left;
  display: flex;
  flex-basis: auto;
  height: auto;
}

#menu .pure-menu-selected, #menu .pure-menu-heading {
    background: #4062da;
}

#menu .pure-menu-heading {
font-size: 100%;
}

.pure-menu-heading, .pure-menu-link {
  white-space: normal;
}

#menu .pure-menu .menu-item-divided {
  border-left: 1px solid #333;
  border-top: none;
  height: 70px;
}

#menu .pure-menu li a:focus {
  background: unset;
}

#menu .pure-menu li a:focus:hover {
  background: #333;
}

#menu .pure-menu li.pure-menu-active > a:focus {
  background: #333;
}

.pure-menu-children > .pure-menu-item > .pure-menu-link {
  margin-left: 1em;
}

/* floaty dropdown menus */

ul.pure-menu-list {
  display: inline-block;
}

.pure-menu-active > .pure-menu-children {
  position: absolute;
  top: 70px;
  background-color: #333;
}

.pure-menu-children > .pure-menu-item {
    display: flex;
    float: none;
    clear: both;
    background-color: #333;
    width: auto;
}

/* end floaty dropdown menus */

.pure-menu-link > img {
}

/* allow submenu to drop down rather than slide right */
.pure-menu-children {
  position: relative;
  left: 0px;
}

.pure-menu-has-children:selected > ul { 
  display: block; 
}

.pure-menu-active > .pure-menu-children, .pure-menu-allow-hover:hover > .pure-menu-children {
    display: block;
}
/* end submenu slide */

/* remove arrow from menu items */
.pure-menu-has-children > .pure-menu-link::after {
    padding-left: unset;
    content: unset;
    font-size: unset;
    display: none;
}

@media screen and (min-width: 48.01em) {
  #layout {
    left: 0px;
    padding-left: 0px;
  }

  #menu {
    
  }

  .pure-menu > .pure-menu-list {
    display: flex;
    flex-direction: row;
  }

  
  .pure-menu-children > .pure-menu-item {
    width: 350px;
  }

  .pure-menu-children > .pure-menu-heading {
    width: 350px;
    padding: 0.5em 0;
  }
  
  #menu .last-parent > .pure-menu-children {
    width: auto;
    left: -220px;
    
  }
  
  #menu .second-last-parent > .pure-menu-children {
    width: 225px;
  }
  
  #menu .third-last-parent > .pure-menu-children {
    width: 230px;
  }
  
  .last-parent > .pure-menu-children > .pure-menu-item {
    width: auto;  
  }
  
  .second-last-parent > .pure-menu-children > .pure-menu-item {
    width: auto;  
  }  

  .third-last-parent > .pure-menu-children > .pure-menu-item {
    width: auto;  
  }  

  
}

@media screen and (max-width: 48em) {
  #layout.active {
    position: relative;
  }
  
  .pure-menu-list > .pure-menu-item {
    width: 49.5%;
    display: flex;
  }
  
  #menu .pure-menu .menu-item-divided {
    border-bottom: 1px solid #333;
    height: 70px;
  }
  
  #menu a {
    width: 100%;  
  }
  
  .pure-menu-active > .pure-menu-children {
    top: 70px;
  }
  
  /* Add right-hand-side border for last menu item, if it's odd-numbered */
  .last-parent:nth-child(2n+1) {
    border-right: 1px solid #333;
  }
}
/* end Menu */

/* Twitter Image - Testing */
#ansls-twitter-feed > img {
  width: 100%;
  max-width: 250px;
}

.content > p > img, .content img {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  height: auto;  
}

/* Large Screens */
@media screen and (min-width: 1200px) {
  #ansls-title {
    font-size: 46px;
    position: absolute;
  }
  
  .address {
    font-size: 36px;
    position: absolute;  
    right: 24.3333px;
    top: 146.033px;
  }
}

/* Members By Location Page */
.NSLSCounty {
  margin-bottom: 4rem;
}

.NSLSInfo {
  border-bottom: 1px solid #666;
}