/*
styling for loan calculator
*/

/* CSS Global Level Styles and Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #333;
  font-family: Arial, Helvetica, sans-serif;
}

/* CSS Element Level Styles */
main {
  margin: 2rem auto;
}

h1 {
  margin-bottom: 1rem;
}

/* CSS Class Level Styles */
.card {
  margin: 2rem auto;
  padding: 1.5rem;
  max-width: 600px;
  background-color: #F3F3F3;
  display: flex;
  flex-direction: column;
  text-align: center;
  border-radius: 10px;
}

.input-group, .output-group {
  width: 100%;
}

.input-aside, .output-aside {
  padding: 0.7rem;
  background-color: #9F9F9F;
  width: 15%;
  display: inline-block;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.output-aside {
  width: 50%;
}

.field, .output-field {
  margin: 0.5rem 0;
  padding-left: 0.5rem;
  width: 85%;
  height: 40px;
  border: 2px #999 solid;
  border-left: none;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.output-field {
  width: 50%;
  background: #F3F3F3;
  color: #333;
}

.button {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  height: 40px;
  background-color: #333;
  color: #F3F3F3;
  font-size: 1.5rem;
  font-weight: lighter;
  border: none;
  border-radius: 5px;
}

.alert {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: red;
}

/* CSS ID Level Styles */
#loading, #results {
  display: none;
}