header {
    position: relative;
}

.button {
    padding: 3em 0.5em 2em 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button .text-bold {
    white-space: nowrap;
}

#national .button button {
    background-color: #c5ef6c;
}

#race .button button {
    background-color: #F2E963;
}

.button button {

    padding: 0.8em;
    width: 20em;
    letter-spacing: 1em;
    font-size: 0.8em;
    border-radius: 10em;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0.3em 0 rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 0.3em 0 rgba(0, 0, 0, 0.2);
}

.button button:hover {
    opacity: 0.9;
}

.button button.next {
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    width: auto;
    padding: 0.4em;
}

.button button.next .icon {
    height: 2.5em;
    width: 2.5em;
    border-radius: 100%;
    background-color: #fff;
    margin-right: 1em;
}

.button button.next .icon .arrow {
    animation: pulse 1.5s 0s infinite normal ease forwards;
    background-image: url('../static/imgs/arrow.svg');
    background-repeat: no-repeat;
    background-size: 100% auto;
    height: 100%;
    width: 100%;
}

/*.button button.next .icon:after,
.button button.next .icon:before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    background: url('../static/imgs/arrow.svg') no-repeat center top;
}

.button button.next .icon:after {
    animation: pulse 1.5s 0.5s infinite normal ease forwards;
}*/

@keyframes pulse {
    0% {
        opacity: 0;
        background-position: center top;
        -moz-background-size: 0 auto;
        -o-background-size: 0 auto;
        -webkit-background-size: 0 auto;
        background-size: 0 auto;
    }

    10% {
        opacity: 0;
    }

    50% {
        opacity: 1;
        -moz-background-size: 75% auto;
        -o-background-size: 75% auto;
        -webkit-background-size: 75% auto;
        background-size: 75% auto;
    }

    90% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        background-position: center bottom;
        -moz-background-size: 0 auto;
        -o-background-size: 0 auto;
        -webkit-background-size: 0 auto;
        background-size: 0 auto;
    }
}

.chart100 .viz {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-height: 40vh;
    flex: 1;
    position: relative;
}

.bubble-chart .viz {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}


.bubble-chart .button {
    padding-top: 1em;
}

.bubble-chart .group {
    cursor: auto;
    opacity: 1;
    transition: opacity font-weight 0.2s;
}

.bubble-chart .group.hoverable {
    cursor: pointer;
    opacity: 0.8;
}

.bubble-chart .group.hoverable:hover {
    opacity: 1;
}

.bubble-chart .group.hoverable:hover text {
    font-weight: bold;
}

.sankey-chart {
    border-bottom: none;
    height: auto !important;
}

.sankey-chart .viz {
    width: 100%;
    height: 90vh;
}

#national .section.sankey-chart .viz {
    height: 120vh;
}

.sankey-chart .option-container {
    z-index: 1;
    width: 15em;
    cursor: pointer;
    margin-bottom: 2em;
}

#national .sankey-chart .option-container select {
    background-color: #c5ef6c;
}

#race .sankey-chart .option-container select {
    background-color: #F2E963;
}

.sankey-chart .option-container select {
    padding: 0.8em 2em;
    width: 100%;
    border-radius: 10em;
    letter-spacing: 0.2em;
    font-size: 0.8em;
    background-image: url('../static/imgs/arrow.svg');
    background-repeat: no-repeat;
    background-position: calc(100% - 1em) center;
    background-size: 1.5em auto;
    box-shadow: 0 0 0.3em 0 rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 0.3em 0 rgba(0, 0, 0, 0.2);
}

.sankey-chart .link path,
.sankey-chart .node rect {
    transition: opacity 0.2s;
}

.sankey-chart .node rect {
    /*cursor: pointer;*/
}

/*.sankey-chart .link path:hover, .sankey-chart .node rect:hover{
    opacity: 0.8;
}*/
/*.chart100 .viz{
    flex: 0;
}*/
.chart100 .item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    float: left;
}

#race .chart100 .item {
    background-image: url('../static/imgs/pram_race.svg');
}

#national .chart100 .item {
    background-image: url('../static/imgs/pram_national.svg');
}

#race .chart100 .item.mixed {
    background-image: url('../static/imgs/baby_race.svg');
}

#national .chart100 .item.mixed {
    background-image: url('../static/imgs/baby_national.svg');
}

.section .answer-box {
    position: absolute;
    left: 10%;
    z-index: 10;
    width: 80%;
    padding: 0.2em 1em;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 0 0.3em 0.1em rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 0 0.3em 0.1em rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.chart100 .slidercontainer {
    width: 60%;
    border-top: 1px dashed #ccc;
}

.section .count {
    text-align: center;
    /*font-weight: bold;*/

}

.bubble-chart .count {
    border-radius: 0.4em;
    background: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 0 0.4em;
}

.section .count span {
    font-size: 1.2em;
    padding: 0 0.2em;
    font-weight: bold;
}

.chart100 .slider {
    height: 1.2em;
    border-radius: 2px;
    background: #ebe6e7;
}

.chart100 .slider:disabled {
    opacity: 0.5;
    cursor: no-drop;
}


#race .chart100 .slider::-webkit-slider-thumb {
    background: url('../static/imgs/baby-select_race.svg');
    width: 5em;
    height: 5em;
    background-repeat: no-repeat;
}

#race .chart100 .slider::-moz-range-thumb {
    background: url('../static/imgs/baby-select_race.svg');
    width: 5em;
    height: 5em;
    background-repeat: no-repeat;
}

#national .chart100 .slider::-moz-range-thumb {
    background: url('../static/imgs/baby-select_national.svg');
    width: 5em;
    height: 5em;
    background-repeat: no-repeat;
}

#national .chart100 .slider::-webkit-slider-thumb {
    background: url('../static/imgs/baby-select_national.svg');
    width: 5em;
    height: 5em;
    background-repeat: no-repeat;
}

.go-to-another {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    margin-top: 3em;
    padding: 1em 0;
}

.go-to-another a div {
    padding: 1em 2em;
    margin-bottom: 1em;
    color: #000;
    opacity: 0.8;
}

.go-to-another a div:hover {
    opacity: 1;
}

.go-to-another a .button {
    letter-spacing: 1em;
    font-size: 0.8em;
    border-radius: 0.4em;
    box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.06);
    -webkit-box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.06);
    background-repeat: no-repeat;
    background-position: 1em center;
    background-size: 5em;
    padding: 3em 1em 3em 7em;
    transition: all 0.2s;
    font-weight: bold;
}

#race .go-to-another a .button {
    background-image: url('../static/imgs/baby_national.svg');
    background-color: #fff;
    border: 2px solid #ddeafc;
}

#national .go-to-another a .button {
    background-image: url('../static/imgs/baby_race.svg');
    background-color: #fff;
    border: 2px solid #fae0e3;
}
.go-back{
    background-image: url('../static/imgs/back.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 2em;
    font-weight: bold;
    color: #607d8b !important;
    transition: color 0.4s;
}
.go-back:hover{
    color: #333 !important;
}
.go-to-another .social-links {
    border-top: 1px dotted #ccc;
    padding-top: 1em;
}

.go-to-another .social-links a {
    width: 3em;
    height: 3em;
    margin: 0 1em;
}

.go-to-another .social-links a:hover {
    color: #fff;
    border-color: transparent;
}

.go-to-another .social-links a.facebook:hover {
    background: #3d5997;
}

.go-to-another .social-links a.twitter:hover {
    background: #56abed;
}

.go-to-another .social-links a.email:hover {
    background: #000;
}


footer {
    margin-top: 3em;
}

.bubble-chart .viz svg {
    -webkit-filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, .1));
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, .1));
}

.sankey-chart .viz {
    -webkit-filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, .1));
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, .1));
}

@media screen and (max-width: 1100px) {
    /*    .chart .viz{
            max-height: 40vh;
    }*/
}

@media screen and (max-width: 750px) {


    .chart100 .viz {
        width: 90%;
    }

    .chart100 .slidercontainer {
        width: 90%;
    }

    .button {
        padding: 2em 0.5em 2em 0.5em;
    }

    .bubble-chart .viz {

        overflow-x: auto;
        overflow-y: hidden;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        -webkit-overflow-scrolling: touch;

    }

    .bubble-chart .viz::-webkit-scrollbar {
        display: none;
    }

    #race .section.sankey-chart .viz {
        height: 70vh;
    }

    #national .section.sankey-chart .viz {
        height: 120vh;
    }

    .go-to-another {
        margin-top: 0;
    }

    .section .answer-box {
        left: 0%;
        width: 100%;
    }
}