/* Fonts */
@font-face {
  font-family: "Titillium_Web";
  src: url("../fonts/Titillium_Web/TitilliumWeb-Bold.ttf");
  font-weight: 700;
}
@font-face {
  font-family: "Titillium_Web";
  src: url("../fonts/Titillium_Web/TitilliumWeb-Regular.ttf");
  font-weight: 400;
}


/* HTML Tags */
html {
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #9D4844, #434867);
  padding: 2rem;
}

h1,h2,h3,h4,h5,h6,p {
  margin: 0;
  color: #434345;
}
h1,h2,h3,h4,h5,h6 {
  font-family: "Titillium_Web", sans-serif;
  font-weight: 700;
  padding-bottom: 0.25em;
}
h1 {
  font-size: 2.75rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.125rem;
}
p {
  font-family: "Titillium_Web", sans-serif;
}
button {
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}
button:hover {
  background-color: #707070;
}

.moreinfo_icon {
	width:20px;
	filter: invert();
}

.steps > h3 {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}

.upper_right_corner {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* Atomic Classes */

.color_white {
  color: #fff;
}
.color_blue {
  color: #434867;
}
.color_purple {
  color: #61366E;
}
.color_red {
  color: #9D4844;
}
.color_yellow {
  color: #CC9F53;
}
.bg_red {
  background-color: #9D4844;
}
.bg_yellow {
  background-color: #CC9F53;
}
.bg_gray {
  background-color: #C8C8C8;
}
.font_bold {
  font-weight: bold;
}
.text_sm {
  font-size: 0.875rem;
}
.p4 {
  padding: 1rem;
}
.p6 {
  padding: 1.5rem;
}
.py2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.pb2 {
  padding-bottom: 0.5rem;
}
.pb4 {
  padding-bottom: 1rem;
}


/* Layout */
.grid {
  display: grid;
}
.row {
  display: flex;
  flex-direction: row;
}
.column {
  display: flex;
  flex-direction: column;
}
.justify_content_end {
  justify-content: flex-end;
}
.justify_content_around {
  justify-content: space-around;
}
.justify_content_center {
  justify-content: center;
}
.align_items_center {
  align-items: center;
}
.align_center {
  text-align: center;
}

/* Components */

.card {
  background-color: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.checkbox {
	width: 3rem;
}

.unchecked {
	opacity: 0.1;
	filter: "saturate(0%)";
}

.legend_box {
  height: 1rem;
  width: 1rem;
  margin-right: 0.5rem;
  margin-top: 2px;
}

/* IDs */

#popup_notes {
	font-size:12px;
	font-family: "Titillium_Web";
}

#dropdown {
  font-size: 2rem;
  font-weight: bold;
}
#dropdown > select {
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  border-bottom: 2px solid white;
}
#dropdown > select:focus {
  outline: none;
}

#grid {
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 1rem;
}

#map {
  width: 100%;
	height: calc((100vw - 380px - 8rem) / 1.75);
}

#step_container {
  position: relative;
  min-height: 532px;
}

#overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: rgba(255,255,255,0.875);
  box-sizing: border-box;
  border-radius: inherit;
}

#middle_row,
#bigchart_container {
  grid-column-start: 1;
  grid-column-end: 3;
}

#bigchart_container {
  position: relative;
}

#legend {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border: 1px solid #C1C1C1;
  padding: 0.75rem 1rem;
}

#middle_row > div {
  width: 25%;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#middle_row > div:not(:last-child) {
  justify-content: space-between;
  border-right: 1px solid #707070;
}

#turnout {
	width:100px;
	height:100px;
}

#mailin {
	width:100px;
	height:100px;
}

#delta {
	width:200px;
	height:100px;
}

#application {
	min-height:100px;
	min-width:200px;
}

#bigchart {
	width: 100%;
	height: 200px;
}

.steps {
  flex: 1;
  position: relative;
  justify-content: space-evenly;
}
.steps:not(:last-child) {
  border-bottom: 1px solid #707070;
}

.steps .upper_right_corner {
  padding-left: 0.125rem;
}

div.moreinfo {
  max-width:400px;
  position: absolute;
  padding: 5px;
  font-family:helvetica;
  text-align:left;
  font-size:12px;
  font-style:bold;
  color: #434867;
  background: white;
  opacity:0.0;
  border: 0.5px solid rgb(234,234,234);
  border-radius: 0px;
  pointer-events: none;
  z-index:4;
  padding:5px 15px 5px 15px;
}

div.tooltip {
  position: absolute;
  text-align: center;
  padding: 5px;
  font-style:bold;
  color: #434867;
  background: white;
  opacity:0.0;
  border: 0.5px solid rgb(234,234,234);
  border-radius: 0px;
  pointer-events: none;
  z-index:4;
  padding:5px 15px 5px 15px;
}

.tooltip h3 {
	margin:4px;
}

.popup_row div {
	display:inline-block;
	max-width:150px;
}

.popup_element p {
	font-size:12px;
	margin:3px;
}

.popup_element h2 {
	font-size:28px;
  margin:4px;
  color: #9D4844;
}

.upper_right_corner > img {
  opacity: 25%;
}

.moreinfo > img {
  width: 0.625em;
  vertical-align: super;
  padding-left: 0.125em;
}

#page_info > img {
  filter: invert(1) brightness(100);
}

#map_info > img,
#bigchart_info > img {
  opacity: 0.25;
}
