:root {
    --black: #222222;
    --white: #fff;
    --blue: #206095;
    --orange: #ff7b24;
    --gray25: #d5d5d6;
    --gray5: #f5f5f6;
}

html,
body {
    position: relative;
    width: 100%;
    /* height: 100%; */
    scroll-behavior: smooth !important;
}

body {
    color: #333;
    margin: 0;
    padding: 8px;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif !important; 
}

a {
    color: rgb(0, 100, 200);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: rgb(0, 80, 160);
}

a:focus {
    outline: var(--orange) solid 3px;
  }



input,
button,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    -webkit-padding: 0.4em 0;
    padding: 0.4em;
    margin: 0 0 0.5em 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
}


button {
    color: #333;
    background-color: #f4f4f4;
    outline: none;
}

button:disabled {
    color: #999;
}

button:not(:disabled):active {
    background-color: #ddd;
}

button:focus {
    border-color: #666;
}


* {
    margin: 0;
    padding: 0
}

ol {
    list-style: none;
    font-family: "Open Sans", sans-serif;
}

h2 {
    padding: 12px;
    font-size: 22px;
    color: #222;
    font-weight: 700;
    font-family: "Open Sans", sans-serif;
}

body {
    max-width: 950px;
    margin: 0 !important
}

hr {
    height: 2px;
    border-width: 0;
    color: rgba(0, 163, 166, .1);
    background-color: rgba(0, 163, 166, .1)
}

input {
    margin: 5px 10px 0 0;
}

/* Customize the label (the container) */
.filterContainer {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.filterContainer input {
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmarkBox {
    background-color: var(--white);
    border: 2px solid var(--black);
    border-radius: 0.2rem;
    box-sizing: border-box;
    cursor: pointer;
    height: 22px;
    left: 11px;
    position: absolute;
    top: 9px;
    width: 22px;
    z-index: 1;
}

/* On mouse-over, add a grey background color */
.filterContainer:hover input~.checkmarkBox {
    background-color: var(--gray25);
}

/* checked boxes */
.filterContainer input:checked~.checkmarkBox {
    background-color: var(--white);
    border: 2px solid var(--black);
    border-radius: 0.2rem;
    box-sizing: border-box;
    cursor: pointer;
    height: 22px;
    left: 11px;
    position: absolute;
    top: 9px;
    width: 22px;
    z-index: 1;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmarkBox:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.filterContainer input:checked~.checkmarkBox:after {
    display: block;
}

/* Style the checkmark/indicator */
.filterContainer .checkmarkBox:after {
    left: 6px;
    top:2px;
    width: 5px;
    height: 10px;
    border: solid var(--black);
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Create a custom radio button */
.checkmarkRadio {
    position: absolute;
    top: 5px;
    left: 10px;
    height: 25px;
    width: 25px;
    background-color: var(--white);
    border: 2px solid var(--black);
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.filterContainer:hover input~.checkmarkRadio {
    background-color: var(--gray25);
}

.filterContainer:hover {
    background-color: var(--gray25);

}

/* When the radio button is checked, add a blue background */
.filterContainer input:checked~.checkmarkRadio {
    background-color: var(--white);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmarkRadio:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.filterContainer input:checked~.checkmarkRadio:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.filterContainer .checkmarkRadio:after {
    border-radius: 50%;
    border-width: 0;
    height: 15px;
    width: 15px;
    left: 50%;
    top: 50%;
    margin-left: -7px;
    margin-top: -7px;
    background: var(--black);
}

/* rejig the text */
.checkBoxText {
    margin: 20px 44px;
    color: var(--black);
    font-size: 18px;
    font-family: "Open Sans", sans-serif;
}

.filterContainer:focus-within {
    outline: var(--orange) solid 3px;
} 

/* End custom radio/checkbox */

#preText{
    font-size: 18px;
    font-weight: 400;
    line-height: 32px;
    margin: 20px 0;
    font-family: "Open Sans", sans-serif;
}

#filteringOptions {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin-top: 40px;

}

#selectionTopic label,
#selectionChange label {
    width: 100%;
    border-top: 1px solid #206095;
    padding: 11px 1rem 11px 10px;
    object-fit: cover;
}

#selectionTopic {
    width: 49%;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    align-content: flex-start;
    margin-bottom: 20px;
    border: 2px solid #206095;
    max-height: 220px;
    overflow-y: scroll;
    overflow-x: hidden;
    
}

label {
    cursor: pointer;
    display: block;
}

#selectionChange {
    width: 49%;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    align-content: flex-start;
    margin-bottom: 20px;
    border: 2px solid #206095;
    max-height: 220px;
    overflow: hidden;
}

.i {
    color: #206095;
    padding-right: 19px;
}

.i:after {
    position: absolute;
    padding-left: 3px;
    padding-top: 2px;
    width: 16px;
    height: 16px;
    content: url("./images/ons-icon-info-small.svg");
    fill: #206095;
}

#wellbeing-head {
    clear: both;
}


#tileshere {
    margin: 10px 0
}

.tile {
    margin-left: 5px;
    margin-right: 5px
}

#top {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.layer {
    display: flex;
    flex-direction: row;
    width: 100%;
}

#tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-right: 20px;
}

.title {
    padding: 12px 0 4px 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #222;
    font-weight: 700;
    line-height: 1.3;
    font-family: "Open Sans", sans-serif;
}

.containerTop {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.change {
    font-size: 16px;
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: 0 0 0 12px;
    font-family: "Open Sans", sans-serif;
}

.percent.airPoll1 {
    font-size: 18px;
    font-weight: 700;
    color: #206095;
    font-family: "Open Sans", sans-serif;
    /* min-width: 30px; */
}

.percent.airPoll2 {
    font-size: 18px;
    font-weight: 700;
    color: #871a5b;
    font-family: "Open Sans", sans-serif;
    margin-left: 10px;
}

.percent.protectedArea1 {
    font-size: 18px;
    font-weight: 700;
    color: #118c7b;
    font-family: "Open Sans", sans-serif;
    /* min-width: 30px; */
}

.percent.protectedArea2 {
    font-size: 18px;
    font-weight: 700;
    color: #206095;
    font-family: "Open Sans", sans-serif;
    margin-left: 10px;
}

.percent.unpaidWork1 {
    font-size: 18px;
    font-weight: 700;
    color: #2ea1a4;
    font-family: "Open Sans", sans-serif;
    /* min-width: 30px; */
}

.percent.unpaidWork2 {
    font-size: 18px;
    font-weight: 700;
    color: #6749a6;
    font-family: "Open Sans", sans-serif;
    margin-left: 10px;
}

.percent.lifeExpect1 {
    font-size: 18px;
    font-weight: 700;
    color: #2ea1a4;
    font-family: "Open Sans", sans-serif;
    /* min-width: 30px; */
}

.percent.lifeExpect2 {
    font-size: 18px;
    font-weight: 700;
    color: #6749a6;
    font-family: "Open Sans", sans-serif;
    margin-left: 10px;
}

.percent.feelingSafe1 {
    font-size: 18px;
    font-weight: 700;
    color: #2ea1a4;
    font-family: "Open Sans", sans-serif;
    /* min-width: 30px; */
}

.percent.feelingSafe2 {
    font-size: 18px;
    font-weight: 700;
    color: #6749a6;
    font-family: "Open Sans", sans-serif;
    margin-left: 10px;
}

.percent.biodiversity1 {
    font-size: 18px;
    font-weight: 700;
    color: #F66068;
    font-family: "Open Sans", sans-serif;
    /* min-width: 30px; */
}

.percent.biodiversity2 {
    font-size: 18px;
    font-weight: 700;
    color: #206095;
    font-family: "Open Sans", sans-serif;
    margin-left: 10px;
}

.BgColour {
    text-align: left
}

.cat {
    font-size: 18px;
    min-width: 20px;
    margin-right: 5px;
    font-family: "Open Sans", sans-serif;
}

.measure {
    display: block;
    padding: 5px 8px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    align-items: center;
    font-family: "Open Sans", sans-serif;
}

.since {
    font-size: 14px;
    color: #414042;
    text-align: right;
    font-family: "Open Sans", sans-serif;
}

.outlook {
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 5px 8px;
    font-family: "Open Sans", sans-serif;
}

.outlook.Positive {
    color: #097c80;
    background-color: #e9fbf9
}

.outlook.Negative {
    color: #bc3b27;
    background-color: #fce9e3
}

.outlook.No {
    color: #676668;
    background-color: #ececec
}

.outlook.Change {
    font-size: 14px;
    color: #414042;
    font-weight: 400;
    padding: 0;
    font-family: "Open Sans", sans-serif;
}

.commentary {
    font-size: 16px;
    color: #222;
    line-height: 1.3;
    font-family: "Open Sans", sans-serif;
}

.source {
    padding: 16px 0 12px 0;
    font-size: 14px;
    font-weight: 400;
    color: #414042;
    font-family: "Open Sans", sans-serif;
}

.tile {
    width: 70%;
    margin: 5px 0
}

.chart {
    width: 35%;
    margin: 5px 0;
    overflow: hidden;
}

.chartContainer {
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 10px;
    font-family: "Open Sans", sans-serif;
}

.headingText {
    padding: 12px 0px 12px 0px;
    /* margin-right: 12px; */
    line-height: 1.3;
}

.chartDrawing {
    overflow: visible;
}

.chartBackground {
    fill: rgb(245, 245, 245);
}

.startDate,
.endDate {
    font-size: 14px;
    fill: #707071;
    text-anchor: middle;
    font-family: "Open Sans", sans-serif;
}

.endText {
    color: #333;
    text-anchor: start;
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    /* font-weight: bold; */
    fill: rgb(32, 96, 149);
    font-size: 15px;
}

.endTextDual {
    color: #333;
    text-anchor: start;
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    /* font-weight: bold; */
    font-size: 15px;
}

.updated {
    font-size: 14px;
    padding-bottom: 1em;
    font-family: "Open Sans", sans-serif;
}

.graphic {
    padding: 0 12px;
    background-color: #f5f5f5;
}

.source2 {
    display: none
}

.wellbeing {
    background-color: #e6f6f6
}

.relationships {
    background-color: #f4e9f2
}

.health {
    background-color: #fce6f0
}

.do {
    background-color: #e9f5fa
}

.live {
    background-color: #ebebf4
}

.finance {
    background-color: #feefe6
}

.skills {
    background-color: #f2f5e1
}

.economy {
    background-color: #fae6e8
}

.governance {
    background-color: #e5ebee
}

.environment {
    background-color: #e7f2ec
}

.bigNo {
    font-size: 68px;
    fill: rgb(32, 96, 149);
    text-anchor: middle;
    font-weight: bold;
    font-family: "Open Sans", sans-serif;
}

.bigDate {
    /* font-size: 28px; - Now defined in StaticNumber.svelte so as to be responsive */
    fill: rgb(32, 96, 149);
    text-anchor: middle;
    margin-top: 20px;
    font-family: "Open Sans", sans-serif;
}

body {
    max-width: 950px;
    margin: 0 !important
}

.domainHeading {
    margin: 10px;
    font-weight: 700;
    font-size: 26px;
    font-family: "Open Sans", sans-serif;
}

.domainExplainerText {
    font-size: 18px;
    margin: 10px;
    line-height: 1.3;
    font-family: "Open Sans", sans-serif;
}

#domain_dropdown {
    margin: 10px
}

#graphic {
    margin-left: 10px
}

.topTextbox {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin: 20px 0;
}

.backToTop {
    margin: 20px 0 30px
}

hr {
    border: 2px solid;
    margin-bottom: 5px
}


.divider {
    height: 6px;
    border: none;
}

.dividerThin {
    height: 2px;
    border: none;
}

#text {
    line-height: 1.3;
    font-family: "Open Sans", sans-serif;
}

.innerTextbox {

    color: #222
}

.posts {
    display: grid;
    grid-gap: 1.5rem;
    grid-template-columns: repeat(4, 1fr)
}

.posts .post {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, .1)
}

.posts .post-title {
    font-size: 1.3rem;
    font-family: "Open Sans", sans-serif;
}

.posts figcaption {
    padding: 1rem
}

.posts .post-categories {
    margin-bottom: .75rem;
    font-size: .75rem;
    font-family: "Open Sans", sans-serif;
}

.posts .post-categories * {
    display: inline-block
}

.posts .post-categories li {
    margin-bottom: .2rem;
    padding: .2rem .5rem;
    border-radius: 1rem;
    border: 1px solid;
    line-height: normal;
    font-family: "Open Sans", sans-serif;
}


@media(max-width: 699px) {

    body {
        width: 100%;
    }

    .since {
        text-align: left;
        padding-top: 10px;
    }


    #filteringOptions {
        flex-flow: column wrap;
    }

    #selectionTopic {
        width: 100%;
        max-height: 150px;
        overflow-y: scroll;
        overflow-x: hidden;
    }

    #selectionChange {
        width: 100%;
        max-height: 150px;
        overflow-y: scroll;
        overflow-x: hidden;
    }

    .tile {
        width: 100%;
        margin: 5px 0;
    }

    .layer {
        display: flex;
        flex-direction: column;
        width: 100%
    }

    .measure {
        padding: 5px;
        margin-bottom: 5px;
    }


    .change {
        justify-content: left;
        padding-top: 5px;
        margin: 0;
    }

    .change2 {
        justify-content: left
    }


    .commentary {
        margin-bottom: 10px;
        font-size: 16px;
        width: 90%;
        color: #222;
    }

    .chart {
        width: 100%;
        margin: 5px 0;

    }

    .source {
        display: none
    }

    .source2 {
        margin: 5px 0;
        display: block;
        margin: 5px 0;
        font-size: 14px;
        width: 90%;
        color: #414042;
    }

    .containerTop {
        flex-direction: column;
        align-items: flex-start;
    }
}