
/*I
MPORTANT LINK ABOUT FLEX AND HOW IT WORKS
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
*/

/*DEFAULT*/
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    padding: 0;
    color: #2c3e50;
    background-color: inherit;
    border: none;
    clear: right;
}

h1 { font-size: 18pt; }
h2 { font-size: 14pt; }
h3 { font-size: 13pt; }
h4 { font-size: 12pt; }
h5 { font-size: 11pt; }

body {
    display: flex;
    flex-direction: row;
    font-size: 0.95em;
}

.mainContainer {
    display: flex;
    flex: 1;
    flex-direction: row;
}

.mainContainer > *, header, footer {
    padding: .5em;
}

/*HEADER*/
header {
	border-bottom: 1px solid black;
}
.title > h1 {
	margin-top: 0;
    margin-bottom: 5px;
    padding: 0;
}

p#authors {
	font-size: 1.25em;
}

/*CONTAINER STYLES*/
.mainContainer > map-wrapper {
	flex: 3 1 50%;
    order: 1;
}

.mainContainer > graphs {
	flex: 1 1 50%;
    order: 1;
}

map-wrapper {
	display: flex;
	flex: 1;
	flex-direction: column;
}
div.map-dropdown {
	flex: 1 1 10%;
	order: 1;
	width: 100%;
	padding-left: 25%; /*BAD FIX FOR CENTER*/
}

div.map-year {
	flex: 1 1 10%;
	order: 2;
	width: 100%;
}

div.map-container {
	flex: 1 1 80%;
	order: 2;
	width: 100%;
}

#dropdown {
	width: 30em;
}

#map {
	text-align: center
}

.svg-container {
    display: inline-block;
    position: relative;
    width: 100%;
    vertical-align: top;
    overflow: hidden;
}

div.tooltip {   
 	position: absolute;           
	text-align: center;           
	padding: 2px;             
	font: 14px sans-serif;        
	background: white;   
	border: 0px;      
	border-radius: 8px;           
	pointer-events: none; 
	word-wrap: break-word;        
}

@media all and (max-width: 800px) {
    .content {
        flex-direction: column;
    }

    .content > nav {
        min-height: 100px;
        max-height: 100px;
    }
}


.axis path,
.axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}

.x.axis path {
  display: none;
}