
footer {
    position: absolute;
    top: 95%;
    z-index: 20;
}

#mainSection {
    height: 95%;
    position: relative;
}

.container-fluid {
    height: 100%;
}

/* --------- MOBILE LINKS ------------ */
.mobile-links {
    display: none;
}

@media screen and (max-width: 767px) {

    #mainSection, .container-fluid {
        height: auto;
    }
    .container-fluid {
        margin-top: 50px;
    }
    footer {
        margin-top: 30px;
    }
    .mobile-links {
        display: block;
    }
    .mobile-links a{
        display: block;
        margin-top: 10px;
        width: 100%;
    }
    .mobile-links a img {
        display: block;
        width: 100%;
    }
    .characters {
        display: none;
    }
}

/* --------- GAME PROMOS ------------ */
.game-promo-container .game {
    position: relative;
    height: auto;
    width: 100%;
    z-index: 3;
}

.game-promo-container .game img{
    margin: 0px;
    width: 100%;
    background: black;
    border: 7px solid #eb6636;
    box-shadow: 0 -3px 0 #eb8736, 0 2px 2px rgba(0,0,0,0.3);
    position: absolute;
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
}

#game-icon {
    position: absolute;
    background-image: url(../img/bg-game-icon.png);
    background-size: cover;
    bottom: 1.5vh;
    left: 3vh;
    width: 15.4%;
    height: 18%;
    z-index: 4;
}

@media screen and (max-width: 767px) {
    .game-promo-container {
        display: none;
    }
}

/* --------- VIDEO PROMOS ------------ */
.video-col-wrapper{
    position: relative;
}

.video-promo-container {
    margin-top: 20px;
    width: 100%;
    display: block;
    z-index: 3;
}

.video-promo-container .video {
    position: relative;
    height: auto;
    width: 100%;
    z-index: 1;
}

.video-promo-container .video img{
    margin: 0px;
    width: 100%;
    background: black;
    border: 7px solid #2aecb7;
    box-shadow: 0 -3px 0 #42ffdf, 0 2px 2px rgba(0,0,0,0.3);
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
}

#animation {
    position: relative;
}

#video-icon {
    position: absolute;
    background-image: url(../img/bg-video-icon.png);
    background-size: cover;
    bottom: 1vh;
    left: 3vh;
    width: 16.5%;
    height: 25%;
    z-index: 2;
    pointer-events: none;
}

@media screen and (max-width: 767px) {
    .video-promo-container {
        display: none;
    }
}


/* -------------- PICTURE OF THE DAY ---------------- */
.picture-of-the-day-container {
    width: 100%;
    height: auto;
    margin: 0 auto;
    background: black;
    border: 7px solid #470096;
    box-shadow: 0 -3px 0 #550E94, 0 2px 2px rgba(0,0,0,0.3);
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
    z-index: 3;
    position: relative;
    display: none;
}

.picture-of-the-day-container.show {
    display: block;
}

.picture-of-the-day-container img{
    height: auto;
    width: 100%;
}

.picture-of-the-day-container .datetime, 
.picture-of-the-day-container .description {
    display: none;
}

#sunspot-icon {
    background-image: url('../img/bg-nasa-camera.png');
    background-size: cover;
    position: absolute;
    height: 31%;
    width: 16.8%;
    bottom: 0.5vh;
}

@media screen and (max-width: 767px) {
    .picture-of-the-day-container {
        width: auto;
        margin-top: 35px;
        z-index: 3;
    }

    .picture-of-the-day-container img{
        width: 100%;
        margin-top: 0 !important;
    }
}

/* -------------- PIC OF DAY LIGHTBOX ---------------- */
.lightbox {
    font-family: Verdana, Arial;
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    opacity: 0;
}

.lightbox.show {
    opacity: 1;
}

.lightbox .container {
    font-family: Komika;
    color: white;
    padding: 10px;
    background-color: #25dce8;
    border-color: #461990;
    border-style: solid;
    border-width: 14px;
    box-shadow: inset 0 5px 10px rgba(48,154,203,0.5);
    text-align: center;
}

.lightbox .container h3 {
    background-image: url(../img/bg-lbox-spacepic.png);
    background-repeat: no-repeat;

    padding: 5px;
    background-size: contain;
}

.lightbox div img {
    width: 70%;
    height: auto;
    text-align: center;
}

.lightbox .leftarrow {
    background-image: url('../img/bg-btn-next_s.png');
    right: 8px;
}

/* -------------- CHARACTERS ---------------- */
.characters {
    width: 100%;
    z-index: -2;
    position: absolute;
    bottom: -30px;
}

.sean  {
    width: auto;
    height: 275px;
    margin-left: -30px;
}

.mindy  {
    width: auto;
    height: 215px;
    margin-top: 55px;
    margin-left: -30px;
}

.idleJet  {
    background-image: url("../animations/jet-idle.gif"); background-repeat: no-repeat;
    background-size: contain;
    width: 150px;
    height: 300px;
    position: static;
    display: inline-block;
}

.sydney  {
    background-image: url("../animations/sydney.gif"); background-repeat: no-repeat;
    background-size: contain;
    width: auto;
    width: 150px;
    height: 300px;
    position: static;
    display: inline-block;
}


@media screen and (max-width: 767px) {
    .sean, .mindy, .idleJet, .sydney {
        display: none;
    }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* IE10+ */
    .sean, .mindy, .idleJet, .sydney, .sswim {
        display: none;
    }
 }

 /* ANIMATIONS */
@media screen and (max-height: 780px){ /*don't change */
    section.character{
        /* height: 400px; */  /*removed for anim*/
        background-image: url('../img/bg-character-small.png');
        background-position: bottom center;
        background-size: contain;
        margin-left: -80px; /* added for anim*/
        margin-top: 0px; /* added for anim*/
        height: 430px; /* added for anim*/
    }

    section.character.space{
        background-position: bottom center;
        background-size: contain;
        margin-left: -53px; /* added from 0 for anim night*/
        height: 500px;
    }
}


@media screen and (max-height: 500px) {
    section.character{
        display: none;
    }
}

@media screen and (min-height: 1000px) {/* added for anim*/
    section.character{
        margin-left: 0px;
        margin-bottom: 10px;
    }
}

/* iPad Portrait*/
@media screen and (max-device-width : 768px) and (orientation:portrait) {
    section.character {
        bottom: 0;
        display: block;
        background-size: 700px Auto;
        background-repeat: no-repeat;
    }
    section.character.space {
        bottom: 0;
        background-size: 700px;
        background-repeat: no-repeat;
    }
    .character.earth.hide, .character.space.hide {
        bottom: -100% !important;
        z-index: 1;
    }
    .character.nodisplay {
        display: none;
    }
    .character.space.waiting {
        display: block;
        bottom: -100% !important;
    }
}

/* iPad Landscape */
@media screen and (max-device-width : 1024px) and (orientation:landscape){
    section.character {
        bottom: 0;
        display: block;
        background-size: 700px Auto;
        background-repeat: no-repeat;
    }
    section.character.space {
        bottom: 0;
        left: -30px;
        background-size: 700px;
        background-repeat: no-repeat;
       }
        .character.earth.hide, .character.space.hide {
        bottom: 720px !important;
        z-index: 1;
    }
    .character.nodisplay {
        display: none;
    }
    .character.space.waiting {
        display: block;
        top: 720px !important;
    }
}


@media screen and (min-height: 810px) {
    section.character{
        background-image: url('../img/characters.png');
        height: 420px;

    }
}
@media screen and (min-height: 910px) {
    section.character{
        background-image: url('../img/characters.png');
        height: 658px;
    }
}


    section.character.space {
        bottom: 0;
        background-repeat: no-repeat;
    }
    .character.earth.hide, .character.space.hide {
        bottom: -800px !important;
        z-index: 1;
    }
    .character.nodisplay {
        display: none;
    }
    .character.space.waiting {
        display: block;
        bottom: -800px !important;
    }
}
@media screen and (min-width: 1450px) {
    section.character {
        bottom: 0;
        display: block;
        background-repeat: no-repeat;

    }
    section.character.space {
        bottom: 0;
        background-repeat: no-repeat;
    }
    .character.earth.hide, .character.space.hide {
        bottom: -800px !important;
        z-index: 1;
    }
    .character.nodisplay {
        display: none;
    }
    .character.space.waiting {
        display: block;
        bottom: -800px !important;
    }
}

@media screen and (max-width: 776px) {
    section.character {
        height: 550px;
        margin-bottom: 20px;
    }
}
@media screen and (max-width: 767px) {
    section.character {
        display: none;
    }
    .strap {
        height: 55px;
    }
    #changeBackground {
        display: none;
    }
    .picture-of-the-day {
        position: relative;
        width: auto;
        height: auto;
        overflow: hidden;
        left: 0;
        top: 0;
        margin: 40px auto 0 auto;
    }
    .picture-of-the-day img {
        position: static;
        margin-top: -10px;
    }

    .main-home {
        float: none;
        position: static;
        margin: 0 auto 20px auto;
        max-width: 96%;
        width: auto\9; /* ie8 */
    }

    .panel .title {
        font-size: 20px;
    }

    .main-home section img {
        margin: 8.8%;
        width: 82%;
    }

    .panel .description {
        top: 60px;
        left: 70px;
    }

    .tv-crane {
        display: none;
    }

    section.home {
        min-height: 0;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 1139px) {
    section.character img.sun-spot {
        display: none;
    }
}
@media screen and (max-width: 1024px) {
    .branding{
        width: auto!important;
    }
}
@media screen and (min-width: 1140px) {
    section.character img.sun-spot {
        display: block;
    }
}
section.character img.sun-spot {
    position: absolute;
    right: -530px;
    top: -120px;
}
section.character img.sun-spot.space {
        right: -480px;
}
section.character img.jet {
    margin-left: -50px;
}
section.character img.jet.space {
        margin-left: -150px;
}

#changeBackground, #changeBackground2 {
    -webkit-appearance: none;
    border: none;
    width: 248px;
    display: block;
    height: 658px;
    background-color: transparent;
    margin: 0 auto;
    outline: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -124px;
}
.character {
    display: inline-block;
    opacity: 1;
}
.character canvas{
    height: 100%;
    position: static;
    margin: 0 auto;
    display: block;
}

.character.earth.hide, .character.space.hide {
    bottom: -800px!important;
    z-index: 1;
}
.character.nodisplay {
    display: none;
}
.character.space.waiting {
    display: block;
    bottom: -100% !important;
}

@media screen and (min-height: 768px) and (orientation: portrait){
    .content-main{
        min-height: 1300px !important;
        height: auto;
    }
}

/* saucer animation */

 .sswim  {
        background-image: url("../img/saucer.png");
        background-size: cover;
        width: 120px;
        height: 80px;
        right: 0%;
        z-index: 0;
        position: absolute; top: 126px; left: 10px;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    transform: scale(0.8);
    -webkit-animation: animate 200s linear infinite;
    -moz-animation: animate 200s linear infinite;
    -o-animation: animate 200s linear infinite

}

@-webkit-keyframes animate {
    0% {margin-left: 100%;}
    100% {margin-left: -1000px;}
}
@-moz-keyframes animate {
    0% {margin-left: 100%;}
    100% {margin-left: -1000px;}
}
@-o-keyframes animate {
    0% {margin-left: 1500px;}
    100% {margin-left: -1000px;}
}