
/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
@import url('https://fonts.googleapis.com/css?family=Droid+Sans:400,700');
@import url('https://fonts.googleapis.com/css?family=Droid+Serif:400,700');

header, nav, section, article, aside, footer {
   display:block;
}

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

a img {
	border: none;
}

html, body
{
	height:100%;
	margin:0;
	min-width:1200px;
}

h1.page-heading {
    margin-top: 0;
    font-size: 32px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    padding-left: 30px;
    font-family: 'Droid Serif';
}

#container {
	margin: 0 auto;
	background-color:#fff;
}

header { /* For Safari 5.1 to 6.0 */ /* For Opera 11.1 to 12.0 */ /* For Firefox 3.6 to 15 */
  	background: -o-linear-gradient(#294A6A, #335C85, #335C85, #546E88);
  	background: -webkit-gradient(linear, left top, left bottom, from(#294A6A), color-stop(#335C85), color-stop(#335C85), to(#546E88));
  	background: linear-gradient(#294A6A, #335C85, #335C85, #546E88); /* Standard syntax */
	height:150px;
}

#logo {
	width:545px;
	height:100px;
	margin-left:25px;
	font-family: 'Droid Serif';
	font-size: 2.5em;
	text-transform: uppercase;
	color: #f5f5f5;
	padding-left:150px;
	padding-right:150px;
}

#logo p {
	margin:0px;
}

#logo .firstcharacter {
	font-size:1.25em;
}

#logo .llc {
	font-size:.5em;
}

#logo p.logo-tagline {
	font-size:.5em;
	float:right;
	position:relative;
	top:-10px;
}

.helper {
	display:inline-block;
	height:100%;
	vertical-align:middle;
}

nav {
	background-color:#294A6A;
	height:50px;
	font-family: 'Droid Sans', sans-serif;
	text-transform:uppercase;
	font-size:.9em;
	text-align:center;
	letter-spacing:2px;
	padding-left:150px;
	padding-right:150px;
}

nav ul
{
	padding:0;
	margin:0;
	height:50px;
	list-style:none;
	position:relative;
}

nav ul li
{
	line-height:50px;
	padding-left:0px;
	padding-right:0px;
	float:left;
	position:relative;
	-webkit-transition: background 0.3s ease-in;
    -o-transition: background 0.3s ease-in;
    transition: background 0.3s ease-in;

}

nav ul li:hover {
	background:#213B55;
}

nav li a
{
	display:block;
	height:50px;
	text-decoration:none;
	color:#f5f5f5;
	padding-left:20px;
	padding-right:20px;
}


/*nav li a:hover
{
	line-height:50px;
	color:#5C5C5C;
	-webkit-transition: color .5s;
}*/

nav ul ul {
	position: absolute;
	z-index:9999;
	height:0px;
	width:225px;
	overflow:hidden;
	background:#213B55;
	padding: 0;
	text-transform: none;
	font-size:14px;
	letter-spacing:0px;
	-webkit-transition: height 0.3s ease-in;
    -o-transition: height 0.3s ease-in;
    transition: height 0.3s ease-in;
}

	nav ul li:hover ul {
		display:block;
		height: 122px;
	}

	nav ul ul li {
		display:block;
		float: none;
		border-top: 1px solid #cccccc;
		position: relative;
		overflow:hidden;
		height:auto;
		line-height: 60px;
	}

	nav ul ul li:hover {
		background:#335C85;
	}

		nav ul ul li a {
			padding: none;
			height:60px;
		}
			nav ul ul li a:hover {
				line-height:60px;
			}


#content {
	background:#949494;
	padding-left:10%;
	padding-right:10%;
	font-family: 'Droid Serif', serif;
	color:#404040;
}

.wrapper-404 {
  background: white;
  text-align: center;
  height: 100%;
  padding-top: 100px;
}

.wrapper-404 h1 {
  font-size: 3em;
  margin: 0;
}

.wrapper-404 h2 {
  font-size: 1.5em;
  margin: 0;
}

.wrapper-404 ul {
    max-width: 300px;
    margin: 0 auto;
    list-style-type: none;
}

.wrapper-404 ul a {
  color: #404040
}

.wrapper-404 ul a:hover {
  text-decoration: none;
}

body.body404 #container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100vh;
}

body.body404 #content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

#content img {
	background-color:#333333;
}

#photo {
	position:relative;
}


#content .strong {
	font-weight: bold;
	font-size:1.2em;
}

#blurb {
	width:50%;
	height:auto;
	background-color:rgba(240, 240, 250, 0.7);
	position:absolute;
	top:5%;
	right:5%;
	border-radius:10px;

}

#blurb p {
	font-family: 'Droid Serif', serif;
	font-size:1em;
	margin:5%;
}

#offices {
	background:white;
	padding: 30px 0;
	font-family:'Droid Sans', sans-serif;
	width:100%;
	height:100%;
	margin:0 auto;
	overflow:hidden;
}

#offices h4 {
	text-align:center;

}

#offices-left {
	float:left;
	margin-right:20px;
}

#offices-right {
	float:right;
}

#offices a {
	text-decoration:none;
	color:#3a84df;
}

#offices a:hover {
	text-decoration: underline;
}

p.offices {
	font-family:'Droid Sans', sans-serif;
	margin:0px;
}

p.offices a {
	text-decoration:none;
	color:#3a84df;
}

p.offices a:hover {
	text-decoration: underline;
}

p.address {
	margin:0px;
	text-align:center;
}

#about {
	background:white;
	padding-top:30px;
	padding-bottom:30px;
}

.about-section {
	overflow: hidden;
	height:166px;
	padding: 10px 30px 10px 30px;
}

.about-section p {
	margin:0px;
	position: relative;
	top: 50%;
	-webkit-transform: translateY(-50%);
	        -ms-transform: translateY(-50%);
	    transform: translateY(-50%);
}


img.aboutimage {
    float:left;
	padding-left:100px;
	padding-right:20px;
	padding-bottom:0px;
}

#attorney-wrapper {
	overflow:hidden;
	background:white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding-top: 25px;
}

#attorney-content {
	margin: 0 auto;
	padding-bottom:30px;
	padding-right:5%;
	font-family: 'Droid Serif', serif;
	color:#404040;
}

#attorney-aside {
	padding-top:1em;
	padding-left:5%;
  margin-right: 35px;
	font-family: 'Droid Serif', serif;
	color:#404040;
  -webkit-box-flex: 0;
      -ms-flex-positive: 0;
          flex-grow: 0;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -ms-flex-preferred-size: 30%;
      flex-basis: 30%;
}

#attorney-aside a {
	color: #404040;
}

#attorney-aside a:hover {
	text-decoration: none;
}

#attorney-aside img {
  max-width: 100%;
}

#practice-areas {
	background:white;
	padding-top:30px;
	padding-bottom:30px;
	overflow:hidden;
	font-size:.9em;
}

#practice-areas h3 {
	margin:0px;
}

#practice-areas img {
	width:250px;
	float:left;
	margin-right:20px;
	margin-bottom:30px;
}

.practice-area-section {
    padding: 0 30px;
}

#practice-areas p {
	margin-top:0px;
}

footer {
	background-color:#333333;
	color:#666666;
	font-family: 'Droid Sans', sans-serif;
	text-transform:uppercase;
	font-size: 12px;
	width:100%;
	height:100px;
	clear:both;
	text-align:center; /* For Safari 5.1 to 6.0 */ /* For Opera 11.1 to 12.0 */ /* For Firefox 3.6 to 15 */
  background: -o-linear-gradient(#333333, #242424, #242424, #242424);
  background: -webkit-gradient(linear, left top, left bottom, from(#333333), color-stop(#242424), color-stop(#242424), to(#242424));
  background: linear-gradient(#333333, #242424, #242424, #242424); /* Standard syntax */
}

footer p {
	margin:0px;
	padding-top:10px;
	font-size:10px;
}

footer ul {
	margin:0px;
	padding-top:20px;
  padding-left: 0;
}

footer ul li {
	display:inline;
}

footer ul li a {
	color:#999;
	text-decoration: none;
	padding-left:10px;
	padding-right:10px;
	-webkit-transition: color 0.3s ease-in;
    -o-transition: color 0.3s ease-in;
    transition: color 0.3s ease-in;
}

footer ul li a:hover {
	color:#ccc;
	text-decoration: underline;
}

/*sticky footer Opera fix*/
body:before {
	content:"";
	height:100%;
	float:left;
	width:0;
	margin-top:-32767px;/
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

@media (min-width: 0) and (max-width: 600px) {
  .about-section {
    height: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .about-section img {
    margin: 0 auto !important;
  }
  .about-section img, .about-section p {
    float: none !important;
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
  }

  .about-section p {
    top: auto;
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
    margin-bottom: 25px;
  }

  #attorney-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  #attorney-aside {
    text-align: center;
    padding-right: 5%;
  }
  #attorney-aside img {
    width: 100%;
  }
  #attorney-content {
    padding: 0 5%;
    padding-bottom: 25px;
  }
}

@media (min-width: 601px) and (max-width: 768px) {
  .about-section p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  html, body {
    min-width: 0;
    height: 100%;
  }

  body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  body::before {
    display: none;
  }

  #container {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto;
  }

  footer {
    -ms-flex-negative: 1;
        flex-shrink: 1;
  }

  header {
    height: auto;
  }

  header .container {
    padding: 0 15px;
  }

  #logo {
    padding: 0;
    max-width: 100%;
    width: 325px;
    margin: 0 auto;
    padding-top: 10px;
    text-align: center;
  }

  #logo h1, #logo p {
    font-size: 30px !important;
  }

  #logo .logo-tagline {
    font-size: 20px !important;
    float: none !important;
  }

  nav {
    display: none;
    height: auto;
    padding: 0;
  }

  nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: auto;
    width: 100%;
  }

  nav ul li ul {
    width: 100%;
    position: relative;
    z-index: auto;
  }

  .menu-toggle {
    background: #294A6A;
    width: 100%;
    height: 50px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .hamburger span {
    display: block;
    height: 2px;
    position: relative;
    background: #fff;
    width: 29px;
    margin-bottom: 8px;
  }

  #content {
    padding: 0;
  }

  #photo {
    background: url('/images/philadelphia.jpg');
    background-size: cover;
    height: auto;
    padding-bottom: 50px;
    padding-top: 50px;
  }

  #photo img {
    display: none;
  }

  #photo #blurb {
    width: 75%;
    position: relative;
    top: inherit;
    left: inherit;
    right: inherit;
    margin: 0 auto;
    background-color: rgba(240, 240, 250, 0.9);
  }

  #photo #blurb p {
    margin: 0;
    padding: 25px;
  }

  #photo #blurb p:last-child {
    padding-top: 0;
  }

  #offices-wrapper {
    width: 100% !important;
  }

  footer {
    height: auto;
    padding-bottom: 10px;
  }

  footer ul li {
    line-height: 24px;
  }

  footer p:last-child {
    padding-bottom: 10px;
  }
}
