html,
body {
	position: relative;
    height: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

section.playoff-bracket-editor {
    position: relative;
    color: #000000;
}

.playoff-tree,
.playoff-tree div {
    font-size: 14px;
    font-family: 'Lucida Grande', sans-serif;
}

@media only screen and (max-width: 900px) {
    .playoff-tree > div:first-of-type {
        width: 750px;
        padding: 0 5%;
    }

    .playoff-window {
        width: 806px;
    }

    .playoff-window .playoff-tree {
        overflow-x: scroll;
    }
}

/* Screen sizes for playoff brackets. These cover most mobile/pad devices.*/
@media only screen and (min-width: 425px) and (max-width: 700px) {
    .playoff-tree > div:first-of-type {
        width: 150%;
    }
}

@media only screen and (min-width: 320px) and (max-width: 425px) {
    .playoff-tree > div:first-of-type {
        width: 215%;
    }
}

@media only screen and (max-width: 320px) {
    .playoff-tree > div:first-of-type {
        width: 230%;
    }
}

.bracket {
    width: 200px;
    height: 100px;
    border: 1px solid #888888;
    background-color: #FFFFFF;
    color: #000000;
    padding: 5px;
    margin: 10px 0;
    position: relative;
}

.bracket .series-info {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.playoff-window .playoff-tree {
    border-top: 1px solid #000000;
}

.playoff-window .playoff-tree:first-of-type {
    border-top-width: 0;
}

.bracket .team-name {
    width: 91%;
    display: inline-block;
    vertical-align: bottom;
    white-space: nowrap;
    overflow: hidden;
    z-index: 0;
}

.bracket .team-points {
    padding: 0.2em;
    margin: -0.2em 0;
}

.bracket.bracket-right .team-points,
.bracket.bracket-center .team-points,
.bracket.bracket-left .team-points {
    position: absolute;
    right: 0;
    border-left: 1px solid #888888;
    border-color: #ffffff;
}

.bracket .top-seed,
.bracket .bottom-seed {
    background-color: #dddddd;
    background-color: #888888;
    border: 1px solid #888888;
    border-color: #ffffff;
    color: #111111;
    color: #FFFFFF;
    padding: 0.1em;
    overflow: hidden;
    position: relative;
}

.bracket .winner {
    color: #000000;
    background-color: #F2F2F2;
    background-color: #CCCCCC;
}

.bracket .top-seed {
    border-bottom: 0px;
}

.playoff-tree .bracket .next-game {
    font-size: 10px;
    margin-top: 0.5em;
}

.bracket .next-game span:last-child {
    display: block;
}

.playoff-tree {
    display: block;
    margin: 1.0em auto;
    position: relative;
}

.clear {
    clear: both;
}

.playoff-tree .sides-1 .round-wrapper {
    float: right;
}

.round-wrapper {
    color: #ffffff;
    display: inline-block;
    z-index: 2;
}

.playoff-tree .round-wrapper .bracket {
    margin-top: -56px;
    margin-bottom: 56px;
}

.playoff-tree .sides-1 .round-wrapper {
    position: relative;
    display: inline-block;
}

.playoff-tree .sides-1 .round-wrapper.round-0 {
    top: 50%;
}

.playoff-tree .sides-1.rounds-4 .round-wrapper.round-2 {
    top: 20%;
}

.playoff-tree .sides-1 .round-wrapper.round-1 {
    top: 25%;
}

.playoff-tree .sides-1.rounds-4 .round-wrapper.round-1,
.playoff-tree .sides-1.rounds-3 .round-wrapper.round-1 {
    top: 33%;
}

.playoff-tree .sides-1 .round-wrapper.round-1 .bracket {
    margin-bottom: 112px;
}

.playoff-tree .sides-1 .round-wrapper.round-2 {
    top: 12.5%;
}

.playoff-tree .sides-1.rounds-4 .round-wrapper.round-3 {
    top: 6.25%;
}

.playoff-tree .sides-1 .round-wrapper.round-2 .bracket {
    margin-bottom: 75px;
}

.playoff-tree .sides-1 .round-separator {
    float: right;
    width: 1.5em;
    height: 117px;
    top: 50%;
    display: block;
    margin-right: 0.75em;
    z-index: 1;
}

/* base bracket separator styles */
.playoff-tree .sides-1 .round-separator em {
    position: relative;
    top: -69px;
    height: 117px;
    width: 0.75em;
    background-color: transparent;
    border: 0.5em solid #CCCCCC;
    border-color: #888888;
    border-left-width: 0;
    border-radius: 0 1.0em 1.0em 0;
    display: inline-block;
}

.playoff-tree .sides-1 .round-separator em:after {
    content: ' ';
    height: 0.5em;
    width: 1.1em;
    background-color: #CCCCCC;
    background-color: #888888;
    position: relative;
    top: 48%;
    display: inline-block;
    left: 1.2em;
    vertical-align: top;
}

/* specific bracket separator styles */
/**
	top is (height/2)+10 for all round separators
**/
.playoff-tree .sides-1.rounds-2 .round-separator.round-0 em {
    top: -100px;
    height: 180px;
}

.playoff-tree .sides-1.rounds-3 .round-separator.round-0 em {
    top: -125px;
    height: 230px;
}

.playoff-tree .sides-1.rounds-3 .round-wrapper.round-1 .bracket {
    margin-bottom: 200px;
    margin-top: -76px;
}

.playoff-tree .sides-1.rounds-3 .round-separator.round-1 em {
    top: -246px;
    height: 152px;
}

.playoff-tree .sides-1.rounds-3 .round-separator.round-1 em:after {
    top: 72%;
}

.playoff-tree .sides-1.rounds-3 .round-separator.round-1 em:last-child {
    top: -95px;
}

.playoff-tree .sides-1.rounds-3 .round-separator.round-1 em:last-child:after {
    top: 18%;
}

.playoff-tree .sides-1.rounds-3 .round-wrapper.round-2 .bracket {
    margin-top: -76px;
    margin-bottom: 126px;
}

.playoff-tree .sides-1.rounds-3 .round-wrapper.round-2 .bracket:first-child {
    margin-top: -75px;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-0 em {
    top: -210px;
    height: 400px;
}

.playoff-tree .sides-1.rounds-4 .round-wrapper.round-1 .bracket {
    margin-bottom: 356px;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-1 em {
    height: 215px;
    top: -380px;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-1 em:after {
    top: 75%;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-1 em:last-child {
    top: -90px;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-1 em:last-child:after {
    top: 25%;
}

.playoff-tree .sides-1.rounds-4 .round-wrapper.round-2 .bracket {
    margin-bottom: 190px;
    margin-top: -75px;
}

.playoff-tree .sides-1.rounds-4 .round-wrapper.round-2 .bracket:nth-child(3) {
    margin-top: 0px;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-2 em {
    height: 175px;
    top: -550px;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-2 em:after {
    top: 80%;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-2 em:nth-child(2) {
    top: -450px;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-2 em:nth-child(2):after {
    top: 50%;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-2 em:nth-child(3) {
    top: -350px;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-2 em:nth-child(3):after {
    top: 50%;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-2 em:last-child {
    top: -225px;
}

.playoff-tree .sides-1.rounds-4 .round-separator.round-2 em:last-child:after {
    top: 20%;
}

.playoff-tree .sides-1.rounds-4 .round-wrapper.round-3 .bracket {
    margin-top: -76px;
    margin-bottom: 120px;
}

.playoff-tree .sides-1.rounds-4 .round-wrapper.round-3 .bracket:first-child {
    margin-top: -75px;
}

.playoff-tree .sides-1 .round-separator em:after {
    top: 48%;
}

.playoff-tree .sides-1 .round-separator.round-1 em {
    top: -175%;
}

.playoff-tree .sides-2 > .round-wrapper {
    display: inline-block;
    position: relative;
}

.playoff-tree .sides-2 {
    /*height:900px!important;*/
    margin: 0 auto;
    width: 660px;
}

.playoff-tree .sides-2,
.playoff-tree .sides-1 {
    display: block;
    overflow-y: hidden
}

.playoff-tree .sides-1 {
    display: inline-block;
}

.playoff-tree .sides-2.rounds-3 {
    width: 1150px;
}

.article-content .playoff-tree .sides-2.rounds-3 {
    width: 1085px;
}

.playoff-tree .sides-2.rounds-4 {
    width: 1438px;
}

.playoff-tree .sides-1.rounds-2 .round-wrapper.round-1 .bracket {
    margin-bottom: 152px;
    margin-top: -76px;
}

.playoff-tree .sides-1.rounds-2 .round-wrapper.round-1 .bracket:first-child {
    margin-top: -75px;
}

/* same area for each */
.playoff-tree .sides-2.rounds-1,
.playoff-tree .sides-1.rounds-1 {
    height: 160px;
}

.playoff-tree .sides-2.rounds-2 {
    height: 220px;
}

/* same area for each */
.playoff-tree .sides-2.rounds-3,
.playoff-tree .sides-1.rounds-2 {
    height: 340px;
}

/* same area for each */
.playoff-tree .sides-2.rounds-4,
.playoff-tree .sides-1.rounds-3 {
    height: 600px;
}

/* same area for each */
.playoff-tree .sides-1.rounds-4 {
    height: 1220px;
}

/* these ones are centred*/
.playoff-tree .sides-2.rounds-4 .round-3 .bracket
.playoff-tree .sides-2.rounds-3 .round-2 .bracket
.playoff-tree .sides-2.rounds-2 .round-1 .bracket
.playoff-tree .sides-2.rounds-1 .round-0 .bracket {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -66px;
    margin-left: -89px;
}

.playoff-tree .sides-2 .round-wrapper {
    position: relative;
    vertical-align: middle;
    height: 20em;
}

.playoff-tree .sides-2 .round-wrapper .bracket {
    margin: 0;
    position: relative;
}

.round-separator {
    display: inline-block;
    position: relative;
    width: 0.75em;
}

.playoff-tree .sides-2.rounds-4 .round-wrapper.round-3 .bracket,
.playoff-tree .sides-2.rounds-4 .round-wrapper.round-2 .bracket,
.playoff-tree .sides-2.rounds-3 .round-wrapper.round-2 .bracket,
.playoff-tree .sides-2.rounds-3 .round-wrapper.round-1 .bracket,
.playoff-tree .sides-2.rounds-2 .round-wrapper.round-1 .bracket,
.playoff-tree .sides-2.rounds-2 .round-wrapper.round-0 .bracket {
    top: 33%;
}

.playoff-tree .sides-2.rounds-4 .round-wrapper.round-3 .bracket,
.playoff-tree .sides-2.rounds-3 .round-wrapper.round-2 .bracket,
.playoff-tree .sides-2.rounds-2 .round-wrapper.round-1 .bracket {
    top: 25%;
}

.playoff-tree .sides-2.rounds-4 .round-wrapper.round-0 .bracket:first-of-type,
.playoff-tree .sides-2.rounds-3 .round-wrapper.round-0 .bracket:first-of-type {
    top: 0;
    left: 0;
}

.playoff-tree .sides-2.rounds-4 .round-wrapper.round-0 .bracket:last-of-type,
.playoff-tree .sides-2.rounds-3 .round-wrapper.round-0 .bracket:last-of-type {
    bottom: 0;
    left: 0;
    position: absolute;
}

.playoff-tree .sides-2 .round-separator em {
    display: inline-block;
    position: absolute;
    top: 50%;
    width: 1.0em;
    height: 0.5em;
    background-color: #CCCCCC;
    background-color: #888888;
    vertical-align: middle;
}

.playoff-tree .sides-2.rounds-4 .round-open.round-2 em,
.playoff-tree .sides-2.rounds-3 .round-open.round-1 em,
.playoff-tree .sides-2.rounds-2 .round-open.round-0 em {
    height: 0.75em;
    margin-top: -20px;
    transform: skew(0, -45deg);
}

.playoff-tree .sides-2.rounds-4 .round-close.round-2 em,
.playoff-tree .sides-2.rounds-3 .round-close.round-1 em,
.playoff-tree .sides-2.rounds-2 .round-close.round-0 em {
    height: 0.75em;
    margin-top: -17px;
    transform: skew(0, 45deg);
}

.article-content .playoff-tree .sides-2.rounds-4 .round-close.round-2 em,
.article-content .playoff-tree .sides-2.rounds-3 .round-close.round-1 em,
.article-content .playoff-tree .sides-2.rounds-2 .round-close.round-0 em {
    margin-top: -10px;
}

.playoff-tree .sides-2.rounds-3 .round-open.round-0,
.playoff-tree .sides-2.rounds-3 .round-close.round-0 {
    width: 2.25em;
}

.playoff-tree .sides-2.rounds-3 .round-separator.round-0 em {
    height: 11.5em;
    margin-top: -6.5em;
    background-color: transparent;
    border: 0.5em solid #CCCCCC;
    border-color: #888888;
}

.playoff-tree .sides-2.rounds-3 .round-separator.round-0 em:after {
    content: ' ';
    height: 0.5em;
    width: 1.0em;
    background-color: #CCCCCC;
    background-color: #888888;
    position: relative;
    top: 50%;
    margin-top: -0.5em;
    display: inline-block;
}

.playoff-tree .sides-2.rounds-3 .round-open.round-0 em {
    border-left-width: 0;
    margin-right: 0.75em;
    border-radius: 0 1.0em 1.0em 0;
}

.playoff-tree .sides-2.rounds-3 .round-open.round-0 em:after {
    left: 1.25em;
}

.playoff-tree .sides-2.rounds-3 .round-close.round-0 em {
    border-right-width: 0;
    margin-left: 0.75em;
    border-radius: 1.0em 0 0 1.0em;
}

.playoff-tree .sides-2.rounds-3 .round-close.round-0 em:after {
    left: -1.5em;
}

/* edit form */

.bracket-edit {
    position: absolute;
    width: 170px;
    height: 110px;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 100;
}

.edit-bracket-form {
    width: 700px;
}

ul.editBracket,
ul.editBracket li,
ul.editBracket li span,
ul.editBracket li span input,
ul.editBracket li span select {
    font-size: 14px;
}

ul.editBracket {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.editBracket li {
    display: inline-block;
}

ul.editBracket li:first-child {
    width: 100%;
    float: none;
    display: block;
    height: auto;
}

ul.editBracket li {
    width: 50%;
    display: inline-block;
    height: 3.0em;
    float: left;
}

ul.editBracket li span {
    width: 34%;
    display: inline-block;
}

ul.editBracket li span:nth-child(2) {
    width: 65%;
}

ul.editBracket li span input {
    width: 10em;
}

ul.editBracket li span select {
    max-width: 100%;
    height: 20px;
}

ul.editBracket li span input[type="number"] {
    width: 2em;
}

ul.editBracket li:first-child h2,
ul.editBracket li:first-child p {
    margin-top: 0;
    margin-bottom: 0.5em;
    display: block;
}

aside.bracket-games {
    margin-top: 2.0em;
    padding-top: 1.5em;
    border-top: 1px solid #000000;
}

aside.bracket-games table {
    width: 100%;
}

aside.bracket-games input[type="number"] {
    width: 3.0em;
}

aside.bracket-games select.venue {
    width: 195px;
}

aside.bracket-games input.js-datepicker {
    text-align: center;
    vertical-align: top;
}

aside.bracket-games table td,
aside.bracket-games table th {
    text-align: left;
    white-space: nowrap;
    padding: 0.25em;
}

aside.bracket-games table td,
aside.bracket-games table td * {
    font-size: 14px;
    vertical-align: middle;
}

aside.bracket-games table td select {
    font-size: 14px;
    border: 0;
    background-color: transparent;
}

aside.bracket-games table td input[type="number"] {
    text-align: center;
}

aside.bracket-games table td label.tba {
    text-align: center;
    vertical-align: middle;
    display: block;
}

aside.bracket-games table tfoot tr:first-child {
    background-color: #cccccc;
}

aside.bracket-games tfoot {
    background-color: #eeeeee;
}

aside.bracket-games table tr td:last-child {
    text-align: center;
}

aside.bracket-games table tr td:first-child:last-child {
    text-align: left;
}

aside.bracket-games .cancel-edit {
    display: block;
    text-align: right;
    visibility: hidden;
    font-size: 14px;
    margin-top: 1.0em;
}

.add-game {
    width: 100px !important;
}

/* form_game.php's bracket details display*/
div.bracket-details {
    background-color: #eeeeee;
    border: 1px solid #cccccc;
    padding: 1.0em;
    width: 93%;
    margin-bottom: 1.0em;
}

div.bracket-details .series-title {
    font-size: 16px;
    font-weight: bold;
    display: block;
}

div.bracket-details .series-seeds {
    font-size: 14px;
    display: block;
}

div.bracket-details .series-seeds span {
    width: 7em;
    display: inline-block;
}

div.bracket-details .series-state {
    float: right;
    font-size: 14px;
}

/* playoff bracket editor styles */
.playoff-blurb {
    font-size: 14px;
    margin-bottom: 0;
    margin-top: 0.5em;
    width: 58%;
}

.playoff-bracket-creator {
    position: absolute;
    right: 0;
    width: 40%;
    display: inline-block;
    background-color: #eeeeee;
    z-index: 100;
    padding-bottom: 15px;
}

.playoff-bracket-creator,
.playoff-bracket-creator * {
    font-size: 14px;
}

.playoff-bracket-creator ul {
    margin: 1.0em;
    padding: 0;
    list-style-type: none;
}

.playoff-bracket-creator ul li {
    padding: 0.25em 0;
}

.playoff-bracket-creator > h3, #list-trees-edit > h3 {
    cursor: pointer;
}

.playoff-bracket-creator > h3:after, #list-trees-edit > h3:after {
    content: '+';
    color: #000000;
    -webkit-border-radius: 1000px;
    -moz-border-radius: 1000px;
    border-radius: 1000px;
    position: absolute;
    right: 1.0em;
    display: inline-block;
    width: 18px;
    text-align: center;
}

.playoff-bracket-creator > h3.control-open:after, #list-trees-edit > h3.control-open:after {
    content: '-';
}

.playoff-bracket-creator h3 {
    margin: 1.0em 1.0em 0;
    border-bottom: 1px solid #000;
}

.rounds label span span {
    display: inline-block;
    clear: both;
    font-size: 12px;
    font-style: italic;
    width: 100%;
}

.shape label span.ui-button-text {
    padding: 0.4em 0;
}

.rounds label {
    width: 25%;
}

.rounds label span.ui-button-text {
    padding: 0.4em 0;
}

.shape label {
    width: 50%;
}

ul.playoff-trees li,
ul.playoff-trees div {
    position: relative;
    display: block;
    padding-left: 0.5em;
}

ul.playoff-trees div {
    width: 85%;
}

ul.playoff-trees li {
    width: 100%;
    padding-left: 0;
}

ul.playoff-trees li:nth-child(2n+1) {
    background-color: #ffffff;
}

ul.playoff-trees li div a {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

ul.playoff-trees li div aside {
    display: inline-block;
    padding: 0 1.0em;
    float: right;
}

ul.playoff-trees li div span {
    display: inline-block;
    margin: 0 0.5em;
    float: right;
    vertical-align: middle;
    font-size: 12px;
}

ul.playoff-trees li div span:last-child {
    margin-left: 0;
    float: none;
    display: inline;
    font-size: 14px;
}

ul.playoff-trees li > .delete-tree,
ul.playoff-trees li > span {
    display: inline-block;
    padding-right: 0.5em;
    float: right;
    color: #000000;
}

ul.playoff-trees li > span {
    color: #aaaaaa;
}

.playoff-bracket-controls .ui-buttonset {
    margin-right: 0;
}

.playoff-bracket-controls li.title-row {
    line-height: 1.7em;
}

.playoff-bracket-controls li.title-row input {
    float: right;
    width: 85%;
}

.playoff-bracket-controls li:last-child span:first-child input {
    width: 100%;
}

.playoff-bracket-controls li:last-child {
    text-align: right;
}

#edit-tree-title {
    width: 30em;
}

.playoff-tree-display {
    margin-top: 1.5em;
    border-top: 1px solid #000000;
}

.playoff-tree-display .sides-2:first-of-type {
    margin-top: 10em;
    margin-bottom: 5em;
}

.playoff-tree-display .sides-2.rounds-3 {
    margin-left: 0;
}

.playoff-tree-display .sides-2.rounds-2 {
    margin-bottom: 10em;
}

.playoff-tree-display .sides-2.rounds-1 {
    margin-left: 31.5em;
}

.article-content .playoff-tree em {
    width: 1.4em !important;
}

.article-content .playoff-tree .round-0.round-close em,
.playoff-tree .round-0.round-close em {
    margin-left: 0.8em !important;
}

.sides-2.rounds-2 .round-0.round-close em {
    margin-left: 0 !important;
}

.article-content .playoff-tree .round-0.round-close em:after {
    left: -1.7em;
}

.article-content .playoff-window {
    width: 100%;
    overflow-x: auto;
    position: relative;
}

label.custom-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    font-family: 'Lucida Grande', sans-serif;
    width: 100%;
    background-color: rgb(248, 248, 248);
    color: rgb(0, 0, 0);

    display: block;
    max-width: 320px;
    height: 30px;
    float: right;
    margin: 5px 0px;
    padding: 0px 24px;
    font-size: 16px;
    line-height: 1.75;
    background-image: none;
    border: 1px solid #cccccc;
    -ms-word-break: normal;
    word-break: normal;
}

label.custom-select {
    position: absolute;
    right: 0;
    top: 0;
    display: inline-block;
    width: 250px;
    z-index: 1000000;
    box-shadow: 0 0 25px 20px rgba(255, 255, 255, 1.0);
    background-color: #ffffff;
    height: 30px;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 560px) {
    label.custom-select {
        position: relative;
        width: 50%;
        margin-top: 10px;
    }
}

/* Select arrow styling */
label.custom-select:after {
    content: "▼";
    position: absolute;
    top: 5px;
    right: 11px;
    font-size: 60%;
    line-height: 30px;
    height: 30px;
    padding: 0 7px;
    color: black;
    pointer-events: none;
    -webkit-border-radius: 0 6px 6px 0;
    -moz-border-radius: 0 6px 6px 0;
    border-radius: 0 6px 6px 0;
    z-index: 1000000;
}

label.custom-select::-ms-expand {
    display: none;
}

a.back-to-top {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-block;
    padding: 0.5em 1.0em;
}

.hide-bye input {
    width: auto !important;
}

div.scrollmenu {
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
}
