@font-face {
    font-family: "ASAP Regular";
    src: url("../fonts/Asap-Regular.ttf");
}

@font-face {
    font-family: "ASAP Condensed";
    src: url("../fonts/AsapCondensed-Regular.ttf");
}

* {
    margin: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-size: 16px;
}

#wrapper {
    height: 100%;
    position: relative;
}

#form {
    text-align: left;
    height: 36px;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: 0;
    background: #7c7872;
    color: #ffffff;
    border-bottom: 1px solid #fff;
}

@media (min-width: 400px) {
    .form-inline .form-control {
        display: inline-block;
        width: auto;
        vertical-align: middle;
    }
}

#form #btnback {
    background: #C6C4C1;
    width: 72px;
    height: 35px;
    display: inline-block;
    float: left;
    border-right: 1px solid #fff;
    cursor: pointer;
}

#chart {
    position: relative;
    overflow: hidden;
    padding-top: 35px;
    height: 100%;
}

svg text {
    text-rendering: geometricPrecision;
    pointer-events: none;
    font-family: 'Asap Regular', Helvetica, sans-serif;
}
svg .treemap text {
    fill: #fff;
}
svg rect.cell {
    stroke: #f2f2f2;
    stroke-width: 1;
    cursor: pointer;
}
svg .depth0 {
    opacity: 0!important;
}

.controls {
    background: #7c7872;
    border-bottom: 1px solid #fff;
    color: #ffffff;
    display: inline-block;
    height: 36px;
    left: 0;
    margin: 0;
    padding: 0 0.4em;
    position: fixed;
    right: 0;
    text-align: left;
    top: 0;
}

.controls .form-inline {
    float: left;
    margin: 0 0.4em;
    padding-top: 3px;
}


#form .form-inline {
    padding-top: 3px;
    float: left;
}

form p {
    float: left;
    margin: 0;
    padding: 0 0.25em;
}

.form-inline .form-control {
    display: inline-block;
    height: 2.2em;
    vertical-align: middle;
    width: auto;
}

.form-item {
    border-radius: 2px;
    line-height: 1.4;
    float: left;
    font-size: 13px;
    font-weight: normal;
    margin: 0;
    padding: 0.4em 0.8em;
}

select ~ label {
    display: none;
}


.outside {
    stop-color: black;
    stop-opacity: 0;
}

.inside {
    stop-opacity: 100;
}
.overlay {
    background: #efeeed;
    box-sizing: border-box;
    font-family: 'Asap Regular', Helvetica, sans-serif;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 10px;
    top: 45px;
    transition: opacity 1s;
    width: 20em;
    z-index: 100;
}
.overlay.show {
    opacity: 1;
}

.overlay header {
    background: #c6c4c1;
    min-height: 8.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay h2 {
    font-size: 1em;
    line-height: 1.4em;
    color: #9f1c1b;
    padding: 0.8em;
}
.overlay p {
    font-size: 0.8em;
    background: #efeeed;
    color: #5b564e;
    padding: 0.8em;
}
.class-size {
    color: #9f1c1b;
    font-size: 18px;
    font-weight: bold;
}
.overlay #chart2 {
    width: 13em;
    height: 11em;
    margin: 1em auto;
}
.overlay #source {
    font-size: 0.8em;
    background: #efeeed;
    color: #5b564e;
    opacity: 0.6;
    padding: 1em;
}
