body {
    padding-bottom: 4em;
}

textarea, input, pre {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
}

.expandingTextArea, input {
    position: relative;
    border: 1px solid #888;
    background: #fff;
    display: block;
    width: 80%;
}

.expandingTextArea > textarea,
.expandingTextArea > pre {
    line-height: 2em;
    padding: 0.2em;
    background: transparent;
    font-size: 1em;
    font-family: sans-serif;
    white-space: pre-wrap;
    word-wrap: break-word;
    width: 100%;
    height: 100%;
}

.expandingTextArea.active > textarea {
    /* Hide any scrollbars */
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    /* Remove WebKit user-resize widget */
    resize: none;
}

.expandingTextArea > pre {
    display: none;
}

.expandingTextArea.active > pre {
  display: block;
  /* Hide the text; just using it for sizing */
  visibility: hidden;
}

label.basic-label, legend.basic-label {
    width: 15%;
    display:inline-block;
    text-align:right;
    vertical-align:top;
    font-weight:bold;
}

input[type='text'], input[type='password'] {
    line-height: 2em;
    padding-left: 0.2em;
    font-size: 1em;
    width: 80%;
}

button, a.button {
    border: thin solid rgb(200, 200, 200);
    padding: 0;
    color: rgb(0, 0, 0);
	display: inline-block;
	text-align: center;
    margin: 0.5em;
    font-size: 1em;
    cursor: pointer;
    min-width: 7em;
    text-transform: lowercase;
    text-decoration: none;
    height: 2em;
    background-color: rgb(240, 240, 240);
    box-sizing: border-box;
}

button:hover, button:focus, a.button:hover, a.button:focus {
    border-color: rgb(150, 150, 150);
    color: rgb(100, 100, 100);
}

div.form-section {
	margin-top:1em;
}

div.form-section > label {
    display: block;
}

div.buttons {
    margin-top:1em;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding:0.2em 5% 0.2em 5%;
    background: rgb(240, 240, 240);
    border-top: thin solid rgb(200, 200, 200);
}

fieldset {
	display:inline-block;
	width:79%;
	border: none;
	margin:0;
	padding:0;
}

fieldset > label {
    font-weight: normal;
    display:inline-block;
	padding-left: 1em;
}

fieldset > label > input {
    display: inline-block;
    width: auto;
}

.error-text {
    font-size: 0.75em;
    color: red;
}

.buttons > .error-text {
    display: inline-block;
}

.inline-add {
    margin-left: 1em;   
}

.inline-add > input {
    width: 15em;
    display: inline-block;
}

.inline-add > button {
    display: inline-block;
}
