/* Fixes image issues with tablets & IE8. */
img { max-width: 100%; }
#content img { height: auto !important; }
#blocks .right img {max-width: none !important;}
#header .social img {max-width: none !important;}
#icons .item img {max-width: none !important;}

/* Prevent Color Change and Underline to the Phone Number on Apple Devices */
a[href^=tel]{
    color:inherit;
    text-decoration:none;
}

/* 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 */
ul.nice-menu ul li {
    min-width: 17.5em;
}
#content p {
    color: #282828;
    font-size: 1em;
    line-height: 1.25em;
}
#wrapper .content {
    font-size: 1em;
}
#page #content h1 {
    font-weight: bold;
    text-transform: inherit;
}
#main #content {
    font-size: 1em;
    line-height: normal;
}
#main .pages .item h1 {
    font-size: 30px;
    font-weight: normal;
    padding-top: 30px;
    text-transform: inherit;
}
#main2 #content h1 {
    color: #555555;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: inherit;
}
#main #content h2 a {
    font-size: 26px;
    text-transform: inherit;
    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;
}
#header .phone {
    font-size: 16px;
    font-weight: bold;
}

/* Fixes to Slideshow Description Hover Text & Pager Dots */
#descriptTitle {
    /* pointer-events: 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;
    /* pointer-events: auto; */
}

/* Custom CSS for HR */
#main hr, #main2 hr {
    background-color: #000000;
    margin-bottom: 5px;
    margin-top: 5px;
    padding: 0em;
    visibility: visible !important;
}
hr {
    border: 1px solid #aaa;
    margin-bottom: 1em;
    margin-top: 0.5em;
    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;
}
#edit-captcha { border: none !important; box-shadow: none !important; }
#edit-captcha--2 { border: none !important; box-shadow: none !important; }
fieldset > legend > span {
    background: none repeat scroll 0 0 #FFFFFF;
    font-weight: bold;
}

/* 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;
    max-width: 81% !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;
}

/* News Block Styling */
#block-views-news-events-view-block > h2 {
    border-bottom: 1px solid #aaa;
    margin-bottom: 10px;
    padding-bottom: 10px;
}
#block-views-news-events-view-block span {
    display: list-item !important;
    font-size: 1em;
    list-style: inside none disc;
    margin-bottom: 10px;
}
#block-views-news-events-view-block .content {
    background-color: #efefef !important;
    border: 1px solid #ccc;
    padding: 0.75em;
}
#block-views-news-events-view-block {
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.6);
    padding: 10px;
}
#block-views-news-events-view-block a {
    text-decoration: none;
}
#block-views-news-events-view-block a:hover {
    text-decoration: underline !important;
}
blockquote {
    border-left: 2px solid #999;
    display: block;
    height: auto;
    margin-bottom: 15px;
    margin-left: 15px;
    margin-top: 15px;
    padding-left: 15px;
    text-decoration: initial;
    text-transform: unset;
}
#quiz-container {
    float: left;
    height: 525px;
    margin-top: 20px;
    overflow: hidden;
    width: 100%;
}
#nice-menu-0 > li > .nolink {
    color: #ffffff !important;
    font-weight: bold;
    padding-left: 15px;
    padding-right: 15px;
    border-left: 2px solid #fff;
}