* {
  padding: 0;
  margin: 0;
}

.input {
  font-family: "Montserrat", sans-serif;
  width: 80%;
  height: 45px;
  padding-left: .5rem;
  box-shadow: 0 0 0 1.5px #2b2c37, 0 0 25px -17px #000;
  border: 0;
  border-radius: 12px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: text;
  z-index: 0;
}

.input::placeholder {
  color: #bdbecb;
}

.input:hover {
  box-shadow: 0 0 0 2.5px #2f303d, 0px 0px 25px -15px #000;
}

.input:active {
  transform: scale(0.95);
}

.input:focus {
  box-shadow: 0 0 0 2.5px #2f303d;
}

button {
  position: relative;
  display: inline-block;
  margin: 15px;
  padding: 15px 30px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 1px;
  text-decoration: none;
  color: #725AC1;
  background: transparent;
  cursor: pointer;
  transition: ease-out 0.5s;
  border: 2px solid #725AC1;
  border-radius: 10px;
  box-shadow: inset 0 0 0 0 #725AC1;
}

button:hover {
  color: white;
  box-shadow: inset 0 -100px 0 0 #725AC1;
}

button:active {
  transform: scale(0.9);
}

#form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body {
  background-color: whitesmoke;
}

.main {
  margin-top: 100px;
  margin-bottom: 75px;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lower-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
  width: 425px;
  height: 400px;
  gap: 24px;
  border: 3px solid white;
  border-radius: 14px;
  background-color: white;
  box-shadow: -15px 22px 44px 6px rgba(82, 82, 82, 0.7);
  -webkit-box-shadow: -15px 22px 44px 6px rgba(82, 82, 82, 0.7);
  -moz-box-shadow: -15px 22px 44px 6px rgba(82, 82, 82, 0.7);
}

.para {
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  color: cornflowerblue;
  margin-bottom: 16px;
}

.upper-design {
  width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.lower-design {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.small-para {
  font-size: 22px;
  color: gray;
  font-weight: 800;
}

#second-converter,
#first-converter {
  width: 115%;
  padding: 10px 14px;
  font-size: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  color: #333;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='14' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23666' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#second-converter:hover,
#first-converter:hover {
  border-color: #aaa;
}

#second-converter:focus,
#first-converter:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

#show-conversion {
  color: grey;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

@media screen and (max-width: 768px) {
  .lower-main {
    width: 350px;
    height: 450px;
    padding: 12px 14px;
  }

  .para {
    font-size: 34px;
    margin-bottom: 4px;
  }

  .input {
    width: 70%;
  }

  .upper-design {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
  }

  .lower-design {
    align-items: center;
  }

  #first-converter,
  #second-converter {
    width: 80%;
    font-size: 13px;
    padding: 8px 12px;
  }

  button {
    margin: 10px;
    padding: 12px 14px;
  }

  #show-conversion {
    font-size: 20px;
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 468px) {
  .lower-main {
    width: 260px;
    height: 450px;
    padding: 10px 12px;
  }

  .para {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .input {
    width: 70%;
  }

  .upper-design {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    flex-direction: column;
  }

  .lower-design {
    align-items: center;
  }

  #first-converter,
  #second-converter {
    width: 80%;
    font-size: 12px;
    padding: 8px 12px;
  }

  button {
    margin: 10px;
    padding: 12px 14px;
  }

  #show-conversion {
    font-size: 18px;
    margin-bottom: 8px;
  }
}