@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500;700&display=swap");

:root {
  --primary-bg: #7879f1;
  --secondary-bg: #404079;
  --primary-text: #626262;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(
    to right,
    var(--primary-bg),
    var(--secondary-bg)
  );
  font-family: "Roboto", sans-serif;
}

h1 {
  color: #fff;
  text-align: center;
  margin: 1em;
}

.container {
  background-color: #fff;
  width: 40%;
  min-height: 80vh;
  margin: auto;
  border-radius: 7px;
  padding: 1em 3em 1em 3em;
}

h2 {
  color: var(--primary-text);
  text-align: center;
  font-size: medium;
  margin-top: 1em;
}

label {
  font-weight: lighter;
  color: var(--primary-text);
  font-size: small;
}

.input-fields {
  display: flex;
  flex-direction: column;
  line-height: 2em;
}

input[type="number"] {
  padding: 1px 2px;
  height: 2.5em;
  border-radius: 5px;
  border: 2px solid #e6e6e6;
}

.result-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1.5em;
}

.result-wrapper p {
  color: var(--primary-text);
  font-size: small;
  margin-top: 5px;
}

.result-text {
  color: var(--primary-bg);
  font-weight: bold;
}

.button-wrapper {
  display: flex;
  justify-content: space-around;
  margin-top: 2em;
}

#calculateBtn {
  background-color: var(--primary-bg);
  color: #fff;
  padding: 1em;
  width: 250px;
  border-radius: 50px;
  border: 2px solid var(--primary-bg);
  margin-right: 5px;
}

#calculateBtn:hover {
  background-color: var(--secondary-bg);
  color: #fff;
  padding: 1em;
  width: 250px;
  border-radius: 50px;
  border: 2px solid var(--secondary-bg);
  margin-right: 5px;
  cursor: pointer;
  transition: ease-in-out 200ms;
}

#clearBtn {
  color: var(--primary-bg);
  background-color: #fff;
  padding: 1em;
  width: 250px;
  border: 50px;
  border: 2px solid var(--primary-bg);
  border-radius: 50px;
}

#clearBtn:hover {
  color: #fff;
  background-color: var(--primary-bg);
  padding: 1em;
  width: 250px;
  border: 50px;
  border: 2px solid var(--primary-bg);
  border-radius: 50px;
  cursor: pointer;
  transition: ease-in-out 200ms;
}
.footer-label {
  font-size: small;
  margin-top: 1.5em;
  display: flex;
  justify-content: center;
  justify-items: center;
}
@media only screen and (max-width: 600px) {
  .container {
    width: 95%;
  }
} ;
