@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --main-color: #555555;
  --dark-color: #14171a;
  --light-color: #e1e8ed;
  --navbar-color: #14171a;
  --logo-color: #e1e8ed;
  --secondary-color: #1da1f2;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* NavBar */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--navbar-color);
  z-index: 99;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--logo-color);
  text-decoration: none;
  list-style: none;
}
.logo a i  {
  color: var(--secondary-color);
}

.logo a span {
  color: var(--secondary-color);
}

.body__container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--main-color);
}

.container {
  width: 690px;
  background: var(--dark-color);
  border-radius: 7px;
  padding: 30px;
}

.wrapper {
  border: 1px solid var(--light-color);
  border-radius: 5px;
}

.wrapper .text__input {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid var(--light-color);
}

.text__input .to__text {
  border-left: 1px solid var(--light-color);
  border-radius: 0px;
}

.text__input textarea {
  height: 250px;
  width: 100%;
  border: none;
  outline: none;
  background: none;
  font-size: 18px;
  border-radius: 5px;
  padding: 10px 15px;
  resize: none;
  color: var(--light-color);
}

.controls,
li,
.icons,
.icons i {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls {
  list-style: none;
  padding: 12px 15px;
}

.controls .row.from .icons {
  padding-right: 15px;
  border-right: 1px solid var(--light-color);
}

.controls .row.to .icons {
  padding-left: 15px;
  border-left: 1px solid var(--light-color);
}

.controls .icons {
  width: 38%;
}

.controls .icons i {
  width: 50px;
  font-size: 14px;
  cursor: pointer;
  color: var(--light-color);
  justify-content: center;
}

.controls .row select {
  border: none;
  outline: none;
  background: var(--dark-color);
  font-size: 18px;
  color: var(--light-color);
}

.controls .exchange {
  color: var(--light-color);
  font-size: 16px;
  cursor: pointer;
}

.container button {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--dark-color);
  font-size: 17px;
  border-radius: 5px;
  background: var(--light-color);
}

/* Footer */
footer {
  position: absolute;
  left: 0;
  right: 0;
  height: auto;
  width: 100vw;
  height: auto;
  padding-top: 40px;
  color: #fff;
  background: var(--navbar-color);
}

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

.footer-content h3 {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 3rem;
}

.footer-content h3 span {
  color: var(--secondary-color);
}

.footer-content p {
  max-width: 500px;
  margin: 10px auto;
  line-height: 28px;
  font-size: 14px;
  color: #cacdd2;
}
.socials {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 3rem 0;
}
.socials li {
  margin: 0 10px;
}
.socials a {
  text-decoration: none;
  color: #fff;
  padding: 5px;
}
.socials a i {
  font-size: 1.5rem;
  width: 20px;

  transition: color 0.4s ease;
}
.socials a:hover i {
  color: var(--secondary-color);
}

@media (max-width: 660px) {
  .container {
    padding: 25px;
  }
  .wrapper .text__input {
    flex-direction: column;
  }
  .text__input .to__text {
    border-left: 0px;
    border-top: 1px solid var(--light-color);
  }
  .text__input textarea {
    height: 200px;
  }

  .controls .from {
    display: flex;
    flex-direction: column;
  }

  .controls .to {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .controls .row.from .icons {
    /* padding-right: 15px; */
    border-right: none;
  }

  .controls .row.to .icons {
    /* padding-left: 15px; */
    border-left: none;
  }

  .controls .row .icons i {
    padding: 7px 10px;
  }

  .container button {
    padding: 13px;
    font-size: 16px;
  }
  .controls .row select {
    font-size: 14px;
    padding: 5px 0;
  }
  .controls .exchange {
    font-size: 14px;
  }
}
