@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,600,700');

body {
  display: flex;
  flex-flow: row wrap;
  margin: 0;
  background-color: #fafafa;
}

.container {
  font-size: 18px;
  font-family: 'Roboto', 'Helvetica';
  display: flex;
  position: relative;
  flex-flow: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  flex: 1;
  height: 100%;
}

.container-input {
  min-width: 200px;
  height: 100%;
  align-self: center;
}

.container-result {
  position: sticky;
  top: 0;
  right: 0;
  bottom: 0;
  min-width: 200px;
  background-color: #25124D;
}

h1 {
  width: 60%;
  display: flex;
  justify-self: center;
  justify-content: center;
  color: #BEB8B7;
  z-index: 10;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.25em;
  font-family: 'Roboto';
}
.input-group {
  display: flex;
  flex-flow: column;
  width: 60%;
  justify-content: flex-start;
}
.input-container {
  display: flex;
  flex-flow: column;
  margin-top: 50px;
}

.input-container label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #EE602E;
  opacity: 1;
}

.input input {
  margin-top: 25px;
  width: 80px;
  height: 40px;
  border: 0;
  font-size: 24px;
  background-color: #fafafa;
}

#inputBase {
  width: 100px;
}

#inputGain,
#inputTime {
  width: 40px;
}

#result {
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  color: white;
  text-align:center;
}

#result .bigtitle {
  max-width: 60%;
  margin: 20px auto;
  font-size: 28px;
  font-weight: 300;
  color: white;
  text-align: center;
  max-width: 240px;
}

#result .title {
  max-width: 240px;
  margin: 0 auto;
  font-size: 18px;
  font-weight: 300;
  opacity: .5;
  line-height: 1.45em;
  text-align: center;
  color: white;
}

#result .result {
  font-size: 52px;
  font-weight: 300;
  margin-top: 60px;
}

#result .instead {
  margin-top: 50px;
  font-size: 16px;
  font-weight: 300;
}

#errorMessage {
  color: #DE5D74;
  font-weight: 300;
  font-size: 24px;
  margin-top: 20px;
}

#btn {
  border: 0;
  background-color: #EE602E;
  color: #FFF;
  border-radius: 60px;
  padding: 25px 60px;
  margin: 50px auto;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all .5s ease;
}

#btn:hover {
  background-color: #c54d22;
}


@media (max-width: 576px) { 
  .container {
    height: auto;
  }

  .container-input {
    height: auto;
  }

  .container-result {
    position: relative;
  }

  .input-group {
    max-width: 85%;
  }

  #result .bigtitle {
    max-width: 85%;
  }

  #result .title {
    max-width: 85%;
  }

  #result .result {
    max-width: 85%;
  }
}

.article {
  padding: 3% 10% 2%;
}