body {
  max-width: 700px;
  font-family: 'Open Sans', sans-serif;
}

tspan,
label {
  padding-top: 12px;
  padding-left: 10px;
  font-size: 16px !important;
}

.button-select{
  min-width: 200px;;
  display: block;
  height: 100px;
  padding: 10px;
}

.visuallyhidden{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/*@media only screen and (max-width: 600px) {
  .button-select{
    width:60%;
  }*/

.button-select-header{
  font-size: 18px;
}

.scroll-option{
  height: 1000px;
  width: 500px;
}

.grey-box-text {
  padding: 12px 12px 12px 12px;
  background-color: #eaeaea;
  margin: 10px 0px 10px 0px;
  justify-content: flex-start !important;
}

.security{
  padding-top: 4px;
}

.link {
  color: #206095;
  text-decoration: underline;
}

.propgraph-label{
    fill: #666;
  /*fill: white;*/
  font-size: 16px;
  text-anchor: middle;
  width: 100%;
  display: inline-flex;
}

.propgraph-label span{
  display: inline-block;
}

.propgraph-cat-label{
  fill: #666;
  font-size: 16px;
}


h3 {
  font-size: 24px;
  margin: 16px 0 16px;
  font-weight: 700;
  line-height: 32px;
}

h6 {
  font-size: 16px;
  margin: 16px 0 8px 0;
  font-weight: 700;
  color: #323132;
}

.bold {
  font-weight: 700;
}

.underline {
  text-decoration: underline;
}

.header{
  margin-top: 10px;
  width: 65%;
  max-width: 366px;
}

@media only screen and (max-width: 600px){
  .header{
    width: 100%;
    max-width: 600px;
  }
}

@media only screen and (max-width: 600px){
  .desktop-till{
    display: none;
  }
  .desktop{
    display: none;
  }
  .item{
    margin-left: 10px;
  }
  .big-padding-bottom-mobile{
    padding-bottom:30px !important;
  }
}

@media only screen and (min-width: 601px){
  .mobile-till{
    display: none;
  }
  .mobile{
    display: none;
  }
}

.error{
  color: white;
  font-weight: 700;
  margin-bottom: 10px;
  background-color: rgb(249, 156, 33);
}

.chapter-line {
  background-color: #BCBCBD;
  height: 4px;
  margin-top: 12px;
  margin-left: 0px;
  margin-right: 0px;
}

.chapter-line-light {
  background-color: #206095;
}

.chapter-line-blue {
  background-color: #fff;
}

.mobile-blue-line {
  background-color: #003C57;
  height: 4px;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
}

.mobile-green-line {
  background-color: #57A77B;
  height: 4px;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
}

.progress {
  flex-grow: 1;
  margin-right: 10px;
  margin-bottom: 20px;
}

.section-container {
  position: relative;
  padding: 0px;
  margin: 20px 0px 20px 0px
}

.intro-container{
  position: relative;
  padding: 10px 20px 0px 20px;
  margin-top: 20px;
}

.intro-container2{
  position: relative;
  padding: 20px 20px 20px 20px;
  margin-top: 0px;
}

.intro-container3{
  position: relative;
  padding: 0px 0px 0px 00px;
  margin-top: 0px;
}

/* .axis {
  color: #707071;
} */

.axis .tick text{
  fill:#666;
  font-size:16px;
}

.grey-box-text {
  padding: 6px 8px 6px 8px;
  background-color: #f5f5f6;
  margin: 10px 0px 10px 0px;
}

.security {
  padding-top: 4px;
  padding-right: 5px;
}

.info-box {
  padding: 20px;
  flex-grow: 1;
  flex-basis: 0;
}

.info-box-light {
  background-color: #e9f0f5;
  color: #206095;
}

.info-box-superlight{
  background-color: #F4F7FA;
  color: #206095;
}

.info-box-blue {
  background-color: #206095;
  color: white;
}

.info-base{
  width: 45%;
}

.question {
  font-weight: 700;
  font-size: 16px;
  margin: 10px 5px 0px 0px;
}

.avgcompare{
  font-size: 16px;
  /*margin-top: 5px;*/
  margin-bottom: 5px;
}

p {
  margin: 18px 0;
}

input {
  font-size: 16px;
  -webkit-writing-mode: horizontal-tb !important;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="radio"]{
  margin-top: 8px;
  margin-left: 8px;
}

input[type="text"], input[type="number"], button, select {
  position: relative;
  margin: 2px 0;
  padding: 2px 0 0;
  height: 30px;
  outline: 0;
  border: 2px solid #206095;
  color: #206095;
  font-size: 16px;
  /*line-height: 0;*/
  cursor: pointer;
  pointer-events: all;
}

button{
  line-height: 0;
}

.number-input-container, .dropdown-container, .money-input-container {
  display: inline-block;
  /*margin-bottom: 0px;*/
  /*margin-top: 5px;*/
}

.number-input-container {
  width: 180px;
}

.dropdown-container, .money-input-container {
  position: relative;
  margin-right: 5px;
}

div.number-input>input[type="number"], .button-step {
  float: left;
}

div.number-input>input[type="number"] {
  border-left: none;
  border-right: none;
  width: 50px;
  appearance: textfield;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  text-align: center;
}

div.spending {
  position: relative;
}

.sidebar{
  width: 3px;
  height: 85px;
  background-color: #BCBCBD;
  margin-left: 15px;
  margin-right:15px;
}

@media only screen and (max-width: 414px) {
    .sidebar {
        display: none;
    }
}

input.money-input {
  width: 190px;
  padding-left: 46px;
}

input.income {
  width: 90px;
  padding-left: 46px;
}

input.spending {
  width: 110px;
  padding-left: 46px;
  margin-bottom: 10px;
}

select {
  width: 254px;
  padding-left: 10px;
}

select.income {
  width: 140px;
  padding-left: 10px;
}

select.spending {
  width: 150px;
  padding-left: 10px;
  margin-bottom: 10px;
}

button {
  height: 36px;
  background-color: #206095;
  color: white;
}

.button-step {
  font-size: 24px;
  vertical-align: middle;
  width: 40px;
}

button:focus, input:focus {
  z-index: 1;
}

button:hover {
  background-color: #003C57;
}

button:focus, input:focus, select:focus, button.socialbutton:focus {
  outline: 3px solid orange;
}

button.socialbutton {
  height: 40px;
  background-color: white;
  border: none;
  margin-right: 8px;
}

.button-clear {
  display: inline-block;
  margin: 0px 10px;
  background-color: white;
  padding: 0px;
  border: none;
  color: #206095;
  text-decoration: underline;
  text-align: center;
  overflow-x: hidden
}

.button-clear:hover {
  background-color: white;
}

.button-grey {
  display: inline-block;
  margin: 0px 0px;
  background-color: #f5f5f6;
  padding: 0px;
  border: none;
  color: #206095;
  text-decoration: underline;
  text-align: center;
  overflow-x: hidden;
  font-weight: 700;
  height: 20px;
}

.button-grey:hover{
  background-color: #f5f5f6;
}

#backtoDetailed{
  justify-content: center;
}

#monthlyexpenditure{
  padding-bottom: 40px;
}


#option-select{
  justify-content: center;
  margin-bottom: 20px;
  /*height: 100px;*/
}

#barchart{
  margin-top: 10px;
}

#monthlyexpenditure{
  margin-top: 10px;
}

.option-select-minor{
  width:100%;
}

#option-button-text{
  justify-content: center;
}

.toDetailed{
  display: flex;
  align-items: center;
  justify-content: center;
}

#inflation-updated{
  font-size: 16px;
  padding-bottom: 0px;
  height: 18px;
}

.updateText{
  margin-bottom: 14px;
}

.dropdown {
  height: 36px;
  border: 2px solid #206095;
  color: #206095;
  background-color: #fff;
  -webkit-appearance:none;
}

/* ::before, ::after {
  box-sizing: border-box;
} */
.dropdown-container::before {
  height: 36px;
  width: 39px;
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 0px;
  /* bottom: 2px; */
  background: #206095;
  content: '';
  pointer-events: none;
}

.dropdown-container::after {
  content: '';
  position: absolute;
  top: 0px;
  z-index: 2;
  right: 12px;
  margin: 16px 0 0 0;
  border-style: solid;
  border-width: 10px 8px 0 8px;
  border-color: #fff transparent transparent transparent;
  pointer-events: none;
}

.money-input-container:before {
  height: 29px;
  width: 24px;
  background-color: #9AB1C4;
  position: absolute;
  top: 4px;
  left: 2px;
  z-index: 2;
  content: '£';
  font-size: 18px;
  color: black;
  padding-top: 3px;
  padding-left: 12px;
  font-weight: bold;
}

.button-calculate {
  display: block;
  margin: 10px 20px 20px 10px;
  background-color: #0F8243;
  padding: 20px;
  border: none;
  font-weight: 700;
}

.button-calculate:hover {
  background-color: #004F10;
}

.button-option {
  display: block;
  margin: 0px 20px 0px 20px;
  background-color: #206095;
  color: white;
  padding: 15px;
  border: none;
  font-weight: 700;
}

.button-option:hover {
  background-color: #003C57;
}

.button-reset {
  display: block;
  margin: 20px 0px;
  background-color: #0F8243;
  padding: 15px;
  border: none;
  font-weight: 700;
}

.button-reset:hover {
  background-color: #004F10;
}

.button-back {
  display: block;
  margin: 10px 0px;
  background-color: #A6A6A6;
  padding: 20px;
  border: none;
  color: black;
  font-weight: 700;
  white-space: normal;
}

.button-back:hover {
  background-color: #8A8A8A;
}

.button-skiptoend {
  display: block;
  margin: 20px 0px;
  background-color: #A6A6A6;
  padding: 15px;
  border: none;
  color: black;
  font-weight: 700;
  white-space: normal;
}

.button-skiptoend:hover {
  background-color: #8A8A8A;
}

.button-skip {
  display: block;
  margin: 20px 10px;
  background-color: white;
  padding: 0px;
  border: none;
  color: #206095;
  text-decoration: underline;
}

.button-skip:hover {
  background-color: white;
}

.button-redo {
  display: block;
  margin: 5px 5px 15px 0px;
  background-color: #e9f0f5;
  padding: 0px;
  border: none;
  color: #206095;
  text-decoration: underline;
  font-size: 16px;
  height: 24px;
}

.button-redo:hover {
  background-color: #e9f0f5;
}

.output {
  position: relative;
  width: 100%;
}

/* summary styles */
#summary-graphic {
  padding-top: 10px;
  overflow: auto;
}

.summary-text {
  line-height: 20px;
  clear: both;
  float: left;
  min-width: 290px;
  max-width: 450px;
  margin-right: auto;
  padding: 6px 0 0px 0;
  font-size: 16px;
}

.summary-description {
  width: 400px;
}

.decile-houses-text {
  font-size: 16px;
  color: #707071;
}

#menu-outer {
  height: 70px;
}

.menu-item {
  /*display: inline-block;*/
  margin-top: 18px;
  margin-right: 20px;
  width: 150px;
  float: left;
  background-color: #e9f0f5;
  text-align: center;
  color: #206095;
  cursor: pointer;
}

.menu-selected {
  padding: 5px 0px 5px 0px;
  background-color: white;
  border-top: 2px solid #6390b5;
  border-left: 2px solid #6390b5;
  border-right: 2px solid #6390b5;
  border-bottom: 2px solid white;
  z-index: 1;
  position: relative;
  cursor: auto;
}

button.disabled {
  background-color: #d6d6d6;
  color: #A6A6A6;
  cursor: pointer;
  pointer-events: none;
}

.icon{
  padding-top: 10px;
  padding-right: 10px;
}

input.disabled {
  color: #6390b5;
  border: 2px solid #6390b5;
  cursor: auto;
}

.label-container {
  background-color: white;
}

.decile-label {
  font-size: 16px;
  color: #206095;
  background-color: white;
}

.decile-label text {
  font-size: 16px;
  color: #206095;
  background-color: white;
}

.decile-label tspan {
  font-size: 16px;
  color: #206095;
  background-color: white;
}

.source {
  font-size: 16px;
}

.x path.domain {
  stroke: none;
  fill: none;
}

h3 {
  margin: 16px 0px 5px 0px;
  color: #323132;
}

h4 {
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 24px;
  font-size: 16px;
}

.bignumber {
  font-size: 2.3em;
  font-weight: 700;
  line-height: 2em;
  margin-top: 22px;
}

.bignumber-blue{
  color: #206095
}

.results-inflation{
  left: 90px !important;
  top: -5px !important;
}

.results-monthlychange{
  left: 70px !important;
  top: 15px !important;
}

.extra-topmargin{
  margin-top:30px;
}

@media only screen and (max-width: 600px){
  .results-inflation{
    top: -15px !important;
    /*bottom: 120px !important;*/
    left: 35px !important;
    font-size: 22px !important;
  }
  .results-monthlychange{
    top: 60px !important;
    /*bottom: 120px !important;*/
    left: 30px !important;
    font-size: 22px !important;
  }
}

.graphic-heading {
  margin-top: 10px;
  color: #206095;
}

.graphic-heading-white {
  color: white;
}

.column-major {
  display: block;
}

.column {
  display: flex;
  flex-direction: column;
   /*align-items: flex-start;*/
  margin-right: 10px;
}

.row-major {
  display: flex;
  flex-direction: row;
  /* align-items: flex-start; */
  flex-wrap: wrap;
  justify-content: space-between;
}

.row-on-mobile {
  display: flex;
  flex-direction: column;
  /* align-items: flex-start; */
  flex-wrap: wrap;
}

@media only screen and (max-width: 600px){
  .row-on-mobile {
    flex-direction: row;
    justify-content: flex-start !important;
  }
}


.row-minor {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-evenly;
}

.row-buttons {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
}

.column-buttons{
    display: flex;
    flex-direction: column;
    align-items: center;;
    flex-wrap: wrap;
    justify-content: center;;
    align-content: center;
}

.halfscreen{
  width:45%;
  margin-right: 20px;
}


.overlaycontainer{
  position: relative;
}

.overlay{
  position: absolute;
}

.reciept{
  top: -25px;
}

.runninginf{
  top: 40px;
  left: 50px;
}



@media only screen and (max-width: 600px){
  label{
    width: 75%;
  }

  .runninginf{
    top: 60px;
    left: 25px;
  }

  .halfscreen{
    width:40%;
  }
}

@media only screen and (max-width: 414px) {
  h3 {
    font-size: 21px;
  }

  .hidden-on-mobile {
    display: none;
  }

  .column-on-mobile {
    flex-direction: column
  }

  .column-on-mobile div {
    margin-bottom: 20px;
  }
  .threequarter-width-mobile{
    width: 75%
  }
  .security {
    padding-top: 12px;
  }
  .big-margin-top-mobile{
    margin-top: 40px !important;
  }
  #inflationrate-summary{
    padding-bottom: 20px !important;
  }
  .runninginf-text-mobile{
    font-size: 24px;
    font-weight: 700;
  }
}

@media only screen and (max-width: 340px){
  .runninginf{
    top: 60px;
    left: 25px;
  }
}

.item {
  flex-basis: 0;
  justify-content: space-between;
}

.footnote{
  font-size: 14px;
}



.legend-circle {
  border-radius: 50%;
  width: 15px;
  height: 15px;
  margin-right: 5px;
}

.legend-label {
  font-size: 16px;
  color: rgb(112, 112, 112);
  margin-right: 10px;
  width: 75%;
}

.last-legend{
  margin-bottom: 10px !important;
}

.colour-matisse {
  background-color: #206095;
}

.colour-green {
  background-color: #A8BD3A;
}

.colour-teal {
  background-color: #17A5A3;
}

.colour-lightblue {
  background-color: #A6BFD5;
}

.colour-darkred {
  background-color: #902092;
}

.colour-blue{
  background-color: #206095;
}

.colour-lightred {
  background-color: #F66068;
}

.colour-darkgrey {
  background-color: #871A5B;
}

.colour-grey{
  background-color: #F5F5F6;
}

.legend {
  font-size: 16px;
}

.spendingquestion {
  width: 300;
  font-weight: 700;
  font-size: 16px;
  vertical-align: baseline;
}

.tippy-box[data-theme~='ons'] {
  background-color: #206095;
  color: white;
}

.tippy-box[data-theme~='ons'][data-placement^='top'] > .tippy-arrow::before {
  border-bottom-color: #206095;
}

.tippy-box[data-theme~='ons'] > .tippy-svg-arrow {
  fill: #206095;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
