* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2ecff, #b8cae2);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.container {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 2rem;
  padding-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 400px; 
  width: 90%;
}

#heading {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

form {
  margin: 2rem 0 1rem 0;
}

.amount {
  position: relative;
}

label {
  position: absolute;
  left: 10px;
  top: 15px;
  color: #999;
  font-size: 16px;
  padding: 0 5px;
  transition: 0.2s ease all;
  pointer-events: none;
}

/* Move label up when input is focused or has value */
input:focus + label,
input:not(:placeholder-shown) + label {
  top: -8px;
  left: 8px;
  font-size: 12px;
  color: #000000;
}

form input,
select,
button {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 0.5rem;
}

form input {
  border: 1px solid lightgray;
  font-size: 1rem;
  height: 3rem;
  padding-left: 0.8rem;
}

.dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.dropdown p {
  margin: 0.4rem 0;
}

.dropdown #swap {
  border: none;
  cursor: pointer;
  transition: 0.5s;
  width: fit-content;
  margin-top: 1.4rem;
}

.dropdown #swap:hover {
  transform: scaleX(-1);
}

.dropdown i {
  font-size: 1.5rem;
}

.select-container img {
  max-width: 2rem;
  padding: 0.2rem;
}

.select-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 6rem;
  border: 1px solid lightgray;
  background-color: white;
  border-radius: 0.5rem;
}

.select-container select {
  font-size: 1rem;
  width: auto;
  background-color: transparent;
  cursor: pointer;
}

.msg {
  margin: 2rem 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

form #get-exchange-rate {
  height: 3rem;
  background: #a0c1e6;  
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

form #get-exchange-rate:hover {
  transform: scale(1.02);
}