@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');
:root {
  --primary-color: rgb(49, 143, 231);
  --primary-color-darker: rgb(9, 48, 56);
}

* {
  box-sizing: border-box;
  outline: none;
}

body {
  margin: 0;
  padding: 0;
  background: var(--primary-color);
  font-family: 'Open sans', sans-serif;
  font-size: 1.3em;
  line-height: 1.5em;
}

.container {
  max-width: 640px;
  margin: 50px auto;
  background: #f1f1f1;
  padding: 20px;
  border-radius: 10px;
}

.calculo-ideal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: 'Open sans', sans-serif;
  font-weight: 500;
}

.tabela {
  margin-right: 2rem;
  padding: 10px;
}

.resultado {
  margin: 10px 0px;
  margin-top: 4rem;
}

.calculo {
  display: flex;
  flex-direction:column;
  margin-top: -20px;
  margin-bottom: 20px;
  font-weight: 500;
  
}
.calculo input {
  width: 100%;
  height: 30px;
  margin-bottom: 16px;
}

.calculo button {
  height: 40px;
  background-color: rgb(49, 143, 231);
  font-family: 'Open sans', sans-serif;
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.resp {
  display: flex;
  justify-content: center;
  align-items: center;
}

.paragrafo-resultado {
  background-color: rgb(8, 173, 8);
  padding: 10px 20px;
}

.not-valid {
  background-color: rgb(241, 44, 44);
  padding: 10px 20px;
  width: 100%;
  text-align: center;
}

form input, form label, form button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

form input {
  font-size: 24px;
  height: 50px;
  padding: 0 20px;
}

form input:focus {
  outline: 1px solid var(--primary-color);
}

form button {
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  height: 50px;
  cursor: pointer;
  margin-top: 30px;
}

form button:hover {
  background: var(--primary-color-darker);
}