/*
 * Base structure
 */

 #searchfield {
	flex-basis: 400px;
	flex-grow: 0;
	flex-shrink: 0;
}


/* Move down content because we have a fixed navbar that is 50px tall */
body {
  padding-top: 50px;
}

.app-store-badges {
    position: fixed;
    top: 300px;
    left: 0;

}

/* Custom navbar from https://stackoverflow.com/questions/18529274/change-navbar-color-in-twitter-bootstrap-3 */

/* This changes the dropdown menu item not the dropdown self
ul.nav.navbar-nav .dropdown.open .dropdown-toggle{
  color: red;
  background-color: green;
}
*/
/* This is the color of the dropdown menu */
ul.nav.navbar-nav .dropdown-menu{
  color: #999999;
  background-color: #000000;
}

ul.nav.navbar-nav .dropdown-menu > a:nth-child(1){
  color: #999999;
  background-color: #000000;
  /*background-image: url("images/marker_ship_search_looking_glass.png") !important; */
}

.navbar-2nd {
    background-color:#a1a1a4; /* Works, bbm */
    color:#ffffff; /*This is the color of any text spans on the navbar */
    border-radius:0;
    /*background:transparent; */


}


/*
.navbar-2nd > li  {
    background-color:#dd0000;
    color:#00dd00;
    border-radius:0;
}
*/



.navbar-2nd ul.nav.navbar-nav.navbar-left > li > a { /* works for all classes, we want for the specific class navbar-2nd */
    color: #ffffff; /*text color of the navbar li /a elements 515155;*/
    background-color: #a1a1a4;

}

.navbar-2nd ul.nav.navbar-nav.navbar-left > li > a:hover,
.navbar-2nd ul.nav.navbar-nav.navbar-left > li > a:focus { /* works for all classes, we want for the specific class navbar-2nd */
    color: #3c8fff;
    background-color: #777777;
}


/*
ul.nav.navbar-nav.navbar-left > li > a {  works for all classes, we want for the specific class navbar-2nd
    color: #0000dd;
    background-color: #000000;
}
*/

.navbar-custom {
    background-color:#000000; /* Works, bbm */
    color:#555555;
    border-radius:0;

}

.navbar-custom .navbar-nav > li > a {
    color:#999999; /* This is the text colour in the navbar, bbm */
}

.navbar-custom .navbar-nav > .active > a {
    color: #ffffff;
    background-color:transparent;
}

.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus,
.navbar-custom .navbar-nav > .active > a:hover,
.navbar-custom .navbar-nav > .active > a:focus,
.navbar-custom .navbar-nav > .open >a {
    text-decoration: none;
    background-color: #eeeeee; /* this is the hover color, bbm */
}

.navbar-custom .navbar-brand {
    color:#eeeeee;
}
.navbar-custom .navbar-toggle {
    background-color:#eeeeee;
}
.navbar-custom .icon-bar {
    background-color:#33aa33;
}

/* End custom navbar */

/*
 * Global add-ons
 */

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;

}

/*
 * Sidebar
 */

.navbar-brand {
  padding: 0px;
}
.navbar-brand>img {
  height: 100%;
  padding: 15px;
  width: auto;
}

/* Hide for mobile, show later */
.sidebar {
  display: none;
}

@media (min-width: 768px) {
  .sidebar {
    position: fixed;
    /*width: 300px; Fixed sidebar will fuck up at small screen sizes*/
    top: 50px; /* should match the size of navbar, bbm! */
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    background-color: #000000; /* this is actually the background color, bbm */
    border-right: 1px solid #000000;

  }
}

@media (min-width: 1800px) {
  .sidebar {
    position: fixed;
    width: 300px; /*Fixed sidebar will fuck up at small screen sizes */
    top: 50px; /* should match the size of navbar, bbm! */
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    background-color: #000000; /* this is actually the background color, bbm */
    border-right: 1px solid #000000;

  }

  .main {
    /*padding-right: 40px;
    padding-left: 40px;
    width: vw-300px; /*Viewport - 300 px for the sidebar */
    margin-left: 300px;
    /*margin-right: 0px;*/
    width: unset; /* The width is calculated by bootstrap rules, so we should unset to avoid using them at higher resolution where it doesnt look good - bootstrap 4 may bring a cleaner solution with the XL and XXL classes */
  }

}

/* Hides the login status when viewport smaller that 1100px */
.rightbar {
  display: none;
}

@media (min-width: 1100px) { /* This is the login area of the navbar */
    .rightbar
    {
    display: inline;
    position: fixed;
    top: 0px; /* should match the size of navbar, bbm! */
    /*bottom: 0; */
    right: 0;
    z-index: 1000;
    display: block;
    padding: 0px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    background-color: #000000; /* this is actually the background color, bbm */
    border-right: 1px solid #000000;
    }
}



/* Sidebar navigation */
.nav-sidebar {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}
.nav-sidebar > li > a {
  padding-right: 20px;
  padding-left: 20px;
  color: #999999; /* text color of sidebar */
  background-color: #000000; /* background color of sidebar */
}

.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
  color: #424242; /* text color of before section */
  background-color: #000000; /* background color of before view */
}


.panel-title {
    color: #ED5E2F;
    background-color: #2aabd2;
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;

}
/*
 * Main content
 */

.main {
  padding: 20px;
  z-index: 0;
}
@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;
    /*left: 300px;*/
  }
}
.main .page-header {
  margin-top: 0;
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
  margin-bottom: 30px;
  text-align: center;
}
.placeholders h4 {
  margin-bottom: 0;
}
.placeholder {
  margin-bottom: 20px;
}
.placeholder img {
  display: inline-block;
  border-radius: 50%;
}
