center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hidden {
  height: 0 !important;
  overflow: hidden !important;
  filter: opacity(0);
  transition: all 0.5s ease;
}

#dolar-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

select {
  padding: 0.5rem;
  border: 2px solid hsl(97, 50%, 77%);
  background-color: hsl(97, 40%, 37%);
  color: white;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
}

select:hover {
  background-color: hsl(97, 40%, 27%);
}

#dateContainer {
  display: flex;
  width: 100%;
}

#dateInput {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid hsl(97, 50%, 77%);
  background-color: hsl(97, 40%, 37%);
  color: white;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
}

#dateInput:hover {
  background-color: hsl(97, 40%, 27%);
}

#dateInput::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

:disabled {
  filter: saturate(0.3) brightness(0.8);
  cursor: not-allowed !important;

}

#dateInput::placeholder {
  color: hsl(97, 20%, 67%);
}

#submitButton {
  display: flex;
  width: 100%;
  padding: 0.5rem;
}

#preciosContainer {
  display: flex;
  height: 100%;
  gap: 1rem;
  justify-content: center;
}

.precio-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  background-color: hsla(97, 50%, 87%, 0.3);
  border: 2px solid hsl(97, 50%, 87%);
  border-radius: 10px;
  padding: 1rem;
  min-width: 200px;
}

.smaller-precio {
  color: hsl(97, 30%, 87%);
  font-size: medium;
}

.spacer-4 {
  height: 4rem;
}


#chartContainer {
  display: flex;
  width: 100%;
  height: 600px;
  justify-content: center;
  padding: 0;
  filter: opacity(1);
}

#chart {
  display: flex;
  background-color: hsla(97, 50%, 87%, 0.3);
  border: 2px solid hsl(97, 50%, 87%);
  color: white;
  border-radius: 10px;
  width: 70%;
  height: 100%;
  padding: 1rem;
  margin-bottom: 5rem;
}

@media screen and (max-width: 770px){

  #preciosContainer {
    flex-direction: column;
    flex-grow: 1;
  }

  #chart {
    width: 90%;
  }
}

.volver {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  position: sticky;
  bottom: 0;
  margin: 1rem 0;
  padding: 1rem;
}

.volver button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: hsl(97, 50%, 87%);
  color: #40612a;
  font-weight: bold;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}