@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../../assets/fonts/PlusJakartaSans-VariableFont_wght.ttf')
}

@font-face {
  font-family: 'Plus Jakarta Sans Italic';
  src: url('../../assets/fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf')
}

body {
  font-family: 'Plus Jakarta Sans';
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e3f4fc;
  height: 100vh; width: 100vw;
  margin: 0; padding: 0;
  font-size: 14px;
  font-weight: 500;
}

.container {
  display: flex;
  flex-direction: row;
  height: 510px;
  border-radius: 20px;
  width: 900px;
  background: white;
  box-shadow: 0px 0px 54px -39px rgba(0,0,0,0.5);
  -webkit-box-shadow: 0px 0px 54px -39px rgba(0,0,0,0.5);
  -moz-box-shadow: 0px 0px 54px -39px rgba(0,0,0,0.5);
}

.container-part {
  display: flex;
  flex-direction: column;
  height: calc(100%-60px);
  padding: 30px;
  border-radius: 20px;
  width: 390px;
}

.container-part * {
  margin-bottom: 10px;
}

.left {
  border-radius: 20px 0px 0px 20px;
}

.right {
  border-radius: 0px 20px 20px 50px;
  background: #133040;
}

.container-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
}


.header {
  font-weight: 700;
  font-size: 18px;
  color: #133040;
}

.link {
  text-decoration: underline;
  cursor: pointer;
  color: #999999;
}

.input-unit {
  color: hsl(200, 24%, 40%);
  font-size: 16px;
  display: flex;
  height: 40px;
  width: 40px;
  background-color: #e2f5fe;
  align-items: center;
  justify-content: center;
}

.input-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.half {
  width: 45%;
}

.input-label {
  color: #999999;
  margin-bottom: 8px;
}

.input-area {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  padding: 0;
  border: 2px solid #a4b6be;
}

.input-area * {
  margin: 0;
}

.start {
  border-radius: 6px 0 0 6px;
}

.end {
  border-radius: 0 6px 6px 0;
  padding-inline: 3px;
  font-size: 12px;
}

.input-text {
  font-family: 'Plus Jakarta Sans';
  width: 330px;
  border-radius: 8px;
  padding-inline: 10px;
  outline: none;
  border: none;
}

.small {
  width: 110px;
}

/* New styles for focus state */
.input-text:focus + .input-unit,
.input-text:focus + .input-unit {
  background-color: #dadb2e; 
  color: #133040;
  transition: 200ms;
}

.input-area:focus-within {
  border-color: #dadb2e;
  transition: 200ms;
}

.type-btn {
  display: flex;
  align-items: center;
  margin-top: 5px;
  padding-top: 15px;
  padding-inline: 5px;
  justify-content: start;
  width: 98%;
  height: 35px;
  border-radius: 5px;
  border: 2px #a4b6be solid;
  color: #133040;
  cursor: pointer;
}

input[type='radio'] {
  transform: translateY(1px);
  accent-color: white;
}

.label {
  width: 100%;
  cursor: pointer;
  height: 32px;
  padding-top: 5px;
}

.type-btn:hover {
  border-color: #dadb2e;
  transition: 300ms;
}

#calculate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 5px;
  padding-left: 25px;
  padding-right: 30px;
  height: 30px;
  background-color: #dadb2e;
  width: 48%;
  font-weight: 800;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 8px;
}

#calculate img {
  transform: translateY(5px);
}

#calculate:hover {
  opacity: 0.75;
  transition: 300ms;
}

.result {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
}

#no-result {
  display: flex;
  justify-content: center;
}

#result {
  display: none;
  align-items: start;
}

.result-container {
  display: flex;
  flex-direction: column;
  padding: 8%;
  margin-top: 40px;
  width: 84%;
  height: 200px;
  background-color: #0e2431;
  border-radius: 5px;
  box-shadow: 0px -3px 0px 0px #dadb2e;
  animation: slide-in 200ms ease-in;
}

.line {
  width: 100%;
  background: #a4b6be75;
  height: 1px;
  border-radius: 0.5px;
}

@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateX(25px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}