
/*-------- Main Structure --------*/


.trainActivity {
    margin: 125px 0 100px 0;
    padding: 25px;
    color: #777777;
    background-color: #ffffff;
    border-color: #dddddd;
    line-height: 1.5;
    text-align: left;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

#wrapper {
    display: block;
    height: 25px;
}

.gameContainer {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    min-height: 300px;
    width: 100%;
    overflow: hidden;
}

.leftContainer {
    float: left;
    margin: 2px auto;
    text-align: left;
    max-width: 680px;
}

.rightContainer {
    float: right;
    margin: 2px auto;
    text-align: left;
    max-width: 200px;
}

#addTrainsForm, #noAdminContainer {
    padding: 10px;
    border: 1px solid #dddddd;
}

.editHighlight {
    background-color: #d5e094;
    color: #ff0000;
}

.leftHeader {
    float: left;
    margin: 2px auto;
    text-align: left;
}

.rightHeader {
    float: right;
    margin: 2px auto;
    text-align: center;
}

.buttonContainer {
    text-align: center;
    margin-top: 12px;
}

#addTrains {
    display: none;
}

#logoutContainer {
    display: none;
}

.removeTrain, .editTrain, .saveTrain {
    cursor: pointer;
}


/*-------- Main Structure End --------*/


/*-------- Submit Button --------*/


.button {
	-moz-box-shadow: 0px 1px 0px 0px #1c1b18;
	-webkit-box-shadow: 0px 1px 0px 0px #1c1b18;
	box-shadow: 0px 1px 0px 0px #1c1b18;
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #eae0c2), color-stop(1, #ccc2a6));
	background:-moz-linear-gradient(top, #eae0c2 5%, #ccc2a6 100%);
	background:-webkit-linear-gradient(top, #eae0c2 5%, #ccc2a6 100%);
	background:-o-linear-gradient(top, #eae0c2 5%, #ccc2a6 100%);
	background:-ms-linear-gradient(top, #eae0c2 5%, #ccc2a6 100%);
	background:linear-gradient(to bottom, #eae0c2 5%, #ccc2a6 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eae0c2', endColorstr='#ccc2a6',GradientType=0);
	background-color:#eae0c2;
	-moz-border-radius:15px;
	-webkit-border-radius:15px;
	border-radius:15px;
	border:1px solid #333029;
	display:inline-block;
	cursor:pointer;
	color:#505739;
	font-family:Arial;
	font-size:14px;
	font-weight:bold;
	padding:12px 16px;
	text-decoration:none;
	text-shadow:0px 1px 0px #ffffff;
}

.button:hover {
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ccc2a6), color-stop(1, #eae0c2));
	background:-moz-linear-gradient(top, #ccc2a6 5%, #eae0c2 100%);
	background:-webkit-linear-gradient(top, #ccc2a6 5%, #eae0c2 100%);
	background:-o-linear-gradient(top, #ccc2a6 5%, #eae0c2 100%);
	background:-ms-linear-gradient(top, #ccc2a6 5%, #eae0c2 100%);
	background:linear-gradient(to bottom, #ccc2a6 5%, #eae0c2 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ccc2a6', endColorstr='#eae0c2',GradientType=0);
	background-color:#ccc2a6;
}

.button:active {
	position:relative;
	top:1px;
}


/*-------- Submit Button End --------*/


/*-------- Train Schedule Table --------*/


table {
    border: 1px solid #222222;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
}

table thead th {
    background: #3f3f3f;
}

table th {
    font-size: .85em;
    font-weight: bold;
    letter-spacing: .1em;
}

table caption {
    font-size: 1.5em;
    margin: .5em 0 .75em;
}

table tr {
    background-color: #f8f8f8;
    border: 1px solid #cccccc;
    padding: .35em;
}

table tr:nth-child(odd) {
    background: #cccccc;
}

table th, table td {
    padding: 10px;
    vertical-align: middle;
    text-align: left;
}

table th:nth-child(1n+3), table td:nth-child(1n+3) {
    text-align: center;
}


@media screen and (max-width: 980px) and (min-width: 1px) {
    
    .leftContainer {
        float: none;
    }

    .rightContainer {
        padding: 10px;
        float: none;
    }
}

@media screen and (max-width: 768px) {

    .trainActivity {
        margin-top: 75px;
        margin-bottom: 0px;
    }

    table th:nth-child(1n+3), table td:nth-child(1n+3) {
        text-align: right;
    }

    table {
        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }

    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }

    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    table td:last-child {
        border-bottom: 0;
    }
}


/*-------- Train Schedule End --------*/


/*------- Firebase Login / Register -------*/

/*--- Logout ---*/

#logoutContainer {
    float:right;
    position:relative;
    display: none;
    font-size:12px;
}

#userName {
    float:left;
    position:relative;
    font-weight:bold;
    font-size:12px;
    padding-top: 2px;
}

#logoutButton:hover span{
    color:#333333;
}

/*--- Login / Register ---*/

#container {
    display: block;
    width: 120px;
    float: right;
    height: 100%;
}

#loginContainer {
    float: left;
    position:relative;
    display: block;
    font-size:12px;
}

#registerContainer {
    float: right;
    position:relative;
    display: block;
    font-size:12px;
}

/* Login Button */
#loginButton, #registerButton, #logoutButton { 
    float:right;
    position: relative;;
    cursor:pointer;
    text-decoration: none;
}

/* Login Button Text */
#loginButton span, #registerButton span, #logoutButton span {
    color:#777777;
    font-size:14px; 
    font-weight:bold; 
    text-shadow:1px 1px #fff;
    display:block;
}

#registerButton span {
    padding-left: 0px;
}

#loginButton:hover span, #registerButton:hover span{
    color:#333333;
}

/* Login Box */
#loginBox, #registerBox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* for IE */
    box-shadow: 0 0 0 1000px rgba(0,0,0,.8);
    /* for all other browsers */
    box-shadow: 0 0 0 100vmax rgba(0,0,0,.8);
    display:none;
    z-index:1;
}

/* Login / Register Form */
#loginForm, #registerForm {
    width:248px; 
    border:1px solid #222222;
    border-radius:3px 0 3px 3px;
    -moz-border-radius:3px 0 3px 3px;
    background:#888888;
    padding:6px;
}

#loginForm fieldset, #registerForm fieldset {
    margin: 2px;
    display: block;
}

fieldset.body {
    background: #ffffff;
    border-radius: 3px;
    -moz-border-radius: 3px;
    padding: 10px 13px;
    margin: 0;
}

.body label {
    display: block;
    float: left;
}

#loginForm .body fieldset label, #registerForm .body fieldset label {
    display: block;
    float: none;
    margin: 5px;
}

/* Default Input */
#loginForm, #registerForm {
    width: 100%;
    font-weight: bold;
}

/* Sign In / Register Button */
#loginForm #login, #registerForm #register {
    width: auto;
    text-align: center;
}

input:focus {
    outline: none;
}

/*------- Firebase Login / Register End -------*/


/* Message Box for Error of Start Time & Login Error  */
#messageBox, #errorLogin {
    position: fixed;
    padding: 10px;
    background: #cccccc;
    color: red;
    text-align: center;
    top: 50%;
    left: 50%;
    border:1px solid #222222;
    border-radius:10px;
    -moz-border-radius:10px;
    transform: translate(-50%, -50%);
    /* for IE */
    box-shadow: 0 0 0 1000px rgba(0,0,0,.8);
    /* for all other browsers */
    box-shadow: 0 0 0 100vmax rgba(0,0,0,.8);
    display:none;
    z-index:1;
}

