﻿Body {
    font-size: 0.8em;
    font-family: 'Open Sans', sans-serif, Arial;
    background-image: url(../Images/Branding/FootballBackground.jpg);
    background-repeat: repeat;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Header */
div.MainHeader {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(0deg, rgba(0,248,72,1) 5%, rgba(3,139,4,1) 30%, rgba(78,197,255,1) 32%, rgba(31,60,255,1) 76%);
    margin-bottom: 2px;
}

    div.MainHeader h1 {
        text-transform: uppercase;
        font-weight: 500;
        padding: 5px 5px 5px 15px;
        font-size: 4em;
    }

    div.MainHeader div.Logo {
        display: flex;
        align-items: center;
    }

    div.MainHeader div.LoginInformation {
        color: #FFF;
        font-weight: bold;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-right: 10px;
        align-self: stretch;
        align-items: flex-end;
        overflow: hidden;
    }

        div.MainHeader div.LoginInformation a {
            text-decoration: none;
            color: #FFF;
        }

        div.MainHeader div.LoginInformation span.LoginInformationHeader {
            font-size: 2em;
        }
    /* // Header */

    body.LoginPage {
        overflow: hidden;
    }

        body.LoginPage button, body.LoginPage input[type="submit"], button.button, input[type="submit"].button, input[type="button"].button {
            padding: 10px;
            min-width: 150px;
            border-radius: 10px;
            cursor: pointer;
            background-color: #4369F8;
            color: #FFF;
            text-transform: uppercase;
        }

        body.LoginPage button:hover, body.LoginPage input[type="submit"]:hover {
            background-color: #3231EC;
        }


    body.LoginPage section {
        width: 100%;
        height: 100%;
    }

    body.LoginPage #LoginWrapper div {
        width: 100%;
        box-sizing: border-box;
    }

    body.LoginPage div.Blur {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    body.LoginPage div.BrandedHeader {
        display: flex;
        align-items: center;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        background: linear-gradient(0deg, rgba(0,248,72,1) 5%, rgba(3,139,4,1) 30%, rgba(78,197,255,1) 32%, rgba(31,60,255,1) 76%);
        margin-bottom: 5px;
    }

        body.LoginPage div.BrandedHeader h1 {
            text-transform: uppercase;
            font-weight: 500;
            padding: 5px 5px 5px 15px;
            font-size: 4em;
        }

    body.LoginPage div.LoginBox {
        border: 2px solid #BBB;
        border-radius: 5px;
        text-align: center;
        margin-bottom: 10px;
    }

    body.LoginPage div.LoginInput {
        width: 95%;
    }

    body.LoginPage #LoginWrapper {
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    body.LoginPage #LoginDetails {
        display: flex;
        flex-direction: column;
        flex: 0 0 60%;
        align-items: center;
        justify-content: center;
    }

    body.LoginPage #LoginInfo {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        -webkit-backdrop-filter: invert(20%);
        backdrop-filter: invert(20%);
    }

    body.LoginPage input[type="text"], body.LoginPage input[type="password"] {
        border-color: #CCC;
        border-radius: 5px;
        padding: 5px;
        margin: 2px;
        width: 95%;
    }


h1 {
    font-weight: bold;
    font-size: large;
    margin: 2px 2px 2px 0px;
}

h2 {
    color: #888;
    font-size: medium;
    margin: 2px 2px 2px 0px;
    padding: 0px;
}

h3 {
    font-weight: bold;
    font-size: medium;
    margin: 2px 2px 2px 0px;
}

/* MASTER PAGE LAYOUT */
.Header {
    width: 484px;
    min-width: 484px;
    height: 84px;
    background: url(../Images/Branding/Predictathon_HeaderStart.gif);
    background-repeat: no-repeat;
    background-position: left;
    cursor: pointer;
    overflow: hidden;
}

.HeaderStart {
    width: 20px;
}

.HeaderRepeat {
    height: 84px;
    background-image: url(../Images/Branding/Predictathon_HeaderEnd.gif);
    background-repeat: repeat-x;
    overflow: hidden;
    color: White;
    font-size: x-large;
    text-decoration: none;
    font-weight: bold;
    text-align: right;
}

    .HeaderRepeat a {
        text-decoration: none;
        color: White;
    }

.ContentPane {
    text-align: left;
    margin-top: 0px;
    padding: 2px;
}

.Footer {
    text-align: center;
    padding: 5px;
    font-size: x-small;
    color: #CCC;
}

/* // END OF MASTER PAGE LAYOUT // */

/* OTHER LAYOUT AREAS */

.LeftPane {
    width: 500px;
    float: left;
}

.RightPane {
    margin-left: 510px;
}

/* / END OF OTHER LAYOUT AREAS */

/* GRIDVIEW */

.GridView {
    width: 100%;
    background-color: #FFFFFF;
    margin: 0px;
    border-collapse: collapse;
    opacity: 0.9;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

    .GridView td {
        padding: 2px;
        border: 1px solid #AAA;
        color: #111111;
    }

.NoTransparency {
    opacity: 1.0;
}

.NoBorder td {
    border: 0px none white !important;
}

.GridView th {
    padding: 4px 2px;
    border-bottom: 1px solid #AAA;
    background-color: #F6F6F6;
    color: #000000;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.GridView .GridViewRow {
    background: #FFFFFF;
}

.GridView .GridViewRowAlt {
    background: #FAFAFA;
}

.GridView .GridViewRow .GridViewRowAlt table {
    margin: 5px 0;
}

.GridViewEmptyDataRow {
    background-color: transparent;
    text-align: center;
}

.GridViewRowHighlight {
    background-color: #E5E5F5;
}

.GridViewRowHover {
    background-color: #00AAFF;
    color: #FFFFFF;
    cursor: pointer;
}

    .GridViewRowHover td {
        color: #FFFFFF;
    }

.GridView .GridViewRow .GridViewRowAlt td {
    border-width: 0;
    padding: 0 6px;
    border-left: 1px solid #AAA;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 12px;
}

.GridView .GridViewRow .GridViewRowAlt a {
    color: #222;
    text-decoration: none;
}

    .GridView .GridViewRow .GridViewRowAlt a:hover {
        color: #000;
        text-decoration: none;
    }

.GridView .LeftBorder {
    border-left: 1px solid #AAA !important;
}

.GridView.Padded td {
    padding: 6px 2px;
}

/* // END OF GRIDVIEW // */

/* NAVIGATION */
#nav {
    font-weight: 400;
}

    #nav ul {
        margin: 0;
        padding: 0;
    }

    #nav > a {
        display: none;
    }

    #nav li {
        background: #3271FF; /* browsers with no gradient support */
        background: -webkit-linear-gradient(top,#3271ff,#2261ef); /*Safari 5.1-6*/
        background: -o-linear-gradient(top,#3271ff,#2261ef); /*Opera 11.1-12*/
        background: -moz-linear-gradient(top,#3271ff,#2261ef); /*Fx 3.6-15*/
        background: linear-gradient(to bottom, #3271ff, #2261ef); /*Standard*/
        position: relative;
        list-style: none;
        z-index: 2000;
    }

        #nav li:hover {
            background: #038701; /* browsers with no gradient support */
            background: -webkit-linear-gradient(top,#038701,#00fc4a); /*Safari 5.1-6*/
            background: -o-linear-gradient(top,#038701,#00fc4a); /*Opera 11.1-12*/
            background: -moz-linear-gradient(top,#038701,#00fc4a); /*Fx 3.6-15*/
            background: linear-gradient(to bottom, #038701, #00fc4a); /*Standard*/
        }

        #nav li a {
            color: #FFF;
            display: block;
            text-decoration: none;
        }

            #nav li a:active {
                background-color: #002 !important;
            }

    /* first level */

    #nav > ul > li {
        padding: 0;
        margin: 0;
        width: 20%;
        height: 100%;
        float: left;
    }

        #nav > ul > li > a {
            height: 100%;
            font-size: 1.25em;
            line-height: 2em;
            text-align: center;
        }

        #nav > ul > li:not( :last-child ) > a {
            border-right: 1px solid #1251DF;
        }

    /* second level */

    #nav li ul {
        display: none;
        position: absolute;
        top: 100%;
    }

    #nav li:hover ul {
        display: block;
        left: 0;
        right: 0;
    }

    #nav li:not( :first-child ):hover ul {
        left: -1px;
    }

    #nav li ul a {
        font-size: 1.25em;
        border-top: 1px solid #1251DF;
        padding: 0.75em;
    }
/* // END OF NAVIGATION // */

/* MOBILE-FRIENDLY LAYOUTS */
@media screen and (min-width: 800px) and (max-width: 1000px) {
    body.LoginPage div.BrandedHeader h1 {
        font-size: 3em;
    }
}

@media handheld and (orientation: portrait), screen and ( max-width: 800px ) {
    /* Login page */
    body.LoginPage {
        overflow: initial;
    }

        body.LoginPage div.BrandedHeader img {
            display: inline;
        }

        body.LoginPage section {
            height: initial;
        }

        body.LoginPage #LoginWrapper {
            flex-direction: column;
            justify-content: center;
        }

        body.LoginPage #LoginDetails {
            flex: none;
        }

        body.LoginPage #LoginInfo {
            flex: none;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }
    /* // Login page */

    .Header {
        width: 50px;
        background: url(../Images/Branding/Predictathon_HeaderStartMobile.gif);
    }

    div.MainHeader h1 {
        font-size: 2em;
    }

    .LeftPane {
        width: initial;
        float: initial;
    }

    .RightPane {
        margin-left: initial;
    }
}

@media screen and (max-height: 650px) {
    body.LoginPage #LoginWrapper {
        height: auto;
    }
}

@media handheld and (orientation: portrait), screen and ( max-width: 500px ) {
    body.LoginPage div.BrandedHeader h1 {
        font-size: 2.5em;
    }
}

@media handheld and (orientation: portrait), screen and ( max-width: 400px ) {
    body.LoginPage div.BrandedHeader img {
        display: none;
    }
}

@media handheld and (orientation: portrait), screen and ( max-width: 600px ) {
    .HeaderStart {
        width: 70px;
    }

    div.MainHeader h1, div.MainHeader img {
        display: none;
    }

    #nav > a {
        width: 50px;
        height: 50px;
        text-align: left;
        text-indent: -9999px;
        background-color: #1251DF;
        position: absolute;
        left: 6px;
        top: 10px;
    }

        #nav > a:before, #nav > a:after {
            position: absolute;
            border: 2px solid #FFF;
            top: 35%;
            left: 25%;
            right: 25%;
            content: '';
        }

        #nav > a:after {
            top: 60%;
        }

    #nav:not( :target ) > a:first-of-type,
    #nav:target > a:last-of-type {
        display: block;
    }

    /* first level */

    #nav > ul {
        height: auto;
        display: none;
        position: absolute;
        left: 0;
        right: 0;
    }

    #nav:target > ul {
        display: block;
    }

    #nav > ul > li {
        width: 100%;
        float: none;
    }

        #nav > ul > li > a {
            height: auto;
            text-align: left;
            padding: 0 0.833em;
        }

        #nav > ul > li:not( :last-child ) > a {
            border-right: none;
            border-bottom: 1px solid #1251DF;
        }

    /* second level */

    #nav li ul {
        position: static;
        padding: 1.25em;
        padding-top: 0;
    }
}

@media handheld and (orientation: portrait), screen and ( max-width: 420px ) {
    .HeaderHome {
        display: none;
    }

    .nonEssentialInfo {
        display: none;
    }
}

@media handheld and (max-width: 600px) {
    body.LoginPage div.BrandedHeader h1 {
        font-size: 2.5em;
    }

    body.LoginPage div.BrandedHeader img {
        display: none;
    }
}
/* // END OF MOBILE-FRIENDLY LAYOUTS // */

.PopupWindow {
    display: none;
    position: absolute;
    z-index: 1001;
}

    .PopupWindow img {
        max-width: 100%;
    }

.Close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-color: transparent;
    z-index: 2000;
    background-image: url(../Images/Common/Close.gif);
    background-repeat: no-repeat;
}

.Overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    opacity: 0.4;
    width: 100%;
    height: 100%;
    color: white;
    background-color: Black;
}

.PagerButton {
    cursor: pointer;
    padding: 0px 4px;
}

/* MESSAGEBOARD-SPECIFIC */

.ThreadCol {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ThreadTitle {
    font-size: 18px;
    text-align: left;
    font-weight: bold;
    color: #0000BC;
    margin-bottom: 2px;
}

.ThreadLastMessage, .ThreadLastMessageBy {
    text-align: right;
}

.ReplyContainer {
    max-width: 850px;
    margin: auto;
    padding: 10px 4px 0 4px;
}

.ReplyTextArea {
    padding: 4px;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* MOBILE MESSAGEBOARD THREAD */

@media handheld and (orientation: portrait), screen and ( max-width: 600px ) {
    .ThreadStartedBy {
        display: none;
    }

    .ThreadLastMessageBy {
        text-align: left;
    }

    .ReplyTextArea {
        font-size: 16px; /* to stop mobile zooming when focused */
    }
}

@media handheld and (orientation: portrait), screen and ( max-width: 420px ) {
}

/* //END OF MESSAGEBOARD-SPECIFIC // */

/* GENERIC STYLES */

.GridTitle {
    width: 100%;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    color: #999999;
    margin-bottom: 2px;
}

.Score {
    text-align: center;
    font-size: large;
    font-weight: 300;
}

.ThreePointer {
    color: #009600 !important;
}

.TwoPointer {
    color: #888800 !important;
}

.OnePointer {
    color: #FF6600 !important;
}

.NoPointer {
    color: #AA0000 !important;
}

.NoPrediction {
    color: #FF0000 !important;
}

.InformationBlock {
    background-color: #FAFAFA;
    border: 1px solid #DDDDDD;
    opacity: 0.9;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

    .InformationBlock input, textarea {
        position: relative;
        opacity: none !important;
        filter: none !important; /* For IE8 and earlier */
    }

.InputBlock {
    background-color: #FAFAFA;
    opacity: 0.9;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.TitleBar {
    padding: 5px;
    border-bottom: 1px solid #AAA;
    background-color: #F6F6F6;
    color: #000000;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    position: relative;
}

.SaveMessage {
    font-weight: bold;
}

.EditInProgress {
    color: Gray;
}

.SaveSuccessful {
    color: Green;
}

.SaveFailed {
    color: Red;
}

.SaveInProgress {
    color: Orange;
}

.SubNote {
    width: 100%;
    text-align: center;
    font-style: italic;
    color: #676767;
    font-size: small;
    margin-top: 6px;
    margin-bottom: 6px;
}

.HeaderText {
    color: #333333;
    font-weight: bold;
}

.Error {
    color: #EE3600;
    font-weight: bold;
}

input.InputError {
    background-color: #DAA
}

.Information {
    color: #333333;
    font-style: italic
}

.Warning {
    color: #DD7723;
    font-weight: bold;
}

.Yes {
    color: #00AF00;
    font-weight: bold
}

.No {
    color: #FF0000;
    font-weight: bold
}

.QuotationMark {
    font-weight: bold;
    font-size: 18px;
    font-style: italic;
    color: #000044
}

.Quote {
    font-weight: bold;
    font-size: 14px;
    font-style: italic;
    color: #000044
}

.QuoteSmall {
    font-weight: bold;
    font-size: 12px;
    font-style: italic;
    color: #000044
}

.FullWidth {
    width: 100%;
}

.Centred {
    text-align: center;
}

.Clickable {
    cursor: pointer;
}

.Clear {
    clear: both;
}

li {
    list-style-position: inside;
}

/* // END OF GENERIC STYLES // */
