/*** SRL Anatomy ***/

#anatomy-section {
    color: #222;
    /* font-size:12px; */
    height: 100%;
    min-height: 500px;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#anatomy-section h3 {
    font-family: "Oswald";
    margin: 10px 0;
    font-size: 24px;
    line-height: 1.1em;
}
#anatomy-overview {
    z-index: 2;
}
#anatomy-overview .subtitle {
    margin-top: 0;padding-top: 2em;
}
.toggle-all {
    /* right: 5px;
    top: 5px;
    z-index: 5;
    position: absolute; */
}

.toggle-all a {
    cursor: pointer;
}

.animation {
    font-size: 13px;
    position: relative;   
     -webkit-animation-play-state: running;
    /* animation: bounce 4s ease-in-out 0s infinite normal none;
    -webkit-animation: bounce 4s ease-in-out 0s infinite normal none;
     */
    width: 100%;
    max-width: 800px;
    min-height: 200px;
    left: -65px;
    right: 0;
    margin: 0 auto;
}

 
.animation.show_labels {
    -webkit-animation-play-state: paused;
} 

.animation * {
    position: absolute;
}

.animation:hover, .animation:hover .srl {
    -webkit-animation-play-state: paused;
}

.animation .srl {
    max-width: 90%;
    height: auto;
    position: absolute;
    top: 0;
    left: 12%;
    right: 0;
    margin: 0 auto;
    z-index: 0;
}

.animation .text {
   /* max-width: 235px; */
    margin: 0 auto;
    background: whitesmoke;
    padding: 5px 15px 15px;
    z-index: 3;
    box-shadow: 0px 0px 30px #ccc;
    width: 0px;
}

.animation .spot .text {
    width: 165px;
}

.animation .text .title, .animation .text .description {
    display: block;
    position: relative;
    line-height: normal;
    font-weight: 400;
}

.animation .text .title {
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0 !important;
}

.animation .text .description {
    /* font-size:smaller; */
}

.animation .spot {
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 100%;
}

.animation .spot .dot {
    width: 10px;
    height: 10px;
    background: #9e0000;
    border: white 2px solid;
    border-radius: 50%;
    margin: 0 auto;
    left: -5%;
    right: 0;
    z-index: 2;
    opacity: 0.7;
    cursor: pointer;
    margin-top: 15%;
    transition: opacity 0s 0s ease; 
}

.animation .spot .dot:not(.active){
    animation: pulse 2s infinite;
}

.animation .spot .text {
    left: -5%;
}

.animation .spot .dot .line, .animation .spot .dot .line2, .animation .spot .dot .line3, .animation .spot .dot .line4 {
    background: #9e0000;
    width: 1px;
    height: 1px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0s 0s ease;
}

.animation .spot .dot .line, .animation .spot .dot .line4 {
    top: 0;
    left: 0;
    right: 0;
    transition: height 0.4s ease, top 0.4s ease;
}

.animation .spot .dot:hover .line, .animation .spot .dot.active .line {
    height: 100px;
    top: -100px;
    opacity: 1;
}


.animation .spot .dot:hover .line4, .animation .spot .dot.active .line4 {
    height: 100px;
    top: -100px;
    opacity: 1;
}

.animation .spot .dot .line2, .animation .spot .dot .line3 {
    top: -110px;
    right: 1px;
    opacity: 0;
    transition: width 0.5s ease 0.4s, top 0.5s ease 0s, opacity 0s ease 0s;
}

.animation .spot .dot .line3 {
    left: 1px;
}

.animation .spot .dot:hover .line2, .animation .spot.active .dot .line2, .animation .spot .dot:hover .line3, .animation .spot.active .dot .line3 {
    opacity: 1;
}

.animation .spot .dot {
    opacity: 0.5;
   transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out; 
    -webkit-transition: opacity .25s ease-in-out; 
}

.animation .spot .dot:hover, .animation .spot.active .dot {
    opacity: 1;
}

/* Sample Transfer Arm*/
.animation .spot.arm {
    left: -49%;
    top: -12px;
}


.animation .spot.arm .dot {
    top: -3px;
    transform: rotate(180deg);
}

.animation .spot.arm .dot:hover .line, .animation .spot.arm .dot.active .line {
    height: 150px;
    top: -152px;
}

.animation .spot.arm .dot .line2, .animation .spot.arm .dot .line3 {
    top: -152px;
}

.animation .spot.arm .dot:hover .line2, .animation .spot.arm.active .dot .line2, .animation .spot.arm .dot:hover .line3, .animation .spot.arm.active .dot .line3 {
    width: 126px;
}

.animation .spot.arm .text {
    margin: -8.5% auto 0;
    opacity: 0;
    top: 351px;
    left: 32.3%;
}

.animation .spot.arm:hover .text, .animation .spot.arm.active .text {
    width: 211px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
}

@media screen and (max-width: 770px) {
    .animation .spot.arm .dot {
        left: -5%;
        top: 0;
        margin-top: 14.5%

    }
}

/*NEW: Solar Panels*/
.animation .spot.solar-panels {
    left: 49px;
    top: -20px;
}


.animation .spot.solar-panels .dot {
    right: 190px;
    top: 100px;
    transform: rotate(180deg);
}

.animation .spot.solar-panels .dot:hover .line, .animation .spot.solar-panels .dot.active .line {
    height: 268px;
    top: -270px;

}

.animation .spot.solar-panels .dot .line2, .animation .spot.solar-panels .dot .line3 {
    top: -270px;
}

.animation .spot.solar-panels .dot:hover .line2, .animation .spot.solar-panels.active .dot .line2, .animation .spot.solar-panels .dot:hover .line3, .animation .spot.solar-panels.active .dot .line3 {
    width: 119px;
}

.animation .spot.solar-panels .text {
    top: 435px;
    margin: 70px auto 0;
    left: -230px;
    right: 0;
    opacity: 0;
}

.animation .spot.solar-panels:hover .text, .animation .spot.solar-panels.active .text {
    width: 200px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
}

@media screen and (max-width:770px) {
    .animation .spot.solar-panels .dot {
        left: -11%;
        top: 0;
        margin-top: 28%;
    }
}

/* Descent Engines*/
.animation .spot.engines {
    left: -6.5%;
    top: -24px;
}


.animation .spot.engines .dot {
    right: -32%;
    top: 135px;
    transform: rotate(180deg);
}

.animation .spot.engines .dot:hover .line, .animation .spot.engines .dot.active .line {
    height: 70px;
    top: -72px;
}

.animation .spot.engines .dot .line2, .animation .spot.engines .dot .line3 {
    top: -72px;
}

.animation .spot.engines .dot:hover .line2, .animation .spot.engines.active .dot .line2, .animation .spot.engines .dot:hover .line3, .animation .spot.engines.active .dot .line3 {
    width: 120px;
}

.animation .spot.engines .text {
    top: 122px;
    margin: 27.5% auto 0;
    left: 27%;
    right: 0;
    opacity: 0;
}

.animation .spot.engines:hover .text, .animation .spot.engines.active .text {
    width: 200px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
}

@media screen and (max-width:770px) {
    .animation .spot.engines .dot {
        top: 0;
        margin-top: 32%;
    }
}

/* Lander Feet*/

.animation .spot.feet {
    top: -31px;
    left: -86px;
}

.animation .spot.feet .dot {
    top: 191px;
    left: 397px;
    right: -5%;
    bottom: 40%;
    transform: rotate(-90deg);
}

.animation .spot.feet .dot:hover .line, .animation .spot.feet .dot.active .line {
    height: 74px;
    bottom: -135px;
    top: 13px;
}

.animation .spot.feet .dot .line2, .animation .spot.feet .dot .line3 {
    bottom: -135px;
    top: 86px;
    left: -72px;
    /* transform: rotate(90deg); */
}

.animation .spot.feet .dot:hover .line2, .animation .spot.feet.active .dot .line2, .animation .spot.feet .dot:hover .line3, .animation .spot.feet.active .dot .line3 {
    width: 135px;
}

.animation .spot.feet .text {
    margin: 0 auto 0;
    left: 705px;
    right: 0;
    opacity: 0;
    margin-top: 53.3%;
    top: -162px;
}

.animation .spot.feet:hover .text, .animation .spot.feet.active .text {
    height: 105px;
    width: 176px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
}

@media screen and (max-width:770px) {
    .animation .spot.feet .dot {
        top:0;
        margin-top: 39.5%;
        left: 52%;
    }
    @media screen and (max-width:510px) {
        .animation .spot.feet .dot {
            left: 57%;
        }
    }
    @media screen and (max-width:400px) {
        .animation .spot.feet .dot {
            left: 62%;
        }
    }

}

/* Propellant Tanks*/

.animation .spot.tanks .dot {
    left: 31%;
    transform: rotate(180deg);
    top: 10px;
}

.animation .spot.tanks .dot:hover .line4, .animation .spot.tanks .dot.active .line4 {
    height: 180px;
    /* bottom: -155px; */
    top: -85px;
    left:-200px;
    rotate:-90deg;
}


.animation .spot.tanks .dot:hover .line, .animation .spot.tanks .dot.active .line {
    height: 135px;
    /* bottom: -155px; */
    top: 5px;
    left:-380px
}

.animation .spot.tanks .dot .line2, .animation .spot.tanks .dot .line3 {
    top: 140px;
    left:-457px
}

.animation .spot.tanks:hover .dot .line2, .animation .spot.tanks:hover .dot .line3, .animation .spot.tanks.active .dot .line2, .animation .spot.tanks.active .dot .line3 {
    width: 225px;
}

.animation .spot.tanks .text {
    height: 92px;
    width: 195px;
    top:-90px;
    right: 0;
    opacity: 0;
    margin: -3% auto 0;
    left: 80%;
}

.animation .spot.tanks:hover .text, .animation .spot.tanks.active .text {
    width: 195px;
    opacity: 1;
   transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out; 
    -webkit-transition: opacity 1s ease-in-out;
}

@media screen and (max-width:770px) {
    .animation .spot.tanks .dot {
        top:0;
        margin-top: 15%;
    }
}



/* Mars Ascent Vehicle Bay*/
.animation .spot.bay {
    top: -8px;
    left: -80px;
}


.animation .spot.bay .dot {
    top: -63px;
    left: 280px;
    transform: rotate(0deg);
}

.animation .spot.bay .dot:hover .line, .animation .spot.bay .dot.active .line {
    height: 50px;
    top: -52px;
}

.animation .spot.bay .dot .line2, .animation .spot.bay .dot .line3 {
    top: -52px;
}

.animation .spot.bay .dot:hover .line2, .animation .spot.bay.active .dot .line2, .animation .spot.bay .dot:hover .line3, .animation .spot.bay.active .dot .line3 {
    width: 112px;
}

.animation .spot.bay .text {
    margin: -8.5% auto 0;
    opacity: 0;
    top: -55px;
    left: 430px;
}

.animation .spot.bay:hover .text, .animation .spot.bay.active .text {
    width: 188px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
}

@media screen and (max-width:770px) {
    .animation .spot.bay .dot {
        top: 0;
        margin-top: 7.5%;
        left: 35%;
    }
}




/*Orbiting Sample Access Door*/
.animation .spot.door .dot {
    top: -10px;
    left: -310px;
    transform: rotate(0deg);
}

.animation .spot.door .dot:hover .line, .animation .spot.door .dot.active .line {
    height: 55px;
    top: -55px;
}

.animation .spot.door .dot .line2, .animation .spot.door .dot .line3 {
    top: -55px;
}

.animation .spot.door .dot:hover .line2, .animation .spot.door.active .dot .line2, .animation .spot.door .dot:hover .line3, .animation .spot.door.active .dot .line3 {
    width: 110px;
}

.animation .spot.door .text {
    margin: -8.5% auto 0;
    opacity: 0;
    top: -70px;
    left: 135px;
}

.animation .spot.door:hover .text, .animation .spot.door.active .text {
    width: 188px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
}

@media screen and (max-width:770px) {
    .animation .spot.door .dot {
        top: 0;
        margin-top: 13%;
        left: -39%;
    }
}


@media screen and (max-width: 770px) {
    .animation{
        top: 0;
        margin-top: 2%;
        left: -6%;
    }
    .animation .text {
        box-shadow: 0px 0px 30px #ccc;
        font-size: 18px;
    }
    .toggle-all {
        display: none;
    }
    .animation .spot .line, .animation .spot .line2, .animation .spot .line3, .animation .spot .line4 {
        display: none;
    }
    .animation .spot .dot {
        width: 15px;
        height: 15px;
    }
    #anatomy-section .animation .spot .text {
        width: 90%;
        max-width: 100%;
        text-align: center;
        top: 25px;
        margin-top: -25%;
        left: 0;
        right: 0;
        scale: 0.8;
    }
    #anatomy-section .animation .spot.arm .text{
        margin-top: -25%;
        left: 34%;
    }
    #anatomy-section .animation .spot.solar-panels .text{
        margin-top: -20%;
        left: -4%;
    }
    #anatomy-section .animation .spot.engines .text{
        margin-top: -25%;
        left: 12%;
    }
    #anatomy-section .animation .spot.feet .text{
        margin-top: -25%;
        left: 15%;
    }
    #anatomy-section .animation .spot.tanks .text{
        left: 9%;
    }
    #anatomy-section .animation .spot.bay .text{
        left: 16%;
        margin-top: -20%;
    }
    #anatomy-section .animation .spot.door .text{
        left: 10%;
        margin-top: -25%;
    }

    .animation .spot:hover .text, .animation .spot.active .text {
        transition: opacity 0s ease-in-out !important;
        -moz-transition: opacity 0s ease-in-out !important;
        -webkit-transition: opacity 0s ease-in-out !important;
    }


}


@media screen and (max-width: 539px) {
    .animation{
        top: 0;
        margin-top: 5%;
        left: -6%;
    }
    #anatomy-section .animation .spot.arm .text{
        margin-top: -30%;
        left: 33%;
    }
    #anatomy-section .animation .spot.solar-panels .text{
        margin-top: -28%;
        left: -10%;
    }
    #anatomy-section .animation .spot.engines .text{
        left: 11%;
        margin-top: -28%;
    }
    #anatomy-section .animation .spot.feet .text{
        margin-top: -25%;
        left: 18%;
    }
    #anatomy-section .animation .spot.tanks .text{
        margin-top: -30%;
        left: 8%;
    }
    #anatomy-section .animation .spot.bay .text{
        width: 90%;
        left: 16%;
        margin-top: -28%;
    }
    #anatomy-section .animation .spot.door .text{
        width: 100%;
        left: 3%;
        margin-top: -33%;
    }
    
}

@media screen and (max-width: 459px) {
    .animation{
        top: 0;
        margin-top: 5%;
        left: -6%;
    }
    #anatomy-section .animation .spot.arm .text{
        margin-top: -40%;
        left: 33%;
    }
    #anatomy-section .animation .spot.solar-panels .text{
        margin-top: -35%;
        left: -10%;
    }
    #anatomy-section .animation .spot.engines .text{
        left: 6%;
        margin-top: -35%;
    }
    #anatomy-section .animation .spot.feet .text{
        margin-top: -30%;
        left: 18%;
    }
    #anatomy-section .animation .spot.tanks .text{
        margin-top: -30%;
        left: 3%;
    }
    #anatomy-section .animation .spot.bay .text{
        width: 90%;
        left: 16%;
        margin-top: -30%;
    }
    #anatomy-section .animation .spot.door .text{
        width: 100%;
        left: 3%;
        margin-top: -40%;
    }
    
}

#anatomy-section .animation .spot .text .close {
    display: block;
    content: 'x';
    position: absolute;
    top: 0;
    right: -1px;
    font-size: larger;
    color: #9e9e9e;
    cursor: pointer;
    border-radius: 25px;
    width: 20px;
    height: 20px;
    text-align: center;
    font-weight: bold;
}



@media only screen and (max-width: 600px) {
    .animation .spot .dot {
        width: 10px;
        height: 10px;
    }
}

/* ----------- iPhone 5, 5S, 5C and 5SE ----------- */

/* Portrait and Landscape */

@media only screen and (min-width: 320px) and (max-width: 568px) and (-webkit-min-device-pixel-ratio: 2) {
    #anatomy-section {
        min-height: 500px;
    }
    .animation .spot .dot {
        width: 10px;
        height: 10px;
    }
}

/* ----------- iPhone 6, 6S, 7, 8, and Samsung Galaxy S8+ ---------- */

/* Portrait and Landscape */

@media only screen and (min-width: 375px) and (max-width: 667px) and (-webkit-min-device-pixel-ratio: 2), (min-device-width: 360px) and (max-device-width: 740px) and (-webkit-min-device-pixel-ratio: 2) {
    #anatomy-section {
        min-height: 500px;
    }
    .animation .spot .dot {
        width: 10px;
        height: 10px;
    }
}

/* ----------- iPhone X ----------- */

.animation .spot .text {
    z-index: 0;
}

.animation .spot .dot {
    z-index: 1;
}

/* Portrait and Landscape */

@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) {
    #anatomy-section {
        min-height: 500px;
    }
    .animation .text {
        box-shadow: 0px 0px 30px #ccc;
        font-size: 18px;
    }
    .toggle-all {
        display: none;
    }
    .animation .spot .line, .animation .spot .line2, .animation .spot .line3, .animation .spot .line4 {
        display: none;
    }
    .animation .spot .dot {
        width: 10px;
        height: 10px;
    }
    #anatomy-section .animation .spot .text {
        width: 90%;
        max-width: 100%;
        text-align: center;
        /* top: 40px; */
        left: 0;
        right: 0;
        /* margin: -36% auto 0; */
    }
}

/* ----------- 12 Pro ----------- */
@media only screen and (min-device-width: 390px) and (max-device-width: 844px) and (-webkit-min-device-pixel-ratio: 3) {
    #anatomy-section {
        min-height: 500px;
    }
    .animation .text {
        box-shadow: 0px 0px 30px #ccc;
        font-size: 18px;
    }
    .toggle-all {
        display: none;
    }
    .animation .spot .line, .animation .spot .line2, .animation .spot .line3, .animation .spot .line4 {
        display: none;
    }
    .animation .spot .dot {
        width: 10px;
        height: 10px;
    }
    #anatomy-section .animation .spot .text {
        width: 80%;
        max-width: 100%;
        text-align: center;
        /* top: 40px; */
        left: 0;
        right: 0;
        /* margin: -36% auto 0; */
    }
}

/* -----------Surface Duo ----------- */
@media only screen and (min-device-width: 540px) and (max-device-width: 720px) and (-webkit-min-device-pixel-ratio: 2) {
    #anatomy-section {
        min-height: 750px;
    }
    /* .animation {
        top: 60px;
        right: -70px;
    } */
    .animation .text {
        box-shadow: 0px 0px 30px #ccc;
        font-size: 18px;
    }
    .toggle-all {
        display: none;
    }
    .animation .spot .line, .animation .spot .line2, .animation .spot .line3, .animation .spot .line4 {
        display: none;
    }
    .animation .spot .dot {
        width: 10px;
        height: 10px;
    }
    #anatomy-section .animation .spot .text {
        width: 80%;
        max-width: 100%;
        text-align: center;
        /* top: 40px; */
        left: 0;
        right: 0;
        /* margin: -36% auto 0; */
    }
}


@keyframes pulse {
    0% {
        background-color: #9e0000;
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        background-color: #ff4500; /* Change to the desired "lit up" color */
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        background-color: #9e0000;
        opacity: 0.7;
        transform: scale(1);
    }
  }


 @keyframes bounce {
    0% {
        -webkit-transform: translate(0px, 0px);
        -moz-transform: translate(0px, 0px);
        -ms-transform: translate(0px, 0px);
        -o-transform: translate(0px, 0px);
        transform: translate(0px, 0px);
    }
    50% {
        -webkit-transform: translate(30px, -30px);
        -moz-transform: translate(30px, -30px);
        -ms-transform: translate(30px, -30px);
        -o-transform: translate(30px, -30px);
        transform: translate(30px, -30px);
    }
    100% {
        -webkit-transform: translate(0px, 0px);
        -moz-transform: translate(0px, 0px);
        -ms-transform: translate(0px, 0px);
        -o-transform: translate(0px, 0px);
        transform: translate(0px, 0px);
    }
}

@-webkit-keyframes bounce {
    0% {
        -webkit-transform: translate(0px, 0px);
        -moz-transform: translate(0px, 0px);
        -ms-transform: translate(0px, 0px);
        -o-transform: translate(0px, 0px);
        transform: translate(0px, 0px);
    }
    50% {
        -webkit-transform: translate(30px, -30px);
        -moz-transform: translate(30px, -30px);
        -ms-transform: translate(30px, -30px);
        -o-transform: translate(30px, -30px);
        transform: translate(30px, -30px);
    }
    100% {
        -webkit-transform: translate(0px, 0px);
        -moz-transform: translate(0px, 0px);
        -ms-transform: translate(0px, 0px);
        -o-transform: translate(0px, 0px);
        transform: translate(0px, 0px);
    }
}

.spot.active .text {
    position: absolute;
    z-index: 10;
}

.animation .spot:not(.active):hover .text {
    opacity: 0
}