﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Preserve two-column rows even when a database description is empty. */
.tournament-list > .col-md-6:nth-child(2n + 1) {
    clear: left;
}

/* Historical seasons must remain reachable below a fixed navbar. */
.navbar .dropdown-menu {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

#calendar {
    scroll-margin-top: 70px;
}

/* The tournament menu is wider than Bootstrap's default tablet navbar. */
@media (min-width: 768px) and (max-width: 1199px) {
    .navbar-header { float: none; }
    .navbar-toggle { display: block; }
    .navbar-collapse.collapse { display: none !important; }
    .navbar-collapse.collapse.in { display: block !important; }
    .navbar-nav { float: none !important; margin: 7.5px -15px; }
    .navbar-nav > li { float: none; }
    .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; }
    .navbar-nav .open .dropdown-menu {
        position: static; float: none; width: auto; margin-top: 0;
        background: transparent; border: 0; box-shadow: none;
    }
    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #9d9d9d; }
    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover { color: #fff; background: transparent; }
}
@media (max-width: 1199px) {
    .navbar-fixed-top .navbar-collapse { max-height: calc(100vh - 55px); overflow-y: auto; }
    .navbar-nav .navbar-form { margin-left: 0; margin-right: 0; }
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

ol li.list-group-item { 
    list-style: decimal inside;
    display: list-item;
}

.season-selector { float: left; }
.season-selector > button { height: 50px; padding: 0 12px; border: 0; background: transparent; color: #9d9d9d; }
.season-selector > button:hover, .season-selector > button:focus { color: #fff; }
#teams, #sponsors { scroll-margin-top: 70px; }
