/* Variables */
/* :root {
	--primary-color: #ea7d00;
	--background-color: #141313;
	--secondary-bg-color: #302c2c;
	--text-color: #d8d8d8;
	--border: 1px solid rgba(48, 44, 44, 0.325);
	--border-radius: 8px;
	--box-shadow: 1px 1px 7px 2px #302c2c;
} */

:root {
  --primary-color: #ea7d00;
  --background-color: #201e1e;
  --secondary-bg-color: #141313;
  --text-color: #d8d8d8;
  --border: 1px solid var(--secondary-bg-color);
  --border-radius: 8px;
  --box-shadow: 1px 1px 5px 2px var(--secondary-bg-color);
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Arial", sans-serif;
}

.page-content {
  display: flex;
  background-color: var(--background-color);
  font-family: "Arial", sans-serif;
  min-height: 90vh;
  padding: 20px;
  margin-left: 60px;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

.page-title {
  color: var(--primary-color);
  font-size: 40px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

h1 {
  color: var(--primary-color);
  font-size: 40px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

h2 {
  color: var(--primary-color);
  margin-top: 10px;
  margin-bottom: 25px;
  margin-left: 20px;
}

h3 {
  color: var(--primary-color);
}

/*  */
/*  */
/*  */
/* Home */
/*  */
/*  */
/*  */

.section-intro {
  width: 95%;
  margin: 0 auto 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 1%;
}

.intro-header {
  padding: 5px;
}

.intro-section {
  padding: 10px;
}

.intro-title {
  width: 100%;
  color: var(--primary-color);
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

.intro-content {
  padding: 0 5px;
}

.intro-content p {
  line-height: 1.6;
}

/*  */
/*  */
/*  */
/* Warning */
/*  */
/*  */
/*  */

.warning-data-source {
  display: flex;
  flex-direction: row;
  width: 99%;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 30px;
  padding: 28px;
  border-radius: 8px;
  background-color: #702828;
}

.warning-data-source i {
  display: flex;
  justify-content: center;
  align-items: center;
  color: red;
  font-size: 28px;
  margin-right: 14px;
}

.warning-data-source a {
  color: white;
  text-decoration: none;
  text-decoration: underline;
}

.warning-data-source p {
  color: #d8d8d8;
  margin: 0;
  text-align: left;
}

.div-group-chart {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.div-interact-chart {
}

.div-interact-chart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  background-color: var(--secondary-bg-color);
  /* border: var(--border); */
  border-radius: 8px;
  -webkit-box-shadow: var(--box-shadow);
  -moz-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  margin-bottom: 25px;
}

.switch > div:first-child {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.switch label {
  margin: 0;
}

.chart {
  /* margin: 7px; */
  padding: 10px;
  background-color: var(--secondary-bg-color);
  /* border: var(--border); */
  border-radius: 8px;
  -webkit-box-shadow: var(--box-shadow);
  -moz-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
}

/*  */
/*  */
/*  */
/* Metrics */
/*  */
/*  */
/*  */

.div-group-metrics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: var(--secondary-bg-color);
  /* border: var(--border); */
  border-radius: 8px;
  -webkit-box-shadow: var(--box-shadow);
  -moz-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
}

.div-metrics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-bg-color);
  width: 100%;
  margin-bottom: 20px;
}

.div-metrics h3 {
  color: var(--primary-color);
  font-size: 30px;
  text-align: center;
}

.div-metrics p {
  color: #ffffff;
  font-size: 18px;
  text-align: center;
}

/*  */
/*  */
/*  */
/* Footer */
/*  */
/*  */
/*  */

.footer {
  width: 100%;
  padding: 15px 0 15px 45px;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 10px;
}

.footer-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.footer span {
  font-size: 14px;
}

.footer a {
  margin: 0;
  margin-left: 4px;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 14px;
}

/*  */
/*  */
/*  */
/* Page Infos */
/*  */
/*  */
/*  */

.section-infos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px;
}

.infos-content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: 40%;
  min-height: 200px;
  padding: 15px;
  background-color: var(--secondary-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.infos-content:last-child {
  width: 60%;
  height: auto;
}

.infos-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (max-width: 1270px) {
  .div-group-metrics {
    width: 100% !important;
    flex-direction: row !important;
    align-items: flex-start;
  }

  .div-metrics {
    width: 100% !important;
    margin-bottom: 0;
  }

  .div-metrics p {
    margin-bottom: 0;
  }
}

@media (max-width: 1100px) {
  .div-figure-chart {
    width: 49% !important;
  }

  .div-group-metrics {
    width: 100% !important;
    flex-direction: row;
    align-items: flex-start;
  }

  .div-metrics {
    width: 100%;
    margin-bottom: 0;
  }

  .div-metrics p {
    margin-bottom: 0;
  }
}

@media (max-width: 850px) {
  .warning-data-source {
    width: 100%;
  }

  .div-figure-chart {
    width: 100% !important;
  }

  .div-metrics {
    width: 100%;
    margin-bottom: 0;
  }

  .div-metrics p {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .page-content {
    margin-left: 0px;
  }

  .div-group-metrics {
    width: 100% !important;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .div-metrics {
    width: 50%;
    margin-bottom: 25px;
  }

  .div-metrics h3 {
    margin-bottom: 0;
  }

  .section-infos {
    flex-direction: column;
    align-items: center;
  }

  .infos-content {
    width: 100%;
  }

  .infos-content:last-child {
    width: 100%;
  }

  .footer {
    padding: 15px 0 15px 0;
  }
}

@media (max-width: 520px) {
  .div-metrics {
    width: 100%;
  }
}
