@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');
*, *:before, *:after {
  box-sizing: border-box;
  transition: .3s;
}

h2 {
    font-size: 20px;
}


#scenario-2 {
  display: none;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}


#wrapper {
  margin: 10px auto;
  width: 90%;
  max-width: 900px;
  min-width: 320px;
  padding: 0 32px;
}

.cellWrapper {
  display: flex;
  margin: 0;
}

.cellWrapper-left {
  flex: 1;
  min-width: 100px;
}

.cellWrapper-right {
  flex: 1;
}
.combine {
  width: 100%;
}

.sum {
  color: #999;
  height: 24px;
  margin: 8px 8px 0 8px;
  padding: 4px 0 8px;
  font-size: 12px;
  text-align: center;
  border-top: 0px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  border-left: 2px solid #999;
}

.sum-point {
  width: 4px;
  height: 16px;
  background-color: #999;
  margin: 0 auto 8px auto;
}
.warn {
  display: inline-block;
  font-size: 14px;
  color: #ff0000;
  font-weight: bold;
  resize: none;
  border: 0;
}

input {
  border: 0px;
  font-size: 16px;
  background: none;
  padding: 0;
}

button {
  background-color: #ccc;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  -webkit-box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .1);
     -moz-box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .1);
          box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .1);
}

button:hover {
  background-color: #eee;
  cursor: pointer;
}

button:active {
  background-color: #ccc;
  -webkit-box-shadow: .5px .5px .5px .5px rgba(0, 0, 0, .5);
     -moz-box-shadow: .5px .5px .5px .5px rgba(0, 0, 0, .5);
          box-shadow: .5px .5px .5px .5px rgba(0, 0, 0, .5);

}


table {
  width: 100%;
  border: 0;
  border-spacing: 0;
}

 tr {
  display: flex;
  flex-direction: row;
  margin: 6px 0;
}

tr .left {
  flex: 1;
  min-width: 10%;
  max-width: 20%;
  text-align: right;
  padding-right: 8px;
  font-size: 16px;
}

tr .right {
  flex: 3;
}

#population-bar-wrapper {
}

  #population-bar {
    height: 24px;
    background-color: #81BAFC;
    color: #fff;
    text-align: right;
    vertical-align: middle;
    padding: 4px;
  }

  #totalPopulation-out {
    text-align: right;
    width: 40px;
    color: #fff;
  }

#elderly-popultion-wrapper {
}

  #elderly-population-marker {
    margin-top: 6px;
    height: 8px;
    border-top: 0;
    border-right: 2px solid #0078B9;
    border-bottom: 2px solid #0078B9;
    border-left: 2px solid #0078B9;
    width: 20%;
  }

  #elderly-population-text {
    color: #0078B9;
  }
  #elderlyPopulation-out {
    border: 0;
    padding: 0;
    width: 30px;
    color: #0078B9;
    text-align: right;
  }

#income-wrapper {
  display: flex;
}
  #income-bar {
    flex: 2;
    background-color: #ccc;
  }

  #incomeTaxRate-warn {
      flex: 1;
      width: 100%;
      height: 60px;
  }

  #income-tax-bar {
    height: 100%;
    background-color: #7ED321;
    text-align: right;
    padding: 12px 8px;
  }

  #incomeTaxRate-x {
    width: 30px;
    text-align: right;
    color: #333;
  }

#national-budget-bar-max {
  background-color: #eee;
  border: 0;
  text-align: right;
  height: 100%;
}
  #national-budget-bar {
    background-color: #B9F07C;
    border: 0;
    padding: 8px 4px;
    text-align: right;
    height: 100%;
  }

  #nationalBudget-out {
    text-align: right;
    width: 50px;
    color: #333;
  }

  #budgetHealthcare-marker {
    width: 100%;
    display: absolute;
    height: 8px;
    margin: 0;
    border-top: 0px;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    border-left: 1px solid #000;
  }

  #budgetHealthcare-x {
    width: 30px;
    font-size: 20px;
    background: none;
  }

  .budgetHealthcare-marker {
    padding-left: 10px;
    border-left: 1px solid #000;
    margin-left: 10px;
  }

  #budgetHealthcare-warn {
    width: 100%;
    height: 60px;
  }

  #budgetHealthcare-bar {
    display: inline-block;
    height: 40px;
    background-color: #CBEFA6;
  }

  #budgetHealthcare-out,
  #healthcareCost-out {
    width: 52px;
    font-weight: bold;
    font-size: 16px;
  }

  #budgetHealthcare-out {
    color: #417505;
  }

  #healthcareCost-bar {
    display: inline-block;
    height: 40px;
    background-color: #FFABA1;
  }

  #healthcareCost-warn {
    width: 100%;
    height: 24px;
  }

#spendingWrapper {
  display: flex;
  flex-direction: row;
}
#spendingWrapper-left {
  flex: 1;
  padding: 4px 8px;
}
#spendingWrapper-right {
  flex: 1;
  padding: 4px 8px;
  max-width: 50%;
}

#averageHealthcareCost-bar{
  background-color: #fff;
  border: 1px solid #FF6969;
  text-align: right;
  height: 180px;

}

#healthcareSubsidyRate-bar{
  background-color: #FF6969;
  border: 0px;
  text-align: right;
  height: 100%;
  min-height: 60px;
  padding: 4px;
  color: #fff;
}

#healthcareSubsidyRate-x {
  width: 25px;
  color: #fff;
}


#treatmentMarker {
  display: flex;
  flex-direction: row;
  padding-bottom: 4px;
}

#treatmentMarker-lineWrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#treatmentMarker-line-top {
  flex: 1;
}

#treatmentMarker-line-bottom {
  border-top: 2px solid #FF6969;
  flex: 1;
}

#treatmentMarker .marker-left {
  border-left: 2px solid #FF6969;
}

#treatmentMarker .marker-right {
  border-right: 2px solid #FF6969;
}

#treatmentMarker-text {
  color: #FF6969;
  padding: 0 4px;
  flex: 3;
  text-align: center;
}

#averageHealthcareCost-x {
  color: #FF6969;
  font-size: 14px;
  width: 30px;
}
#peoplePay {
  display: flex;
  flex-direction: column;
  text-align: right;
}

#peoplePay-text {
  color: #FF6969;
  font-size: 14px;
  flex:none;
  position: relative;
}

#peoplePay-x {
  color: #FF6969;
  font-size: 14px;
  width: 30px;
}

#peoplePay-markers {
  position: relative;
  flex: none;
  border-top: 0;
  border-left: 2px solid #FF6969;
  border-bottom: 2px solid #FF6969;
  border-right: 2px solid #FF6969;
  min-height: 10px;
  width: 100%;
}

#spendingWrapper-right-row {
  display: flex;
  flex-direction: row;
}
#healthcareSubsidyRate-warn {
  width: 100%;
  min-width: 200px;
  text-align: center;
  height: 100px;
}

.row-sub-two {
  border-radius: 8px;
  flex: 2;
  padding: 8px;
  margin: 4px;
}


.row-sub {
  border-radius: 8px;
  flex: 1;
  padding: 8px;
  margin: 4px;
}




#healthcareQuality-out {
  flex: none;
  font-size: 36px;
  width: 96px;
}

#healthcareQuality-warn {
  flex: none;
  color: #ff0000;
  font-size: 12px;
  background: none;
  height: 60px;
  text-align: center;
}

#waitingTime-out {
  font-size: 20px;
  width: 40px;
}

.spending-cell {
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 4px 8px 16px ;
  text-align: center;
}
.spending-text {
  margin-top: 8px;
  width: 100%;
  font-size: 24px;
  padding: 4px;
  height: 28px;
  text-align: center;
}

h4 {
  font-size: 16px;
  font-weight: 900;
}

#healthcareQualityWrap {
  background-color: #FFDCDC;
  border-radius: 8px;
  text-align: center;
}

#waitingTimeWrap {
  background-color: #efefef;
  border-radius: 8px;
  text-align: center;
}

#incomeWrapper {
  border: 2px solid #417505;
  padding: 4px;
  border-radius: 8px;
}


h5 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 4px 0;
  display: block;
  color: #fff;
  border-radius: 8px;
  width: 100%;
}

#amountForHealthcare {
  color: #417505;
}

#amountForSpending {
  color: #B82626;
}

#spendingWrap {
  border: 2px solid #B82626;
  padding: 4px;
  border-radius: 8px;
}

#incomeWrapper h5 {
  background-color: #417505;
  padding: 4px;
}


#spendingWrap h5 {
  padding: 4px;
  background-color: #B82626;
}
