body {
    font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

div, body {
    margin: 0px;
    padding: 0px;
    border: none;
    box-sizing: border-box;
}

a {
    color: #00B7FF;
}

a.no-underline {
    text-decoration: none;
}

table, th, td {
    /*border: 1px solid black;*/
    border-collapse: collapse;
    padding: 10px 15px;
    /* This prevents the team group elements from stacking
        on top of each other when the page width is small. */
    white-space: nowrap;
}

/* Zebra striping on tables */
tbody tr:nth-child(odd) {
   background-color: #f0f0f0;
}

tbody tr:nth-child(even) {
   background-color: #f6f6f6;
}

/* Red table rows to represent deleted things */
tbody tr.red:nth-child(odd) {
   /*background-color: #e4b0b0;*/
    box-shadow: inset -5px 0 0 0 #e4b0b0;
}

tbody tr.red:nth-child(even) {
   /*background-color: #ffb1b1;*/
    box-shadow: inset -5px 0 0 0 #ffb1b1;
}

thead {
    background-color: #303030;
    color: white;
}

.secretive {
    width: 100%;
    color: rgba(0,0,0,0);
    background: repeating-linear-gradient(
        135deg,
        #bbb,
        #bbb 5px,
        #999 5px,
        #999 10px
    );
}

/* Secretive things will fill the cell when they are in a table */
td .secretive {
    display: block;
}

.secretive:hover {
    /*filter: blur(0px);*/
    color: black;
    background: none;
    border: none;
}

div.headder {
    background-color: white;
    position: fixed;
    top: 0px;
    width: 200px;
    height: 100vh;
    float: left;
    height: 100vh;
    display: inline-block;
    padding: 20px 0px;
    top: 0px;
    /*box-shadow: 0px 0px 20px #00000010;*/
    border-right: 1px solid lightgrey;
    /* This should appear in front of the main content if you scroll right. */
    z-index: 4;
}

div.headder p {
    margin: 10px auto;
}

div.outer {
    margin: 0px 0px 0px 220px;
    padding: 0px 20px;
    background-color: white;
}

div.headder-button, div.headder-item {
    width: 100%;
    padding: 1px 23px;
}

div.headder-item {
    color: grey;
}

div.headder-button {
    transition: background-color 0.2s ease-in-out;
    /*box-shadow: inset 0 0 0 0 #00B7FF;*/
    background-color: white;
    text-decoration: none;
}

div.headder-button:hover {
    background-color: #00B7FF;
    /*box-shadow: inset 270px 0 0 0 #00B7FF;*/

}

div.headder-button p {
    color: black;
    position: relative;
    left: 0px;
    transition: left 0.2s ease-in-out;
}

div.headder-button:hover p {
    left: 20px;
}

div.headder-hbreak {
    margin: 20px auto;
    width: 80px;
    height: 1px;
    border-bottom: 1px solid lightgrey;
}

div.alert {
    background-color: rgb(245, 83, 48);
    color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-style: normal;
    font-weight: normal;
}

h1 {
    font-size: 2.8em;
}

h3 {
    font-weight: bold;
}

div.center {
    text-align: center;
}

div.logo-block img {
    max-height: 50px;
    margin: 0px 10px 10px 10px;
}

button, input[type="submit"] {
    margin: 10px;
    background-color: lightgray;
    border: none;
    padding: 5px;
    box-shadow: inset 0 0 0 0 #00B7FF;
    transition: box-shadow 0.2s ease-in-out;
}

td button, td input[type="submit"] {
    margin: 0px;
}

button:hover, input[type="submit"]:hover {
    /*background: #00B7FF;*/
    box-shadow: inset 100px 0 0 0 #00B7FF;
}

button:disabled, input[type="submit"]:disabled {
    box-shadow: inset 0 0 0 0 #00B7FF !important;
}

/* Colouring for group buttons */
button.group-colour-1 {
    background-color: rgb(245, 83, 48);
}

button.group-colour-2 {
    background-color: rgb(50, 99, 227);
}

button.group-colour-3 {
    background-color: rgb(29, 212, 30);
}

div.group-colour-1 {
    background-color: rgb(245, 83, 48);
    padding: 5px;
    display: inline-block;
}

div.group-colour-2 {
    background-color: rgb(50, 99, 227);
    padding: 5px;
    display: inline-block;
}

div.group-colour-3 {
    background-color: rgb(29, 212, 30);
    padding: 5px;
    display: inline-block;
}

div.drag-handle {
    width: 100%;
    height: 100%;
    min-height: 17px;
    background-color: darkgrey;
    content: " ";
}

/* Hide the element and prevent it taking up space */
.hidden {
    display: none;
}

/* Element is invisible but it still takes up space */
.invisible {
    visibility: hidden;
}

/* Styling for pop-up messages on input forms. */

div.input {
    display: block;
    position: relative;
}

input {
    box-shadow: none;
    padding: 3px;
    border: 1px solid black;
}

input:focus {
    border: 1px solid rgb(64, 160, 230);
}

input:invalid {
    border: 1px solid red;
}

div.input > div.tooltip {
    position: absolute;
    display: inline-block;
    visibility: hidden;
    color: white;
    background-color: rgb(48, 48, 48);
    padding: 4px;
    /* Make sure this appears above other elements. */
    z-index: 2;
}

table div.tooltip {
    white-space: normal;
    max-width: 300px;
    min-width: 200px;
}

/* IDEA: Only show the popup when the data is invalid? */
div.input > input:focus + div.tooltip {
    visibility: visible;
    margin: 0px 10px;
}

input[type="range"] {
    width: 500px;
    border: none;
    height: 7px;
    padding: 0px;
    margin: 2px 10px !important;
}

input[type="range"]:disabled {
    opacity: 0.5;
}

.wide {
    min-width: 300px;
}

div.about p {
    line-height: 150%;
}

div.copyright {
    text-align: center;
    font-size: 0.9em;
    color: lightgray;
    position: absolute;
    bottom: -72px;
    cursor: default;
    transition: color 0.2s linear, bottom 0.2s ease-in-out;
}

div.copyright:hover {
    bottom: 2px;
    color: black;
}

div.browser-warning {
    background-color: black;
    border: 8px solid red;
    color: white;
    padding: 5px 20px;
    margin: 5px;
    font-size: 2em;
}

div.bracket-graph-editor label {
    width: 120px;
    display: inline-block;
}