@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
    background-color: #232331;
    font-family: 'Roboto', sans-serif;
}

#captchaBackground {
    height: 10em;
    width: 15em;
    background-color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#captchaHeading {
    color: white;
}

#captcha {
    height: 80%;
    width: 80%;
    font-size: 2em;
    letter-spacing: 2em;
    margin: auto;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#textBox {
    height: 2em;
	width: 8em;
}

.incorrectCaptcha {
    color: #FF0000;
}

.correctCaptcha {
    color: #7FFF00;
}
form {
  width: 30em;
  padding-top: 3em;
  position: relative;
}
input {
  margin: 0 0 1em 31%;
  padding: .2em .5em;
  width: 60%;
  background-color: #fffbf0; 
  border: 1px solid #e7c157;  
}
label { 
  text-align: right;
  line-height: 1.5;
  width: 30%;
  position: absolute;
  left: 0;
}
label::after {
  content: ": ";
}
button {
  margin-left: 31%;
  background-color: #dddddd;
  width: 10em;
}
#submitButton{
	margin-left: 31%;
	margin-top: 1em;
	background-color: #dddddd;
	width:10em;
}
input[type=text]:required{
  border: 1px solid #f00;
}
input[type=text]:required:valid{
  border: 1px solid #0f0;
}
input[type=email]:required{
  border: 1px solid #f00;
}
input[type=email]:required:valid{
  border: 1px solid #0f0;
}