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

body {
  background-color: #f0f0f0;
  color: #333;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  &:last-child {
    margin-bottom: 0;
  }
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.currency-row {
  display: flex;
  gap: 10px;
  position: relative;
}

.currency-group {
  display: flex;
  align-items: center;
  position: relative;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
}

.input-group label {
  margin-bottom: 5px;
  font-weight: bold;
}

.input-group input,
.input-group select {
  padding: 10px;
  border: 2px solid #ffffff;
  font-size: 1.25rem;
  width: 100%;
}

.input-group input {
  font-size: 1.5rem;
  appearance: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
}

.input-control {
  display: flex;
  align-items: center;
  gap: 10px;

  & img {
    width: 32px;
  }
}

.input-control select {
  padding-left: 0;
}

#swap-button {
  position: absolute;
  left: calc(66.66% - 16px);
  top: 50%;
  transform: translateY(-50%);
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#swap-button:hover {
  background: #0056b3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
}

#conversion-amount {
  font-size: 1rem;
  font-weight: bold;
  color: #5c667b;
}

#conversion-result {
  font-size: 2rem;
  font-weight: bold;
  margin: 10px 0;
}

#conversion-rate {
  font-size: 0.9rem;
  color: #888;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.currency-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.currency-item:last-child {
  border-bottom: none;
}

.currency-code {
  font-weight: bold;
  font-size: 1.1rem;
  width: 80px;

  &:first-child {
    width: 122px;
  }
}

.currency-name {
  color: #555;
  width: 200px;
}

.currency-country {
  flex: 1;
  font-size: 0.9rem;
  color: #777;
  margin-left: 10px;
}

.currency-rate {
  font-size: 0.9rem;
  color: #888;
}
