* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: aliceblue;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: 100vh;
  margin-top: 50px;
}

.main {
  background-color: #6943ff;
  height: 200px;
  width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 10px 10px 0 0;
}

.title {
  font-size: 20px;
}

.unit {
  border: solid 1px;
  height: 60px;
  width: 80px;
  margin: 20px;
  background-color: rgba(245, 222, 179, 0);
}

.convert-disabled {
  display: none;
}

.convert {
  display: flex;
  background-color: white;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.convert-info {
  background-color: antiquewhite;
  color: white;
  width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 280px;
  justify-content: space-around;
  padding: 20px;
}

.length,
.volume,
.mass {
  background-color: aliceblue;
  justify-content: center;
  display: flex;
  flex-direction: column;
  height: 70px;
  width: 450px;
  margin: 5px;
  align-items: center;
}

.inner-title {
  color: #573bc5b6;
  font-size: 15px;
  font-weight: bold;
}

.message {
  display: block;
  font-size: 12px;
  padding: 10px;
  color: black;
}

.input-box {
  border: solid 1px;
  height: 60px;
  width: 80px;
  outline: none;
  background: none;
  color: white;
  font-size: 25px;
  text-align: center;
  caret-color: white; /* Ensures caret matches text color */
  padding: 10px;
  border-radius: 5px;
  box-sizing: border-box;
  margin: 10px;
}

.input-box::-webkit-inner-spin-button,
.input-box::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-box[type="number"] {
  -moz-appearance: textfield; /* Hides adjustment arrows for Firefox */
}

.input-box:focus {
  outline: none; /* Prevent the default focus outline */
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); /* Glow effect on focus */
}
