@import 'page-structure.css';

form {
	display: block;
	padding:20px;
	margin: 40px 5%;
	color: var(--text-color);
	text-align: center;
	border:4px solid var(--main-color);
	border-radius: 4px;
	background-color:rgba(0,0,0,0.5);
    font-family: Arial;
    flex-grow: 1;
    flex-wrap: wrap;
}

form > div {
	display: flex;
	margin: 30px;
	font-size: 20px;
}	

form > div > *{
	margin:10px;
}

form > div > div, form > div > select, form > div > textarea{
	width:20%;
	text-align:left;
	border-radius: 10px;
	outline-style: none;
}

form input, form select {
	padding: 8px;
	outline-style: none;
	border-radius: 10px;
}

form > div > label{
	width:50%;
	text-align:right;
}

form input:invalid+span.validity:after {
	content: '✖';
	padding-left: 5px;
	color: red;
  }
  
form input:valid+span.validity:after {
	content: '✓';
	padding-left: 5px;
	color: forestgreen;
}

form > div > div{
	display: flex;
	align-items: center;
}

textarea {
	resize: none;
	display: flex;
    flex-direction: row;
}

#send {
    background-color: var(--border-default);
    color: black;
    border: none;
    border-radius: 50px;
    padding: 8px 15px;
}

#send:hover {
    color: var(text-color);
    background-color: var(--main-color);
}

h1 {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Arial;
}

@media (max-width:900px) {

	form>div{
		flex-direction: column;
		margin: 10px;
	}

	form > div >label{
		text-align: left;
		width:90%
	}


	form > div > div, form > div > select, form > div > textarea{
		width:auto;
	}
}