#news-box {
    padding: .2em 1em;
    margin-top: 1em;
}

#news-intro {
    padding-top: 0.3em;
}

#news-date {
    /* font-style: italic; */
    vertical-align: middle;
    color: #777;
    font-size: 0.9em;
}

#news-title {
    margin-top: 0.3em;
    margin-bottom: 0.15em;
    font-size: 1.2em;
}

#news-text {
    font-size: 0.9rem;
}

#news-text p {
  margin: .3em 0;
}

#news-arrows {
    height: 1.5em;
    display: -webkit-box;
    display: flex;
    width: 16em;
    margin: auto;
    -webkit-box-align: center;
            align-items: center;
    flex-wrap: nowrap;
    -webkit-box-pack: justify;
            justify-content: space-between;
}

.news-arrow {
    width: 2em;
    color: #555;
    background-color: transparent;
    font-size: 1.4em;
    border: none;
    outline: none;
}

.news-arrow:disabled {
    color: #aaa;
}

.news-arrow-left {
    text-align: left;
    margin-right: 0.5em;
    border-radius: 0.25em 0 0 0.25em;
}

.news-arrow-right {
    text-align: right;
    margin-left: 0.5em;
    border-radius: 0 0.25em 0.25em 0;
}

.news-arrow:hover {
    background-color: rgba(230,230,230,0.6);
}

.news-arrow:disabled:hover {
    background-color: transparent;
}

/**********************************************************************
 * Transition
 *********************************************************************/
/* .news-box-next-enter, .news-box-prev-leave {
    opacity: 0.01;
    transform: translateX(-100px);
}

.news-box-next-enter.news-box-next-enter-active,
.newx-box-prev-enter.news-box-prev-enter-active {
    opacity: 1;
    transform: none;
    transition: all 100ms ease-in;
}

.news-box-next-leave.news-box-next-leave-active,
.news-box-prev-leave.news-box-prev-leave-active {
    transition: all 100ms ease-in;
}

.news-box-next-leave, .news-box-prev-enter {
    transform: translateX(100px);
    opacity: 0.01;
} */
#subscribe-msg {
	font-weight: bold;
	font-size: 1.2em;
	margin-bottom: 0.3em;
}

#form-inputs {
    background: "#efefef";
    border-radius: 2;
    padding: 10;
    display: "inline-block";
}

.sending {
    color: blue;
}

.error {
    color: red;
}

.success {
    color: green;
}

.input {
    font-size: 1.1em;
    margin: 0.08em;
}

#submit-button {
    margin-top: 0.7em;
    font-size: 1.1em;
		padding: .4em;
		max-width: 100%;
		width: 10em;
}
body {
    scroll-behavior: smooth;
}

/* Mobile grid layout */
#detail-button {
    grid-column: note / note-end;
    grid-row: note;
    align-self: end;
    margin: 0 auto 1em auto;
    width: 15em;
    visibility: hidden;
}

#share-button, #copyresults-button {
  display: none;
}

#map-wrapper {   
    display: grid;
    grid-template-columns: 
        [start map drilldown chart results note] 100vw [drilldown-end note-end end];
    grid-template-rows:
        [title] auto 
        [map-start] 70vw
        [map-end apology] 2em
        [colorbar] 3em
        [note] auto
        [chart-start results-start] auto
        [chart-end results-end]
}

/* Midsize grid layout */
/* @media screen and (min-width: 600px) {
    #map-wrapper {
        grid-template-columns: 
            [map drilldown chart results note] 2fr [note-end drilldown-end end];
        grid-template-rows:
            [content-start] auto
            [title] 3em
            [map-start] 450px
            [map-end colorbar] 5em
            [note] auto
            [chart-start results-start] auto
            [chart-end results-end];
    }
} */

/* Desktop grid layout */
@media screen and (min-width: 550px) {
    #map-wrapper {
        grid-template-columns:
            [start results map sharelink] .5fr [drilldown note] 1.5fr [note-end chart drilldown-end] 1.5fr [end];
        grid-template-rows:
            [title] auto
            [map-start chart-start] calc(66% - 6em)
            [note] calc(33% - 11em)
            [apology] 2em
            [sharelink] 6em
            [map-end colorbar] 5em
            [chart-end note-end results-start] auto
            [results-end];
        height: calc(100vh - 9em);
        max-height: 50em;
        min-height: 35em;
    }

    #detail-button {
        visibility: visible;
    }
    
    #share-button, #copyresults-button {
      display: block;
    }
}

@media screen and (max-width: 400px) {
    .button-bar {
        font-size: 4vw;
    }
}

/* Fix infinite screen problem 
    -> limit width of everything to 1400px */
/* @media screen and (min-width: 1400px) {
    #map-wrapper {
        width: 1500px;
        margin: auto;
    }
} */

/* Keep content from shrinking too much vertically */
/* @media screen and (max-height: 550px) {
    #map-wrapper {
        min-height: calc(550px - 3em);
    }
} */

#note {
    grid-column: note / note-end;
    grid-row: note;

    margin: 1em;
    padding: 0.5em;
    background-color: #fff;
    font-size: 0.85rem;
    align-self: center;
}

#share-button {
    grid-column: sharelink / note;
    grid-row: sharelink;
    z-index: 1;
    margin-left: 0.9em;
    width: 90%;
}

#title-and-state {
  grid-column: start / end;
  grid-row:  title;
  text-align: center;
}

#map-title {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
            align-items: center;
    flex-wrap: wrap;
    -webkit-box-pack: space-evenly;
            justify-content: space-evenly;
    margin-bottom: 10px;
}

#map-title > * {
    vertical-align: middle;
}

#news-section {
    grid-column: news;
    grid-row: news-start / news-end;
}

/* #map-content {
    grid-column: content;
    grid-row: content-start / content-end;
    align-self: stretch;
    justify-self: stretch;
} */

#map-charts {
    grid-column: chart / end;
    grid-row: chart-start / chart-end;
}

#map-toggles {
    /* align-self: end; */
    /* display: inline-block; */
    width: 23em;
}

#map-colorbar {
    grid-column: map / end;
    grid-row: colorbar / chart-end;
    justify-self: stretch;
    align-self: stretch;
}

#map-colorbar-drilldown {
    grid-column: map / drilldown-end;
    grid-row: colorbar;
    justify-self: stretch;
    align-self: stretch;
}

#usa-map {
    grid-column: map / end;
    grid-row: map-start / map-end;
    position: relative;
}

#drilldown-map {
    grid-column: map / drilldown-end;
    grid-row:  map-start / map-end;
    position: relative;
}

#results {
    grid-column: results / end;
    grid-row: results-start / results-end;
}

.svg-wrapper {
    height: 100%;
}

/**********************************************************************
 * Positioning for the charts
*********************************************************************/
.chart-group {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
            flex-direction: column;
    justify-content: space-around;
    height: 100%;
    margin: 0 0.5em;
    padding: 0 0.5em;
    background-color: #fff;
    border: 1px solid #aaa;
}

.chart {
    min-height: 150px;
}

/**********************************************************************
 * Info box and other stuff
 *********************************************************************/
.info-box {

}

#results-area {
    position: absolute;
    bottom: 1em;
    left: 1em;
    font-size: 0.85rem;
}

#map-title > *,
#year-select > * {
    vertical-align: middle;
}

#main-text {
    text-align: left;
}

#intro-text {
    font-size: 0.9em;
}

/**********************************************************************
 * Buttons!
 *********************************************************************/
 .button {
     background-color: rgba(255, 255, 255, 0.8);
     border: 1px solid #aaa;
     border-radius: 0.5em;
     outline: none;
 }


#button-drillup {
    position: absolute;
    top: -2em;
    left: 1em;
    padding: 0.5em;
}

/* #map-content {
    padding: 1em;
    text-align: center;
} */

.year-text {
  /* display: inline-block; */
  padding-left: 0.3em;
  padding-right: 0.3em;
  width: 20em;
}

.button-bar {
    border-radius: 0.5em;
    display: inline-block;
    overflow: hidden;
    border: 1px solid #aaa;
}

.button-bar .button-toggle {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.85em;

    outline: none;
    background-color: #fff;
    border: none;
    border-right: 1px solid #aaa;
    height: 100%;
    margin: 0;
}

.colorbar-desc {
    text-align: center;
    margin-bottom: 0.25em;
}

.button-bar .button-toggle:last-child {
    border-right: none;
}

.button-toggle:hover {
    /* 
    font-weight: bold; 
    background-color: #ff831bb8;
    box-shadow: 1px 1px 1px #aaa;   
    */ 
}

.button-toggle.selected {
    background-color: #e77500;
    color: #fff;
}

#year-select {
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 0.25em;
    margin-top: -4px;
    text-align: center;
    font-weight: normal;
    height: 2em;
    display: -webkit-box;
    display: flex;
    width: 10em;
    -webkit-box-align: center;
            align-items: center;
    flex-wrap: nowrap;
    -webkit-box-pack: justify;
            justify-content: space-between;
}



.button-year-left {
  padding-left: .2em;
  padding-right: .5em;
  border-radius: 0.15em 0em 0em 0.15em;
}

.button-year-right {
  padding-left: .5em;
  padding-right: .2em;
  border-radius: 0em 0.15em 0.15em 0em;
}

.button-year {
    border: none;
    outline: none;
    background-color: #fff;
    font-size: 1.5em;
}


.button-year:hover {
    background-color: rgba(240,240,240, 1);
}

.button-year:disabled {
    background-color: transparent;
}

.display-year {
    margin: 0 0.5em;
}

.button-wrapper {
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 0.5em;
    /* box-shadow: 1px 1px 2px #aaa; */

    display: inline-block;
    margin: 0.5em auto;
}

#map-data-toggle {
    overflow: hidden;
    text-align: center;
    width: 100%;
    height: 2em;
}

.button-data-toggle {
    font-size: 0.85em;
    background-color: #fff;
    border: none;
    box-shadow: none;
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    width: 50%;
    outline: none;
    margin: 0;
    border-right: 1px solid #aaa;
    font-weight: normal;
}

.button-data-toggle:last-child {
    border-right: none;
}

.button-data-toggle.selected, .button:focus {
    background-color: #e77500;
    color: #fff;
}


/**********************************************************************
 * CSS Transitions for fade in/out
 *********************************************************************/
.map-fade-enter {
    opacity: 0.01;
}

.map-fade-enter.map-fade-enter-active {
    opacity: 1;
    -webkit-transition: all 500ms ease-in;
    transition: all 500ms ease-in;
}

.map-fade-leave.map-fade-leave-active {
    opacity: 0.01;
    -webkit-transition: all 500ms ease-in;
    transition: all 500ms ease-in;
}

.map-fade-leave {
    opacity: 0.01;
}

.chart-slide-enter,
.chart-slide-leave {
    -webkit-transform: translate(400px);
            transform: translate(400px);
    opacity: 0.01;
}

.chart-slide-enter.chart-slide-enter-active {
    -webkit-transform: none;
            transform: none;
    opacity: 1;
    -webkit-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
}

.chart-slide-leave.chart-slide-leave-active {
    -webkit-transform: translate(400px);
            transform: translate(400px);
    opacity: 0.01;
    -webkit-transition: all 300ms ease-out;
    transition: all 300ms ease-out;
}

/** Share link */
#share-nolink {
    cursor: pointer;
    text-decoration: underline;
    color: #888;
}

#share-link {
    width: 90%;
    height: 1em;
    font-size: 1em;
    padding: 0.25em;
}

/**********************************************************************
 * Tooltips
 *********************************************************************/

.tooltip {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5em;

    border: 1px solid #000;
    border-radius: 0.25em;
    box-shadow: 1px 1px 2px #aaa;
    font-size: 0.8em;
    pointer-events: none;
}

#tooltip-usa {
    /* Fix width to avoid wacky resizing issues */
    width: 15em;
}

.tooltip-line {

}

.tooltip-result, .tooltip-state {
    font-weight: bold;
}

.tooltip-result {
  float: right;
}

#no-shapes-apology {
  grid-column: start / note-end;
  grid-row: apology;
  z-index: 1;
}


body {
    line-height: 1.3;
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.bg-gray {
  background-color: #fbfbfb;
}

.container, .container2 {
	margin: auto;
	max-width: 50em;
}

.container {
	padding: 1em;
}

.container2 {
	padding: 1em 0em;
}

p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

h2, h3, h4, h5 {
  margin: 0;
    margin-top: 1em;
    margin-bottom: 0.2em;
    margin-left: 0;
    margin-right: 0;
}


select, input {
    padding: 5px 1.2em 5px 0.6em;
    border: 1px solid #aaa;
    border-radius: 5px;
    width: calc(100% - 2em);
}

a, .orange {
    color: #e77500;
    text-decoration: none;
    /* font-weight: bold; */
}

a:hover, .burnt {
    color: #FF831B;
    /* font-weight: bold; */
    text-decoration: none;
}

button {
    cursor: pointer;
}

button:disabled{
    cursor: auto;
    background-color: transparent;
}

#menu-mobile {
    display: none;
    cursor: pointer;
    position: absolute;
    padding: 0;
    right: 0%;
    margin-right: 0.5em;
    font-size: 16pt;
    margin-top: 10px;
}

#menu-mobile:hover {
    background-color: #ccc;
}

#menu-items {
    position: absolute;
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
            flex-direction: row;
    -webkit-box-pack: stretch;
            justify-content: stretch;
    align-content: stretch;
    right: 0%;
    padding-right: 0.5em;
    margin-top: 14px;
}

.submenu-item {
    padding: 0.25em 0.5em 0.25em 0.5em;
}

.submenu {
    display: none;
    font-size: 12pt;
    text-align: left;
    background-color: #FFF;
    margin-left: -4em;
    margin-top: 0.75em;
    box-shadow: 1px 1px 1px #aaa;
    border: 1px solid #aaa;
}


.menu-item:hover .submenu {
    display: block;
    position: absolute;
}

#site-title {
    font-weight: bold;
    text-align: left;
    padding-left: 0.2em;
    position: absolute;
    left: 0%;
    display: -webkit-box;
    display: flex;
    /* justify-content: center; */
    -webkit-box-align: center;
            align-items: center;
}

#site-title h3 {
    font-size: 15pt;
    margin-top: -2px;
    margin-bottom: 0;
}

#site-title p {
    font-size: 12pt;
    margin: 0;
    color: #000;
    font-weight: normal;
}

.menu-item {
    font-size: 12pt;
    padding-left: 0.3em;
    padding-right: 0.3em;
    margin-left: 0.35em;
    margin-right: 0.35em;
    color: #9F9992;
    text-align: center;
}

.donate-link {
    color: black;
}

@media screen and (max-width: 910px) {
    #menu-mobile {
        display: block;
    }

    #menu-items {
        display: none;
        right: 0.5em;
        border: 1px solid #aaa;
        border-top: none;
        margin-top: 51px;
        height: auto;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
                flex-direction: column;
        background-color: #fff;
        box-shadow: 0px 2px 2px #aaa;
        padding-right: 0;
    }

    .submenu {
        display: -webkit-box;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
                flex-direction: column;
        text-align: center;
        margin: 0;
        border: none;
        box-shadow: none;
    }

    .submenu-item, .menu-item {
        padding: 0;
        padding: 0.4em 1em;
    }

    .submenu-parent {
        display: none;
    }

    .menu-item:hover .submenu {
        display: -webkit-box;
        display: flex;
        position: static;
    }
}

@media screen and (max-width: 440px) {
    #site-title h3 {
      font-size: calc(4.9vw - .1em);
    }

    #site-title p {
      font-size: calc(4.4vw - .1em);
    }
}


nav#menu {
    position: fixed;

    top: 0;
    left: 0;

    height: 3em;
    width: 100%;

    padding-top: 0.2em;
    padding-bottom: 0.2em;
    z-index: 100;

    background-color: #fff;
    border-bottom: 1px solid #aaa;
    box-shadow: 0 1px 2px #aaa;
}

#content {
    margin-top: 3em;
}

#logo {
    /* margin-top: -0.2em; */
    width: auto;
    height: 48px;
}

.shadow-box {
    background-color: #f6f6f6;
    border: 1px solid #D0CCC7;
}

.img-thumbnail {
  border-radius: 3px;
  margin-bottom: 0.5em;
}

#copyright {
    padding: .5em;
    margin: .5em;
    font-weight: bold;
}

.footnote {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #777;
  font-size: 0.8em;
}

#tabs {
    width: calc(100% + 30px);
    background-color: #ECE9E6;

    margin-left: -15px;
    margin-right: -15px;
    border-bottom: 1px solid #000;
}

.btn-group-container {
    margin-top: 1em;
}

/* override */
.btn-primary {
    /* background-image: none; */
    background-color: #e77500;
    /* border-color: #E36903; */
    color: #fff;
    /* font-weight: bold; */
    font-size: 1.2em;
    border-radius: 5px;
    border: 0px;
    margin-top: .2em;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.active,
.btn-primary.active:hover {
    background-color: #E77500;
}

/* *:hover > .menu-item {
    border-bottom: 3px solid #FF831B;
} */

.img-box {
    width: 50%;
    margin: 1em;
    background-color: #e2e2e2;
    padding: 1em;
    border-radius: 0.6em;
    font-size: .85em;
}

figure {
    width: 20em;
    margin: 1em;
    background-color: #e2e2e2;
    padding: 1em;
    border-radius: 0.6em;
    font-size: .85em;
}

figure img {
    width: 100%;
}

figure.left {
    float: left;
}

figure.right {
    float: right;
}

figure.full {
  width: calc(100% - 2em);
  margin: 1.5em auto;
}

@media only screen and (max-width: 500px) {
  figure.left, figure.right {
    float: none;
    margin: auto;
    margin-top: .5em;
  }
}


.link-text, .link-desc, .link-box,
.menu-item, .contact-email {
    display: block;
    position: relative;
}

.link-box {
    margin-bottom: 5%;
}

.link-desc, .contact-desc, .newspaper {
    font-style: italic;
}

.clear {
    clear: both;
}

.email-at::after {
    content: "@";
}

.email-dot::after {
    content: ".";
}

.page-title {
    display: block;
    width: 100%;
    margin-bottom: 1em;
}

.title-text {
    font-weight: bold;
    /* padding: 0.5em 1em 0.5em; */
    border-radius: 0.25em;

    color: #000;
}

.center {
  text-align: center;
}

/* .button-holder {
    padding-top: 2em;
    padding-bottom: 2em;
    text-align: center;
}

.gerry-btn {
    width: 10em;
    height: 2em;
    font-size: 16pt;

    background-color: #FFF;
    color: #000;
    border-color: #E36903;
    opacity: 0.95;

    margin-top: 2em;
    margin-bottom: 2em;
}
 */

.pdfreader {
  width: 100%;
  height: 1200px;
  margin-top: 1em;
}

hr {
  border:1px solid #ddd;
}#video_player {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
	height: auto;
	/* margin-top: 1em; */
	margin-bottom: 1em;
	border-radius: 3px;
}

#video_player iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.iframe-container {
	overflow: hidden;
	padding-top: 56.25%;
	position: relative;
  }
   
.iframe-container iframe {
	border: 0;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

#mission {
	text-align: center;
}


#mail-section {
	flex-wrap: wrap;
	display: -webkit-box;
	display: flex;
	border-radius: 7px;
	background-color: #e2e2e2;
	margin: 2em auto;
	padding: 1em;
}

#subscribe-form {
	-webkit-box-flex: 1;
	        flex: 1 1 200px;
	margin: 15px;
}

#mail-archive-holder {
	-webkit-box-flex: 1;
	        flex: 1 1 400px;
	margin: 15px;
}

#mail-title {
	margin: 0px 15px;
	width: 100%;
}

.campaign {
	text-indent: -1em;
	padding-left: 1em;
}