@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

:root {
  --primary-color: #0f9477;
}

* {
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
}

body {
  background-color: lavender;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 10px;
  overflow: hidden;
}

h1 {
  color: var(--primary-color);
}

p {
  text-align: center;
  text-transform: capitalize;
}

button {
  color: rgb(255, 255, 255);
  background: var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  padding: 10px 30px 10px 10px;
  background-image: url(img/swap.svg);
  background-position: right 10px top 50%, 0, 0;
  background-size: 15px auto, 100%;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  appearance: none;
}

.exchange-rate-img {
  width: 350px;
}

.currency {
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

select {
  padding: 10px 20px 10px 10px;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #36bb9e;
  border-radius: 5px;
  font-size: 16px;
  background: transparent;
  background-image: url(img/down-arrow.svg);
  background-position: right 10px top 50%, 0, 0;
  background-size: 12px auto, 100%;
  background-repeat: no-repeat;
  cursor: pointer;
}

input {
  border: 0;
  background: transparent;
  font-size: 30px;
  text-align: right;
  border: 1px solid #36bb9e;
  border-radius: 5px;
  margin: 5px;
}

.rate {
  color: var(--primary-color);
  font-size: 25px;
  padding: 0 10px;
}

select:focus,
input:focus,
button:focus {
  outline: 0;
}

@media (max-width: 768px) {
  .currency input {
    width: 60vw;
  }
}
