/************************
    RESETS
    GLOBAL
    LAYOUT
    TYPOGRAPHY
    COLOUR
    LINKS
    SECTIONS
    AWARDS NETWORK
    SUNBURSTS
    INFOGRAPHIC
    FOOTER
    LOADER
    POPUP
    MEDIA QUERIES
********************/

/*******************
 RESETS covered by bootstrap :) */

/*******************
    GLOBAL */

html {
    font-size: 16px;
    height: 100%;
    max-height: 100%;
    position: relative;
}

body {
    color: #77777a;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-weight: 300;
    height: 100%;
    line-height: 1.4;
    /* Margin bottom by footer height */
    margin-bottom: 50px;
    text-align: center;
}

/*******************
    LAYOUT */

.padding {
    padding: 0.7rem;
}

.padding-left {
    padding-left: 0.7rem;
}

.padding-right {
    padding-right: 0.7rem;
}

.padding-top {
    padding-top: 0.7rem;
}

.padding-bottom {
    padding-bottom: 0.7rem;
}

h1 {
    margin-bottom: 2rem;
}

h2,
h3 {
    margin-bottom: 0.5rem;
}

p,
li {
    margin-bottom: 0.3rem;
}

/*******************
    TYPOGRAPHY  */

/* size */
.small {
    font-size: 1rem;
}

.medium {
    font-size: 1.6rem;
}

.big,
h2 {
    font-size: 3rem;
}

.bigger,
h1 {
    font-size: 3.8rem;
}

.huge {
    font-size: 6rem;
}

/* weight */
.thin,
h1 {
    font-weight: 100;
}

.light,
h2 {
    font-weight: 300;
}

.regular,
strong {
    font-weight: 400;
}

.bold {
    font-weight: 700;
}

.heavy {
    font-weight: 900;
}

/* line-height */

.lh-1 {
    line-height: 1;
}

.lh-12 {
    line-height: 1.2;
}


/*******************
    COLOUR */

/** text **/
.maroon-light {
    color: #C72A4C;
}

.maroon {
    color: #9D213C;
}

.maroon-dark {
    color: #73182C;
}

.gold-light {
    color: #D3BE2B;
}

.gold {
    color: #A89823;
}

.gold-dark {
    color: #7E721A;
}

.purple-light {
    color: #6128BE;
}

.purple {
    color: #4C1F94;
}

.purple-dark {
    color: #36166A;
}

.grey-light {
    color: #D1D3D3;
}

.grey {
    color: #ACACAE;
}

.grey-dark {
    color: #77777A;
}

h1,
section>header,
section>footer,
.white {
    color: #FFFFFF;
}

/** fill **/

.maroon-light-bg {
    background-color: #C72A4C;
    fill: #C72A4C;
}

.maroon-bg {
    background-color: #9D213C;
    fill: #9D213C;
}

.maroon-dark-bg {
    background-color: #73182C;
    fill: #73182C;
}


.gold-light-bg {
    background-color: #D3BE2B;
    fill: #D3BE2B;
}

.gold-bg {
    background-color: #A89823;
    fill: #A89823;
}

.gold-dark-bg {
    background-color: #7E721A;
    fill: #7E721A;
}

.purple-light-bg {
    background-color: #6128BE;
    fill: #6128BE;
}

.purple-bg {
    background-color: #4C1F94;
    fill: #4C1F94;
}

.purple-dark-bg {
    background-color: #36166A;
    fill: #36166A;
}

.grey-light-bg {
    background-color: #D1D3D3;
    fill: #D1D3D3;
}

.grey-bg {
    background-color: #ACACAE;
    fill: #ACACAE;
}

.grey-dark-bg {
    background-color: #77777A;
    fill: #77777A;
}

.white-bg {
    background-color: #FFFFFF;
    fill: #FFFFFF;
}

/*******************
    LINKS  */

a,
a.btn,
input[type=submit] {
    -webkit-transition: all ease 1s;
    -moz-transition: all ease 1s;
    -o-transition: all ease 1s;
    transition: all ease 1s;
    text-decoration: none;
}

/*******************
   SECTIONS  */

#intro {
    background-color: #D1D3D3;
}

#whole-of-gov>header {
    background-color: #D3BE2B;
}

#departmental>header {
    background-color: #6128BE;
}

#awards>header {
    background-color: #C72A4C;
}

#awards-spatial>header {
    background-color: #ACACAE;
}

section>header h1 {
    line-height: 1.5;
    margin-bottom: 2rem;
}

section>header h1,
section>header p {
    margin: 0 auto;
    max-width: 1100px;
}

section>header p {
    font-size: 1.6rem;
    margin-top: 0.5rem;
}

section>header {
    padding: 4rem 6rem;
}

section>div {
    padding: 3rem;
}



/* tabbed sections */
section>.with-tabs {
    padding: 0rem;
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs>li>a {
    background: #A89823;
    border: none;
    border-radius: 0;
    color: #ffffff;
    font-size: 1.4rem;
    margin-right: 0;
}

.nav-tabs>li>a:focus,
.nav-tabs>li>a:hover {
    background: #D3BE2B;
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
    background: #7E721A;
    border: none;
    color: #ffffff;
}

.tab-content {
    padding: 3rem;
}

#whole-of-gov .nav-tabs>li {
    width: 50%;
}

.tab-pane {
    min-height: 600px;
}

/* dataset download footers */
section a:hover {
    text-decoration: none;
}

section a footer {
    background-color: #77777a;
    border-bottom: 1px solid #77777a;
}

section a:hover footer {
    background-color: #ACACAE;
}

section a footer p {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 100;
    padding: 1rem;
}

/* About section */
#about h1 {
    color: #77777A;
    font-weight: 300;
}

#about h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem
}

#about p,
#about ul {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#about a {
    color: #C72A4C;
    font-weight: 700;
}

#about a:active,
#about a:hover {
    color: #73182C;
    text-decoration: underline;
}

/*******************
   SUNBURSTS  */

.iSunburst {
    width: 100%;
    height: 600px;
}

.sunburst {
    height: 100%;
    box-sizing: border-box;
    width: 100%;
}

.sbSequence text {
    font-size: 0.8rem;
    font-weight: 400;
    fill: #fff;
    text-anchor: start;
}

.sunburstChart {
    position: relative;
}

.sunburstChart path {
    stroke: #fff;
}

.sbExplanation,
.sbTrail {
    cursor: pointer;
}

.sbExplanation {
    font-size: 1.1rem;
    pointer-events: none;
    position: absolute;
    text-align: center;
    z-index: 10;
}

.sbTitle {
    font-weight: 400;
}

.sbMoney {
    color: #C72A4C;
    font-weight: 400;
}

.firstLineVis span,
.secondLineVis span {
    font-weight: 700;
}

#departmental .sbDescription {
    display: none;
}

.background {
    fill: #fff;
}

.axis {
    shape-rendering: crispEdges;
}

.axis path,
.axis line {
    fill: none;
    stroke: #000;
}

.sunburstTooltip {
    position: absolute;
    top: 10px;
    left: 10px;
}

/*******************
    AWARDS NETWORK */

/** layout **/
#netGraph {
    height: auto;
    width: 100%;
}

.search {
    padding-bottom: 3px;
}

.contentWrapper {
    height: 100%;
    width: 100%;
}

.network-vis-wrapper {
    height: 100%;
}

.satellite-network-wrapper {
    height: 700px;
}

.satellite-network {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    width: 100%;
    padding: inherit;
}

.network-twig-widget {
    overflow: hidden;
    position: relative;
}

/** network query **/
.network-vis-wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.network-vis-wrapper header h2 {
    line-height: 1.5;
    margin-bottom: 2rem;
    text-align: center;
}

/* form */
select,
input {
    border: none;
    font-weight: 400;
    outline: none;
}

.form-input,
.select-div label {
    border-bottom: 1px solid #77777a;
    display: inline-block;
}

.form-input span,
select option {
    font-size: 2rem;
}

select option {
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 3rem;
}

.select-div {
    display: inline;
}

.select-div:after {
    color: #C72A4C;
    content: '\f078';
    pointer-events: none;
    font-family: 'FontAwesome';
    font-size: 1.5rem;
    margin-left: -2rem;
}

.select-div select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2rem;
    z-index: 50;
}

/** network **/
.in_color {
    color: #C72A4C;
}

.out_color {
    color: #73182C;
}

.links line {
    stroke-opacity: 0.6;
}

.nodes circle {
    stroke: #fff;
    stroke-width: 1.5px;
}

.node text {
    font-weight: 700;
}

text.white {
    fill: #fff;
}

.description {
    cursor: pointer;
    display: table;
    position: absolute;
}

.description div {
    display: table-cell;
    font-weight: 300;
    text-align: center;
    vertical-align: middle;
}

.description .name {
    font-size: 1rem;
    font-weight: 400;
}

.description .amount {
    font-size: 1.6rem;
    font-weight: 700;
}

.focus_node_meta,
.top_K_meta {
    width: 100%;
}

.legends {
    min-width: 300px;
    padding-top: 2rem;
}

.netLegend {
    bottom: 0;
    display: inline-block;
    left: 0;
    position: absolute;
    right: 0;
    width: 100%;
}

.netLegend text {
    fill: #77777a;
    font-size: 1rem;
}

/** network nav **/

.satellite-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    width: 100%;
}

.satellite-nav a {
    border: solid 1px #C72A4C;
    border-radius: 3rem;
    color: #C72A4C;
    display: inline-block;
    font-weight: 400;
    padding: 0.2rem 0.6rem;
    text-decoration: none;
}

.satellite-nav a:hover {
    background: #C72A4C;
    color: #ffffff;
}

.satellite-nav a.not-active {
    border-color: #77777a;
    color: #77777a;
}

.satellite-nav a.prev {
    margin-right: 1rem;
}

.satellite-nav a.next {
    margin-left: 1rem;
}

.satellite-nav a:before,
.satellite-nav a:after {
    font-family: 'FontAwesome';
}

.satellite-nav .first:before {
    content: '\f053\f053';
    margin-right: 0.5rem;
}

.satellite-nav a.prev:before {
    content: '\f053';
    margin-right: 0.5rem;
}

.satellite-nav a.next:after {
    content: '\f054';
    margin-left: 0.5rem;
}

.satellite-nav .last:after {
    content: '\f054\f054';
    margin-left: 0.5rem;
}

/** tooltips **/
.satellite_tooltip {
    background: rgba(38, 39, 41, 0.8);
    border-radius: 5px;
    color: #FFFFFF;
    display: none;
    max-width: 400px;
    min-width: 80px;
    overflow: hidden;
    padding: 1rem;
    position: absolute;
    text-align: left;
}

.satellite_tooltip h3 {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 0;
}

.satellite_tooltip div {
    pointer-events: none;
}

.satellite-meta {
    text-align: left;
}

.number-desc {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-top: -0.5rem;
}

.download {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 400;
}

.satellite-meta h3 {
    color: #ACACAE;
}

.satellite-meta a:hover,
.satellite-meta a:focus,
.satellite-meta a:visited {
    color: #9D213C;
}

ol {
    padding-left: 0;
}

ol li {
    color: #C72A4C;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    list-style-position: outside;
    list-style-type: decimal;
    margin-left: 1.2rem;
}

.thinScroll {
    box-sizing: border-box;
    overflow: hidden;
}

.thinScroll:hover {
    overflow: auto;
}

.thinScroll::-webkit-scrollbar {
    width: 8px;
}

.thinScroll::-webkit-scrollbar {
    height: 8px;
}

.thinScroll::-webkit-scrollbar-track,
.thinScroll::-webkit-scrollbar-track:horizontal {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.thinScroll::-webkit-scrollbar-thumb,
.thinScroll::-webkit-scrollbar-thumb:horizontal {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

.not-active {
    /*color: #ffffff;*/
    cursor: default;
    opacity: 0.4;
    pointer-events: none;
    text-decoration: none;
}

.show {
    display: table !important;
}

.hide {
    display: none !important;
}


/*******************
   AWARDS SPATIAL  */


#awards-spatial>div {
    padding: 0;
}

#awards-spatial iframe {
    border: none;
}

#awards-spatial #5588.chart-con.hvr-shadow {
    position: relative !important;
}

#awards-spatial #5588-containerFooter {
    margin-top: 5px important;
}

/*******************
    INFOGRAPHIC  */

#infographic {
    padding: 2rem 3rem;
}

#infographic svg {
    max-height: 640px;
}

#infographic .down {
    color: #acacae;
    font-size: 2rem;
    height: 30px;
    margin: 0 auto;
    text-align: center;
}

.st {
    fill: #7E721A;
}

.st0 {
    fill: #A89823;
}

a:hover .st0 {
    fill: #D3BE2B;
}

.st1 {
    fill: #FFFFFF;
}

.st2 {
    fill: #9D213C;
}

a:hover .st2 {
    fill: #C72A4C;
}

.st3 {
    fill: #D3BE2B;
}

a:hover .st3 {
    fill: #A89823;
}

.st4 {
    fill: #4C1F94;
}

a:hover .st4 {
    fill: #6128BE;
}

.st5 {
    fill: #ACACAE;
}

.st6 {
    fill: #77777A;
}

.st7 {
    fill: #36166A;
}

.st8 {
    fill: #6128BE;
}

.st9 {
    fill-rule: evenodd;
    clip-rule: evenodd;
    fill: #C72A4C;
}

.st10 {
    fill-rule: evenodd;
    clip-rule: evenodd;
    fill: #9D213C;
}


/*******************
FOOTER */

.footer {
    background-color: #D1D3D3;
    box-sizing: border-box;
    color: #ffffff;
    height: 50px;
    padding-top: 0.8rem;
    width: 100%;
}

/*******************
   LOADER  */

.loader-wrapper {
    background: rgba(255, 255, 255, 0.4);
    bottom: 0;
    display: none;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.loader {
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
    display: block;
    height: 60px;
    left: 50%;
    margin: -30px 0 0 -30px;
    position: relative;
    top: 50%;
    width: 60px;
    z-index: 1500;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: white;
    z-index: 9999;
    opacity: 0.5;
    display: none;
}

.progressing .loader-wrapper {
    display: block;
}

.progressing .loading {
    display: block;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);
        /* IE 9 */
        transform: rotate(0deg);
        /* Firefox 16+, IE 10+, Opera */
    }

    100% {
        -webkit-transform: rotate(360deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);
        /* IE 9 */
        transform: rotate(360deg);
        /* Firefox 16+, IE 10+, Opera */
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);
        /* IE 9 */
        transform: rotate(0deg);
        /* Firefox 16+, IE 10+, Opera */
    }

    100% {
        -webkit-transform: rotate(360deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);
        /* IE 9 */
        transform: rotate(360deg);
        /* Firefox 16+, IE 10+, Opera */
    }
}

/*******************
   POP UP  */
.popupContainer {
    position: fixed;
    right: 50px;
    top: 50px;
    z-index: 9999;
}

.popup {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 2px 2px 10px #77777a;
    margin: 0 auto;
    max-width: 296px;
    padding: 2rem;
}

.popup .circle-icon {
    background: #6128be;
    color: #ffffff;
}

.popup p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.popup p span {
    color: #6128be;
    font-weight: 400;
}

.popup button {
    background: #6128be;
    border: none;
    color: #ffffff;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    padding: 1rem;
    width: 100%;
}

.popup button:hover,
button:active {
    background: #4c1f94;
}

.circle-icon {
    border-radius: 23px;
    font-size: 1.7rem;
    height: 46px;
    margin: 0 auto;
    padding: 0.2rem;
    width: 46px;
}


/*******************
   MEDIA QUERIES  */


@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    /* IE10+ CSS styles go here */

    #infographic svg {
        max-height: none;
    }

    .scaling-svg-container {
        position: relative;
        /*control this variable with different screen sizes*/
        height: 500px;
        max-width: 100%;
        margin: 0 auto;
        /*control by js*/
        width: 100%;
    }

    .scaling-svg {
        position: absolute;
        left: 0;
        top: 0;
        /*magic here*/
        padding-bottom: 72%;
        height: 1px;
        overflow: visible
    }
}

/** end change section **/

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

    .network-vis-wrapper header h2 {
        font-size: 2.75rem;
    }

}

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

    section>header,
    #intro>div {
        padding: 3rem;
    }

    section>div {
        padding: 2rem;
    }

    h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2.4rem;
    }

}

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

    section>header,
    #intro>div {
        padding: 2rem;
    }

    h1 {
        font-size: 2.4rem;
    }

    p {
        font-size: 1rem;
    }

}

@media screen and (max-width:854px) {
    h2 {
        font-size: 1.8rem;
    }

    .iSunburst {
        height: 500px !important;
    }

    .tab-pane {
        min-height: 500px !important;
    }

    .satellite-network-wrapper {
        height: 600px;
    }
}

@media screen and (max-width:768px) {
    .satellite-network {
        padding: 0;
    }

    .focus_node_meta,
    .top_K_meta h3 {
        text-align: center;
    }

    .top_K_meta {
        margin-top: 1rem;
    }

}

@media screen and (max-width:415px) {
    h1 {
        font-size: 1.6rem;
    }

    section>header,
    section>div,
    #intro>div,
    .tab-content {
        padding: 2rem 1rem;
    }

    #about>.container {
        padding: 1rem 0.3rem;
    }

    section a footer p,
    section>header p,
    #about p {
        font-size: 1rem;
    }

    .network-vis-wrapper header h2 {
        font-size: 1.5rem;
        margin-top: 0;
        padding: 0 2rem;
    }

    .form-input span,
    select option {
        font-size: 1.5rem;
    }

    .description p {
        font-size: 0.6rem;
        line-height: 1;
    }

    .description .name {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .description .amount {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .satelliteNav a {
        content: '';
    }

    .satellite-network-wrapper {
        height: 500px;
    }

    .iSunburst {
        height: 400px !important;
    }

    .sbMoney {
        margin-bottom: 0 !important;
    }

    .sbTitle,
    .firstLineVis,
    .secondLineVis {
        line-height: 1.1;
    }

    .tab-pane {
        min-height: 400px !important;
    }
}

@media screen and (max-width:376px) {
    .network-vis-wrapper header h2 {
        padding: 0 1rem;
    }

    .description .amount {
        font-size: 0.9rem;
    }

    .iSunburst {
        height: 360px !important;
    }

    .tab-pane {
        min-height: 360px !important;
    }

    .netLegend text {
        font-size: 0.8rem;
    }
}

@media screen and (max-width:321px) {
    .satellite-network-wrapper {
        height: 415px;
        padding-left: 0;
        padding-right: 0;
    }

    .network-vis-wrapper header h2 {
        font-size: 1.3rem;
        padding: 0 0.5rem;
    }

    .form-input span,
    select option {
        font-size: 1.2rem;
    }

    .description p {
        font-size: 0.5rem;
        line-height: 1;
    }

    .description .name {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .description .amount {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}