html,
body {
  width: 100%;
}

h2 {
  font-family: 'PT Sans', sans-serif;
  font-size: 17px;
  margin-bottom: 0px;
  font-weight: 700;
  width: fit-content;
  background-color: white;
  padding: 4px 6px;
  border: 1px solid #333;
  border-radius: 3px;
}

/* add in the media query for desktop */
@media only screen and (max-width: 728px) {
  h2 {
    font-size: 36px;
  }
}

h3 {
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  font-weight: 200;
  margin-bottom: 40px;
}

/* add in the media query for desktop */
@media only screen and (min-width: 728px) {
  h3 {
    font-size: 16px;
  }
}

h3 a {
  font-weight: bold;
  color: #000;
  text-decoration: underline;
  text-decoration-color: #1e32b0;
}

/*make hover set for h3 a*/
h3 a:hover {
  color: #1e32b0;
}

p,
.modal__text,
.chartTitleBackground {
  font-family: 'PT Sans', sans-serif;
  font-weight: 200;
}

body {
  position: relative;
  background-color: #fff;
  display: grid;
  height: 100vh;
  /* Set body height to 100% of viewport height */
  margin: 0;
  /* Remove default body margin */
  /*allow scroll*/
  overflow: auto;
}

body.sideNav {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  grid-gap: 20px;
}

.bodyContent {
  padding: 20px;
  /* Padding inside the .bodyContent */
  box-sizing: border-box;
  /* Include padding and border in total size */
  padding-bottom: 60px;
}

/* add in the media query for desktop */
@media only screen and (min-width: 1068px) {
  body.sideNav {
    grid-template-columns: 1fr 3.5fr;
    /* This creates two columns with a 25% / 75% split */
  }
}


@media only screen and (max-width: 768px) {
  body {
    grid-template-columns: 1fr;
  }
}


#searchBar {
  width: 50%;
  min-height: 30px;
  max-height: 30px;
}

input,
select {
  min-height: 34px;
  max-height: 34px;
  padding: 5px 10px;
  margin-bottom: 10px;
  margin-right: 10px;
  background-color: #fff;
  color: #393535;
  margin-top: 6px;
  border-radius: 4px;
  border: 1px solid #333;
  max-width: 200px;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #393535;
  opacity: 1;
  /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #393535;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #393535;
}

#searchBarSelectorContainer {
  position: relative;
  margin-bottom: 6px;
}

/* Search input */
#searchBarSelector {
  height: 30px;
  padding: 5px;
  border: 1px solid #333;
  border-radius: 4px;
  margin-bottom: 0px;
  padding-left: 10px;
  background-color: #fff;
}

.dropdownWrapper {
  position: relative;
  display: inline-block;
  /* To fit the width of the child select */
}

/* Results dropdown */
#resultsSelector {
  width: 320px;
  background-color: #d7d6e3;
  padding: 0px;
  max-height: 120px;
  overflow-y: scroll;
}

#resultsSelector button {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background-color: #fff;
  text-align: left;
  margin-right: 3px;
  margin-left: 3px;
  margin-bottom: 6px;
  margin-top: 4px;
  font-family: "PT Sans", sans-serif;
  font-size: 14px;
}

#resultsSelector button:hover {
  background-color: #3A83BD;
  color: white;
  cursor: pointer;
}

#resultsSelector .resultButtonSelected {
  background-color: grey;
  pointer-events: none;
  opacity: .3;
}

#searchBarResults {
  display: flex;
  color: white;
  flex-wrap: wrap;
}

#searchBarResults div {
  padding: 5px;
  color: #333;
  border: 2px solid #08296b;
  border-radius: 20px;
  background-color: #dce0eb;
  text-align: left;
  margin-right: 4px;
  margin-bottom: 4px;
  max-width: fit-content;
  font-family: 'PT Sans', sans-serif;
  font-size: 14px;
}

#searchBarResults div:hover {
  /* Add the styles you want to apply on hover here */
  background-color: #b3b3b3;
  /* For example, change the background color */
  color: #333;
  /* Change the text color, if needed */
  border-color: #b3b3b3;
  /* Change the border color, if needed */
  cursor: pointer;
}

#searchBarResults div::before {
  content: '';
  /* Set empty content */
  display: inline-block;
  margin-right: 5px;
  width: 10px;
  height: 10px;
  margin-left: 3px;
  margin-top: 4px;
  border: 1px solid #000;
  border-radius: 100px;
  background-image: url('data/x-symbol.svg');
  background-repeat: no-repeat;
  background-size: contain;
}


.yAxisText {
  font: 12px "PT Sans", sans-serif;
}

.resultButton.hidden {
  display: none;
}

.graphTitle {
  font-size: 20px;
  margin-bottom: 0px;
  border-bottom: 1px dashed #333;
  padding-bottom: 20px;
}

.graphSubtitle {
  margin: 0px;
}

.tick text {
  text-anchor: end;
  transform: rotate(0deg);
}


.graphHeaderBox {
  background-color: white;
  padding: 4px;
  border: 1px solid #333;
  /* Optional: adjust as per need */
  padding-top: 10px;
  padding-left: 10px;
  position: relative;
  z-index: 10;
}

.graphHeaderBox .keyBlockSub {
  font-size: 12px;
  margin-bottom: 4px;
  margin-top: 0;
}

.graphHeaderBox .keyBlockYes {
  min-width: 16px;
  max-width: 16px;
  margin-right: 5px;
}

.bodyContentSubhead {
  margin-top: 10px;
  font-size: 64px;
  margin-bottom: 0px;
  font-weight: bold;
  line-height: 68px;
}

.keyBlockSubhead {
  font-size: 14px;
  margin-bottom: 6px;
  padding-bottom: 6px;
}


.graphHeaderBox {
  background-color: #f5f5f5;
  padding: 4px;
  border: 1px solid #333;
  /* Optional: adjust as per need */
  padding-top: 10px;
  padding-left: 10px;
  border-bottom: 0px;
}

/* add in the media query for desktop */
@media only screen and (max-width: 768px) {
  .graphHeaderBox {
    display: block;
  }
}

.graphHeaderBox .keyBlockSub {
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 12px;
}

.graphHeaderBox .keyBlockYes {
  min-width: 12px;
  max-width: 12px;
  margin-right: 5px;
}

.modalContent {
  max-width: 50%;
  margin: 0 auto;
}

.modalContent img {
  max-width: 100%;
  margin: 0 auto;
  margin-top: 14px;
  margin-bottom: 14px;
}

#sidePanelButton {
  background-color: white;
  border: 1px solid #333;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 4px;
  padding-right: 4px;
}

/* come up with a hover content*/
#sidePanelButton:hover {
  background-color: #0e47b9;
  color: white;
  cursor: pointer;
}

#sidePanelButton::before {
  content: '';
  /* Set empty content */
  display: inline-block;
  margin-right: 5px;
  width: 13px;
  height: 13px;
  margin-left: 1px;
  margin-top: 4px;
  background-image: url('data/chart.png');
  background-repeat: no-repeat;
  background-size: contain;
}

#downloadButton1::before {
  content: '';
  /* Set empty content */
  display: inline-block;
  margin-right: 5px;
  width: 13px;
  height: 13px;
  margin-left: 1px;
  margin-top: 4px;
  background-image: url('data/download.svg');
  background-repeat: no-repeat;
  background-size: contain;
}

#assessmentCheckbox {
  font-size: 13px;
  line-height: 14px;
  font-family: "PT Sans", sans-serif;
}

#assessmentCheckbox input {
  min-height: auto;
  margin-right: 3px;
}

#assessmentCheckbox label {
  margin-top: 5px;
  margin-right: 10px;
}

button {
  background-color: white;
  border: 1px solid #333;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 4px;
  padding-right: 4px;
  margin: 0 auto;
  cursor: pointer;
  font-family: "PT Sans", sans-serif;
}

button:hover {
  transform: translate(1px, 1px);
  color: white;
  background-color: #3A83BD;
}

#searchBarResultsContaisuner+div {
  flex-wrap: wrap;
}

#clearSelections {
  background-color: #333 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

#clearSelections:hover {
  background-color: #6e7070 !important;
}

#clearSelections::before {
  background-color: white;
}

.hiddenXAxis g {
  opacity: 0;
}

.windows-os #tableContent::-webkit-scrollbar {
  width: 0;
  /* for Chrome, Safari, etc. */
  background: transparent;
  /* for Safari */
}

.windows-os #tableContent {
  scrollbar-width: none;
  /* for Firefox */
}

#my_dataviz,
#svganchor {
  overflow: scroll;
  height: 400px !important;
  width: 100%;
}

.lineChartElement {
  stroke: #706fd3;
  stroke-width: 3px;
}

.lineChartElement.active {
  stroke: #706fd3;
  stroke-width: 3px;
}

div.tooltip {
  position: absolute;
  text-align: left;
  color: #333;
  white-space: normal;
  padding: 6px;
  font-size: 12px;
  background: white;
  border: 1px solid #607d8b;
  border-radius: 2px;
  pointer-events: none;
  cursor: none;
  min-width: 180px;
  font-family: "PT Sans", sans-serif;
}

div.tooltip h3 {
  margin-bottom: 0px;
}


.keyBlock {
  display: flex;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  margin-right: 30%;
}

.keyBlockSub {
  display: flex;
  margin-right: 20px;
  margin-top: 20px;
}

.keyBlockYes {
  margin-right: 5px;
  margin-top: 0px;
}

#svganchor {
  background-color: white;
  padding: 6px;
  border: 1px solid #333;
  margin: 0 auto;
}

.chart {
  background-color: #892727;
  border: 1px solid #333;
  display: flex;
  flex-direction: column-reverse;
  margin-right: 10px;
  margin-bottom: 20px;
  height: auto;
  max-height: 210px;
  border-radius: 3px;
}

.chart svg {
  background-color: white;
}

#svganchor {
  height: 500px;
  margin-top: 0px;
}

#svganchorContainer {
  max-height: 520px;
  overflow-y: scroll;
}

.chartTitle {
  font-size: 14.5px;
  font-weight: bold;
  margin: 0 auto;
  margin-top: 7px;
  margin-bottom: 7px;
  text-transform: capitalize;
  text-align: center;
  max-width: 160px;
}

.chartTitleBackground {
  background-color: #3A83BD;
  color: #fff;
  padding-left: 10px;
}

.low-opacity {
  display: none !important;
  /* or any other value you prefer */
}

.benchmarkGroup {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

#benchmark1 {
  border-top: 1px solid #333;
  margin-top: 10px;
  padding-top: 20px;
}

.benchmarkTitle {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 40px;
  text-transform: capitalize;
  font-family: 'PT Sans', sans-serif;
}

#infoText {
  font-size: 13px;
  font-style: italic;
  margin-top: 10px;
}

.chart[data-currentwave="2"] {
  background-color: #aaaaaa;
}


.trendPlots .chart[data-currentwave="2"] .myDots[data-time="2021"] {
  fill: #E9CBCC;
}

.genderGap .chart[data-currentwave="2"] .myDots[data-time="2021"] {
  fill: #929292;
}

.gender-tooltip-content {
  display: flex;
  flex-direction: column;
}

.gender-tooltip-row {
  display: flex;
}

.gender-tooltip-row .gender-tooltip-column:first-child {
  flex: 0 0 33%;
  /* Taking 20% width for the year */
  text-align: left;
}

.gender-tooltip-row .gender-tooltip-column:nth-child(2) {
  flex: 0 0 33%;
  /* Taking 40% width for boys */
  text-align: left;
  border-left: 1px dashed #333;
  padding-left: 4px;
}

.gender-tooltip-row .gender-tooltip-column:nth-child(3) {
  flex: 0 0 33%;
  /* Taking 40% width for girls */
  text-align: left;
  border-left: 1px dashed #333;
  padding-left: 4px;
}

#graphContainer {
  position: relative;
  background-color: white;
  border: 1px solid #333;
  box-shadow: inset 0 2 2px #4f4f4f;
}

#datavizCopy {
  position: absolute;
  top: 0;
  left: -240%;
  z-index: 1;
  height: 100%;
  width: 100%;
  background-color: #f6f6f6;
  border: 1px solid #607d8b;
  overflow-y: hidden;
}

#datavizCopy #tableHeader {
  background-color: #f6f6f6;
  border-bottom: 2px solid #607d8b;
  z-index: 2;
}

#datavizCopy #tableContent {
  overflow-y: scroll;
  max-height: 355px;
  /* Adjusted for header height */
}

.tableCountry {
  display: flex;
  justify-content: space-between;
  line-height: 15.8px;
  padding-left: 4px;
  border-bottom: 1px solid #d1d1d1;
}

.tableCountry:first-of-type p {
  font-weight: bold;
  display: flex;
  flex-direction: column-reverse;
  line-height: 13px;
}

.tableCountry p {
  width: 30px;
  font-size: 12px;
  margin: 0;
  border-right: 1px dashed #000;
}

.tableCountry p:first-child {
  width: 50%;
  float: left;
  margin-bottom: 3.8px;
  text-align: right;
  padding-right: 8px;
  border-right: 1px dashed #333;
}

.tableCountry p:not(:first-child) {
  width: calc(50% / 2); /* 60% divided by 4 elements */
  float: left;
  margin: 0%; /* 2.5% margin on both sides */
  text-align: center;
  padding-left: 10px;
  margin-top: 4px;
}

/* add in the media query for desktop */
@media only screen and (min-width: 768px) {
  #graphContainer {
    max-width: 740px;
  }
}

/* add in the media query for desktop */
@media only screen and (min-width: 1068px) {
  #graphContainer {
    max-width: 800px;
  }
}

.tooltipChart {
  border: 1px solid #333;
}

.deactivated {
  opacity: 0.2;
}

.group-container {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #d9e6f2;
}

.group-container.deactivated {
  background-color: #cfc9c9;
  opacity: 0.2;
}

.group-container:hover {
  border: 1px solid #333;
  opacity: .8;
}

#cohortSelector {
  border-radius: 100px;
  margin-top: 10px;
  width: 100%;
  padding: 5px 10px;
}

.cohort-content {
  pointer-events: none;
}

#cohortSelector {
  pointer-events: auto;
}

tooltip p {
  margin-bottom: 0px;
}