@import url(http://fonts.googleapis.com/css?family=Cabin:400,600);

h1 {
    font-size: 2.0rem;
    margin-bottom: 0;
}

h2 {
    clear: both;
    font-size: 1.8rem;
    margin-bottom: 0;
}

div.navbar {
    width: 100%;
    margin-bottom: 1em;
}

div.header {
    background-size: 300% auto;
    padding: 0 10px 0 10px;
    box-sizing: border-box;
}

/* Larger than mobile */
@media (min-width: 400px) {
    div.header {
        background-size: 200% auto;
    }
}

/* Larger than phablet */
@media (min-width: 500px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/* Larger than phablet */
@media (min-width: 650px) {
    h1 {
        font-size: 3.6rem;
    }
    h2 {
    }
}

/* Larger than tablet */
@media (min-width: 900px) {
    h1 {
        font-size: 5.0rem;
    }

    h2 {
        display: inline;
    } 

    div.navbar {
        float: right;
        width: 60%;
    }

    div.header {
        background-size: 100% auto;
    }
}

/* Larger than desktop */
@media (min-width: 1000px) {
}

/* Larger than Desktop HD */
@media (min-width: 1200px) {}

body {
    font-family: 'Cabin', sans-serif;
    margin: 0;
}

div.header {
    background-image: url(../images/cargoship.jpg);
    background-repeat: no-repeat;
    
    width: 100%;

    padding-top: 10px;
    padding-bottom: 10px;
}

div.header--content {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: white;
    margin-top: 0.5em;
}

h2 {
    margin-top: 0.5em;
}

h2 a {
    color: #eee;
    text-decoration: none;
}

h2 a:hover {
    color: #eee;
    text-decoration: underline;

}

.hidden {
    display: none;
}


.navbar {
    color: #1EAEDB;
    float: right;
    width: 60%;
}
.navbar ul {
    list-style-type: none;
    width: 100%;
}
.navbar ul li {
    float: left;
    text-align: center;
    width: 25%;
}
.navbar ul li.selected {
    background-color: #eee;
}

.navbar ul li a {
    color: #eee;
}

.navbar ul li.selected a {
    color: #333;
}

.navbar a {
    text-decoration: none;
}

div.content, .warning {
    max-width: 960px;
    margin-top: 2em;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px 0 10px; 
}

.warning p {
    background-color: #d7e6f2;
    font-weight: bold;
    padding: 1em;
    text-align: center;
}

.svg.warning {
    display: none;
}

div#year-control {
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1em;
}

div#year-control button{
    margin-right: 2px;
}

div#year-control a {
    display: inline-block;
    margin-right: 2px;
    text-decoration: none;
    color: #bbbbbb;
}

div#year-control span:nth-child(2n) a {
    color: #999999;
}

div#year-control span a.selected, div#year-control span a:hover {
    border-bottom: 3px solid #0FA0CE;
    color: #0FA0CE; 
}

.legend__icon {
    display: inline-block;
    height: 1em;
    margin-left: 1em;
    margin-right: 0.5em;
    width: 1em;
}

#legend {
    text-align: center;
}

#legend span {
    white-space: nowrap;
}

#legend a {
    color: #999999;
    text-decoration: none;
} 

#legend a.selected, #legend a:hover {
    color: #0FA0CE;
    font-weight: bold;
    text-decoration: underline;
}

div.footer {
    background-image: url("../images/cargoship.jpg");
    background-position: bottom;
    max-width: 100%;
    clear: both;
    margin-top: 80px;
}

div.footer p {
    color: white;
    font-size: 0.8em;

    padding: 1em 1em 3em 1em;
    margin: auto;
    max-width: 960px;
}

div.footer p span.divider {
    padding: 0 1em 0 1em;
}

div.footer a {
    color: #dddddd;
}

span.tooltip {
    background-color: white;
    border: 1px solid #999999;
    box-shadow: 0 0 1em #666666;
    border-radius: 2px;
    padding: 0.5em;
}


.industry--all {
    color: #222222;
    background-color: #222222;
}
.industry--agriculture {
    color: #298e32;
    background-color: #298e32;
}
.industry--clothing {
    color: #7a451f;
    background-color: #7a451f;
}
.industry--transport {
    color: #270ef1;
    background-color: #270ef1;
}
.industry--power {
    color: #b50011;
    background-color: #b50011;
}
.industry--manufacturing {
    color: #4ca6dc;
    background-color: #4ca6dc;
}
.industry--mining {
    color: #e66107;
    background-color: #e66107;
}
.industry--services {
    color: #640c67;
    background-color: #640c67;
}
