/* Registrace */

/*

https://medium.com/@eugeniolujambio/accessible-css-only-floating-labels-74bf9173bc5f

https://codepen.io/elujambio/pen/yjwzGP

$primary: rgb(182,157,230); 
*/

#scrollToRegBox {

	display: none;

}

#scrollToRegBox a {
	
padding: 10px 30px;
text-align: center;
color: #fff;
background-color: #98ad2c;
font-size: 1.45rem;
font-weight: 700;
margin: 0 0 1em 0;
text-decoration: none;
border-radius: 8px;
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.55);

}


@media screen and (max-width: 736px) {

	#scrollToRegBox { display: block; }

}

#regToggleBut { 
display: block;
padding: 1em;
text-align: center;
color: #fff;
background-color: #e50069;
font-size: 1.55rem;
margin: 0 0 1em 0;
text-decoration: none;
border-radius: 0.6em; 
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.55);  
}

#regToggleBut:after {
  
  color: #fff;   
  display: inline-block;
  width: 1.0rem;
  height: 1.0rem;
  line-height: 1.0rem;
 
  font-size: 1.55rem;
  margin-left: 0.8em;
  
  text-align: center;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-transform: none !important;
   content: "\f078"; 
  box-sizing: inherit;
  -webkit-transition: content 2s;
  transition: content 2s;
}

#formSubmitMessage p { margin: 1em 0; }

#regBox {
 
 padding: 0;
 box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.55); 
border-radius: 0.6em;
margin: 2em 0;
  position: relative;
  display: none;
}


#regBox h2 {
  
   color: #e50069;background-color: #e50069;
   color: #fff;
   padding: 1em 0 1em 0.5em;
   margin: 0 0 0.5em 0;
   border-top-left-radius: 0.3em;
   border-top-right-radius: 0.3em;
   font-size: 1.3rem;
}


#formContainer {

  padding: 1em 1em 1em 1.5em;
  display: block;
  margin: 0 auto;
  max-width: 350px;

}


#formContainer .formBoxInfo {

	padding: 1em 1em 1em 1.5em;
	
	margin: 0 -1.2em 0.3em -1.6em;
	border-style: solid;
	border-width: 1px 0;
	border-color: rgba(100,100,100,0.1);
	background-color: #f1ffcd;
  
  }

  #tymBox,
 #ucastnikBox_2,
 #ucastnikBox_3 ,
 #ucastnikBox_4 {

    display: none;

 }

 .regFormSubBox > h3 {
	display: none;
	font-size: 1.2em;
font-weight: bold;
color: #e50069;
margin: 0 0 0 -10px;
 }

 .regFormSubBox > .formBoxSmallInfo {
	display: none;
	font-size: 0.8rem;
	margin: 0.5rem 0;

 }

 .regFormSubBox.stafeta {
	padding: 1em 1em 1em 1.5em;
	
	margin: 0 -1.2em 0.3em -1.6em;
	border-style: solid;
	border-width: 1px 0 0 0;
	border-color: rgba(100,100,100,0.5);

 }

 .regFormSubBox.stafeta > h3,
 .regFormSubBox.stafeta > .formBoxSmallInfo {
	display: block;
 }


#regBox .closeRegButton {
    
    display: inline-block;
    border: 0;
    position: absolute;
    top: 0.8em;
    right: 0.5em;
}

#regBox .closeRegButton:before {
  
  background-color: transparent;
 /* color: #00a6eb; */
  color: #fff;   
  display: inline-block;
  width: 3.0rem;
  height: 3.0rem;
  line-height: 3.0rem;
  border-radius: 3.0rem;
  font-size: 2.55rem;
  text-align: center;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-transform: none !important;
   content: "\f00d"; 
  box-sizing: inherit;
  -webkit-transition: content 2s;
  transition: content 2s;
}



#regBox form {
  
  background:  #fefefe; 
  padding-bottom:  20px; 
}

#regBox input[type="text"] {
  font-size:  16px; 
  padding:  20px 0px 20px 10px; 
  height:  56px; 
  border:  none; 
  border-bottom:  solid 1px rgba(0,0,0,.1); 
  background:  #fff; 
 /* min-width:  280px; */ 
  width:  100%; 
  box-sizing:  border-box; 
  transition:  all .3s linear; 
  color:  #000; 
  font-weight:  400; 
  -webkit-appearance:  none;   
 
}

#regBox input[type="text"]:focus {
 outline: none; 
 border: 0; 
 border-bottom:  solid 1px rgba(0,0,0,.1);
 }

/*
 &:focus {
    border-bottom:  solid 1px rgba(182,157,230, 1); 
    outline: 0; 
    box-shadow:  0 2px 6px -8px rgba(182,157,230, .45);
  }
  */




#regBox .floating-label {
  position:  relative; 
  margin-bottom:  10px; 
}


#regBox .floating-label label {
    position:  absolute; 
    top: calc(50% - 14px);
    left:  0; 
    opacity:  0; 
    transition:  all .3s ease; 
    color: #00a6eb;
    font-weight: bold;    
}

  
#regBox .floating-label input:not(:placeholder-shown)
 {
    padding:  28px 0px 12px 10px; 
}

#regBox .floating-label input:not(:placeholder-shown) + label
 {
    transform:  translateY(-10px); 
    opacity:  .7; 
  }
  
#regBox .floating-label span { 
  margin-left: 0.5em;
  color: red;
  position:  absolute;
  top: calc(50% - 24px);
  right:  0;
  font-weight: normal;
}  


#regBox .select-label {
  position:  relative; 
  margin-bottom:  10px;
  display : block; 
}

#regBox h4 {  

     color: silver;
    font-weight: bold;
    margin: 0;
    padding: 0;
}


#regBox .select-label.pohlaviBox {
  
  margin-bottom:  15px;
  padding-top: 20px;
}

#regBox .select-label span {
    color: #00a6eb;
    font-weight: bold;
    margin: 0;
    padding: 0;
    opacity:  0;
    position: absolute;
    top: 15px;
    left: 0;
    transition:  all .3s ease; 
    text-align:right;
}

#regBox .select-label span.videt {
    
    opacity:  .7;
    top: 5px;
}


#regBox .select-label span.error { 
 
  color: red;  
  top: -10px;
  right:  0;
  font-weight: normal;
  opacity:  1;
}

#regBox .floating-label.captchaBox {

 padding: 20px 0 15px 0;

}

#regBox .floating-label.captchaBox span.error { 
 
  color: red;  
  top: -10px;
  right:  0;
  font-weight: normal;
  opacity:  1;
}

#regBox select { 
font-size:  16px; 
display: block; 
margin-bottom:  10px;
/*width: calc(100% - 50px); */
width: 100%;
padding:  20px 40px 10px 10px; 
  height:  66px; 
  border:  none; 
  border-bottom:  solid 1px rgba(0,0,0,.1); 
  background:  #fff; 
  
  line-height: unset;
  
  color: #a5a5a5;

 -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(2em + 2px),
    calc(100% - 15px) calc(2em + 2px),
    calc(100% - 2.5em) 1.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
  transition:  padding-bottom .3s ease, color .3s ease; 
}
 
#regBox select:focus {
 
 background-image:
    linear-gradient(45deg, #00a6eb 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, #00a6eb 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 15px) 2em,
    calc(100% - 20px) 2em,
    calc(100% - 2.5em) 1.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;  
  outline: 0;
  color: #000; 
 }
 
#regBox select.vybrano {
  padding-bottom: 3px;
  color: #000; 
} 
 
#regBox select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}




.submitClear { padding: 2em; text-align: center; }
.submitClear p { 
	text-align: center; 
	line-height: 1.7rem;
}

.formLoading { margin: 0.5em auto; width: 32px; height: 32px; }  

.submitOk i {

	display: block;
font-size: 3rem;
margin: 0 0 2rem 0;
}


  
.formBox label span.error { padding-left: 0.5em; color: red; font-weight: bold; }  

ul.radios { display: block; list-style-type: none; margin: 0.5em 0; padding: 0; }
ul.radios li { display: inline; }

@media screen and (max-width: 620px) {

			ul.radios li { display: block; padding: 0.5em 0; }

}



input[type="checkbox"], input[type="radio"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    display: block;
    float: left;
    margin: 0;
    margin-right: -2em;
    opacity: 0;
    width: 1em;
    z-index: -1;
}

input[type="checkbox"] + label, input[type="radio"] + label {
    color: #000;
 
}

input[type="checkbox"] + label,
		input[type="radio"] + label {
			text-decoration: none;
			cursor: pointer;
			display: inline-block;
			font-size:  16px; 
			font-weight: 400;
			padding-left: 2.2em;
			padding-right: 1.75em;
			position: relative;
      
		}

			input[type="checkbox"] + label:before,
			input[type="radio"] + label:before {
				-moz-osx-font-smoothing: grayscale;
				-webkit-font-smoothing: antialiased;
				font-family: FontAwesome;
				font-style: normal;
				font-weight: normal;
				text-transform: none !important;
			}

			input[type="checkbox"] + label:before,
			input[type="radio"] + label:before {
				border-radius: 0;
				border: solid 1px;
				content: '';
				display: inline-block;
				height: 1.65em;
				left: 0;
				line-height: 1.58125em;
				position: absolute;
				text-align: center;
				top: 0;
				width: 1.65em;
			}

		input[type="checkbox"]:checked + label:before,
		input[type="radio"]:checked + label:before {
			content: '\f00c';
		}

	input[type="checkbox"] + label:before {
		border-radius: 0;
	}

	input[type="radio"] + label:before {
		border-radius: 100%;
	}

	::-webkit-input-placeholder {
		opacity: 1.0;
	}

	:-moz-placeholder {
		opacity: 1.0;
	}

	::-moz-placeholder {
		opacity: 1.0;
	}

	:-ms-input-placeholder {
		opacity: 1.0;
	}

	.formerize-placeholder {
		opacity: 1.0;
	}

	label {
		color: #666;
	}
  
  
input[type="checkbox"] + label,
	input[type="radio"] + label {
		color: #a5a5a5;
	}

		input[type="checkbox"] + label:before,
		input[type="radio"] + label:before {
			background: rgba(144, 144, 144, 0.075);
			border-color: rgba(144, 144, 144, 0.25);
		}

	input[type="checkbox"]:checked + label:before,
	input[type="radio"]:checked + label:before {
		background-color: #509ed8;
		border-color: #509ed8;
		color: #fff;
	}

	input[type="checkbox"]:focus + label:before,
	input[type="radio"]:focus + label:before {
		border-color: #509ed8;
		box-shadow: 0 0 0 1px #509ed8;
	}

	::-webkit-input-placeholder {
		color: #aaa !important;
	}

	:-moz-placeholder {
		color: #aaa !important;
	}

	::-moz-placeholder {
		color: #aaa !important;
	}

	:-ms-input-placeholder {
		color: #aaa !important;
	}

	.formerize-placeholder {
		color: #aaa !important;
	} 
  
  
  
#regBox button {
  -webkit-appearance:  none; 
  display: block;
  width:  auto;
  min-width:  100px;
  border-radius:  24px; 
  text-align:  center; 
  padding:  15px 40px;
  margin:  15px auto 0 auto; 
  background:  #006bab; 
  background-image: linear-gradient(#006bab, #d0090e6);;
  color:  #fff; 
  font-size:  16px;
  
  font-weight:  500; 
  box-shadow:  0px 2px 6px -1px rgba(0,0,0,.13); 
  border:  none;
  transition:  all .3s ease; 
  outline: 0; 
}

#regBox button:hover {

     transform:  translateY(-3px);
    box-shadow:  0 2px 6px -1px rgba(182,157,230, .65);
}

#regBox button:active {

 transform:  scale(.99);
}

#regBox button:after{

 content: none;
}