/* Fixes image issues with tablets & IE8. */
img {
max-width: 100%;
height:auto;
}
#blocks .right img {max-width: none !important;}
#header .social img {max-width: none !important;}
#icons .item img {max-width: none !important;}
body {
    background-size: cover !important;
}
#main2 #content {
    min-height: 500px;
}

ul.nice-menu ul li {
    width: 17.5em;
}

/* No link border and coloring */
#nice-menu-0 ul .nolink
.nolink {
  font-weight: bold;
  padding: 0 15px;
  border-left: 2px solid #FFFFFF;
  color: #000000 !important;
}
#nice-menu-0 > li > .nolink {color: #ffffff !important;}
#header .nav li:first-child .nolink {
    border-left: 0 solid transparent !important;
}

/* Borders and Radius CSS for Form Fields */
.form-textarea-wrapper textarea {   
    border: 1px solid #555555;
    border-radius: 4px 4px 4px 4px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    padding: 3px;
}
select {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-bottom-color: #000000;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    border-image-slice: 100% 100% 100% 100%;
    border-image-source: none;
    border-image-width: 1 1 1 1;
    border-left-color-ltr-source: physical;
    border-left-color-rtl-source: physical;
    border-left-color-value: #000000;
    border-left-style-ltr-source: physical;
    border-left-style-rtl-source: physical;
    border-left-style-value: solid;
    border-left-width-ltr-source: physical;
    border-left-width-rtl-source: physical;
    border-left-width-value: 1px;
    border-right-color-ltr-source: physical;
    border-right-color-rtl-source: physical;
    border-right-color-value: #000000;
    border-right-style-ltr-source: physical;
    border-right-style-rtl-source: physical;
    border-right-style-value: solid;
    border-right-width-ltr-source: physical;
    border-right-width-rtl-source: physical;
    border-right-width-value: 2px;
    border-top-color: #000000;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-top-style: solid;
    border-top-width: 2px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Submit Box - 3D Styling and Active CSS - smw0 */
#content input[type="submit"]:active { box-shadow:2px 2px 3px -1px rgba(55,55,55,0.7) inset; }
#content input[type="submit"]:hover {
    background-color:#aaaaaa !important;
    color:#ffffff !important;
    cursor:pointer !important;
}

/* General Styling Fixes */
#content p {
    color: #282828;
    font-size: 16px;
    line-height: 1.25em;
}
#main #content {
    font-size: 16px;
    line-height: 1.25em;
}
#main .pages .item h1 {
    font-size: 30px;
    font-weight: normal;
    padding-top: 10px;
    text-transform: capitalize;
    line-height: 1em;
}
#main2 #content h1 {
    color: #555555;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: capitalize;
}
#main #content h2 a {
    font-size: 26px;
    text-transform: capitalize;
    font-weight: bold;
}

table {
    border-collapse: separate;
    border-spacing: 5px;
    display: table;
    max-width: 100% !important;
    table-layout: fixed;
    text-indent: 0;
}
table img {
    height: auto !important;
    max-width: 100% !important;
}

#block-simpleads-ad-groups-2 > h2 {
    display: none;
}

#descriptTitle #dots a {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-width: 1px;
    border-left-width-value: 1px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-top-width: 1px;
    height: 15px;
    width: 15px;
    margin-top: 15px;
}

#header .phone {
    font-size: 16px;
    font-weight: bold;
}

.adslist {
    background-color: #dcdcdc !important;
}

/* Custom CSS for HR */
#main hr, #main2 hr {
    background-color: #777;
    margin-bottom: 5px;
    margin-top: 5px;
    padding: 0;
    visibility: visible !important;
}

/* Flexible iFrame */
.Flexible-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.Flexible-container iframe,   
.Flexible-container object,  
.Flexible-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Webform Error Fixes - Adds Red Border to Fields Not Filled Out After Submitting a Form - smw0 */
.node-type-webform .error:before{
border: 2px solid red !important;
}
.form-item input.error, .form-item textarea.error, .form-item select.error, .form-type checkbox.error {
border: 2px solid red !important;
}

/*****************************************
Form Fixes */
#wrapper form select:focus,
#wrapper form input:focus,
#wrapper form textarea:focus {
    border: 1px solid #555555;
    margin: 0;
}
#wrapper form select,
#wrapper form input,
#wrapper form textarea {
    border: rgba(0,0,0,0);
    margin:1px;
}

#wrapper form select {
box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
border-radius: 4px;
padding: 3px;
}

fieldset {
    border: 1px solid #555555;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

fieldset > legend > span {
    background: none repeat scroll 0 0 #FFFFFF;
    font-weight: bold;
}
/*
/*****************************************/

/*****************************************
iOS Form Fixes */
#mobile input {
    border-radius: 4px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    padding: 3px;
}

/*
input {
   -webkit-appearance: none;
   -moz-appearance:    none;
   appearance:         none;
}
*/

/*
/*****************************************/

/* Prevent search bar form being altered by form rules. */
#wrapper #header .search input#edit-search-block-form--2 {
    border: medium none rgba(0, 0, 0, 0) !important;
    margin: 2px 0 0 30px !important;
    padding: 5px !important;
    width: 250px !important;
}
/* Mail Graphic for all E-mail Links */

a[href*="mailto"]:after {
    content: url("/sites/connect/files/email.gif");
    left: 2px;
    margin: 0;
    padding: 0;
    position: relative;
    top: 4px;
    white-space: pre;
}
.item span.ext {
    display: none !important;
}
#footer ul {
    display: block;
    height: 30px;
    list-style: none outside none;
    margin-bottom: 10px;
    margin-left: 12.5%;
    margin-right: 12.5%;
    margin-top: 0 !important;
    padding-top: 10px;
    text-align: center;
}
#footer li a {
    border-left: 1px solid #999;
    color: #fff;
    font-size: 16px;
}
#wrapper .phone {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    color: #444;
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-right: 20px;
    padding: 5px;
    position: absolute;
    right: 0;
    text-transform: uppercase;
    top: 10px;
    z-index: 3;
}

body {
    background-position: center -150px !important;
}
#header .payment a {
    border-radius: 4px;
    display: block;
    float: right;
    font-size: 1.5em;
    margin: -12px 5px;
    padding: 10px;
    text-decoration: none;
}
#footer .credit {
    color: #eee !important;
    display: block;
    font-size: 14px;
    line-height: 25px;
    margin-left: auto;
    margin-right: auto;
    width: auto;
}
#header #nice-menu-10 li ul li a {
    color: #eee !important;
}
#header .payment a {
    border-radius: 4px;
    padding: 5px;
    font-size: 0;
}
.payment img {
    margin: 0 !important;
    padding: 0 !important;
    width: 100px;
}