/* Page structure */
html {
    background: #b3e86e url(../img/bg.434FAEFD323C.png) repeat-x;
}
body {
    padding: 0;
    padding-top: 10px;
    position: relative;
}
body:nth-child(2) {
    overflow-y: scroll;
}

#undo {
    position: fixed;
    top: 0;
    left: 49%;
    background-color: #ffdf14;
}

/* Slide-down messages */
.msg {
    display: none;
    font-size: 1.5em;
    font-weight: bold;
    left: 0;
    padding: .15em 0;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 5000;
}
#error-msg {
    background-color: #fcc;
    border-bottom: 1px solid #c99;
    box-shadow: inset 0px 20px 20px #ffe0e0, 0px 3px 3px #444;
    -moz-box-shadow: inset 0px 20px 20px #ffe0e0, 0px 3px 3px #444;
    color: #b33;
}
#ok-msg {
    background-color: #cfc;
    border-bottom: 1px solid #9c9;
    box-shadow: inset 0px 20px 20px #e0f8e0, 0px 3px 3px #666;
    -moz-box-shadow: inset 0px 20px 20px #e0f8e0, 0px 3px 3px #666;
    color: #3a3;
}
#close-msg {
    float: right;
}
#close-msg .btn {
    border-radius: 5px;
    -moz-border-radius: 5px;
    padding: 2px 5px;
}

/* Top of page */
#top-logo {
    padding-bottom: 2px;
}
.top-form {
    position: relative;
    margin: 0;
    padding: 0;
}
.top-form input.text,
.top-form input.password {
    border: 1px inset #66c;
    font-size: 16px;
    line-height: 16px;
    padding: 2px;
    width: 200px;
}
#top-login input.text,
#top-login input.password {
    width: 150px;
}
#tr {
    position: relative;
    height: 57px;
}
#top-search {
    position: absolute;
    bottom: 4px;
    right: 0;
}
#top-search-submit {
    position: absolute;
    right: 8px;
    top: 8px;
    /*top: 24px\9 /* ie8 hack */
}
@-moz-document url-prefix() { /* firefox hack */
    #top-search-submit {
        top: 6px;
    }
}
#top-login input.submit {
    font-size: 100%;
    margin: 0 0 0 15px;
    padding: 3px 8px;
    background-color: #a3d85e;
    background-color: #888;
    text-shadow: -1px -1px 0 #555;
    box-shadow: inset 0 10px 10px #aaa;
    -moz-box-shadow: inset 0 10px 10px #aaa;
    border-color: #888;
}
#top-login input.submit:hover {
    background-color: #999;
    box-shadow: inset 0 10px 10px #bbb;
    -moz-box-shadow: inset 0 10px 10px #bbb;
    text-shadow: -1px -1px 0 #777;
}
#top-login input.submit:active {
    border-style: inset;
    box-shadow: inset 0 10px 10px #bbb;
    -moz-box-shadow: inset 0 10px 10px #bbb;
}
#top-login input.submit {
    margin: 0;
}
#top-login div {
    padding-right: 85px;
}
#top-login div a {
    color: #eee;
    text-decoration: none;
}
#top-login div a:hover {
    color: #fff;
    text-decoration: underline;
}

#top-rhs-menu {
    position: absolute;
    right: 0;

    position: fixed;
    top: 0;
    right: 30px;
}
#top-rhs-menu-target {
    background-color: #fff;
    border: 2px solid #aaa;
    box-shadow: 0 1px 3px #000;
    border-width: 0 2px 2px;
    border-radius: 0 0 4px 4px;
    z-index: 10;
    position: relative;
}
#top-rhs-menu-target a {
    display: block;
    padding: 1px 10px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}
#top-rhs-menu-target a:hover {
    color: #666;
}
#top-rhs-menu ul {
    display: none;
    background-color: #f8f8f8;
    margin: 0 3px;
    border: 1px solid #aaa;
    border-width: 0 1px 1px;
    text-align: left;
    z-index: 5;
    position: relative;
    box-shadow: 0 1px 3px #000;
}
#top-rhs-menu li {
    list-style: none;
    margin: 0;
}
#top-rhs-menu a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 3px 5px;
}
#top-rhs-menu a:hover {
    color: #666;
    background-color: #fff;
}

/* Top navigation tabs */
#nav {
    padding-top: 21px;
}
ul.nav-menu {
    position: relative;
    z-index: 1;
}
ul.nav-menu li {
    float: left;
    list-style: none;
    border: 1px solid #ccc;
    border-width: 1px 0 0 0;
    background-color: #f2f2f2;
    margin-bottom: -1px;
    margin-left: 0;
    margin-top: 5px;
}
@-moz-document url-prefix() { /* firefox hack */
    ul.nav-menu li {
        margin-bottom: -2px;
    }
}
ul.nav-menu li.first {
    border-left: 1px solid #ccc;
    border-radius: 4px 0 0 0;
    -moz-border-radius: 4px 0 0 0;
}
ul.nav-menu li.last {
    border-right: 1px solid #ccc;
    border-radius: 0 4px 0 0;
    -moz-border-radius: 0 4px 0 0;
}
ul.nav-menu a {
    color: #666;
    font-weight: bold;
    /*font-size: 16px;*/
    /*line-height: 24px;*/
    font-size: 16px;
    text-decoration: none;
    display: block;
    padding: 3px 12px;
}
ul.nav-menu li {
    line-height: 24px;
}
ul.nav-menu a:hover {
    color: #4779c9;
}
ul.nav-menu li.current {
    color: #144696;
    background-color: #fff;
    border-bottom-color: #fff;
    text-shadow: #ccc 1px 1px 1px;
    line-height: 30px;
    margin-top: 0;
    border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-width: 1px 1px 0;
}
ul.nav-menu li.current a {
    color: #4779c9;
}

/* Backend tabs (disabled for now, they'll probably go)
ul#tabs {
    margin: -.5em 0 30px;
    *height: 1px;
}
ul#tabs li {
    float: left;
    list-style: none;
    margin-left: 10px;
}
ul#tabs a {
    display: block;
    text-decoration: none;
    background-color: #f5f5f6;
    border: 1px solid #ccc;
    border-width: 0 1px 1px 1px;
    border-radius: 0 0 3px 3px;
    -moz-border-radius: 0 0 3px 3px;
    padding: 3px 5px;
    color: #566778;
}
ul#tabs li.current a {
    background-color: #ffffe5;
    color: #144696;
}
*/

/* Breadcrumbs (may be removed) */
#crumbs {
    color: #144696;
    display: inline;
    list-style-type: none;
}
#crumbs li {
    display: inline;
    margin-left: 0;
    font-size: 11px;
}
#crumbs a {
    padding: 0 .25em;
}
#youarehere {
    font-size: 11px;
}

#footer {
    clear: both;
    color: #50582d;
    font-size: smaller;
    margin: 0 auto 1em;
    text-align: center;
    width: 900px;
}
#footer a {
    color: #50582d;
    text-decoration: none;
}
#footer a:hover {
    color: #80885d;
}


/* General rules */
.center {
    text-align: center;
}
.right {
    text-align: right;
}
.placeholder {
    color: #aaa;
}

p {
    margin-bottom: 1em;
}
ul {
    list-style-image: url(../img/bull.06B038AAA54C.png);
    margin-bottom: .75em;
}

/* Buttons */
.btn {
    background-color: #3368a7;
    border: 1px outset #3368a7;
    border-radius: 3px;
    -moz-border-radius: 3px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    padding: 2px 3px;
    margin: 0 3px;
    text-decoration: none;
    text-shadow: -1px -1px 0 #114685;
    color: #fff;
    font-weight: bold;
    font-size: smaller;
}
.btn:hover {
    background-color: #558ac9;
}
.btn:active {
    border-style: inset;
}
.btn-go {
    background-color: #ddf;
    font-weight: bold;
}
.btn-create,
#ok-msg #close-msg .btn {
    background-color: #3a3;
    text-shadow: -1px -1px 0 #080;
    border-color: #68a733;
}
.btn-create:hover,
#ok-msg #close-msg .btn:hover {
    background-color: #4b4;
}
.btn-del,
#error-msg #close-msg .btn {
    background-color: #e63434;
    text-shadow: -1px -1px 0 #900;
    border-color: #a76833;
}
.btn-del:hover,
#error-msg #close-msg .btn:hover {
    background-color: #f64444;
}
.btn-off {
    background-color: #fff;
    color: #bbb;
    cursor: default;
}
.btn-off:hover {
    background-color: #fff;
}
.btn img {
    vertical-align: text-top;
}

.nicebtn {
    background-color: #f8f8f8;
    cursor: pointer;
    display: inline-block;
    margin: 0 5px 5px 0;
    padding: .25em .5em;
    width: 277px;
    border: 1px solid gray;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-box-shadow: inset 1px 6px 12px #ddd, inset -1px -20px 20px #ccc, 1px 2px 1px #555;
    -moz-box-shadow: inset 1px 6px 12px #ddd, inset -1px -20px 20px #ccc, 1px 2px 1px #555;
    -o-box-shadow: inset 1px 6px 12px #ddd, inset -1px -20px 20px #ccc, 1px 2px 1px #555;
    *border: 3px outset gray;
}
.nicebtn:hover {
    background-color: #fff;
    border-color: #aaa;
    -webkit-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 1px 2px 1px #555;
    -moz-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 1px 2px 1px #555;
    -o-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 1px 2px 1px #555;
}
.nicebtn:active {
    border-style: inset;
    -webkit-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 0px 0px 0px transparent;
    -moz-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 0px 0px 0px transparent;
    -o-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 0px 0px 0px transparent;
    margin: 1px 4px 4px 1px;
}
.nicebtn.selected {
    background-color: #ffffcc;
    border: 1px solid #dd0;
    -webkit-box-shadow: inset 1px 6px 12px #f6f6d0, inset -1px -20px 20px #dd9, 1px 2px 1px #664;
    -moz-box-shadow: inset 1px 6px 12px #f6f6d0, inset -1px -20px 20px #dd9, 1px 2px 1px #444;
    -o-box-shadow: inset 1px 6px 12px #f6f6d0, inset -1px -20px 20px #dd9, 1px 2px 1px #444;
    *border: 3px solid yellow;
}
/* TODO move this to competition create wizard css file */
#form .nicebtn {
    float: left;
}

/* Forms */
.tf th {
    text-align: right;
    padding-right: 1em;
}
.tf th.left {
    text-align: left;
    padding: 0 0 0 1em;
}
.tf .textarea th {
    padding-top: 3px;
    vertical-align: top;
}
form tr.required th label {
    color: #933;
    white-space: nowrap;
}
form tr.required th label:after {
    content: ' *';
}
.tf td {
    padding: 1px;
}
form label.error {
    display: block;
    color: #933;
    padding: 0 .5em;
}
form .multi label.error {
    display: inline;
}
form tr.error td {
    background-color: #fcc;
}
input[type="text"],
input[type="password"] {
    border: 1px inset #ccc;
}
input[type="submit"] {
    background-color: #888;
    border: 1px outset #888;
    border-radius: 3px;
    -moz-border-radius: 3px;
    box-shadow: inset 0 10px 10px #bbb;
    -moz-box-shadow: inset 0 10px 10px #b4ddb4;
    cursor: pointer;
    font-family: Arial, sans-serif;
    padding: 2px 6px;
    text-decoration: none;
    text-shadow: -1px -1px 0 #7a7;
    color: #fff;
    font-weight: bold;
    font-size: larger;
    padding: 3px 10px;
}
input[type="submit"]:hover {
    background-color: #999;
    box-shadow: inset 0 10px 10px #ccc;
}
input[type="submit"]:active {
    border-style: inset;
}
input[type="submit"] {
    background-color: #3a3;
    box-shadow: inset 0 10px 10px #7d7;
    text-shadow: -1px -1px 0 #080;
    border-color: #68a733;
}
input[type="submit"]:hover {
    background-color: #4b4;
    box-shadow: inset 0 10px 10px #8e8;
}


/* Content stuff */
#content {
    position: relative;
    background: #fff;
    border: 1px solid #bfbfbf;
    border-width: 1px 1px 1px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: 0px 1px 8px #444;
    -webkit-box-shadow: 0px 1px 8px #444;
    -moz-box-shadow: 0px 1px 8px #444;
    margin-bottom: 1em;
    padding: .5em 1em;
    min-height: 400px;
    font-size: 110%;
}
#content h1,
#content h2,
#content h3,
#content h4 {
    color: #114685;
    text-shadow: #ccc 1px 1px 1px;
    margin-bottom: .5em;
}
#content h1 {
    font-size: 200%;
}
#content h4 a {
    color: inherit;
}
#content h4 a:hover {
    color: #4779c9;
}

#title-container {
    width: 940px;
    margin-top: 5px;
}
#title-container .btn-div {
    padding-top: 6px;
    width: 170px;
}
#title-container .grid_8 {
    width: 560px;
}
#title-container .header-container {
    padding-top: 0;
}

.header-container {
    padding-top: .5em;
}
.header-container h1,
.header-container h2,
.header-container h3,
.header-container h4,
.header-container h5 {
    display: inline;
}
.header-container .link-container {
    display: inline;
    margin-left: .5em;
}
.minimenu-container {
    position: relative;
    top: 5px; /* TODO unapply this for ie7 */
    z-index: 1000;
    display: inline;
    padding-left: .5em;
}
button.minimenu-button {
    height: 25px;
    font-size: 13px;
}
@-moz-document url-prefix() {
    /* firefox hack to position the icons properly */
    button.minimenu-button span.ui-icon {
        margin-top: -15px;
    }
    .minimenu-container {
        top: -1px;
    }
    ul.minimenu {
        top: 20px !important;
    }
}
ul.minimenu a {
    display: block;
    text-align: left;
}

/* Forgot/reset password forms */
#fpform table, #rpform table {
    margin: 0 auto;
}
#fpform #submit {
    font-weight: bold;
}

/* control panels */
.panel {
    border: 2px outset #ccc;
    padding: 5px;
    margin-bottom: 1em;
    overflow: auto;
}
#inner-content .panel h3 {
    font-size: 110%;
    font-weight: normal;
    text-shadow: none;
}
#inner-content .panel h3 strong {
    text-shadow: #ccc 1px 1px 1px;
}
.panel *:last-child {
    margin-bottom: 0;
}

.notice {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    margin-bottom: .5em;
    padding: 5px;
    text-align: center;
}
div.ui-state-highlight {
    padding: .3em;
    margin-bottom: 1em;
    text-align: center;
}
span.ui-icon-info {
    float: left;
    margin: 2px .3em 0 0;
}


/* Login page only */
#page-login-form {
    margin: 0 auto;
}
#page-login-form th {
    font-weight: bold;
    text-align: right;
    padding-right: .75em;
}


/* manage comp page only */
#seasons .season {
    overflow: auto;
    border: 1px solid #ddd;
    margin-bottom: .5em;
    background-color: #f3f3f3;
    padding: 0 .5em;
}
#seasons .season h5 {
    margin-bottom: .25em;
    clear: both;
    font-size: 130%;
}
#seasons .season .state {
    font-size: 70%;
    color: #666;
    padding-left: .25em;
}
#seasons .season.running .state {
    color: #393;
}
#seasons .season.setup .state {
    color: #993;
}
#seasons .season.finished .state {
    color: #666;
}
#seasons .season h6 {
    margin-bottom: .25em;
    color: #333;
    font-size: 100%;
}
#seasons .actions {
    float: left;
    margin-right: 4em;
}
#seasons .reports {
    float: left;
}


/* create comp page only */
.comptype, .sport {
    background-color: #f8f8f8;
    border: 1px solid gray;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-box-shadow: inset 1px 6px 12px #ddd, inset -1px -20px 20px #ccc, 1px 2px 1px #555;
    -moz-box-shadow: inset 1px 6px 12px #ddd, inset -1px -20px 20px #ccc, 1px 2px 1px #555;
    -o-box-shadow: inset 1px 6px 12px #ddd, inset -1px -20px 20px #ccc, 1px 2px 1px #555;
    *border: 3px outset gray;
    cursor: pointer;
    margin: 0 5px 5px 0;
    padding: .25em;
}
.comptype:hover, .sport:hover {
    background-color: #fff;
    border-color: #aaa;
    -webkit-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 1px 2px 1px #555;
    -moz-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 1px 2px 1px #555;
    -o-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 1px 2px 1px #555;
}
.comptype:active, .sport:active {
    border-style: inset;
    -webkit-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 0px 0px 0px transparent;
    -moz-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 0px 0px 0px transparent;
    -o-box-shadow: inset 1px 6px 12px #eee, inset -1px -20px 20px #ddd, 0px 0px 0px transparent;
    margin: 1px 4px 4px 1px;
}
.comptype.selected, .sport.selected {
    background-color: #ffffcc;
    border: 1px solid #dd0;
    -webkit-box-shadow: inset 1px 6px 12px #f6f6d0, inset -1px -20px 20px #dd9, 1px 2px 1px #664;
    -moz-box-shadow: inset 1px 6px 12px #f6f6d0, inset -1px -20px 20px #dd9, 1px 2px 1px #444;
    -o-box-shadow: inset 1px 6px 12px #f6f6d0, inset -1px -20px 20px #dd9, 1px 2px 1px #444;
    *border: 3px solid yellow;
}

.comptype {
    height: 160px;
}
.comptype h4 {
    text-align: center;
}
.comptype ul {
    padding-left: 0;
}

.sport {
    height: 76px;
    float: left;
    width: 76px;
    margin: 0 5px 5px 0;
    text-align: center;
}

/* create comp teams page only */
#stages .stage, #stages .stage.alpha, #stages .stage.omega {
    margin: 0 6px;
}
#stages .stage-inner {
    background-color: #fff8f0;
    border: 2px solid #bbb;
    border-color:  #ccc #888 #888 #ccc;
    border-radius: 10px;
    -moz-border-radius: 10px;
    color: #20284f;
    position: relative;
}
#stages .stage-inner > * {
    padding: 5px;
}
#stages .stage-inner .controls {
    border-bottom: 1px dotted #bbb;
    cursor: move;
}
#stages .stage-inner .controls a.stage-delete {
    text-decoration: none;
    position: absolute;
    font-size: 9px;
    padding: 0 5px;
    top: -1px;
    right: 0px;
    color: #333;
}
#stages h3.stage-name {
    border: 1px solid transparent;
    margin: 0 5px 0 5px;
    padding: 0 0 1px 1px;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}
#stages .edit-stage-name {
    padding: 0 0 0 5px;
}
#stages h3.stage-name:hover {
    background-color: #fff;
    border: 1px inset #ddd;
    cursor: text;
}
#stages .edit-stage-name input {
    font-size: 21px;
    width: 203px;
    height: 28px;
    padding-top: 3px;
    font-weight: bold;
    border: 1px inset #ddd;
    text-align: center;
    color: #20284f;
}
#stages .stage-teams {
    /* some height gives teams a drop target */
    min-height: 20px;
}
#stages .team {
    padding-left: 20px;
    border-bottom: 1px solid transparent;
}
#stages .team span {
    cursor: move;
}
#stages .team-delete {
    float: right;
    text-decoration: none;
    color: #555;
    display: none;
}
#stages .stage:hover .team {
    border-bottom: 1px solid #eee8e0;
}
#stages .stage:hover .team:last-child {
    border-color: transparent;
}
#stages .stage:hover .team-delete {
    display: block;
}
#stages form.add-team {
    margin-top: 5px;
}
#stages .team-name {
    width: 160px;
    margin: 0 20px;
}
#stages .team-name:focus {
    background-color: #ffffe0;
}
#stages div.clear {
    height: 10px;
}
#pick-teams {
    margin-bottom: 10px;
}
#stages-bottom {
    margin-top: 10px;
}
#stages-bottom.nomargin {
    margin-top: 0;
}


/* minimenu */
ul.minimenu {
    position: absolute;
    top: 13px;
    left: 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    background-color: #eee;
    width: 230px;
}
ul.minimenu li {
    margin-left: 3px;
    list-style: none;
}
ul.minimenu li a.ui-state-hover {
    border: none;
    display: block;
    color: #499BCC;
}

dl {
}

dt {
    font-weight: bold;
}

dd {
    margin-left: 1em;
}
