/*
Author: Cheikh Fall, Rey Serrano
Edited by: Aayush Singh
*/

/* FONTS ---------------------------------------------------------------------*/

@font-face {
  font-family: "Greycliff";
  font-style: normal;
  font-display: swap;
  src: url("fonts/GreycliffCF-Regular.woff2"),
    url("fonts/GreycliffCF-Regular.woff");
}

@font-face {
  font-family: "Greycliff Bold";
  font-display: swap;
  src: url("fonts/GreycliffCF-Bold.woff2"),
    url("fonts/GreycliffCF-Bold.woff");
}

@font-face {
  font-family: "Greycliff Medium";
  font-display: swap;
  src: url("fonts/GreycliffCF-Medium.woff2"),
    url("fonts/GreycliffCF-Medium.woff");
}

@font-face {
  font-family: "Greycliff Demi Bold";
  font-display: swap;
  src: url("fonts/GreycliffCF-DemiBold.woff2"),
    url("fonts/GreycliffCF-DemiBold.woff");
}

div {
  font-family: "Greycliff", Arial, Helvetica, sans-serif;
}

/* DASH APP CONTAINER STYLES -------------------------------------------------*/

/* Container styles */

#react-entry-point {
  background-color: #fef7ed;
  padding: 30px;
}

#react-entry-point h1 {
  margin-top: 0;
}

/* ADDED */
* {
  box-sizing: border-box;
}

.filter-box {
  display: grid;
  /* grid-template-columns: auto auto auto; */
  grid-template-columns: 1fr 1fr 1fr; /* change made to get three graphs to same size */
  gap: 10px;
  background-color: #f2e9d7;
  padding: 15px;
}

.chart-box {
  margin-top: 30px;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* judy example */
@media (max-width: 1000px) {
  .filter-box, .chart-box {
    grid-template-columns: inherit;
    grid-template-rows: auto auto auto;
  }
} 

/* added */

.filter-box input {
  max-width: 60px;
  width: 100%;
  box-sizing: border-box;
}

.unemployment-filter, .weight-filter, .inflation-filter {
  background-color: #FFF;
  padding: 15px;

  /* added */
  width: 100%;
  box-sizing: border-box;
}

.unemployment-filter h2, .weight-filter h2, .inflation-filter h2 {
  margin: 0 0 15px;
  font-size: 20px;
  text-align: center;
}

.unemployment-sliders {
  display: grid;
  grid-template-columns: 80px auto 50px;
  grid-template-rows: auto auto auto auto;
  grid-gap: 1px;
  row-gap: 10px;
  width: 100%;
  margin: auto;
}

.weight-sliders {
  display: grid;
  grid-template-columns: 120px auto 120px;
  grid-template-rows: auto auto auto;
  grid-gap: 1px;
  row-gap: 10px;
  margin: auto;
  text-align: center;
}

.inflation-sliders {
  display: grid;
  grid-template-columns: 80px auto 50px;
  grid-template-rows: auto auto auto auto;
  grid-gap: 1px;
  row-gap: 10px;
  width: 100%;
  margin: auto;
}

.unemployment-chart {
  display: flex;
  height: 450px;
  margin: 15px auto;
  width: 100%;
}

.inflation-chart {
  display: flex;
  height: 450px;
  margin: 15px auto;
  width: 100%;
}

.ffr-chart {
  display: flex;
  height: 450px;
  margin: 15px auto;
  width: 100%;
}

/* Text, slider, and button styles */

.year1-text {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  text-align: center;
}

.year2-text {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  text-align: center;
}

.year3-text {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  text-align: center;
}

.longrun-text {
  grid-column: 1 / 2;
  grid-row: 4 / 5;
  text-align: center;
}

.year1-slider {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.year2-slider {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.year3-slider {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

.longrun-slider {
  grid-column: 2 / 3;
  grid-row: 4 / 5;
}

.year1-input {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.year2-input {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.year3-input {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

.longrun-input {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}

.weight-slider {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-content: center;
}

.weight-unemptext {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.rc-slider-mark-text,
.rc-slider-mark-text-active {
    color: #000 !important;
}


.weight-inftext {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.weight-input {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.button-box {
  text-align: center;
  margin: 0 auto;
  padding-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  background-color: #f2e9d7;
}

.button-box button {
  background-color: #008280;
  text-align: center;
  padding: 10px;
  width: 200px;
  color: #FFF;
  border: none;
  font-size: 14px;
  margin: 5px;
}

.rc-slider-track {
  background-color: #008280 !important;
}

.rc-slider-handle:active {
  border-color: #008280 !important;
  box-shadow: 0 0 5px #008280 !important;
}

.rc-slider-rail {
  height: 5px;
}

.rc-slider-track {
  height: 5px;
}

.rc-slider-vertical .rc-slider-rail {
  width: 5px;
}

.rc-slider-vertical .rc-slider-track {
  width: 5px;
}

.rc-slider-handle {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  background-color: #008280;
  border: 2px solid #008280;
  box-shadow: none;
}

.rc-slider-step {
  display: none;
}

#page-content {
  width: 100%;
}

/* MOBILE FIX — applies to phones < 900px */
@media (max-width: 900px) {

  /* Stack filter sections and charts */
  .filter-box,
  .chart-box {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  /* Make each chart 100% width */
  .chart-box > div {
    width: 100% !important;
    min-width: 0 !important;  /* crucial to prevent clipping */
    margin: 0;
    padding: 0;
  }

  /* Let graphs resize vertically */
  .unemployment-chart,
  .inflation-chart,
  .ffr-chart {
    height: 500px !important;
    width: 100% !important;
  }

  /* Inside your @media (max-width: 900px) block */
  .weight-filter {
      padding: 25px 15px !important;
  }

  .weight-sliders {
      grid-template-columns: 1fr !important;
      grid-template-rows: auto auto auto !important;
      text-align: center;
      row-gap: 80px !important;
  }

  .button-box {
      flex-direction: column !important;
      align-items: center;
  }




}


/*
@media (max-width: 600px) {
  .filter-box, .chart-box {
    grid-template-columns: inherit;
    grid-template-rows: auto auto auto;
  }

  #react-entry-point {
    background-color: #fef7ed;
    padding: 10px;
  }
}


@media (max-width: 600px) {
  .chart-box {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 5px;
  }

  .chart-box > div {
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
  }
}
  
*/