/* -«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-« */
/*                                  container                                 */
/* »-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»- */
@media (min-width: 768px) {
  #home-container {
    height: calc(100vh - 240px);
    padding-top: 60px;
    padding-bottom: 0px;

    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------------------------- */
/*                                    form                                    */
/* -------------------------------------------------------------------------- */
#form-outer {
  display: flex;
  justify-content: center;

  grid-column: 1;
  grid-row: 1;
}

#form-outer > div {
  width: 100%;
}

@media (min-width: 768px) {
  #form-outer {
    grid-column: inherit;
    grid-row: inherit;
  }

  #form-outer > div {
    width: auto;
  }
}

#formHeader {
  margin-bottom: 20px;
}

#exchangeForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .form-field {
    display: flex;
    align-items: center;
    gap: 0.5em;
  }
}

/* ---------------------------------- label --------------------------------- */
#exchangeForm label::before {
  content: ">";

  display: inline-block;
  margin-right: 1em;
  transform: translateY(-2px);

  font-size: 14px;
}

.form-field label {
  color: white;
  transition: color 0.2s ease;
}

/* when any child input (or other focusable) is focused… */
.form-field:focus-within label {
  color: #3bd1af;
}

/* ------------------------------- form input ------------------------------- */
.form-input {
  flex-grow: 1;
  display: block;

  margin-left: 19px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .form-input {
    display: inline;

    margin-left: 0px;
    margin-top: 0px;
  }
}

.form-input input,
.form-input select {
  width: 100%;
}

@media (min-width: 768px) {
  .form-input select {
    width: auto;
  }
}

#fixed,
#dynamic {
  width: auto;
}

/* --------------------------------- button --------------------------------- */
#exchangeButton,
#calculateButton {
  padding: 4px 8px;

  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 14px;

  background-color: #292929;
  border-radius: 2px;
}

#exchangeButton {
  background-color: #02513f;
  color: #ffffff;
}

#exchangeButton:hover,
#calculateButton:hover {
  opacity: 0.8;
}

#exchangeButton:disabled,
#calculateButton:disabled {
  color: rgba(255, 255, 255, 0.6);
}

#exchangeButton::before,
#calculateButton::before {
  /* content: ">"; */

  display: inline-block;
  margin-right: 1em;
  /* transform: translateY(-2px); */

  font-size: 14px;
}

.button-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

/* ---------------------------------- rate ---------------------------------- */
.rate-field {
  margin-left: 4px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  font-size: 14px;
  line-height: 12px;
  color: #989898;
}

.rate-field>div {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 3s steps(60) forwards;
}

.rate-field>div:nth-child(1) {
  animation-delay: 0s;
}

.rate-field>div:nth-child(2) {
  animation-delay: 1.5s;
}

/* -------------------------------------------------------------------------- */
/*                                  reserves                                  */
/* -------------------------------------------------------------------------- */
#reserves-container {
  display: flex;
  justify-content: center;

  padding-left: 20px;
  padding-right: 20px;
  padding-top: 100px;
  padding-bottom: 200px;
}

#reserves-container-inner {
  width: auto;
  max-width: 800px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}

@media (min-width: 768px) {
  #reserves-container-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 120px;
  }
}

.reserves-header {
  margin-bottom: 20px;
}

.reserves-columns {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chevron::before {
  content: ">";

  display: inline-block;
  margin-right: 1em;
  transform: translateY(-2px);

  font-size: 14px;
}

/* -------------------------------------------------------------------------- */
/*                                    info                                    */
/* -------------------------------------------------------------------------- */
#info-container {
  width: calc(100% - 40px);
  height: max-content;

  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 140px;

  display: flex;
  flex-direction: column;
  gap: 14px;

  font-weight: normal;
  font-size: 14px;
}

.info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1em;
}

@media (min-width: 768px) {
  #info-container {
    width: calc(100% - 160px);
    padding-left: 80px;
    padding-right: 80px;
  }
}

/* -------------------------------------------------------------------------- */
/*                                   tooltip                                  */
/* -------------------------------------------------------------------------- */
.info-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.info-icon {
  width: 20px;
  height: 20px;

  background-color: #007bff;
  border-radius: 50%;

  color: white;
  text-align: center;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.tooltip {
  visibility: hidden;

  z-index: 1;
  position: absolute;
  bottom: 125%; /* Adjust this to change position */
  left: 50%;
  width: 200px;
  padding: 10px;

  background-color: #333;
  color: #fff;
  text-align: left;

  border-radius: 6px;
  transform: translateX(-50%);

  opacity: 0;
  transition: opacity 0.3s;

  font-size: 14px;
}

.info-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
