body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #141414;
  font-family: Arial, sans-serif;
  color: whitesmoke;
  text-align: center;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
  padding: 1rem;
  background-color: #141414;
}

footer a {
  color: whitesmoke;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #404040;
}

#calculator {
  width: 450px;
  display: flex;
  flex-direction: column;
  margin: 50px auto;
  border-radius: 10px;
  gap: 10px;
}

#result {
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
}

.crestType {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 4px;
}

.amount {
  font-weight: bold;
  color: #2196f3;
}

.converted {
  font-weight: bold;
  color: #4caf50;
}

.remainder {
  color: #757575;
  font-style: italic;
}

.final-result {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.2rem;
}

.total {
  color: #ff5722;
}

#result {
  line-height: 1.6;
}

#result h3 {
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

button {
  background-color: #333;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #6d6d6d;
}

input {
  background-color: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 4px;
  color: whitesmoke;
  padding: 8px 12px;
  font-size: 1rem;
  width: 120px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: whitesmoke;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

input:hover {
  border-color: whitesmoke;
}

input::placeholder {
  color: #888;
}

/* media q */

@media (width <= 600px) {
  #calculator {
    width: 90%;
  }
}
