/*
 * Theme Name: Sam Adams Associates for Integrity in Intelligence
 * Description: The theme for the SAAII website.
 * Tags: white, blue, clean, two-columns, translation-ready, custom-menu
 */

/* Don't show dotted outlines when user clicks an element (in Fx). */
:focus { outline: none; }
::-moz-focus-inner { border: 0; }

html #wpadminbar { position: fixed; }

/* Pagination */
.pagination .current { font-weight: bold; }

/* News box (from my shortcode) */
.newsbox {
  background-color: #fafafa;
  border: 1px solid #ddd;
  padding: 10px 20px;
}
.newsbox img { max-width: 100% !important; }

/* Event details */
body .event-details { font-size: 16px; }

/* widget lines */
body .widget { 
    border-bottom: 1px solid #ddd;
    padding: 10px 0px;
}
body .widget:last-of-type { border-bottom: none; }

/* Donate buttons */
#paypaldonate { float: right; }
#bitcoindonate { float: left; }
#bitcoinaddress { clear: both; }

/* Style site switcher */
#siteswitcher {
    background-color: #fafafa;
    color: #eee;
    width: 100%;
    font-size: .7em;
    margin-bottom: 13px;
    padding-top: 5px;
}
#siteswitcher ul { 
    width: 100%;
    padding: 0px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0px;
    list-style: none; 
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
#siteswitcher ul li { 
    padding: 5px 10px;
    display: inline-block;
    text-align: center;
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
}

#siteswitcher li.active {
    background-color: #ececec;
}

#siteswitcher li a { color: #6C6C6C; text-decoration: none; }

html, body { height: 100%; }

html {
    background-color: #fafafa;
}

body {
    margin: 0px;
    padding: 0px;
    font-size: 16px;
    line-height: 19px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    color: #181818; /* A slightly lighter black */
    min-height: 100%;
}

body,
input.wpcf7-form-control:nth-child(2) {
    font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif;
}

button {
    cursor: pointer;
}

a { color: #000f47; text-decoration: none; }

nav.paging-navigation {
    border-top: 1px solid #C6C6C6;
    padding: 15px 0px;
}
nav.paging-navigation .nav-links a { 
    color: #000f47; 
    margin: 0px; 
    padding: 0px; 
    display: inline;
}
nav.paging-navigation .nav-links .nav-next { float: right; }
nav.paging-navigation .nav-links .nav-previous { float: left; }
div#main a:hover { background-color: #000f47 !important; color: white !important; }

p.journosourcepdf { 
    position: absolute;
    margin-top: -4px;
    font-size: 14px; 
    width: 325px; 
    text-align: center; 
}

img { border: none; } /* Required for IE */

div#main {
    width: 100%;
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
    background-color: #ffffff;
}
.home div#main { margin-top: 0px; }
.page-id-18 div#main { margin: 0px; }

div#main aside#sidebar { 
    width: 371px;
    padding: 20px; 
    font-size: 14px;
}
div#main section#content { 
    margin-left: 20px;
    margin-top: 13px;
    margin-bottom: 13px;
    padding-right: 20px; 
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
div#main section#content div.entry-content { 
    line-height: 25px;
}
div#main section#content div.entry-content img { 
    max-width: 100%;
}

aside#sidebar div.widget_search input[type=text] {
    margin-bottom: 10px;
    padding: 5px 10px 5px 25px;
    width: calc(100% - 31px);
    background-color: #fafafa;
    color: #333;
    border: 1px solid #eee;
    border-radius: 3px;
}

div#main aside#sidebar .widget_samadams_news_widget {
    padding: 0 20px;
    margin-left: -20px;
    font-size: 14px;
}
div#main aside#sidebar .widget_samadams_news_widget ul { list-style: none; padding-left: 0px; }
div#main aside#sidebar .widget_samadams_news_widget h2 {
}

div#main aside#sidebar .widget_samadams_news_widget h3 { margin-bottom: 0px; }
div#main aside#sidebar .widget_samadams_news_widget p { margin-top: 0px; }
div#main aside#sidebar .widget_samadams_news_widget h3 a {
    color: #000f47;
    text-decoration: none;
}
.nojs div#main aside#sidebar .widget_samadams_news_widget h3 a { font-weight: bold; }

div#wrapper {
    -webkit-box-shadow: 0 0 10px 1px #ccc;
    box-shadow: 0 0 10px 1px #ccc;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    min-height: calc(100% - 51px);
    min-height: -moz-calc(100% - 51px);
    min-height: -webkit-calc(100% - 51px);
}
x:-o-prefocus, div#wrapper {
    min-height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: #000f47;
    line-height: 1em;
    font-weight: bold;
    margin-top: .3em;
    margin-bottom: .6em;
}

h1 { font-size: 2.1em; }

header { padding: 20px 0px 0px; }

div#wrapper > header > h1 {
    font-size: 1.5em;
    font-style: italic;
    text-align: center;
}

header div#logo {
    font-size: 70%;
    margin: 0 auto 20px;
}
header div#logo a { text-decoration: none; }
header div#logo,
header div#logo img {
    width: 170px;
}

header div#search {
    float: right;
    margin-top: -81px;
    width: 199px;
}
header div#search .social_language { 
    font-size: 14px;
}
header div#search .social_language .language_switcher { 
    font-weight: bold;
    float: right; 
    text-align: right;
}

header div#search .social_language #social_notice {
    display: none;
    font-size: 10px;
    line-height: 10px;
    position: absolute;
    background-color: #fefefe;
    padding: 1px 4px 4px;
    color: #333;
    opacity: 0.9;
    width: 37px;
}

div#newsletterwidget-3 {
    background-color: #d47c7c;
    padding: 3px 15px 15px;
    color: #ffffff;
}

div#newsletterwidget-3 div.newsletter-widget {
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
}

div#newsletterwidget-3 h2 { color: #ffffff; }
div#newsletterwidget-3 input[type=submit] { 
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
div#newsletterwidget-3 input[type=text] { 
    -webkit-box-flex: 2;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 2;         /* OLD - Firefox 19- */
    -webkit-flex: 2;          /* Chrome */
    -ms-flex: 2;              /* IE 10 */
    flex: 2;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
}

div#newsletterwidget-3 input[type=text] {
    background-color: #ffffff;
    color: #61696b;
    padding: 5px 10px;
    border: 0;
}
div#newsletterwidget-3 input[type=submit] {
    background-color: #97011b;
    color: #ffffff;
    font-weight: bold;
    border: 0;
    padding: 5px 10px;
}

div#es_newsletter_subscription_widget-2 {
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
}
.home div#es_newsletter_subscription_widget-2 {
    margin-left: -20px;
    margin-top: 10px;
    position: relative;
}
div#es_newsletter_subscription_widget-2 label.error {
    color: #D8000C;
    border: 1px solid #D8000C;
    background-color: #FFBABA;
    position: absolute;
    padding: 5px 10px;
    margin-top: 40px;
    left: 0px;
    width: 100%;
    font-size: 14px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.home div#es_newsletter_subscription_widget-2 input[type=email] {
    width: 100%;
}

div#es_newsletter_subscription_widget-2 input[type=email],
header div#search #duckduckgo-search-1 input {
    padding-left: 30px;
    border: 1px solid #e2e4e9;
    height: 30px;
    width: 169px;

    background: #fefefe; /* Old browsers */
    font-size: 14px;

    /* IE9 SVG, needs conditional override of 'filter' to 'none' */

    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmVmZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZGVjZWQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);

    background: -moz-linear-gradient(top,  #fefefe 0%, #edeced 100%); /* FF3.6+ */

    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefefe), color-stop(100%,#edeced)); /* Chrome,Safari4+ */

    background: -webkit-linear-gradient(top,  #fefefe 0%,#edeced 100%); /* Chrome10+,Safari5.1+ */

    background: -o-linear-gradient(top,  #fefefe 0%,#edeced 100%); /* Opera 11.10+ */

    background: -ms-linear-gradient(top,  #fefefe 0%,#edeced 100%); /* IE10+ */

    background: linear-gradient(to bottom,  #fefefe 0%,#edeced 100%); /* W3C */

    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefefe', endColorstr='#edeced',GradientType=0 ); /* IE6-8 */
}

div#es_newsletter_subscription_widget-2 input[type=email] {
    padding-left: 10px;
    width: 100%;
    border: none;
}

div#es_newsletter_subscription_widget-2 span { 
    display: block; 
    overflow: hidden;
    border: 1px solid #e2e4e9;
}

aside#cta {
    background-color: #ececec;
    clear: both;
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
    padding: 0px;
    border: 1px solid #cdcdcd;
    margin: 0px -1px;
    color: #6c6c6c;
}

div.clear { clear: both; }
div.social { 
    float: left; 
}

aside#cta div#cta_left { 
    min-width: 460px;
    width: 40%; 
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
    text-align: center;
    overflow: hidden;
}

aside#cta div#cta_right { 
    width: 60%;
    -webkit-box-flex: 2;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 2;         /* OLD - Firefox 19- */
    -webkit-flex: 2;          /* Chrome */
    -ms-flex: 2;              /* IE 10 */
    flex: 2;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
    position: relative;
    padding-left: 20px;
}

aside#cta div#cta_donate_block { 
    overflow: auto; 
    margin-bottom: 15px; 
}

aside#cta p#cta_button_text {
    margin: 1px 20px 8px 0px;
}

.widget_samadams_donate_button_widget a#cta_donate_button,
aside#cta a#cta_donate_button {
    margin-right: 20px;
    font-size: 24px;
    color: white;
    font-weight: bold;
    padding: 20px 20px 0px;
    outline: 1px solid #c86e05;
    border: 1px solid #ffa538;

    background: rgb(255,151,25); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(255,151,25,1) 0%, rgba(254,140,1,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,151,25,1)), color-stop(100%,rgba(254,140,1,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(255,151,25,1) 0%,rgba(254,140,1,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(255,151,25,1) 0%,rgba(254,140,1,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(255,151,25,1) 0%,rgba(254,140,1,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(255,151,25,1) 0%,rgba(254,140,1,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff9719', endColorstr='#fe8c01',GradientType=0 ); /* IE6-9 */
}
aside#cta a#cta_donate_button {
    float: left;
    text-decoration: none;
    text-align: center;
    height: 37px;
    vertical-align: middle;
    display: table-cell;
}
.widget_samadams_donate_button_widget a#cta_donate_button {
    display: block;
    margin: 20px 0px 30px;
    text-decoration: none;
    text-align: center;
    height: 37px;
}

aside#cta div#cta_right div#payment_methods {
    background: #cdcdcd;
    font-weight: bold;
    margin-left: -20px;
    height: 31px;
    font-size: 14px;
    padding-top: 12px;
    padding-left: 20px;
    padding-bottom: 12px;
    width: 100%;
}
aside#cta div#cta_right div#payment_methods img {
    position: relative;
    top: 6px;
    padding-left: 5px;
}

aside#cta blockquote {
    margin: 30px 0px;
    padding: 0px;
    padding-right: 115px;
    font-size: 22px;
    line-height: 26px;
    font-weight: bold;
}

aside#sidebar h2 { font-size: 20px; }

.archive article,
.category article,
.search-results article { border-bottom: 1px solid #c6c6c6; }

.archive article:last-of-type,
.category article:last-of-type,
.search-results article:last-of-type { border-bottom: none; }


div#es_newsletter_subscription_widget-2 input[type=submit],
body > div#wrapper > nav {
    height: 50px;
    background-color: #000f47; 
    font-size: 23px;
}
body >  footer {
    min-height: 45px;
    background-color: #000f47;
    font-size: 18px;
    padding-top: 6px;
    padding-left: 20px;
    position: relative;
    color: #ffffff;
    clear: both;
}
body > footer > p { 
    padding-top: 7px;
    padding-bottom: 12px;
    margin: 0;
}
/* Opera fix */
body:before {
    content: "";
    height: 100%;
    float: left;
    width: 0;
    margin-top: -32767px;
}

div#es_newsletter_subscription_widget-2 input[type=submit] {
    font-weight: bold;
    height: 32px;
    color: white;
    float: right;
    margin-left: 5px;
}

footer div.menu-footer-container { text-align: right; }
    
body > footer a,
nav a { 
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px;
}

footer li,
nav li {
    float: left;
}

nav .current-submenu-item,
nav .current-menu-item { 
    font-weight: bold;
}

nav ul#menu-main-menu > li:first-of-type,
footer li:first-of-type { padding-left: 0px; }

footer li:last-of-type,
nav li:last-of-type { margin-right: 0px; }

footer ul,
nav ul {
    list-style: none;
    padding: 0px;
    position: relative;
}

footer ul#menu-footer { display: inline-block; margin-bottom: -5px; }

av { 
    position: relative; 
    clear: both;
}

.nojs nav li.current-menu-parent,
nav li.active-menu a,
nav ul.sub-menu { 
    background-color: #f6f6f8;
    color: #000f47;
}
.nojs nav li.current-menu-parent a,
nav li.active-menu a {
    color: #000f47;
}
.nojs nav li.current-menu-parent,
.nojs nav li.active-menu {
    border: 1px solid #f6f6f6;
}
.nojs nav ul.sub-menu { display: none; }
.nojs nav .current-menu-parent ul { display: block; }
.nojs nav ul.sub-menu li.current-menu-item { font-weight: bold; }
nav ul.sub-menu { 
    width: 100%;
    left: 0px;
    position: absolute;
    padding: 7px 0px;
}

/* Hack to make submenu work without JS */
.nojs nav ul.sub-menu a:hover { 
    background-color: #F6F6F8 !important;
    color: #172352 !important;
}

/* On hover main menu item, show submenu item */
.nojs nav ul#menu-main-menu > li:hover > ul.sub-menu {
    display: block;
    z-index: 999;
}

.nojs div#main { margin-top: 50px; }
.nojs .home div#main { margin-top: 0px; }
/* end hack :) */

.widget_samadams_toc_widget ul { 
    list-style: none; 
    padding: 0px;
}
.widget_samadams_toc_widget li {
    padding: 5px 0px;
}
.widget_samadams_toc_widget a {
    font-size: 16px;
}

.widget_samadams_toc_widget li.level-3 {
    margin-left: 20px;
}
.widget_samadams_toc_widget li.level-4 {
    margin-left: 40px;
}
.widget_samadams_toc_widget li.level-5 {
    margin-left: 60px;
}

.widget_samadams_toc_widget a,
nav ul.sub-menu a {
    margin: 0px;
    text-decoration: none;
    color: #000f47;
}

nav ul.sub-menu a {
    font-size: 14px;
    padding: 5px 20px;
}

div.breadcrumbs a,
div.breadcrumbs {
    color: #6C6C6C;
    font-size: 14px;
}

i.es_search_icon {
    position: absolute;
    margin-top: 7px;
    margin-left: 8px;
}

.search #content p { font-size: 14px; }

/* Images */
.alignleft {
	float: left;
}

.alignright {
	float: right;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

img.alignleft {
	margin: 5px 20px 5px 0;
}
.wp-caption { max-width: 100% !important; }

.wp-caption.alignleft {
	margin: 5px 10px 5px 0;
}

img.alignright {
	margin: 5px 0 5px 20px;
}

.wp-caption.alignright {
	margin: 5px 0 5px 10px;
}

img.aligncenter {
	margin: 5px auto;
}

img.alignnone {
	margin: 5px 0;
}

.wp-caption .wp-caption-text,
.entry-caption,
.gallery-caption {
	color: #000;
    margin-top: 0px;
	font-style: italic;
	font-weight: 300;
    text-align: center;
    font-size: 0.9em;
}

img.wp-smiley,
.rsswidget img {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

.wp-caption.alignleft + ul,
.wp-caption.alignleft + ol  {
	list-style-position: inside;
}

/* Contact form styling */
.wpcf7 p { margin-bottom: 6px; }
#commentform label,
.wpcf7 label {
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
    clear: both;
    display: inline-block;
    width: 250px;
    vertical-align: top;
}
html body form.wpcf7-form input.quiz { width: 50px !important; } /* quiz input field */
#commentform label { min-width: 150px; }
.wpcf7 label > span { 
    color: grey; 
    font-style: italic;
    font-size: .8em; 
}
#commentform textarea,
.wpcf7 input, .wpcf7 textarea, .wpcf7 label {
    padding: 5px;
}
#commentform textarea, #commentform input,
.wpcf7 input, .wpcf7 textarea { 
    -webkit-box-flex: 3;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 3;         /* OLD - Firefox 19- */
    -webkit-flex: 3;          /* Chrome */
    -ms-flex: 3;              /* IE 10 */
    flex: 3;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
    font-size: 1em;
    max-width: 415px;
    border-radius: 0;
    border: 1px solid #cccccc;
    background-color: #fafafa;
    padding: 5px;
    font-family: "Ubuntu", sans-serif;
}
.wpcf7-form input[type=email],
.wpcf7-form textarea, .wpcf7-form input[type=text], 
#commentform textarea, #commentform input[type=text] {
    max-width: 415px;
    width: 100% !important;
}
#commentform textarea,
.wpcf7 textarea { flex: 3; }

#commentform input[type=submit],
.wpcf7 input[type=submit] {
    background-color: #000f47;
    color: #ffffff;
    border: 0;
    font-size: 1.2em;
    padding: 5px 10px;
}

#comments article.comment { margin-top: 10px !important; }
#comments .comment-meta { display: inline-block; }
#comments .avatar,
#comments .authormeta { float: left; }
#comments .avatar { margin-right: 5px; }


/* Noscript notice */
div#noscript_notice {
    background-color: #FFFF88;
    color: black;
    display: block;
    padding: 10px 20px 5px;
    font-size: 0.8em;
}
div#noscript_notice h1 { 
    font-size: 1em;
    font-weight: bold;
    margin-top: 0px;
}

/* IE < 10 crap */
.ie div#main aside#sidebar { float: left; }
.ie div#main section#content { float: left; width: 59%; }
.ie aside#cta { height: 285px; }
.ie aside#cta div#cta_right { width: 60%; float: left; height: 285px; }
.ie aside#cta div#cta_left { width: 38%; float: left; }
.ie footer { clear: both; }

/* Chrom(e)(ium) specific CSS */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    nav ul.submenu {
        border-left: 1px solid #000f47;
        border-right: 1px solid #000f47;
        border-bottom: 1px solid #000f47;
        margin-left: -1px;
    }
}

/* Mobile-specific styles */
/* Smartphones (portrait and landscape) */
@media only screen
/*and (min-width: 320px)*/
and (max-width: 480px) {
    #siteswitcher ul { 
        padding-left: 0px;
        padding-right: 0px;
    }
    div#main {
        display: block;
        position: relative;
        margin-top: 15px;
        background-color: #ffffff;
    }

    div#main aside#sidebar { width: 89%; }
    div#main section#content { width: 91%; padding: 0 20px; margin: 30px 0px; }
    body > div#wrapper > nav { height: auto; }
    nav ul#menu-main-menu { padding: 0px; }
    nav ul#menu-main-menu li { display: block; margin-top: 0px; }
    nav ul#menu-main-menu li.active-menu > a { padding-bottom: 0px; }
    footer li, nav li { display: block; float: none; overflow: hidden; }
    aside#cta { display: block; overflow: auto; }
    aside#cta div#cta_right { width: 100%; display: block; border: none; }
    aside#cta div#cta_left { display: none; }
    aside#cta blockquote { padding: 0px; }
    aside#cta div#cta_donate_block { margin-bottom: 5px; overflow: hidden; }
    aside#cta a#cta_donate_button { display: block; margin-bottom: 5px; width: 89%; }
    aside#cta p#cta_button_text { width: 100%; }
    div#main aside#sidebar .widget_samadams_news_widget { width: 101%; }
    aside#cta div#cta_right div#payment_methods {
        position: relative;
        height: 50px;
        overflow: auto;
        display: block;
        clear: both;
        padding: 2px 20px;
        margin: 0px;
        margin-left: -20px;
    }
    aside#cta div#cta_right div#payment_methods img {
        position: relative;
        padding-left: 0px;
    }
    body > div#wrapper > nav { height: inherit; }
    body > footer { margin-top: inherit; }
    body > div#wrapper > nav li, body > footer li { padding: 3px 0px; }

    nav ul.sub-menu {
        position: inherit;
        margin: 0px;
        width: inherit;
        left: 0px;
    }
    div#main aside#sidebar .widget_samadams_news_widget { padding: 0px 16px; }

    header div#search { 
        float: none; 
        margin-top: 0px; 
        margin-left: 20px;
        padding: 20px 0;
        padding-top: 0px;
        width: 89%;
    }

    header div#search #duckduckgo-search-1 input { width: 91%; }
}

/* Smartphones (landscape) */
@media only screen
and (min-width: 620px)
and (max-width: 820px)
{
    #siteswitcher ul { 
        padding-left: 0px;
        padding-right: 0px;
    }

    aside#cta {
        padding-right: 0px;
    }
    aside#cta div#cta_right {
        width: 65%;
    }
    aside#cta div#cta_left {
        width: 35%;
    }
    aside#cta blockquote {
        margin: 26px 0px !important;
        padding: 0 10px 0 0 !important;
    }
    aside#cta p#cta_button_text {
        font-size: .8em;
        margin: 1px 8px 8px 0;
    }
}
/* Smartphones (portrait) */

@media only screen
and (min-width: 480px)
and (max-width: 620px)
{
    #siteswitcher ul { 
        padding-left: 0px;
        padding-right: 0px;
    }
    div#main {
        display: block;
        position: relative;
        margin-top: 15px;
    }
    div#main aside#sidebar { width: 91%; }
    div#main section#content { 
        width: 91%; 
        padding: 0 20px; 
        margin: 30px 0px; 
    }

    header div#search { 
        float: none; 
        margin-top: 0px; 
        margin-left: 20px;
        padding: 20px 0;
        padding-top: 0px;
        width: 91%;
    }

    header div#search #duckduckgo-search-1 input { width: 91%; }

    aside#cta { display: block; overflow: auto; }
    aside#cta div#cta_right { width: 100%; display: block; border: none; }
    aside#cta div#cta_left { display: none; }
    aside#cta blockquote { padding: 0px; }
    aside#cta div#cta_donate_block { margin-bottom: 5px; overflow: hidden; }
    aside#cta a#cta_donate_button { display: block; margin-bottom: 5px; width: 89%; }
    aside#cta p#cta_button_text { width: 100%; }
    div#main aside#sidebar .widget_samadams_news_widget { width: 101%; }
    aside#cta div#cta_right div#payment_methods {
        position: relative;
        height: 50px;
        overflow: auto;
        display: block;
        clear: both;
        padding: 2px 20px;
        margin: 0px;
        margin-left: -20px;
    }
    aside#cta div#cta_right div#payment_methods img {
        position: relative;
        padding-left: 0px;
    }

    div#main aside#sidebar .widget_samadams_news_widget { padding: 0px 16px; }
}

/* Tablets (portrait and landscape) */
@media only screen
and (min-width: 480px)
and (max-width: 900px) {
    #siteswitcher ul { 
        padding-left: 0px;
        padding-right: 0px;
    }
    nav li { 
        float: none !important;
    }
    nav ul {
        width: 50%;
        margin-bottom: 2px;
        margin-top: 0px;
    }

    nav a { margin-top: 0px; }

    nav { height: auto !important; }

    nav ul.active-submenu {
        padding-bottom: 0px;
        position: absolute;
        padding-right: 1px;
        padding-top: 4px;
        left: 100%;
        top: -1px;
        height: 100%;
    }
}


/* iPads (landscape) */
/* iPads (portrait) */

/* iPhone 4 */
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
}
