@font-face {
  font-family: "Tipo Movin CDMX BI";
  src: url("../media/typos/Tipo Movin CDMX Bold Italic.otf");
}

@font-face {
  font-family: "Tipo Movin CDMX Light";
  src: url("../media/typos/Tipo Movin CDMX Light.otf");
}

@font-face {
  font-family: "Koulen";
  src: url("../media/typos/koulen-latin-400-normal.ttf");
}
*{
    margin: 0;
    padding: 0;
}
::-webkit-scrollbar {
    display: none;
}
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  background: #1F2226;
}

header {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  gap: 90px;
}

header h1{
    color: white;
    font-family: "Koulen";
    font-weight: 200;
    font-size: 48px;
}

header .heroImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bar {
  z-index: 2;
  max-width: 900px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.acessibility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}


.translation{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#language-select{
  background: none;
  color: white;
  border: none;
}

#language-select option{
  color: black;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.heroText {
    display: flex;
    flex-direction: column;
    gap: 12px;
  color: white;
  margin: 0;
  padding: 15px;
  width: 90vw;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: 27px;
  z-index: 2;
}
.heroText h2 {
    font-family: "Koulen";
    font-weight: 100;
  font-size: 24px;
}
.heroText p {
  font-size: 18px;
  line-height: 1.5;
}














main {
    padding: 90px 10px;
    position: relative;
  display: flex;
  justify-content: center;
  background-color: #1F2226;
  gap: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.selectionVille { 
    position: absolute;
    top: -100px;
   width: 90%;
    max-width: 700px;
    padding: 14px;
  background-color: #2A2F35;
  border-radius: 27px;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 12px;
}

.selectionVille input {
  border-radius: 8px;
  border: 2px solid #717171;    
  text-align: center;
  outline: none;
  padding: 6px;
  font-size: 1.1rem;
}

.selectionVille input::placeholder {
  font-size: 1rem;
  text-align: center;
}

.selectionVille button {
  font-family: "Koulen";
  letter-spacing: 2px;
  background-color: #ABFF7A;
  color: #515151;
  padding: 3px 6px;
  font-size: 24px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.selectionVille button:hover{
  background-color: #488425;
  color: white;
}










.resultats {
  animation: fadeIn 0.3s ease-in-out;
  display: none;
  flex-direction: column;
  align-items: center;
  background-color: #2A2F35;
  border-radius: 27px;
  box-sizing: border-box;
  width: 100%;
}

.resultats-titres{
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 15px;
  gap: 12px;
}

.resultats-titres h2{
  font-family: "Koulen";
    font-weight: 100;
    letter-spacing: 1px;
  font-size: 1.8rem;
  color: white;
}
.resultats-titres h3{
  font-size: 1.5rem;
  color: #7CC0FF;

}

.resultats-divs {
  font-family: "Tipo Movin CDMX Light";
  flex-direction: column;
  margin: 0;
  padding: 15px;
  /* border-radius: 10px;
  background-color: #f5f5f5; */
  min-height: 80px;
  gap: 12px;
  display: flex;
  align-items: center;
  text-align: center;
}
.hidden{
  border-radius: 10px;
  background-color: red;
  width: 95%;
  background-color: #393F45;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.hidden h2{
  font-family: "Koulen";
    font-weight: 100;
    letter-spacing: 1px;
  font-size: 1.2rem;
  color: white;
}

.resultats_numbers{
  color: green;
}

.stats {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows:  repeat(3, auto);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.chart1,
.chart2,
.chart3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #2A2F35;
  border-radius: 27px;
  padding: 10px;
  gap: 15px;
}

.chart1 h3,
.chart2 h3,
.chart3 h3 {
  text-align: center;
  font-family: "Koulen";
  letter-spacing: 2px;
  font-weight: 100;
  font-size: 1.5rem;
  color: #7CC0FF;
}

.chart1 canvas,
.chart2 canvas,
.chart3 canvas {
  max-width: 100%;
  height: auto;
  
}

.chart1 p,
.chart2 p,
.chart3 p {
  font-family: Arial, Helvetica, sans-serif;
  text-align: justify;
  width: 100%;
  color: rgb(209, 209, 209);
  font-size: 18px;
    line-height: 1.5;
}

.chart3 .sources,
.chart2 .sources,
.chart1 .sources {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 10px;
  width: 100%;
}






.autocomplete-list {
  position: absolute;
  z-index: 9999;
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font:
    14px/1.3 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #111;
}

.autocomplete-item {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: 0.12s;
  background: transparent;
  color: inherit;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: #f2f2f2;
}

.autocomplete-highlight {
  font-weight: 700;
  color: #000;
}

.autocomplete-empty {
  padding: 10px 12px;
  color: #444;
  font-size: 13px;
}

footer {
  background-color: #111213;
  padding: 24px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

footer p {
  margin: 0;
  font-family: "Tipo Movin CDMX Light", Arial, Helvetica, sans-serif;
  color: white;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.4;
  text-align: center;
  max-width: 1100px;
  padding: 0 12px;
}

@media (min-width: 550px) {
  .selectionVille {
    grid-template-columns: 1fr 1fr;
  }
  .resultats-divs{
    flex-direction: row;
  }

  .selectionVille button {
    grid-column: span 2;
  }

  .chart1 p,
  .chart2 p,
  .chart3 p {
    text-align: justify;
  }
  main{
    padding-top: 50px;
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@media (min-width: 1020px) {
.stats{
  row-gap: 30px;
  grid-template-columns: repeat(2,auto);
  grid-template-rows:  repeat(2, auto);
}
.chart1, .chart2{
  height: 100%;
}
.chart3{
  grid-column: 1/3;
}
}
