/**
Bootstrap
 */
body {
    height: 600px;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

svg {
    width: 100%;
    margin: 0;
    padding: 0;
}


svg#fern-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*width: 150%;*/
    /*margin: 0 -75%;*/
}

.fern-graphic {
    margin: 0;
    position: relative;
    border: 1px solid #ccc;
    /*max-width: 660px;*/
    min-width: 320px;

    /*min-height: 475px;*/
}

#fern-map-container {
    width: 100%;
    padding-bottom: 85%;
}

.hidden {
    opacity: 0;
    transition: all .5s ease-in-out;
}

.buttons-container, .rangeSlider {
    display: none;
}



.options-container, .rangeSlider, .buttons-container {
    opacity: 1;
    transition: all 0.2s ease-in-out;
}

.disabled {
    opacity: 0.5;
}

.controls {
    position: absolute;
    bottom: 35px;
    width: 100%;
}


/**
tab buttons
 */

.options-container {
    width: 100%;
    // float: left;
    text-align: center;
}

ul.options {
    width: 90%;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    text-align: center;
    // clear: right;
    display: inline-block;
}
li.option {
    border: 1px solid #ccc;
    padding: 5px 0;
    height: auto;
    margin: 0 5px;
    position: relative;
    width: calc(32% - 12px);
    // float: left;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    fill: black;
    cursor: pointer;
}

li.option span {
    font-size: 12px;
    display: block;
    width: 100%;
}


li.option:hover {
    background-color: black;
    fill: white;
    color: white;
    border: 1px solid black;
}

li.option.active {
    background-color: black;
    fill: white;
    transition: all 0.2s ease-in-out;
}

li.option svg {
    display: none;
}

@media(min-width: 430px) {
    li.option.corn svg {
        padding-top: 3px;
    }
    li.option svg {
        display: block;
        margin-bottom: 5px;
    }
    li.option {
        /*margin: 0 12px;
        width: calc(25% - 24px);
        height: 40px;
        padding: 15px 0;*/
        margin: 0 5px;
        width: 94px;
        height: 70px;
        padding: 0px;
        border: 1px solid #ccc;
    }
    li.option div {
        width: 100%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
    }
    li.option span {
        /*margin-bottom: 10px;*/
        /*position: absolute;*/
        /*bottom: 10px;*/
    }
    ul.options {
        // width: 60%;
    }
}

li.strawberries.active svg  {
    fill: #ff4d40;
    transition: all 0.2s ease-in-out;

}
li.strawberries.active span, li.li.strawberries.active:hover span {
    color: #ff4d40;
}

li.cattle.active svg  {
    fill: #db7d12;
    transition: all 0.2s ease-in-out;
}

li.cattle.active span, li.li.cattle.active:hover span {
    color: #db7d12;
}

li.corn.active svg  {
    fill: #ffcc14;
    transition: all 0.2s ease-in-out;
}

li.corn.active span, li.li.corn.active:hover span {
    color: #ffcc14;
}




/**
Time line controls
 */


input[type=range] {
    /*-webkit-appearance: none;*/
    width: 100%;
    margin: 5px 0;
}
/*input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
    background: white;
    border-radius: 1px;
    border: 1px solid #ccc;
}
input[type=range]::-webkit-slider-thumb {
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
    border: 1px solid rgba(0, 0, 0, 1);
    height: 16px;
    width: 16px;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -5.2px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
    background: #f3f4f4;
}
input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
    background: #e6e7e8;
    border-radius: 1px;
    border: 0px solid rgba(1, 1, 1, 0);
}
input[type=range]::-moz-range-thumb {
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
    border: 1px solid rgba(0, 0, 0, 0);
    height: 16px;
    width: 16px;
    border-radius: 8px;
    background: #000;
    cursor: pointer;
}
input[type=range]::-ms-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
}
input[type=range]::-ms-fill-lower {
    background: #d9dadc;
    border: 0px solid rgba(1, 1, 1, 0);
    border-radius: 2px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
}
input[type=range]::-ms-fill-upper {
    background: #e6e7e8;
    border: 0px solid rgba(1, 1, 1, 0);
    border-radius: 2px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
}
input[type=range]::-ms-thumb {
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
    border: 1px solid rgba(0, 0, 0, 0);
    height: 16px;
    width: 16px;
    border-radius: 8px;
    background: #000;
    cursor: pointer;

}
input[type=range]:focus::-ms-fill-lower {
    background: #e6e7e8;
}
input[type=range]:focus::-ms-fill-upper {
    background: #f3f4f4;
}
*/


.timeline-controls {
    float: left;
    padding-top: 5px;
    height: 40px;
    display: -ms-flexbox;
    display: flex;
    align-content: center;
    flex-direction: row;
    font-family: sans-serif;
    width: 100%;
}

.buttons-container {
    -ms-flex: 0 0 50px;
    flex: 0 0 50px;
    /*width: 15%;*/
    height: 40px;
    position: relative;
    padding-left: 20px;
}

.buttons-container .control {
    /*margin: 0 20px;*/
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
    color: #000;
    font-size: 12px;
    border-radius: 3px;
    padding: 5px 5px;
    position: absolute;
    top: 50%;
    width: 35px;
    transform: translateY(-50%);
    margin-top: 3px;
}

.year {
    -ms-flex: 0 0 25%;
    flex: 0 0 22%;
    font-weight: 700;
    text-align: center;
    font-size: 25px;
    color: #000;
    margin: 0 0 0 10px;
    padding-top: 5px;
}
.slider-container {
    position: relative;
    float: left;
    -ms-flex: 1 1 60%;
    flex: 1 1 60%;
    height: 40px;
}

.slider {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 4%;
    transform: translateY(-50%);
}

#stop {
    display: none;
}

/**
Heading
 */

#chart-title {
    font-size: 12px;
    position: absolute;
    top: 5px;
    left:10px;
}
@media(min-width: 430px) {
    #chart-title {
        font-size: 14px;
        top: 10px;
        left:20px;
    }
}
@media(min-width: 550px) {
    #chart-title {
        font-size: 19px;
        top: 10px;
        left:20px;
    }
}

/**
Intro Screen
 */

.intro-text {
    width: 100%;
}

.chart-description {
    color: #555;
    line-height: 1.4;
    text-align: left;
    top: 10px;
    left: 20px;
    font-size: 12px;
    /*padding-right: 20px;*/
    padding: 20px 10px;
}

.intro {
    width: calc(100% - 19px);
    height: 99%;
    position: absolute;
    text-align: center;
    top: 1px;
    left: 1px;
    background-color: rgba(255,255,255,0.7);
    /*padding: 40px 10px 20px;*/
}

.intro-prompt {
    color: steelblue;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 20px;
}

@media(min-width: 430px) {
    .intro-prompt {
        font-size: 18px;
    }
}
@media(min-width: 550px) {
    .intro-prompt {
        font-size: 19px;
    }
}

.start-arrow {
    display: none;
    width: 67px;
    max-width: 100px;
    max-height: 120px;
    margin: 0 auto 20px;
}

.start-arrow svg {
    width: 100%;
    height: 100%;
}

@media(min-width: 430px) {
    .chart-description {
        padding: 40px 20px;
    }
}

@media(min-width: 500px) {
    .start-arrow {
        display: block;
    }
}


/**
arrows Labels
 */

.amount {
    font-size: 20px;
    font-weight: 700;
}
.arrow-label {
    font-size: 11px;
}


/**
Credits Screen
 */

#creditsContainer {
    background-color: transparent;
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;

}
.credits {
    background-color: rgba(0, 0, 0, 0.9);
    color: #aaa;
    position: absolute;
    left: 0;
    margin: 10px 10px 40px 10px;
    top: 0;
    width: calc(100% - 20px);
    height: calc(100% - 50px);
    z-index: 10;
    display: none;
}


.credits h3 {
    color: white;
    font-size: 16px;
    padding-top: 10%;
}

.credit-list li a {
    color: white;
}

.credits a:hover {
    color: #ffcc14;
}

.credit-list {
    list-style: none;
    padding: 0 30px 0 50px;
}

.credit-list li {
    color: #aaa;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.6;
    text-align: left;
}

.credit-list li span {
    color: white;
}

@media(min-width: 500px) {

    .controls {
        position: absolute;
        bottom: 24px;
        width: 100%;
    }

    .credits {
        margin: 10px 10px 30px 10px;
        width: calc(100% - 20px);
        height: calc(100% - 40px);

    }

    .credits h3 {
        font-size: 19px;
        padding-top: 20%;
    }
    .credit-list li {
        font-size: 15px;
    }

}

#creditsToggle {
    text-decoration: underline;
    position: relative;
    /*float: right;*/
    /*right: 5px;*/
    /*bottom: 5px;*/
    /*margin-right: 0;*/
    /*padding: 3px;*/
    /*-ms-transform: rotate(90deg); !* IE 9 *!*/
    /*-webkit-transform: rotate(90deg); !* Chrome, Safari, Opera *!*/
    /*transform: rotate(90deg);*/
    z-index: 11;
    cursor: pointer;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
@media(min-width: 430px) {
    #creditsToggle {
        /*bottom: 5px;*/
    }
}

.source {
    position: relative;
    /*bottom: 5px;*/
    /*left: 5px;*/
    /*max-width: 80%;*/
}

.source-credits {
    position: absolute;
    bottom: 10px;
    width: calc(100% - 40px);
    margin: 0 20px;
}

#creditsToggle, .source {
    font-size: 10px;
    color: #999;
    text-align: left;
    text-transform: uppercase;
}

#creditsToggle.active { margin-right: 6px;}

#creditsToggle:hover {
    /*background-color: #ffcc14;*/

    color: black;
}
/*
#creditsToggle span {

    display: inline-block;
    color: black;
    height: auto;
    font-family: serif;
    font-style: italic;
    font-size: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: color 0.2s ease-in-out;
}*/

@media(min-width: 430px) {
    .chart-description {
        font-size: 14px;
    }


    /*svg#fern-map {*/
        /*width: 100%;*/
        /*margin: 0 auto;*/
    /*}*/
}

@media(min-width: 500px) {
    .year {
        font-size: 35px;
        padding-top: 0;
    }
    .amount {
        font-size: 30px;
    }
    .arrow-label {
        font-size: 14px;
    }
}

#close-credits {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
}

#close-credits svg {
    fill: white;
}
