/* GLOBAL */
@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,400i,800');

* {
    font-family: 'Raleway', sans-serif;
}

html, body {
    background-color: #f4f4f4;
}

h1, h2, h3 {
    color: #3c3b3b;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h3 {
    font-size: 18px;
}

p, a, ul, li, label, th, td {
    color: #3c3b3b;
    font-size: 16px;
    font-weight: 400;
}

label {
    line-height: 1.65em;
    word-wrap: break-word;
}

ul {
    padding-left: 20px;
    margin: 0;
}

.closed, .closed span {
    color: #888888 !important;
}

.closed span {
    text-decoration: line-through !important;
}

select.closed {
    border: solid 1px #888888 !important;
}

p.list-title {
    margin-bottom: 0;
}

a {
    text-decoration: none;
}

div#right-column a:not(.download) {
    border-bottom: dotted 1px #3c3b3b;
}

a:focus {
    outline: 0;
}

a:not(#header-link):hover, a:not(#header-link):focus {
    text-decoration: none;
    color: #ffcb05;
    margin-bottom: -1px;
    border-bottom: dotted 1px #edbc00 !important;
    -webkit-transition: color 0.15s linear, border-color 0.15s linear;
    transition: color 0.15s linear, border-color 0.15s linear;
}

a:hover img, a:focus img {
    opacity: 0.75;
    -webkit-transition: opacity 0.15s linear;
    transition: opacity 0.15s linear;
}

hr {
    height: 1px;
    background-color: #e4e4e4;
    margin: 20px auto;
    width: 100%;
}

button, input[type="submit"] {
    width: 100%;
    min-height: 45px;
    padding: 10px;
    font-size: 18px;
    font-weight: 300;
    -webkit-transition: background-color 0.15s linear;
    transition: background-color 0.15s linear;
}

button:focus, input[type="submit"]:focus {
    outline: 0;
}

button.primary {
    color: #fff;
    background-color: #00274c;
    border: none;
}

button.primary:hover, button.primary:focus {
    background-color: #003864;
}

button.primary:active {
    background-color: #001e41;
}

button.secondary {
    color: #3c3b3b;
    background-color: #fff;
    border: solid 1px #00274c;
}

button.secondary:hover, button.secondary:focus {
    background-color: #c4d4e2;
}

button.secondary:active {
    background-color: #779fc3;
}

button.special, input[type="submit"] {
    color: #3c3b3b;
    background-color: #ffcb05;
    border: none;
}

button.special:hover, input[type="submit"]:hover, button.special:focus, input[type="submit"]:focus {
    background-color: #ffdc59;
}

button.special:active, input[type="submit"]:active {
    background-color: #edbc00;
}

button.special-alt {
    color: #3c3b3b;
    background-color: #fff;
    border: solid 1px #ffcb05;
}

button.special-alt:hover, button.special-alt:focus {
    background-color: #fdf1c3;
}

button.special-alt:active {
    background-color: #ffde61;
}

button.caution {
    color: #3c3b3b;
    background-color: #fff;
    border: solid 1px #e74c3c;
}

button.caution:hover, button.caution:focus {
    background-color: #f5bfba;
}

button.caution:active {
    background-color: #e74c3c;
}

button.delete {
    color: #fff;
    background-color: #e74c3c;
    border: solid 1px #e74c3c;
}

button.delete:hover, button.delete:focus {
    background-color: #dd7f76;
}

button.delete:active {
    background-color: #a2271a;
}

/* HEADER */
header {
    position: fixed;
    height: 60px;
    width: 100vw;
    margin-bottom: 60px;
    background-color: #00274c;
    z-index: 50;
}

header h2 {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 60px;
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    text-transform: capitalize;
    letter-spacing: 0px;
}

header h2#header-left {
    float: left;
    margin-left: 20px;
}

header img#logo-small {
    display: none;
    width: 40px;
    height: 40px;
    -webkit-transition: opacity 0.15s linear;
    transition: opacity 0.15s linear;
}

header h2#header-right {
    float: right;
    margin-right: 20px;
}

/* BANNER MESSAGE */
div#banner-message-container {
    position: fixed;
    top: 0;
    z-index: 0;
    -webkit-transition: top .25s linear;
    transition: top .25s linear;
}

div#banner-message-container.on {
    top: 60px;
    z-index: 25;
}

div#banner-message-container.good {
    background-color: #3498db;
}

div#banner-message-container.bad {
    background-color: #e74c3c;
}

div#banner-message-container div#banner-message {
    color: #fff;
    font-size: 16px;
    text-align: center;
    min-height: 60px;
    padding: 20px;
    line-height: 18px;
}

/* CONFIRMATION ALERT */
div#confirmation-container {
    position: fixed;
    display: none;
    opacity: 0;
    width: 100vw;
    height: 100vh;
    z-index: 75;
    background-color: rgba(60, 59, 59, 0.75);
    -webkit-transition: opacity .25s linear;
    transition: opacity .25s linear;
}

div#confirmation-container div#confirmation-message {
    position: absolute;
    top: calc((100vh - 250px)/2);
    bottom: calc((100vh - 250px)/2);
    left: calc((100vw - 450px)/2);
    right: calc((100vw - 450px)/2);
    width: 450px;
    height: 250px;
    padding: 10px 40px;
    background-color: #fff;
    border: solid 1px #e4e4e4;
    text-align: center;
}

div#confirmation-container div#confirmation-message.very-tall {
    top: calc((100vh - 310px)/2);
    bottom: calc((100vh - 310px)/2);
    height: 310px;
}

div#confirmation-container div#confirmation-message.tall {
    top: calc((100vh - 305px)/2);
    bottom: calc((100vh - 305px)/2);
    height: 305px;
}

div#confirmation-container div#confirmation-message button#confirm {
    margin-bottom: 10px;
}

/* BODY */
body div#container {
    margin: 0 auto;
    padding: 80px 50px 50px;
    width: 100%;
    max-width: 1280px;
    height: calc(100vh - 60px);
}

/* LEFT COLUMN */
div#left-column {
    display: inline-block;
    float: left;
    width: 275px;
}

div#left-column img#logo-large {
    display: block;
    width: 120px;
    height: 120px;
}

div#left-column button.primary,
div#left-column a.secondary-nav-button:not(:last-of-type) button {
    margin-bottom: 10px;
}

div#left-column div#left-column-host-info {
    display: block;
}

div#left-column div#left-column-host-info img.host-info-img,
div#right-column div#right-column-host-info img.host-info-img {
    margin-top: 5px;
    width: 100%;
/*    height: 100px;*/
}

div#right-column div#right-column-host-info {
    display: none;
}

div#left-column div#list-navigation a {
    display: block;
}

div#left-column div#list-navigation a:not(:first-child) {
    margin-top: 10px;
}

/* RIGHT COLUMN */
div#right-column {
    display: inline-block;
    float: right;
    width: calc(100% - 295px);
    /*height: calc(100vh - 100px);*/
    /*overflow-y: auto;*/
    padding-bottom: 3px;
    margin-bottom: 20px;
}

div#right-column div.card {
    width: 100%;
    height: auto;
    background-color: #fff;
    border: solid 1px #e4e4e4;
    padding: 50px 0 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.2), 0 1px 5px 0 rgba(0,0,0,0.12);
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.2), 0 1px 5px 0 rgba(0,0,0,0.12);
}

div#right-column div.card:not(:first-child) {
    margin-top: 20px;
}

div#right-column div.card h2.card-title {
    padding-left: 20px;
    padding-right: 20px;
    word-wrap: break-word;
}

div#right-column div.card div.card-content {
    padding: 0 20px;
}

div#right-column div.card div.card-content button.special,
div#right-column div.card div.card-content button.special-alt {
    margin: 10px 0;
    width: 275px;
}

div#right-column div.card div.card-content button.special.no-margin,
div#right-column div.card div.card-content button.special-alt.no-margin {
    margin: 0;
}

div#right-column div.card div.card-content button.special.home,
div#right-column div.card div.card-content button.special-alt.home,
div#right-column div.card div.card-content div#sort-buttons button,
div#right-column div.card div.card-content div#download-button-container button {
    width: 49.5%;
    min-width: 275px;
}

/*div#right-column div.card div.card-content button.special.home,*/
div#right-column div.card div.card-content div#sort-buttons button#btn-events,
div#right-column div.card div.card-content div#sort-buttons button#btn-summary,
div#right-column div.card div.card-content div#download-button-container button#download-competitors {
    margin-right: 1%;
}

div#right-column div.card div.card-content button.special.home.second {
    margin-top: 0px;
}

div#right-column div.card div.card-content button.special-alt,
div#right-column div.card div.card-content div#download-button-container button {
    margin-bottom: 0;
}

div#right-column div.card div.card-content button.special-alt.home {
    margin: 0 0 10px;
}

div#right-column div.card div.card-content div#sort-buttons button#btn-events,
div#right-column div.card div.card-content div#sort-buttons button#btn-summary {
    margin-bottom: 10px;
}

div#right-column div.card div.card-content button.full {
    width: 100%;
}

div#right-column div.card div.card-content button.register-with-partner {
    margin: 0;
}

div#right-column div.card div.card-content button.half {
    margin-top: 10px;
    width: 49%;
}

div#right-column div.card div.card-content button#reset-password.half {
    margin-right: 2%;
}

div#right-column div.card div.card-content p#forgot-your-password {
    margin-top: 10px;
}

div#right-column div.card div.card-content input::-webkit-input-placeholder,
div#confirmation-container div#confirmation-message input::-webkit-input-placeholder {
    color: #3c3b3b;
}

div#right-column div.card div.card-content input::-moz-placeholder,
div#confirmation-container div#confirmation-message input::-moz-placeholder {
    color: #3c3b3b;
}

div#right-column div.card div.card-content input:-ms-placeholder,
div#confirmation-container div#confirmation-message input::-ms-placeholder {
    color: #3c3b3b;
}

div#right-column div.card div.card-content input:-o-input-placeholder,
div#confirmation-container div#confirmation-message input::-o-placeholder {
    color: #3c3b3b;
}

div#right-column div.card div.card-content input[type="text"],
div#right-column div.card div.card-content input[type="email"],
div#right-column div.card div.card-content input[type="password"],
div#right-column div.card div.card-content select,
div#confirmation-container div#confirmation-message input {
    margin-bottom: 10px;
    padding: 0 10px;
    width: 100%;
    height: 45px;
    color: #3c3b3b;
    border: solid 1px #3c3b3b;
}

div#right-column div.card div.card-content select {
    cursor: pointer;
}

div#right-column div.card div.card-content input[type="submit"]:focus {
    outline: 0;
}

div#right-column div.card div.card-content input#add-your-school-input.visible {
    display: inline-block;
}

div#right-column div.card div.card-content input[type="submit"] {
    margin-top: 20px;
}

div#right-column div.card div.card-content input[readOnly],
div#right-column div.card div.card-content select[disabled] {
    background-color: #ddd;
    cursor: default;
}

div#right-column div.card div.card-content button.edit {
    float: right;
    clear: both;
    width: 120px;
}

div#right-column form p {
    margin-top: 10px;
    margin-bottom: 0;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    display: block;
}

input[type="checkbox"] + label {
    cursor: pointer;
    padding-left: 2.4em;
    position: relative;
}

input[type="checkbox"] + label:before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 1.65em;
    height: 1.65em;
    line-height: 1.58125em;
    content: '';
    text-align: center;
    background: #fff;
    border: solid 1px #3c3b3b;
    border-radius: 0px;
}

input[type="checkbox"]:checked + label:before {
    background: #ffcb05;
    border-color: #3c3b3b;
    content: '';
}

input[type="checkbox"]:focus + label:before{
    border-color: #6bd4c8;
}

input[type="checkbox"][readOnly] + label {
    pointer-events: none;
}

input[type="checkbox"][readOnly] + label:before {
    background: #ddd;
}

/* ADMIN */
h2#competitor-count, h2#expected-revenue {
    text-align: center;
}

h2#competitor-count span#competitor-count-number,
h2#expected-revenue span#expected-revenue-number {
    font-size: 36px;
}

div#right-column div.card div.card-content table {
    width: 100%;
    border: none;
}

div#right-column div.card div.card-content div#style-and-event-counts table:not(:nth-child(2)),
div#right-column div.card div.card-content div#school-competitor-counts table:not(:nth-child(2)),
div#right-column div.card div.card-content div#sort-by-events table,
div#right-column div.card div.card-content div#sort-by-competitors table {
    margin-top: 20px;
}

div#right-column div.card div.card-content div#sort-by-events table.first-in-section,
div#right-column div.card div.card-content div#sort-by-competitors table.first-in-section {
    margin-top: 0px;
}

div#right-column div.card div.card-content div#style-and-event-counts table.entries tr td:first-child,
div#right-column div.card div.card-content div#school-competitor-counts table.schools tr td:first-child {
    width: 90%;
    padding-right: 20px;
}

div#right-column div.card div.card-content div#style-and-event-counts table.entries tr td:nth-child(2),
div#right-column div.card div.card-content div#school-competitor-counts table.schools tr td:nth-child(2){
    width: 10%;
}

div#right-column div.card div.card-content div#style-and-event-counts table tr:nth-child(odd) td,
div#right-column div.card div.card-content div#school-competitor-counts table tr:nth-child(odd) td,
div#right-column div.card div.card-content div#sort-by-events table tr:nth-child(odd) td,
div#right-column div.card div.card-content div#sort-by-competitors table tr:nth-child(odd) td:not(.results-competitors),
div#right-column div.card div.card-content div#scoresheet table tr:nth-child(odd):not(:first-child) td {
    background-color: #f4f4f4;
}

div#right-column div.card div.card-content div#style-and-event-counts table.entries tr:last-child td {
    background-color: #d4d4d4;
}

div#right-column div.card div.card-content div#sort-by-events td,
div#right-column div.card div.card-content div#sort-by-competitors td {
    width: 33%;
}

div#right-column div.card div.card-content div#sort-by-events td.tbl-place {
    width: 3%;
}

div#right-column div.card div.card-content div#sort-by-competitors td {
/*    width: 100%;*/
    vertical-align: text-top;
    cursor: pointer;
}

div#right-column div.card div.card-content div#sort-by-competitors td p.tbl-lead,
div#right-column div.card div.card-content div#sort-by-competitors td p.tbl-follow,
div#right-column div.card div.card-content div#sort-by-competitors td span.tbl-lead-lunch,
div#right-column div.card div.card-content div#sort-by-competitors td span.tbl-follow-lunch {
    display: inline-block;
    margin: 0;
    width: 45%;
}

div#right-column div.card div.card-content div#sort-by-competitors td span.tbl-lead-lunch,
div#right-column div.card div.card-content div#sort-by-competitors td span.tbl-follow-lunch {
    font-style: italic;
}

div#right-column div.card div.card-content div#sort-by-competitors td form.tbl-edit {
    display: inline-block;
    margin: 0;
    width: 10%;
}

div#right-column div.card div.card-content div#sort-by-competitors td form.tbl-edit p.tbl-edit {
    margin: 0;
    text-align: right;
    cursor: pointer;
}

div#right-column div.card div.card-content div#sort-by-competitors td form.tbl-edit p.tbl-edit a:hover {
    color: #b89200;
    margin-bottom: -1px;
    border-bottom: dotted 1px #b89200 !important;
}

div#right-column div.card div.card-content div#sort-by-events th a.view-scoresheet,
div#right-column div.card div.card-content div#scoresheet > a.close-scoresheet {
    float: right;
}

div#right-column div.card div.card-content div#scoresheet > a.close-scoresheet {
    margin-bottom: 5px;
}

div#right-column div.card div.card-content div#sort-by-events th a.view-scoresheet:hover {
    margin-bottom: 0px;
}

div#right-column div.card div.card-content div#sort-by-competitors .partner-data {
    display: none;
}

div#right-column div.card div.card-content div#sort-by-competitors tr:nth-child(even):hover td,
div#right-column div.card div.card-content div#sort-by-competitors tr:nth-child(odd):hover td {
    background-color: #d4d4d4 !important;
}

div#right-column div.card div.card-content div#sort-by-competitors tr p.multiple-partners {
    visibility: hidden;
}

div#right-column div.card div.card-content div#sort-by-competitors tr.expanded {
    background-color: #e0e0e0;
}

div#right-column div.card div.card-content div#sort-by-competitors tr.expanded > td {
    padding: 10px 0;
}

div#right-column div.card div.card-content div#sort-by-competitors tr.expanded p.multiple-partners {
    visibility: visible;
}

/* RESULTS TABLE */
div#right-column div.card div.card-content div#scoresheet .event-title {
    font-size: 16px;
}

div#right-column div.card div.card-content div#scoresheet table.round-sheet {
    margin-bottom: 20px;
}

div#right-column div.card div.card-content div#scoresheet table.round-sheet tr:nth-child(2) {
    border-bottom: 1px solid #3c3b3b;
}

div#right-column div.card div.card-content div#scoresheet table.round-sheet tr td:not(:first-child) {
    border-left: 1px solid #3c3b3b;
}

div#right-column div.card div.card-content div#scoresheet table.round-sheet tr td {
    width: 5%;
}

div#right-column div.card div.card-content div#scoresheet table.round-sheet tr td:first-child {
    width: 40%;
}

div#right-column div.card div.card-content div#sort-by-competitors table tr div.partner-data table tr td.results-competitors:first-child {
    width: 5% !important;
}

div#right-column div.card div.card-content div#sort-by-competitors table tr div.partner-data table tr td.results-competitors:nth-child(2) {
    width: 20% !important;
}

div#right-column div.card div.card-content div#sort-by-competitors table tr div.partner-data table tr td.results-competitors:last-child {
    width: 5% !important;
}

/* LOADING SPINNER */
@-webkit-keyframes uil-ring-anim {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes uil-ring-anim {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#loading-spinner {
    background: none;
    position: relative;
    width: 100%;
    height: auto; 
}

#loading-spinner > div {
    display: block;
    margin: 0 auto;
    width: 160px;
    height: 160px;
    border-radius: 80px;
    -webkit-box-shadow: 0 6px 0 0 #ffcc05;
    box-shadow: 0 6px 0 0 #ffcc05;
    -webkit-animation: uil-ring-anim 1s linear infinite;
    animation: uil-ring-anim 1s linear infinite;
}

/* BREAKPOINTS */
@media only screen and (max-width: 768px) {
    html {
        overflow-x: hidden;
    }
    
    header h2#header-left {
        display: none;
    }
    
    header img#logo-small {
        display: inline;
        margin: 10px 0 0 10px;
    }
    
    body div#container {
        padding: 80px 20px 20px;
    }
    
    div#left-column {
        width: 100%;
        max-width: none;
        margin-bottom: 20px;
    }
    
    div#left-column img#logo-large {
        display: none;
    }
    
    div#left-column h1#competition-name {
        margin-top: 0;
    }
    
    div#left-column button.primary:not(.special-alt), div#left-column button.secondary,
    div#right-column div.card div.card-content div#sort-buttons button#btn-events,
    div#right-column div.card div.card-content div#sort-buttons button#btn-summary,
    div#right-column div.card div.card-content div#sort-buttons button#btn-competitors {
        width: 49%;
        min-width: 0;
    }
    
    div#left-column button.primary:not(.special-alt) {
        margin-right: 2%;
        border: solid 1px #00274c;
    }
    
    div#left-column div#left-column-host-info {
        display: none;
    }
    
    div#right-column div#right-column-host-info {
        display: block;
    }
    
    p#confirmation-text br, p#confirmation-text br:after {
        content: ' ';
    }
    
    div#right-column {
        margin-bottom: 20px;
        width: 100%;
        height: auto;
        overflow-y: visible;
    }
    
    div#right-column div.card div.card-content button.special,
    div#right-column div.card div.card-content button.special-alt,
    div#right-column div.card div.card-content button.special.home,
    div#right-column div.card div.card-content button.special-alt.home,
    div#right-column div.card div.card-content button.secondary,
    div#right-column div.card div.card-content button.caution,
    div#right-column div.card div.card-content div#download-button-container button {
        width: 100%;
    }
    
    div#right-column div.card div.card-content button.edit {
        margin-top: 0;
    }
    
    div#right-column div.card div.card-content button#reset-password.half {
        margin-right: 0;
    }
    
    div#right-column div.card div.card-content button.caution {
        margin-bottom: 10px;
    }
    
    div#confirmation-container div#confirmation-message,
    div#confirmation-container div#confirmation-message.tall,
    div#confirmation-container div#confirmation-message.very-tall {
        position: absolute;
        top: 12.5vh;
        bottom: 12.5vh;
        left: 0;
        right: 0;
        width: 100vw;
        height: 75vh;
        padding-top: 12.5vh;
        padding-bottom: 12.5vh;
        background-color: #fff;
        border: solid 1px #e4e4e4;
        text-align: center;
    }
    
    div#confirmation-container div#confirmation-message * {
        vertical-align: middle;
    }
}

@media only screen and (max-width: 500px) {
    header h2 {
        font-size: 14px;
    }
}

/*
@media only screen and (max-width: 360px) {
    header h2#header-right span#weekday {
        display: none;
    }
}*/
