/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  min-height: 100vh;
  background: var(--body-background-color);
}

.container {
  max-width: 1200px;
  width: 100%;
  padding: 30px;
  background: var(--div-background-color);
  border-radius: 7px;
  border: var(--border);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.01);
}

.wrapper {
  border-radius: 5px;
  border: var(--border);
}

.wrapper .text-input {
  display: flex;
  border-bottom: var(--border);
  ;
}

.text-input .to-text {
  border-radius: 0px;
  border-left: var(--border);
}

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

.text-input textarea::placeholder {
  color: #b6b7b7;
}

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

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

.controls .row .icons {
  width: 38%;
}

.controls .row .icons i {
  width: 50px;
  color: var(--text-color);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease;
  justify-content: center;
}

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

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

.controls .row select {
  color: var(--text-color);
  border: none;
  outline: none;
  font-size: 18px;
  background: none;
  padding-left: 5px;
}

.text-input textarea::-webkit-scrollbar {
  width: 4px;
}

.controls .row select::-webkit-scrollbar {
  width: 8px;
}

.text-input textarea::-webkit-scrollbar-track,
.controls .row select::-webkit-scrollbar-track {
  background: #fff;
}

.text-input textarea::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 8px;
}

.controls .row select::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 8px;
  border-right: 2px solid #ffffff;
}

.controls .exchange {
  color: #adadad;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
}

.controls i:active {
  transform: scale(0.9);
}

#from,
#to {
  transition: all 0.2s ease-in-out;
}

.controls .exchange:hover,
#from:hover,
#to:hover {
  color: var(--text-color);
}

.container button {
  width: 100%;
  padding: 14px;
  outline: none;
  border: var(--border);
  color: var(--button-txt);
  cursor: pointer;
  margin-top: 20px;
  font-size: 17px;
  border-radius: 5px;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.container button:hover {
  background-color: var(--button-bg-hover);
}

@media (max-width: 660px) {
  .container {
    padding: 20px;
  }

  .wrapper .text-input {
    flex-direction: column;
  }

  .text-input .to-text {
    border-left: 0px;
    border-top: 1px solid #ccc;
  }

  .text-input textarea {
    height: 200px;
  }

  .controls .row .icons {
    display: none;
  }

  .container button {
    padding: 13px;
    font-size: 16px;
  }

  .controls .row select {
    font-size: 16px;
  }

  .controls .exchange {
    font-size: 14px;
  }
}

::selection {
  color: black;
  background: var(--selection);
}

option {
  color: black;
}