.main {
    width: 800px;
    height: 600px;
    margin: 50px auto;
}
.panel {
    background-color: #444;
    height: 34px;
    padding: 10px;
}
.panel a#login_pop, .panel a#join_pop {
    border: 2px solid #aaa;
    color: #fff;
    display: block;
    float: right;
    margin-right: 10px;
    padding: 5px 10px;
    text-decoration: none;
    text-shadow: 1px 1px #000;

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}
a#login_pop:hover, a#join_pop:hover {
    border-color: #eee;
}
.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    bottom: 0;
    cursor: default;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    visibility: hidden;
    z-index: 1;

    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s;
}
.overlay:target {
    visibility: visible;
    opacity: 1;
}
.errors{
	background: #ff5555;
	color: #ffffff;
	padding-top: 0px;
	padding-bottom: 0px;
	height: 0px;
	border: 1px solid #cc1717;
	border-width: 0px;
	overflow: hidden;
}
.popup {
	font-family: "Source Sans Pro", sans-serif;
	
	display: inline-block;
	position: fixed;
	
	top: 40%;
	left: 50%;
	width:400px;
	
	background-color: #f5f5f5;
	
	border: 3px solid #fff;
	border-radius: 5px;
	
    opacity: 0;
    padding: 15px;
    
    text-align: center;
    
    visibility: hidden;
    z-index: 10;
	
	color: #4f4f4f;
	line-height: 20px;
	
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    
    -webkit-transition: opacity .5s, top .5s;
    -moz-transition: opacity .5s, top .5s;
    -ms-transition: opacity .5s, top .5s;
    -o-transition: opacity .5s, top .5s;
    transition: opacity .5s, top .5s;
}
.overlay:target+.popup {
    top: 50%;
    opacity: 1;
    visibility: visible;
}
.close {
	position: absolute;
	left:0px;
	top:0px;
	
    border-radius: 5px;
    
    text-align: center;
    text-decoration: none;
    
    width: 25px;
    height: 25px;
    line-height: 25px;
    padding: 2px;
}
.close:before {
    color: rgba(60, 60, 60, 1);
    content: "X";
}
.close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.popup h2 {
	color: #521379;
	padding: 0px;
	margin-top: -5px;
	margin-bottom: 10px;
	font-size: 20pt;
	font-weight: 300;
	line-height: 30px;
}
.popup input[type="text"], .popup input[type="email"] {
    border: 1px solid;
    border-color: #a4a4a4;
    margin: 0;
    padding: 2px;
	width: 250px;
	height: 35px;
	text-indent: 5px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    position: relative;
    
}
.popup input[type="text"]:hover, .popup input[type="email"]:hover {
    border-color: #9a68b3;
}

.popup input[type="submit"] {
	display: inline-block;
	color: #ffffff;
	/*text-shadow:0 1px 0 rgba(0,0,0,0.3);*/
	border: 1px solid #f59110;
	border-top: 1px solid #f7a841;
	border-bottom: 1px solid dark(#f59110, 10%);
	font-size: 18pt;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	background-color: #fb9b1a;
	background-image: -moz-linear-gradient(top, #ffa221, #f59110);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffa221), to(#f59110));
	background-image: -webkit-linear-gradient(top, #ffa221, #f59110);
	background-image: -o-linear-gradient(top, #ffa221, #f59110);
	background-image: linear-gradient(to bottom, #ffa221, #f59110);
	background-repeat: repeat-x;
	filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#00ffa221', endColorstr='#00f59110', GradientType=0);
	-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2), 0 1px 3px 0 rgba(0, 0, 0, 0.3);
	-moz-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2), 0 1px 3px 0 rgba(0, 0, 0, 0.3);
	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2), 0 1px 3px 0 rgba(0, 0, 0, 0.3);
	line-height: 5pt;
}