/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* the "frame" */
body {
    background: url("https://imperialconflict-images.s3.us-west-1.amazonaws.com/game/background.jpg") no-repeat center center fixed;
    background-color: #000;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#user-visible {
    background: url("/img/bg/scene.jpg") no-repeat center center fixed;
    background-color: #000;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#guest-visible {
    background: url("/img/bg/scene-2.jpeg") no-repeat center center fixed;
    background-color: #000;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.nav-column {
    padding-left: 0;
    padding-right: 0;
}

.nav-column .ic-panel {
    margin: 0;
}

.nav-column {
    overflow-y: scroll;
    height: 100%;
    padding-bottom: 25%;
}

.nav-column hr {
    margin: 0;
}

/* */

.ic-panel h1, .ic-panel h2, .ic-panel h3, .ic-panel h4 {
    font-size: 1.25em;
    margin: 0;
    /*   border-top:1px solid #666; */
    /*  border-bottom:1px solid #666; */
    padding: 5px 0;
}

.ic-panel-heading h2 {
    border-top: none;
}

.ic-panel-heading h4 {
    font-size: 1em;
    border-top: 1px solid #666;
    border-bottom: none;
}

.ic-panel-subnav .ic-panel-body {
}

/* desktop styles */

.ic-panel {
    margin: 15px 0;
}

.ic-panel-heading {
    padding: 10px 15px 0 15px;
    background: rgba(40, 40, 40, 0.95);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.ic-panel-footer {
    padding: 10px 15px;
    background: rgba(20, 20, 20, 0.95);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.ic-panel-body {
    background: rgba(20, 20, 20, 0.95);
    padding: 15px;
}

/* mobile styles */
@media (max-width: 768px) {
    #ending-galaxies .list-group-item, #starting-galaxies .list-group-item {
        border: 0;
    }

    #ending-galaxies .list-group-item:last-child, #starting-galaxies .list-group-item:last-child {
        border-top-right-radius: 0;
        border-top-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .ic-panel-heading {
        text-align: center;
    }

    .ic-panel {
        margin: 0px;
    }

    .col-md-12 {
        padding: 0;
    }

    .ic-panel-heading {
        padding: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .ic-panel-footer {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* larger-than-mobile styles */

@media (min-width: 768px) {
    #ending-galaxies, #starting-galaxies {
        margin: 15px 15px 0 15px;
    }

    #left-sidebar .list-group-item {
        padding: 5px 10px;
    }

    .family-name {
        float: left;
    }

    .game-time {
        float: right;
    }
}

/* nav columns */

@media (max-width: 992px) {
    .nav-column {
        display: none;
    }
}

@media (min-width: 992px) {
    #left-sidebar {
        position: fixed;
    }

    #right-sidebar {
        position: fixed;
        right: 0;
    }
}

/* */
h3.heading-item-name {
    text-align: left;
    border-bottom: none;
}

/* */
.table {
    margin-bottom: 0;
}

/* */
.ic-panel-contained {
    margin: 15px;
    padding: 15px;
    background-color: #000;
    border-radius: 3px;
}

.pager {
    margin: 0 20px;
}

/* nav */
.nav-column .list-group-item {
    border: none;
    background: none;
}

.nav-column .list-group-item.active, .nav-column .list-group-item.active:hover {
    border: none;
}

.nav-column .list-group-item.active, .nav-column .list-group-item:hover {
    border-radius: 4px;
}

.nav-seperator {
    background: rgba(20, 20, 20, 0.95);
}

.nav-seperator hr {
    margin: 0 15px;
}

/* */
.markdown-output h1, .markdown-output h2, .markdown-output h3, .markdown-output h4 {
    text-align: left;
}

.markdown-output li {
    list-style: initial;
}

.markdown-output ul {
    padding-left: 25px;
}

.markdown-output h1 {
    font-size: 2em;
}

.markdown-output h2 {
    font-size: 1.5em;
}

.markdown-output h3 {
    font-size: 1.25em;
}

.markdown-output h4 {
    font-size: 1em;
}

div.markdown-output {
    font-size: 16px;
    padding: 25px 0;
    margin: auto;
    max-width: 480px; /*  Robert Bringhurst’s method which multiples the type size by 30 */
}

.markdown-output p {
    margin: 25px 0;
}

.markdown-output ul p {
    margin: 0;
}

/* */
.navbar-left {
    float: left;
}

.navbar-right {
    float: right;
}

/* fix for fixed navbar overlay */
#game-body {
    padding-top: 35px;
}

/* */
@media (max-width: 992px) {
    #resource-bar {
        font-size: .75em;
    }

    #game-body {
        padding-top: 65px;
    }
}

#nav-small #resource-bar {
    width: 100%;
    left: 0;
    text-align: center;
    margin: 0 auto;
    z-index: -1;
    padding: 5px 0;
    border-top: 1px solid #333;
}

/* */

@media (min-width: 992px) {
    #nav-small {
        display: none;
    }
}

@media (max-width: 992px) {
    #nav-large {
        display: none;
    }
}

/* */
#nav-large {
    margin: 0;
    background-color: #000;
}

#nav-large #resource-bar {
    margin-top: 10px;
}

#nav-large #logo {
    margin-top: 5px;
    display: block;
}

#logo {
    font-size: 1.25em;
    text-decoration: none;
}

#map-body #game-body {
    padding-top: 40px;
}

.map-game-content {
}

#nav-large { /* this should match the top body offset */
    height: 35px;
}

.unit-box .tooltip {
    font-size: .7em;
    min-width: 400px;
}

.unit-box .tooltip-inner {
    border: 1px solid black;
}

.unit-box .tooltip.in {
    opacity: 1;
}

/* font awesome */

#left-sidebar .fa {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: #337ab7;
}

#left-sidebar .fa.fa-power-off {
    color: #a94442;
}

#left-sidebar .active .fa {
    color: #FAE44B;
}

#left-sidebar .hovered .fa {
    color: #FAE44B;
}

/* */

.list-group-item > .badge {
    float: none;
}

#nav-small .nav > li > a {
    padding: 10px 12.5px;
}

/* */
.fam-details {
    text-align: center;
    font-size: 1.25em;
    margin: 15px;
}

.online-marker {
    color: green;
}

a:hover .game-history {
    color: white;
    text-decoration: none;
}

/* sort */

.btn.mixitup-control-active {
    background-image: none;
    text-shadow: none;
    color: #CCC;
    border: none;
    background-color: #333;
}

.planet-list-control {
    display: inline-block;
}

/* */

/* planets page */
@media (max-width: 480px) {
    .fieldsetter-field-hidden {
        display: none;
    }
}

@media (min-width: 480px) {
    .fieldsetter-controls {
        display: none;
    }
}

/* messages page */
@media (max-width: 480px) {
    .hide-narrow {
        display: none;
    }

    .fa.show-narrow {
        float: right;
    }
}

@media (min-width: 480px) {
    .fa.show-narrow {
        display: none;
    }

    .show-narrow {
        display: none;
    }
}

#messages p {
    margin: 0;
}

.message {
    margin-top: 15px;
    border-top: 1px solid #333;
}

.message-new {
    margin: 0;
}

.message-header {
    padding: 5px 0;
}

.message-content {
    padding-top: 5px;
}

.message-timestamp {
    font-weight: bold;
}

/* prefs */
.empire-banner-image {
    margin-right: 5px;
}

/* misc */
.center {
    text-align: center;
}

.galaxy-setting {
    margin: 25px 0;
}

#sso-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* myFleets */

@media (min-width: 768px) {
    .my-fleet-dropdown-buttons {
        display: none;
    }
}

@media (max-width: 768px) {
    .my-fleet-full-buttons {
        display: none;
    }

    .my-fleet-dropdown-buttons .btn {
        margin: 5px 0;
    }
}

/* tour */
@media (min-width: 768px) {
    .tour-enabled .ic-panel-title {
        float: left;
    }

    .tour-enabled .help-icon {
        float: right;
    }
}

@media (max-width: 768px) {
    .tour-enabled .ic-panel-title {
        display: inline-block;
    }

    .tour-enabled .help-icon {
        display: inline-block;
    }

}

.help-icon {
    cursor: pointer;
}

.tour-tour a {
    text-decoration: underline;
}

.family-council-category-member {
    padding-left: 15px;
}

/* rankings */



@media (min-width: 992px) {
    #rankings {
        padding-top: 75px;
        margin-top: -70px;
    }

    .rankings.tab-content .tab-pane {
        padding-top: 140px;
        margin-top: -135px;
    }
}

@media (max-width: 992px) {
    #rankings {
        padding-top: 105px;
        margin-top: -100px;
    }

    .rankings.tab-content .tab-pane {
        padding-top: 170px;
        margin-top: -165px;
    }
}

/* relations */
.relations-section {
    margin-bottom: 25px;
}