/* ============================
    Reseting  Defult Style
 ===============================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  color: #3964fe;
}
body {
  background: #fffeff;
  font-family: "Open Sans", sans-serif;
  color: #222;
}

h1 {
  line-height: 2;
}

p {
  line-height: 1.5;
  font-size: 18px;
}

button {
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

button:active {
  transform: scale(0.9);
}

button:focus {
  outline: none;
}

.container {
  width: 520px;
  margin: 0 auto;
}
/* ===========================
        Project Info  
  =============================*/

.project-info {
  min-height: 500px;
  width: 100%;
  background: linear-gradient(45deg, #3964fe, #47c3fd);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
  padding-top: 2em;
  text-align: center;
  color: #ffffff;
  margin-bottom: -270px;
  z-index: -1;
}
/* ============================
            Calculator 
 ===============================*/

.calculator {
  position: relative;
  display: block;
  background: #fffeff;
  border-radius: 2px;
  margin-bottom: 3em;
  box-shadow: 0px 2px 6px #00000017;
  z-index: 200;
}

.calculator-options,
.calculator-body {
  padding: 1.1em 1.7em;
}
/* calculator options */

.calculator-options {
  background: #faf9fa;
  display: flex;
  align-items: center;
}

.calculator-options button.active {
  background: #2e84fe;
  color: #fffeff;
}

.calculator-options h3 {
  margin-right: 5px;
}

.calculator-options button {
  border-radius: 5px;
  padding: 5px 12px;
  background: #fffeff;
  border: 1px solid #ebebeb;
  margin-left: 4px;
}
/* Calculator Inputs */

.calculator-input {
  margin: 0.5rem 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.calculator-input label {
  width: 50%;
}

.calculator-input input {
  width: 90px;
  padding: 7px 14px;
  color: #444;
  border: 1px solid#CECECE;
  text-align: center;
  font-size: 20px;
}

.calculator-input .valid:focus {
  outline-color: green;
}

.calculator-input .invalid:focus {
  outline-color: #9b1c31;
}

.calculator-input input:disabled {
  color: #9b1c31;
  background: #f1f0f1;
  font-weight: 700;
  border-color: transparent;
}
/* Calculator Result */

.calculator-result {
  display: flex;
  justify-content: center;
  margin-top: 2em;
  margin-bottom: 1.5em;
}

.calculator-result span {
  color: #9b1c31;
  font-weight: 700;
}
/* Calculator Buttons */

.calculator-buttons {
  display: flex;
  justify-content: center;
}

.calculator-buttons button {
  margin: 0 0.5rem;
  padding: 12px 24px;
  border: none;
  color: #ffffff;
}

.calculator-buttons .print {
  background: orangered;
}

.calculator-buttons .clear {
  background: #9b1c31;
}

/* Footer */
footer {
  text-align: center;
  bottom: 0;
  padding: 20px;
  color: rgb(138, 137, 137);
}
/*===========================
        Media Queries
 ==============================*/

@media only screen and (max-width: 600px) {
  .container {
    width: 90%;
  }
  .project-info{
    margin-bottom: -240px;
  }

  .calculator-options,
  .calculator-body {
    padding: 1.1em;
  }
  .calculator-input input {
    width: 70px;
  }
}
