/* 
    Document   : gtoverride
    Created on : 21-Jul-2013, 19:01:28
    Author     : Toby
    Description:
        Purpose of the stylesheet follows.
Adds styling specific to the CashBall website.
Basic layout is achieved using the UnSemantic base styles
*/

.grid-container {
    max-width: 800px;
}

p {
    margin-bottom: 8px;
}

header {

}

h1 {
    padding: 0;
}

img.scale-with-grid {
    height: auto;
    width: 100%;
}

img.scale-with-grid#headerimg {
    max-width: 920px;
}

#content {
    padding-top: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid black;
}

.grid-45, .grid-100, .grid-container, .radius {
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -o-border-radius: 10px;
}

.grid-container#header {
    position: relative;
    padding-bottom: 10px;
}

.addMargin {
    margin-left: 1%;
    margin-right: 1%;
}

#league, #rules, #fixtureList, #news, #feed, #fixtures, #scoreList, #miniLeague, #playform, .white {
    background: #FFF;
    padding-top: 15px;
    border: 1px solid #999;
}

#league {
    box-shadow: 5px 5px 5px #999;
}

.white {
    margin-bottom: 10px;
    padding-bottom: 8px;
}

#miniLeague {
    margin-bottom: 10px;
}

#feed img {
    float: left;
    margin: 0 5px 20px 0;
}

#feed {
    line-height: 1.4;
}

#feed table {
    width: 90%;
    margin: 0 auto;
}

#feed h4, #feed h6 {
    margin-bottom: 5px;
}

.feed_title td {
    font-size: 100%;
}

.feed_date td{
    font-size: 80%;
    text-align: right;
    padding: 3px 0 7px 0;
}

.feed_desc td {
    font-size: 80%;
}

#rules li {
    margin-bottom: 8px;
    line-height: 1.4;
    margin-left: 30px;
}

#fixtures p, #fixtureList p{
    margin-bottom: 0;
}

#fixtures h3, #fixtureList h3, #playform h3, #scoreList h3{
    margin-top: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
}

#fixtures h4, #fixtureList h4 {
    margin-top: 8px;
    margin-bottom: 4px;
    font-size: 16px;
}

body {
    text-align: left;
    background: url(../img/stadium_bg1600.jpg) no-repeat center top fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

div#deadline {
    text-align: center;
    margin: 20px 0;
    border: 4px solid red;
    padding: 5px;
}

form label {
    width: 20%;
    display: inline-block;
    vertical-align: middle;
}

span.field {
    font-weight: bold;
    font-size: 16px;
}

span.fieldFull{
    font-style: italic;
    padding: 3px 0 0 0;    
    display: block;
    width: 100%;
}

div.userScore{
    text-align: center;
    margin-bottom: 2px;
    padding-bottom: 3px;
    border-bottom: 1px dotted #CCC;      
}

div.userScore:last-of-type {
    border-bottom: none;
}

form input, form select {
    display: inline-block;
    vertical-align: middle;
}

form div {
    margin-bottom: 5px;
}

form div.dropdown {
    overflow:hidden; /* this hides the select's drop button */
    padding:0; 
    margin-bottom: 5px;
    background: white url(../img/formelements-select.png) no-repeat bottom right;
    /* this is the new drop button, in image form */
    width:100%;
    border-radius:2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border: solid 1px #ccc;
}

.ui-datepicker-trigger {
    margin-left: 5px;
}

div.dropdown select {
    width:115% /* this percentage effectively extends the drop down button out of view */;
    background-color:transparent /* this hides the select's background making any styling visible from the div */;
    background-image:none;
    -webkit-appearance: none /* this is required for Webkit browsers */;
    border:none;
    box-shadow:none;
    padding:0.3em 0.5em; /* padding should be added to the select, not the div */
}

select option {
    padding: 2px 0 0 5px;
}

option.optionLabel {
    font-weight: bold;
    border-bottom: 1px solid #CCC;
}

input[type="text"], input[type="email"], input[type="password"], textarea {
    width:12em;
    border-radius:2px;
    border: solid 1px #ccc;
    padding:0.4em;
    background-color: #f5f5f5;
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
    margin-bottom: 5px;
}

input[type="submit"], input[type="button"], input[type="reset"] {
    background: white url(../img/formelements-select.png) no-repeat bottom left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border-radius:4px;
    border: solid 1px #ccc;
    padding:0.3em 0.5em; 
}

input.addTotal {
    width: 2em;
}

input.big_button {
    width: 100%;
    padding: 0.9em 1.2em;
    margin: 15px 0;
    font-family: 'Racing Sans One', Helvetica, Arial, sans-serif;
    font-size: 18px;
}

.bigButtonHolder {
    padding-top: 5px;
    border-top: 1px solid blue;
    margin-top: 20px;
}

.login {
    /*padding-top: 15px;*/
}

.logout {
    display: block;
    float: right;
    padding-top: 4px;
}

a.weekbox {
    border: 1px solid black;
    padding: 18px;
    margin: 5px;
    text-align: center;
}

a.weekbox:hover {
    background: #CCC;
    text-decoration: none;
}

.grid-container#admin {
    background: #FFF;
    max-width: 1200px;
    padding-top: 15px;
}

ul.adminNav {
    border-bottom: 1px solid #CCC;
    padding-bottom: 10px;
    min-height: 30px;
}

ul.adminNav li {
    list-style-type: none;
    display: inline-block;
}

ul.adminNav li a, a.fixtureEntry {
    margin: 2px;
    border: 1px solid #CCC;
    padding: 5px;
    text-decoration: none;
}

a.fixtureEntry {
    display: inline-block;
    width: 15%;
    text-align: center;
    vertical-align: top;
}

ul.adminNav li a:hover, a.fixtureEntry:hover {
    background: #CCC;
    border: 1px solid #999;
}


table#scorecard {
    width: 100%;
    font-size: 90%;
}

form.pickWeek{
    margin-bottom: 10px;
}

div#scorecard {
    padding-top: 10px;
    box-shadow: 2px 2px 2px 2px rgba(50, 50, 50, 0.6);
    -moz-box-shadow: 2px 2px 2px 2px rgba(50, 50, 50, 0.6);
    padding-bottom: 10px;
}

table#scorecard tr th, table#scorecard tr td {
    padding: 5px;
}

table#scorecard tr th {
    font-weight: bold;
    border-bottom: 1px solid black;
}

table#scorecard tr td {
    border-bottom: 1px dotted #ccc;
    padding-left: 10px;
}

#login {
    margin-top: 15px;
    padding-bottom: 15px;
    text-align: center
}

input[type="submit"]#login_btn {
    width: 13em;
    padding: 0.3em 0.7em;
}

nav {
    font-family: 'Racing Sans One', Arial, sans-serif;
    background: rgba(0,0,0, 0.5);
}

nav ul {
    margin: 0;
    width: 100%;
}

nav ul li {
    display: inline-block;
    vertical-align: top;
    width: 15%;
    margin: 0;

}

nav ul li a {
    display: block;
    padding: 0;
    width: 100%;
    text-align: center;
    color: #FFF;
    font-size: 25px;
}

nav ul li a:hover {
    background: #000;
    text-decoration: none;
    color: #FFF;

}

a.playerlink {
    display: block;
    padding: 5px;
    border: 1px solid #CCC;
}

a.playerlink:hover {
    background: #ccc;
    text-decoration: none;
    border: 1px solid #999;
}

input[type="text"].shortField {
    width: 2em;
}

.smallText {
    font-size: 80%;
}

a.newsListItem {
    display: block;
    padding: 5px 5px;
    border: 1px solid #CCC;
    margin-bottom: 5px;
    text-decoration: none;
}

a.newsListItem:hover {
    background: #CCC;
    border: 1px solid #999;
}

.newsItem {
    padding: 10px 0;
    border-bottom: 1px dotted #333;
}

.newsItem:last-of-type{
    border: none;
}

.newsDate {
    display: block;
    text-align: right;
    font-size: 10px;
}

table.miniLeague {
    width: 90%;
    border: 1px solid #999;
    margin: 0 auto 15px;
}

table.miniLeague td {
    border: 1px solid #ccc;
    padding: 5px;
}

table.miniLeague th.blue {
    color: #FFF;
    padding: 6px;
    text-align: center;
    background: url(../img/miniLeagueBg.png) repeat-x bottom #0000FF;
}

table.miniLeague th.blue h5 {
    margin: 0;
}

.center {
    margin: 0 auto;
}

form div#button_holder {
    margin-left: 20%;
}

.moreLink {
    display: block;
    padding: 4px;
    text-align:center;  
}

form div.dropdown.errorShow {
    background: url("../img/formelements-select-error.png") no-repeat scroll right bottom red;
    color: #FF0000;
    border: 1px solid #FF0000;
}


/*-------------------------------------------------------------------------------*/
/*mobile style cutoff*/
@media screen and (max-width: 767px) {

    nav ul li a {
        font-size: 20px;
    }

    div#fixtures, div#fixtureList {
        margin-bottom: 15px;
    }

    .feed_date td{
        font-size: 90%;
        text-align: right;
        padding: 3px 0 7px 0;
    }

    .feed_desc td {
        font-size: 100%;
    }
    
    .addMargin {
        margin-left: 0;
        margin-right: 0;
    }


}/*end mobile override*/
/*----------------------------------------------------------------------------------------*/
/*tablet overrides*/
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #fixtures, #playform {

    }
}


