.main {
    background: #aaa url(/images/bg.jpg) no-repeat;
    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: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;
}
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;
}
.popup {
    background: rgb(255,255,255); /* Old browsers */

/* IE9 SVG, needs conditional override of 'filter' to 'none' */

background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjQ3JSIgc3RvcC1jb2xvcj0iI2Y2ZjZmNiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZGVkZWQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);

background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%); /* FF3.6+ */

background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(47%,rgba(246,246,246,1)), color-stop(100%,rgba(237,237,237,1))); /* Chrome,Safari4+ */

background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* Chrome10+,Safari5.1+ */

background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* Opera 11.10+ */

background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* IE10+ */

background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* W3C */

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-8 */


    box-shadow: 0px 0px 11px #fff;
    display: inline-block;
    left: 50%;
    opacity: 0;
    position: fixed;
    text-align: justify;
    top: 40%;
    visibility: hidden;
    z-index: 10;

    -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-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;

    -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 {
    background-color: #181818;
	height: 29px;
	line-height: 26px;
	position: absolute;
	text-align: center;
	text-decoration: none;
	top: 5px;
	right: 7px;
	width: 30px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius: 5px;
}
.close:before {
    color: rgba(255, 255, 255, 0.9);
    content: "x";
    font-size: 20px;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
}
.close:hover {
    background-color: #292929;
}
.popup p {
    margin-bottom: 10px;
	font-family:Lato, Helvetica, Arial, sans-serif;
}

.popup h2 {
	margin-top:0px;
	font-family:Lato, Helvetica, Arial, sans-serif;
	font-size:18px;
	color:#333;
	padding-bottom: 20px;
	text-align: center;
}

.ms8Image {
	width: 340px;
	margin-top: -1px;
	background-color:#181818;
	height: 70px;
	border-top-right-radius: 5px;
	border-top-left-radius: 5px;
}

.popup .ms8-logo {
	margin-top:-10px;
	height:45px;
	width:265px;
	padding-bottom:10px;
	margin-left: 37px;
	margin-top: 10px;
}

.submitFBLogin {
	background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #3c5b9c), color-stop(49%, #3b5998), color-stop(51%, #3f5fa3), color-stop(100%, #4c70ba));
background-image: -webkit-linear-gradient(bottom, #3c5b9c 0%, #3b5998 49%, #3f5fa3 51%, #4c70ba 100%);
background-image: -moz-linear-gradient(bottom, #3c5b9c 0%, #3b5998 49%, #3f5fa3 51%, #4c70ba 100%);
background-image: -o-linear-gradient(bottom, #3c5b9c 0%, #3b5998 49%, #3f5fa3 51%, #4c70ba 100%);
background-image: linear-gradient(bottom, #3c5b9c 0%,#3b5998 49%,#3f5fa3 51%,#4c70ba 100%);
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 0px rgba(0,0,0,0.2);
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 0px rgba(0,0,0,0.2);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 0px rgba(0,0,0,0.2);
display: inline-block;
padding: 8px 15px 8px 35px;
border: 1px solid #2d4373;
border-bottom-color: #1e2e4f;
border-radius: 3px;
background-color: #3b5998;
color: white;
vertical-align: middle;
text-align: center;
text-shadow: 0 -1px rgba(0,0,0,0.25);
font-weight: 500;
font-size: 18px;
line-height: 27px;
cursor: pointer;
position: relative;
width: 195px;
margin-left: 50px;
margin-top:18px;
margin-bottom:5px;
text-decoration:none;
}

.submitFBLogin:hover {
        box-shadow:0px 5px 5px #fff;
	background-image:-webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #3b5998), color-stop(49%, #344e86), color-stop(51%, #385591), color-stop(100%, #3b5998));background-image:-webkit-linear-gradient(bottom, #3b5998 0%, #344e86 49%, #385591 51%, #3b5998 100%);background-image:-moz-linear-gradient(bottom, #3b5998 0%, #344e86 49%, #385591 51%, #3b5998 100%);background-image:-o-linear-gradient(bottom, #3b5998 0%, #344e86 49%, #385591 51%, #3b5998 100%);background-image:linear-gradient(bottom, #3b5998 0%,#344e86 49%,#385591 51%,#3b5998 100%);background-color:#344e86;color:white;text-decoration:none
}

.fb_icon {
position: absolute;
top: 110px;
left: 63px;
display: inline-block;
margin-top: -11px;
width: 21px;
height: 22px;
background: url("/images/facebook_icon_2.png") 0px no-repeat;
z-index: 1;

}

.nextLine {
	width:172px;
	margin:0px auto;
	margin-top:10px;
}

.join_separator {
	margin-bottom: 10px;
	font-size: 13px;
	font-style: italic;
	color: #999;
	float:left;
	padding-left:5px;
	padding-right:5px;
}

.popup label {
    display: inline-block;
    text-align: left;
    width: 120px;
}
.popup input[type="text"], .popup input[type="password"] {
    border: 1px solid;
    border-color: #999 #ccc #ccc;
    margin: 0;
    padding: 2px;

    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
}
.popup input[type="text"]:hover, .popup input[type="password"]:hover {
    border-color: #555 #888 #888;
}

/*------------------
  FORM STYLES
-----------------*/

/* GLOBALS */

*,
*:after,
*:before {
  
    padding: 0;
    margin: 0;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.form-1 {
    /* Size & position */
    width: 300px;
    margin: 60px auto 30px;
    padding: 10px;
    position: relative; /* For the submit button positioning */

    /* Styles */
    box-shadow: 
        0 0 1px rgba(0, 0, 0, 0.3), 
        0 3px 7px rgba(0, 0, 0, 0.3), 
        inset 0 1px rgba(255,255,255,1),
        inset 0 -3px 2px rgba(0,0,0,0.25);
    border-radius: 5px;
    background: white; /* Fallback */
    background: -moz-linear-gradient(#eeefef, #ffffff 10%);
    background: -ms-linear-gradient(#eeefef, #ffffff 10%);
    background: -o-linear-gradient(#eeefef, #ffffff 10%);
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#eeefef), color-stop(0.1, #ffffff));
    background: -webkit-linear-gradient(#eeefef, #ffffff 10%);
    background: linear-gradient(#eeefef, #ffffff 10%);
}

/* Demo 4 */

.form-4 {
    /* Size and position */
    padding: 10px;
    position: relative;

    /* Font styles */
    font-family:  'Lato', Arial, sans-serif;
    color: white;
    text-shadow: 0 2px 1px rgba(0,0,0,0.3);
	width:245px;
	margin:0px auto;
	margin-bottom:10px;
}

.form-4 h1 {
    font-size: 22px;
    padding-bottom: 20px;
}

.form-4 input[type=text],
.form-4 input[type=password] {
    /* Size and position */
    width: 95%;
    padding: 11px 4px 11px 10px;

    /* Styles */
    border: 1px solid #ccc; /* Fallback */
    background: #fff;;
    border-radius: 2px;
    box-shadow: 
        0 1px 0 rgba(255,255,255,0.2), 
        inset 0 1px 1px rgba(0,0,0,0.1);
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;

    /* Font styles */
    font-family: 'Lato', Arial, sans-serif;
    color: #333;
    font-size: 16px;
}

/* Placeholder style (from http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css) */

.form-4 input::-webkit-input-placeholder {
    color: #a4a4a4;
    text-shadow: 0 1px 0 rgba(255,255,255,0.15);
	font-weight:normal;
}

.form-4 input:-moz-placeholder {
    color: rgba(37,21,26,0.5);
    text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}

.form-4 input:-ms-input-placeholder {
    color: rgba(37,21,26,0.5);
    text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}

.form-4 input[type=text]:hover,
.form-4 input[type=password]:hover {
    border-color: #a4a4a4;
		box-shadow:#09F;
}

.form-4 input[type=text]:focus,
.form-4 input[type=password]:focus,
.form-4 input[type=submit]:focus {
	box-shadow:#09F;
    outline: none;
}

/* Fallback */
.no-boxshadow .form-4 input[type=text]:focus,
.no-boxshadow .form-4 input[type=password]:focus {
    outline: 1px solid white;
}

.form-4 input[type=submit] {
    /* Size and position */
    width: 100%;
    padding: 8px 5px;
    
    /* Styles */
    background: #f11a30;
border-radius: 5px;
border: 1px solid #af1424;
    box-shadow: inset 0 1px rgba(255,255,255,0.4), 0 2px 1px rgba(0,0,0,0.1);
    cursor: pointer;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;

    /* Font styles */
    color: white;
    text-shadow: 0 1px 0 rgba(0,0,0,0.3);
    font-size: 16px;
    font-weight: bold;
    font-family:  'Lato', Arial, sans-serif;
}

.form-4 input[type=submit]:hover {
    box-shadow: 
        inset 0 1px #f11a30, 
        inset 0 20px 30px rgba(99,64,86,0.5);
}

/* Fallback */
.no-boxshadow .form-4 input[type=submit]:hover {
    background: #594642;
}

.form-4 label {
    display: none;
    padding: 0 0 5px 2px;
    cursor: pointer;
}

.form-4 label:hover ~ input {
    border-color: #333;
}

.no-placeholder .form-4 label {
    display: block;
}

a.passwordNow {
	color:#999;
	text-shadow:1px 1px 1px #fff;
	font-size:14px;
	text-decoration:underline;
	margin-top:5px;
	width:245px;
	margin:0px auto;
}

.registerAccount {
width: 340px;
height:100px;
border-bottom-right-radius:10px;
border-bottom-left-radius:10px;
margin-top: 17px;
margin:0px auto;
background-color:#181818;
font-family: Lato, Helvetica, Arial, sans-serif;
font-weight: bold;
font-size: 13px;
}

.registerAccount p {
 text-align:center;
 color:#999;
 font-style:italic;
 padding-top:10px;
}

.registerAccount a {
background: rgb(255,255,255); /* Old browsers */

/* IE9 SVG, needs conditional override of 'filter' to 'none' */

background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2YxZjFmMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2UxZTFlMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmNmY2ZjYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);

background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(241,241,241,1) 50%, rgba(225,225,225,1) 51%, rgba(246,246,246,1) 100%); /* FF3.6+ */

background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(50%,rgba(241,241,241,1)), color-stop(51%,rgba(225,225,225,1)), color-stop(100%,rgba(246,246,246,1))); /* Chrome,Safari4+ */

background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* Chrome10+,Safari5.1+ */

background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* Opera 11.10+ */

background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* IE10+ */

background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* W3C */

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-8 */


-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 0px rgba(0,0,0,0.2);
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 0px rgba(0,0,0,0.2);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 0px rgba(0,0,0,0.2);
display: inline-block;
padding: 8px 15px 8px 15px;
border: 1px solid #2d4373;
border-bottom-color: #1e2e4f;
border-radius: 3px;
background-color: #3b5998;
color: #717171;
vertical-align: middle;
text-align: center;
text-shadow: 0 -1px rgba(0,0,0,0.25);
font-weight: 500;
font-size: 18px;
line-height: 27px;
cursor: pointer;
position: relative;
width: 195px;
margin-left: 50px;
text-decoration:none;
}

.registerAccount a:hover {
color:#333;
background: rgb(225,225,225); /* Old browsers */

/* IE9 SVG, needs conditional override of 'filter' to 'none' */

background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2UxZTFlMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmNmY2ZjYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);

background: -moz-linear-gradient(top,  rgba(225,225,225,1) 0%, rgba(246,246,246,1) 100%); /* FF3.6+ */

background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(225,225,225,1)), color-stop(100%,rgba(246,246,246,1))); /* Chrome,Safari4+ */

background: -webkit-linear-gradient(top,  rgba(225,225,225,1) 0%,rgba(246,246,246,1) 100%); /* Chrome10+,Safari5.1+ */

background: -o-linear-gradient(top,  rgba(225,225,225,1) 0%,rgba(246,246,246,1) 100%); /* Opera 11.10+ */

background: -ms-linear-gradient(top,  rgba(225,225,225,1) 0%,rgba(246,246,246,1) 100%); /* IE10+ */

background: linear-gradient(to bottom,  rgba(225,225,225,1) 0%,rgba(246,246,246,1) 100%); /* W3C */

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e1e1e1', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-8 */


}