/*Style file login [signin and signup] forms*/

/*
 The design should be mobile first to render page faster.
 This is to make small devices' design first before scaling up to bigger screens
*/

.header-signin-container {
	position: fixed;
	top: 0;
	left: 0;
	display: none;
	overflow: auto;
	z-index: 100;

	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
}

.header-signin-content {
	max-width: 80%;
	margin: 15% 10%;
	color: black;
	background-color: white;
	border: 2px solid #2a80b9;
	border-radius: 10px;
}

.header-signin-content-close {
	position: relative;
	width: 100%;
	height: 40px;
	font-size: 2em;
	padding: 15px;
	background-color: #2d3e50;
	border-radius: 10px 10px 0 0;
}

.header-signin-content-close a {
	position: absolute;
	top: 0;
	right: 0;
	padding: 0 10px;
	color: #FFEB3B;
}

.header-signin-content-close a:hover {
	color: red;
}

.header-signin-content button {
	width: 100%;
	padding: 10px;
	margin: 5px 0;
}

#header_signin_form {
	width: 100%;
	padding: 5px;
	margin-top: 5px;
	background-color: #E0E0E0;
	border: 1px solid #2a80b9;
}

#header_signin_form input[type=email], 
#header_signin_form input[type=password] {
	width: 100%;
	padding: 10px;
	margin-bottom: 5px;
	border-radius: 5px;
}

#header_signin_form input[type=checkbox] {
	margin: 5px;
}

.header-fb-login-content {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	margin-bottom: 10px;
	padding: 0;
}

.header-fb-login-content > p {
	display: block;
	text-align: center;
	margin: 5px;
	padding: 0;
	font-size: 1.2em;
	color: #D3D3D3;
}

.signin-processing-indicator {
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	justify-content: center;
	align-items: center;
	flex-flow: row nowrap;

	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.7);
}

.signin-processing-indicator i {
	color: white;
	font-size: 2em;
}

.signin-process-info {
	color: green;
}

#header_signup_form {
	display: block;
	width: 95%;
	margin: 5% auto;
	padding: 10px;
	background-color: #E0E0E0;
	border: 2px solid #2a80b9;
	border-radius: 10px;
}

.header-signup-field-container {
	position: relative;
	padding: 5px;
	border: 1px solid #2a80b9;
}

.header-signup-field-container > h1 {
	display: inline-block;
	width: auto;
	padding: 0 5px;
	margin-bottom: 5px;
	font-size: 1.3em;
	border-bottom: 3px solid #2a80b9;
}

.header-signup-firstname,
.header-signup-lastname{
	width: 99%;
}

.header-signup-gender,
.header-signup-country {
	display: inline-block;
	width: 49%;
	margin: 0;
}

#header_signup_form input:not([type=checkbox]) {
	width: 99%;
	padding: 7px;
	margin-bottom: 5px;
	border-radius: 5px;
}

#header_signup_form label {
	width: 99%;
}

#header_signup_form select {
	width: 99%;
	padding: 7px;
	margin-bottom: 5px;
	border-radius: 5px;
}

#header_signup_form input[type=checkbox] {
	margin: 5px;
}

#header_signup_form button {
	width: 100%;
	padding: 10px;
	margin: 5px 0;
}

#header_signup_form p {
	width: 100%;
}

.signup-processing-indicator {
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	justify-content: center;
	align-items: center;
	flex-flow: row nowrap;

	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.7);
}

.signup-processing-indicator i {
	color: white;
	font-size: 3em;
}

.header-user-info {
	width: 100%;
	list-style: none;
	padding: 0; 
}

.header-user-info li {
	width: 100%;
	padding: 0;
}

.header-user-info li > h3 {
	font-size: 16px;
}

.header-user-info a {
	display: block;
	width: 100%;
	padding: 3px;
	margin: 0;
	text-align: left;
	border-radius: 5px;
}

.header-user-info a:hover {
	color: black;
	text-decoration: none;
	background-color: gray;
}


/* Check for device orientation in protrait mode */
@media only screen and (orientation: portrait){
	
}

/* Small devices (portrait phones, 481px and up) */
@media only screen and (min-width: 481px) {
	/*SignIn/SignUp styles*/
	.header-signup-firstname,
	.header-signup-lastname {
		display: inline-block;
		width: 49%;
		margin: 0;
	}
}

/* Small devices (portrait tablets and large phones, 601px and up) */
@media only screen and (min-width: 601px) {

	/*SignIn/SignUp styles*/
	#header_signup_form {
		width: 70%;
		margin: 5% 0 5% 15%;
	}
} 

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 769px) {

	.header-signin-container {
		position: absolute;
		top: 80%;
		left: auto;
		right: -5px;
		display: none;
		overflow: visible;

		width: 200px;
		height: auto;
		background-color: transparent;
		border: 2px solid #2d3e50;
		border-radius: 10px;
	}

	.header-signin-container::before {
		content: "";
	  position: absolute;
	  bottom: 100%;
	  right: 17px;
	  margin-left: -10px;
	  border-width: 10px;
	  border-style: solid;
	  border-color: transparent transparent #2d3e50 transparent;
	}

	.header-signin-content {
		max-width: 100%;
		padding: 0;
		margin: auto;
		border: none;
		font-size: 0.8em;
	}

	.header-signin-content-close {display: none;}

	.header-signin-content button, 
	#header_signin_form input[type=email], 
	#header_signin_form input[type=password] {
		padding: 5px;
	}

	#header_signup_form {
		width: 50%;
		margin: 5% auto;
	}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 993px) {
	
	#header_signup_form {
		width: 40%;
		margin: 5% auto;
	}
} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1201px) {
	/*SignIn/SignUp styles*/
	#header_signup_form {
		width: 35%;
		margin: 5% auto;
	}

}


