/* Custom navbar
Add a dark background color with a little bit see-through */
html,
body {
    margin:0;
    padding:0;
    height:100%;
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

.wrapper {
    min-height: 100%;
    margin-bottom: -260px;
}

.navbar {
    margin-bottom: 0;
    background-color: #000000;
    border: 0;
    border-radius: 0;
    font-size: 16px;
}

.fh5co-widget a:hover {
    color: #fff;
}

/* Subject for ESA-NASA header */
.navbar-brand small {
    display:block;
    font-size:14px;
    padding-top: 5px;
    padding-left: 15px;
}

.navbar-toggle {top:10px}

@media (min-width:768px) {

    .navbar-brand {
        padding-top:20px;
    }

    .nav.navbar-nav a {

        padding-bottom:30px;
    }

}

.navbar-right {
    margin-top: 5px;
}

/* Size the NASA Meatball */
#nasa-logo {
    height: 50px;
    width: auto;
    margin-top: -15px;
    margin-left: -5px;
}

#webww-header {
    margin-left: -35px;
    position: relative;
}


/* Add a gray color to all navbar links */
.navbar li a, .navbar .navbar-brand {
    color: #d5d5d5 !important;
}

/* On hover, the links will turn white */
.navbar-nav li a:hover {
    color: #fff !important;
}

/* The active link */
.navbar-nav li.active a {
    color: #fff !important;
    background-color:#000000 !important;
}

/* Remove border color from the collapsible button */
.navbar-default .navbar-toggle {
    border-color: transparent;
}

/* Dropdown */
.open .dropdown-toggle {
    color: #fff ;
    background-color: #555 !important;
}

/* Dropdown links */
.dropdown-menu li a {
    color: #000 !important;
}

/* On hover, the dropdown links will turn red */
.dropdown-menu li a:hover {
    background-color: #1c629e !important;
}

#github {
    padding: 5px;
}

/* Sliding jumbotron carousel */

.carousel .item {
    height: 500px;
}

.item img {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 500px;
}

.jumbotron-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: transparent;
}

/*
  Bootstrap Carousel Fade Transition (for Bootstrap 3.3.x)
  CSS from:       http://codepen.io/transportedman/pen/NPWRGq
  and:            http://stackoverflow.com/questions/18548731/bootstrap-3-carousel-fading-to-new-slide-instead-of-sliding-to-new-slide
  Inspired from:  http://codepen.io/Rowno/pen/Afykb
*/
.carousel-fade .carousel-inner .item {
    opacity: 0;
    transition-property: opacity;
}

.carousel-fade .carousel-inner .active {
    opacity: 1;
}

.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
    left: 0;
    opacity: 0;
    z-index: 1;
}

.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
    opacity: 1;
}

.carousel-fade .carousel-control {
    z-index: 2;
}

/*
  WHAT IS NEW IN 3.3: "Added transforms to improve carousel performance in modern browsers."
  Need to override the 3.3 new styles for modern browsers & apply opacity
*/
@media all and (transform-3d), (-webkit-transform-3d) {
    .carousel-fade .carousel-inner > .item.next,
    .carousel-fade .carousel-inner > .item.active.right {
        opacity: 0;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    .carousel-fade .carousel-inner > .item.prev,
    .carousel-fade .carousel-inner > .item.active.left {
        opacity: 0;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    .carousel-fade .carousel-inner > .item.next.left,
    .carousel-fade .carousel-inner > .item.prev.right,
    .carousel-fade .carousel-inner > .item.active {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width:800px) {
    #myCarousel img {
        display:none !important;

    }

    .ww-carousel {
        background-color: black;
      background-image: url(../img/mobile-background-starfield.jpeg)
    }
}

.heading {
    position: absolute;
    top: 45%;
    left:5%;
    z-index: 3;
    color: #fff;
    text-shadow: 3px 3px #000;
    text-align: center;
}

.heading h1 {
    font-size: 4.5em;
}

.banner {
    height: 220px;
}

.banner-background {
    width: 100%;
    height: 100%;
    background: black;
}

.banner-background-image {
    width: 100%;
    height: 100%;
    background: url("../img/banner-night.jpg") no-repeat center center;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.banner-text {
    position: absolute;
    top: 80px;
    width: 100%;
    text-align: center;
    color: white;
}

.banner-text h1 {
    font-size: 40px;
}

.banner-text a {
    color: white;
}

@media screen and (min-width: 768px) {
    .banner {
        height: 400px;
    }

    .banner-text {
        top: 160px;
    }

    .banner-text h1 {
        font-size: 80px;
    }
}

#anchor {
    padding-top:70px;
    margin-top:-70px;
}

p, li {
    font-size: 18px;
}

.content-container {
    margin-top: 80px !important;
}

.sidenav {
    border-radius: 5px;
    background: #e2e2e2;
    padding-top: 10px;
    padding-bottom: 10px;
}

/*Heading paddingfor tutorials and examples categories*/
.title-padding {
    padding-left: 15px;
}

.footer, .push {
    height: 260px;
}

/* Sticky footer */
.fh5co-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.fh5co-bg {
    background-size: cover;
    background-position: center center;
    position: relative;
    width: 100%;
    float: left;
}
.fh5co-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;

}

.fh5co-bg-section {
    background: rgba(0, 0, 0, 0.05);
}

#fh5co-footer {
    padding: 7em 0;
    clear: both;
}
@media screen and (max-width: 768px) {
    #fh5co-footer {
        padding: 3em 0;
    }
}

#fh5co-footer {
    position: relative;
}

#fh5co-footer .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}
#fh5co-footer h3 {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}
#fh5co-footer .fh5co-footer-links {
    padding: 0;
    margin: 0;
}
#fh5co-footer .fh5co-footer-links li {
    padding-left: 75px;
    margin: 0;
    list-style: none;
}
#fh5co-footer .fh5co-footer-links li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
#fh5co-footer .fh5co-footer-links li a:hover {
    text-decoration: underline;
}
#fh5co-footer .fh5co-widget {
    margin-bottom: 30px;
}
@media screen and (max-width: 768px) {
    #fh5co-footer .fh5co-widget {
        text-align: left;
    }
}
#fh5co-footer .fh5co-widget h3 {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.news-boxes-section {
    background-color: black;
    box-sizing: border-box;
    display: block;
    font-family: muli, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif;
    line-height: 1.45;
    position: relative;
    width: 100%;
}

.news-boxes-container {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    /* center news boxes */
    margin-right: auto;
    margin-left: auto;
}

.news-link:link, .news-link:visited {
    background-color: #0000;
    box-sizing: border-box;
    color: #eee;
    line-height: 1.5;

    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;

    text-decoration: none;
    transition: background-color .15s ease-in;
}

.news-link:hover {
    background-color: #2e6da4;
}

.news-date {
    color: #a3a3a3;
    display: block;
    padding-bottom: .25rem;
}

/* Defines news boxes layout when in mobile view */
.news-mobile-layout {
    display: inline-block;
    width: 100%;
}

/* Defines news boxes layout when in desktop view */
@media screen and (min-width: 768px) {
    .news-desktop-layout {
        display: block;
        width: 33%;
    }
    .news-container-width {
        width: 75%;
    }
}

/* Modal news article dialog */
.newsDialog {
    display: none;
}

.newsDialogBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.newsDialogContainer {
    position: fixed;
    top: 0;
    left: 0;
    padding: 7px;
    margin: 55px 10px 55px 10px;
    border: 1px solid #FFFF;
    background: #FFF;
    z-index: 1;
}

.newsDialogTitle {
    /* -- News dialog header color can be edited here -- */
    background: #2e6da4;
    /* background: #2ea436; */
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    font-size: 2em;
    font-weight: bolder;
    color: #FFF;
}

.hideNewsDialog {
    float: right;
    padding-top: 14px;
    padding-right: 10px;
    padding-left: 10px;
    color: #FFF;
    cursor: pointer;
}

.closeIcon {
    width: 30px;
}

@media screen and (min-width: 768px) {
    .newsDialogContainer {
        margin: 100px 100px auto 100px;
        padding: 7px;
    }
}

@media screen and (min-width: 992px) {
    .newsDialogContainer {
        margin: 100px 200px auto 200px;
        padding: 7px;
    }
}
