/*
 * 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
   ========================================================================== */

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

body {
    font-size: 13px;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets 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
   ========================================================================== */


html{
    background-image: linear-gradient(bottom, rgb(204,204,204) 37%, rgb(224,224,224) 69%, rgb(240,240,240) 85%);
    background-image: -o-linear-gradient(bottom, rgb(204,204,204) 37%, rgb(224,224,224) 69%, rgb(240,240,240) 85%);
    background-image: -moz-linear-gradient(bottom, rgb(204,204,204) 37%, rgb(224,224,224) 69%, rgb(240,240,240) 85%);
    background-image: -webkit-linear-gradient(bottom, rgb(204,204,204) 37%, rgb(224,224,224) 69%, rgb(240,240,240) 85%);
    background-image: -ms-linear-gradient(bottom, rgb(204,204,204) 37%, rgb(224,224,224) 69%, rgb(240,240,240) 85%);

    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0.37, rgb(204,204,204)),
        color-stop(0.69, rgb(224,224,224)),
        color-stop(0.85, rgb(240,240,240))
    );
}
#wrapper{
    margin: 0px auto 50px auto;
    width:958px;
    border:1px solid black;
}
#wrapper h1{
    color:#1d5389;
    font-size:22px;
    margin:5px auto;
}
#wrapper h2{
    color:#1d5389;
    font-size:16px;
}
#wrapper ul{
    margin:0;
}
#wrapper p{
    margin:0;
}
header{
    background-image:url(../images/bradleyPolk.jpg);
	background-size:cover;
    height:300px;
}
#headbar{
    height:100px;
    background-color:#1d5389;
    color:white;
    border-bottom:1px solid white;
}
.cad{
    float:left;
    padding:6px 0px 0px 10px;
}
.fb{
    float:right;
    padding:50px 5px 0px 0px;
    clear:right;
}


/*===========================================================================
  Navigation Styling
  ===========================================================================*/
nav{
    border-top:1px solid white;
    margin:0;
    padding:0;
    width:960px;
    background-color:#1d5389;
}
nav ul {
    background-color:#1d5389;
    font-family:sans-serif;
    color:white;
    float:left;
    height:25px;
}
nav ul li{
    background-color:#1d5389;
    float:left;
    width:100px;
    text-align: center;
    margin:4px 4px 0px 0px;
    border-right:1px solid white;
}
nav .comp{
    background-color:#1d5389;
    float:left;
    width:165px;
    text-align: center;
    margin:5px 0px 0px 0px;
    border-right:1px solid white;
}
nav ul li:last-child{
    border: none;
}
nav ul li a{
    color:white;
    text-decoration:none;
}
nav ul li a:link{
    color:white;
    text-decoration:none;
}
nav ul li a:visited{
    color:white;
    text-decoration:none;
}
nav ul li a:hover{
    color:white;
    text-decoration:underline;
}
nav ul li a:active{
    color:white;
    text-decoration:none;
}
nav .thispage{
    text-decoration:underline;
}


/*===========================================================================
  Content Styling
  ===========================================================================*/
#content{
    background:white;
    padding-top:20px;
}
#services{
    width:250px;
    float:left;
    margin-bottom:15px;
    padding-left:60px;
}
#services1{
    width:240px;
    float:left;
    margin:34px auto 30px auto;
    padding-left:30px;
}
#privacy{
	color:black;
	width:500px;
	height:100%;
	float:left;
	margin:auto;
	padding:20px 0px 0px 60px;	
}
#privacy p{
	margin:10px 0px 10px 0px;	
}
#employment{
    width:500px;
    float:left;
    padding-left:70px;
}
#employment p{
    margin:10px auto;
}
#employment li{
    padding:10px auto;
}
#appointment{
    width:500px;
    float:left;
    padding-left:70px;
}
#appointment p{
    margin:10px auto;
}
#appointment li a:link{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:#1d5389;
}
#appointment li a:visited{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:black;
}
#appointment li a:hover{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:blue;
}
#appointment li a:active{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:black;
}
#appointment a:link{
        color:#1d5389;
}
#appointment a:visited{
        color:black;
}
#appointment a:hover{
        color:blue;
}
#appointment a:active{
        color:black;
}
#insurance{
    width:500px;
    float:left;
    padding-left:70px;
}
#patient{
    width:500px;
    float:left;
    padding-left:70px;
}
#patient p{
    margin:10px auto;
}
#patient li a:link{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:#1d5389;
}
#patient li a:visited{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:black;
}
#patient li a:hover{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:blue;
}
#patient li a:active{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:black;
}
#compliance{
    width:500px;
    float:left;
    padding-left:70px;
}
#compliance p{
    margin:10px auto;
}
#compliance li a:link{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:#1d5389;
}
#compliance li a:visited{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:black;
}
#compliance li a:hover{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:blue;
}
#compliance li a:active{
    padding:10px auto;
    margin:10px 0px 0px 0px;
    color:black;
}
#employment a:link{
        color:#1d5389;
}
#employment a:visited{
        color:black;
}
#employment a:hover{
        color:blue;
}
#employment a:active{
        color:black;
}
#gmap{
	color:black;
    margin:auto;
    width:350px;
    float:right;
    padding-right:10px;
}

#gmap .map{
text-align:center;
    margin-bottom:30px;
}
#gmap .hour{
text-align:center;
    margin: 20px auto 10px auto;
}
#gmap iframe{
    border:4px solid #1d5389;
    margin-left:40px;
}

#gmap a{
    color:#1d5389;
    margin:10px 0px 0px 55px;
    display:inline;
    font-size:12px;
}
#gmap a:link{
    color:#1d5389;
}
#gmap a:visited{
    color:#1d5389;
}
#gmap a:hover{
    color:#1d5389;
}
#gmap a:active{
    color:#1d5389;
}
#gmap p{
    margin: 1px 0px 1px 0px;
    text-align:center;
}

#gmap .tel{
    margin-right:50px;
    text-align:center;
}
#gmap .addy{
    margin-top:25px;
}
#gmap .moreh{
    margin-bottom:50px;
    color:#1d5389;
    font-weight: bold;
}
#insurance p{
    margin:10px auto;
}
#insurance li{
    margin:10px auto;
}
/* ==========================================================================
   Appointment Form Styling
   ========================================================================== */
#app-form{
    width:450px;
    padding:10px;
    margin:25px auto;
    border:2px solid #1d5389;
}
#app-form input, select, textarea, label{
    font-size:14px;
    margin-bottom: 2px;
}
#app-form input, select, textarea{
    width: 430px;
    border:1px solid black;
    margin-bottom:10px;
    padding:4px;
}
#app-form input:focus, select:focus, textarea:focus{
    border:1px solid #AFCDD8;
    background-color:#EBF2F4;
}
#app-form textarea{
    height:150px;
    resize:none;
}
#app-form label{
    display:block;
}
#app-form .required{
    font-weight:bold;
    color:#F00;
}
#app-form #submit-button{
    width:100px;
    background-color:#1d5389;
    color:white;
    border:none;
    display:block;
    float:left;
    margin:0px 0px 0px 10px;
}
#app-form #submit-button:hover{
    background-color:#0f4c88;
}
#app-form #submit-button:active{
    position:relative;
    top:1px;
}
#req-field-desc{
    float:right;
    font-style: italic;
}
#errors{
    border:1px solid red;
    padding:10px;
    margin:25px 0px;
    display:block;
    width:440px;
    display:none;
}
#errors li{
    padding:2px;
    list-style:none;
}
#errors li:before{
    content: ' - ';
}
#errors #info{
    font-weight: bold;
}
#errors #info:before{
    content:'';
}
#success{
    border:solid 1px #83D186;
    padding:15px 10px;
    margin: 15px 0px;
    display:block;
    width:440px;
    background:#D3EDD3;
    font-weight:bold;
    display:none;
}
#errors.visible, #success.visible{
    display:block;
}
input:required, textarea:required {  
    -moz-box-shadow:none;  
    -webkit-box-shadow:none;  
    -o-box-shadow:none;  
    box-shadow:none;  
}  
/* ==========================================================================
   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: 150%;
}

/*
 * 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}