/* freeCodeCamp Web Responsive Certification.
- Project Name: Survey Form 
- GitHub Repository link: 
https://github.com/w3zeblamf/survey-form.git
https://w3zeblamf.github.io/survey-form/
***************************************** */

/* Set the font size (Google fonts) */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");

/* --Reset and Common Styles-- 
********************************/
/* The asterisk (*) is known as the CSS universal selectors. It can be used to select any and all types of elements in an HTML page. The asterisk can also be followed by a selector while using to select a child object. This selector is useful when we want to select all the elements on the page. */

* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}


.text-center {
  text-align: center;
}

/* -- End of Reset and Common Styles-- 
********************************/

/* Styling the body */

body {
  background-color: lightblue;
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  top:0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background-image: linear-gradient(115deg, rgba(58,58,158,0.0), rgba(136,136,206,0.7)), 
  url(https://w3zeblamf.github.io/survey-form/images/coding.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Styling the title */

.header {
  background-color: rgba(255,255,255,0.7);
  max-width: 510px;
  margin: 50px auto;
  padding: 1px 3px;
  box-shadow: 4px 5px 10px rgba(0,0,0,0.5);
  border-radius: 5px 5px 2px 2px;
}



h1 {
  font-size: 30px;
	margin-top: 18px;
	margin-bottom: 10px;
	color: #000;
}

span {
  font-style: italic;
}


p {
	
	font-style: italic;
	color: #000;
	padding-bottom: 20px;
}

/* Styling the Form */

form {
  background-color: rgba(255,255,255,0.7);
  max-width: 510px;
  margin: 50px auto;
  padding: 30px 20px;
  box-shadow: 4px 5px 10px rgba(0,0,0,0.5);
  border-radius: 2px;
}

/* Styling form-control Class */

.form-control {
 text-align: left;
  margin-bottom: 25px;
}

/*Styling form-control Label*/

.form-control label {
    display: block;
    margin-bottom: 10px;
}

/* Styling form-control input, select, textarea*/

.form-control input, 
.form-control select,
.form-control textarea {
  border: 1px solid #777;
  border-radius: 2px;
  font-family: inherit;
  padding: 10px;
  display: block;
  width: 100%;
  background-color: rgba(255,255,255,0.6);
}

textarea {
min-height: 120px;
resize: vertical;
background-color: rgba(255,255,255,0.6);
}

/* Styling form-control Radio
        button and Checkbox */

.form-control input[type='radio'],
.form-control input[type='checkbox'] {
	display: inline-block;
	width: auto;
}

/* Styling Button */

button {
	background-color: #f5f5f5;
	border: .5px solid rgba(0,0,0,0.3);
	border-radius: 5px;
	font-family: inherit;
	font-size: 15px;
	color: #333;
	display: block;
	width: 100%;
	margin: 0 auto;
	box-shadow: 4px 5px 10px rgba(0,0,0,0.5);
	cursor: pointer;
	padding: 3px 0px 3px 0px;
}

button:hover {
	background-color: #e5e5e3;
	transition: 0.3s
	
}


