/* CSS reset */
a,abbr,acronym,address,applet,big,blockquote,body,caption,cite,code,dd,del,dfn,div,dl,dt,fieldset,font,form,h1,h2,h3,h4,h5,h6,html,iframe,img,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,sub,sup,table,tbody,td,tfoot,th,thead,tr,tt,ul,var{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit}:focus{outline:0}body{line-height:1;color:#000;background:#fff}ol,ul{list-style:none}table{border-collapse:separate;border-spacing:0}caption,td,th{text-align:left;font-weight:400}blockquote:after,blockquote:before,q:after,q:before{content:""}blockquote,q{quotes:"" ""}.alignleft{float:left}.alignright{float:right}.clear{clear:both}

/* CSS */
body{
    font-family: "Georgia";
    font-weight: 300;
    font-size: 18px;
    line-height: 1.5em;
    background-color: #f2e8dc;
    background-image: url('img/studebaker.png');
    opacity: 1.00;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: 85vw;
    color: #01080D;
}

svg text {
    font-family: inherit;
    color: #f2e8dc;
}

#unemployment-viz .domain,
#wages-viz .domain {
    stroke: #f2e8dc;
}

#unemployment-viz .tick line,
#wages-viz .tick line {
    stroke: #f2e8dc;
}

#unemployment-viz .tick text,
#wages-viz .tick text {
    fill: #f2e8dc;
}

h1{
    font-size: 3em;
    line-height: 1em;
    font-weight: 100;
    margin-bottom: 50px;
}

h2{
    font-size: 1em;
    line-height: 1em;
    font-weight: 100;
    margin-bottom: 50px;
}

h1 strong, h3{
    font-weight: 700;
}
h3{
    font-size: 2em;
    text-align: center;
    margin-bottom: 50px;
}

.scrolly {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10vh;
}

.scrolly-image {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}   

.scrolly-image.active {
    opacity: 1;
    z-index: 2;
}

#scrolly-unemployment {
    margin-top: 15vh;
}

#scrolly-wages {
    margin-top: 15vh;
}

#scrolly-map {
    margin-top: 15vh;
}

article {
    position: relative;
    padding: 0;
    z-index: 3;
    order: 1;
    width: 250px;
    flex-shrink: 0;
}

section.generic{
    width: 500px;
    margin: 0 auto;
    background-color: #f2e8dc;
    padding-left: 25px;
}

section#intro{
    padding: 50px 0 0 0;
}
#header{
    background: #000000;
    padding: 5px 10px;
    color: #F2E8DC;
    font-size: .8em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
}
figure {
    position: -webkit-sticky;
    position: sticky;
    top: 10vh;
    display: grid;
    flex: 1;
    min-width: 0;
    order: 2;
    margin: 0;
    background-color: #F2E8DC;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    z-index: 0;
}

#avicii_viz{
    background-color: #01080D;
    width: 750px;
    float: right;
}

.step {
    margin: 15px 0;
}

.step:last-child {
    margin-bottom: 0;
}

.step h2, .step p{
    margin: 0;
}

.step p:last-child {
    margin-bottom: 40px;
}

.step h2{
    text-align: left;
    font-size: 1.3em;
    padding-top: 15px;
    padding-bottom: 15px;
    line-height: .9em;
}

.step h2, .step p{
    padding-top: 15px;
    padding-right: 15px;
    padding-left: 15px;
    padding-bottom: 15px;
    color: #01080db1;
    background-color:#f2e8dccc;
}

.step.is-active h2, .step.is-active p{
    color: #01080D;
    background-color:#f2e8dc;
}

p{
    text-align: justify;
    margin-bottom: 25px;

}
p strong{
    font-weight: 700;
}
ul{
    margin-bottom: 25px;
}
ul li{
    list-style: disc;
    padding-left: 15px;
    margin-left: 15px;
    margin-left: 15px;
}
.step p{
    font-size: .8em;
}

.comment_box {
    color:#000;
    background-color:#a6055e;
    font-size: .8em;
}

p.seperator{
    text-align: center;
    font-weight: 700;
    font-size: 1em;
    margin: 50px 0;
}
p span.label{
    font-weight: 700;
}

.red{
    color: #A6055D;
}
.grey{
    color: #777;
}
.green{
    color: #00C184;
}

.tooltip{
    margin: 0 auto;
    color: #01080D;
    position: absolute;
    bottom: -35px;
    right: 20px;
    width: 500px;
    text-align: right;
    font-size: .8em;
    font-weight: 700;
}

.axis path, .axis line {
    color: #F2E8DC;
    stroke: #F2E8DC;
}
.axis text{
    fill: #F2E8DC;
}
a{
    font-weight: 700;
    color: #f14f78;
    
}
#language a{
    color: #F2E8DC;
}
#language a.active{
    opacity: .5;
}
#footer{
    width: 100%;
    color: #F2E8DC;
    background-color: #000000;
    margin-top: 50px;
    padding: 50px 0;
}
#footer p{
    width: 500px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .scrolly {
        flex-direction: column;
        gap: 20px;
    }

    article {
        width: 100%;
    }

    figure {
        position: relative;
        top: 0;
        width: 100%;
    }

    section.generic,
    #footer p {
        width: 100%;
        box-sizing: border-box;
    }
}

#unemployment-viz,
#wages-viz,
#map-viz {
    background-color: #000;
    position: relative;
}

.map-tooltip {
    position: absolute;
    pointer-events: none;
    background: #f2e8dc;
    color: #01080D;
    padding: 6px 10px;
    font-size: 0.75em;
    font-family: Georgia;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
}


