* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {

    color: beige;
    background-color: black;
    font-family: 'Abel', sans-serif;
}

header {
    background-color: black;
   position: fixed;
   z-index: 3;
}

 #headerDiv {
    width: 100vw;     
    display: flex;
    align-items: center;
    margin: 30px 0 0;
    margin-left:5vw;
    
}
#logoNasa {
    height: 100px;
    margin-right: 15px;
    width: auto;
}
#apodLink{
    text-decoration: none;
    color: beige;
}
.headerNav{
    
    text-align: right;
    position: absolute;
    right: 8vw;
    bottom: -1vh;
    background-color: black;
    margin-bottom: 10px;
}
.headerLink{
    text-decoration: none;
    font-size: 20px;
    color: beige; 
    padding: 3px;      
    border-radius: 5px;
   
      
}
.headerLink:hover{
    background-color: rgba(230, 76, 76,0.4);
}
main {
   
}

#textContent {
    color:beige;
    position: absolute;
    top: 22vh;
    left: 5vw;
    width: 60vw;
    
    font-family: 'Roboto', sans-serif;
    margin: 0 auto;
    line-height: 1.5;
    text-align: left;
    font-size: 60px;
    text-shadow: black 5px 5px 15px;

}

#mainText {}

#secondText {
    position: absolute;
    top: 22vh;
    left: 20vw;
    font-size: 30px;
    display: none;

}


.bulletP {
    width: 35vw;
    text-align: justify;

}


#planetImgContainer {
    overflow:hidden;
}

#backgroundPlanet {
    transform: translateY(150px);
    width: 100vw;
    opacity: 0.7;


}

.roverSpan {
    color: beige;
    font-size: 25px;
    background-color: rgba(11, 11, 11, 0.3);
    padding: 15px 20px;
    border-radius: 20px;
    width: fit-content;
    border-style: solid;
    border-width: 0.5px;
    border-color: beige;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
}

#linksContainer {
    position: absolute;
    bottom: -6vh;
    width: 98vw;
    display: flex;
    justify-content: space-evenly;


}

#linksContainer a {
    text-decoration: none;
}

.missionData {
    font-family: 'Abel', sans-serif;
    font-size: 25px;
    padding: 40px 0px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;

}

.cardDiv1 {
    width: 40vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 40px;
}

.missionDescription {
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
    width: 30vw;
}

.cardDiv2 {
    font-size: 20px;
    line-height: 40px;


}

.redColor {
    color: rgb(230, 76, 76);
}

.imagenRover {
    width: 15vw;
    height: auto;
}

#contenedorMisionSpirit {
    display: block;
    position: relative;
}

#contenedorMisionSpirit::after {
    content: "";
    background: url('../assets/5137483_021319-wls-ap-opportunity-shadow-img.jpg');
    opacity: 0.3;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}

#contenedorMisionOpportunity::after {
    content: "";
    background: url('../assets/6010_PIA17944_Mcam-SOL538-WB-full2.jpg');
    background-repeat: no-repeat;
    background-size: 110vw;
    background-position: center;
    background-position-y: 30%;
    opacity: 0.3;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}

#contenedorMisionOpportunity {
    display: block;
    position: relative;
}


#contenedorMisionCuriosity {
    display: block;
    position: relative;
}

#contenedorMisionCuriosity::after {
    content: "";
    background: url('../assets/2-PIA24937-A_Picture_Postcard_from_Curiositys.width-1320.png');
    background-repeat: no-repeat;
    background-size: cover;

    opacity: 0.3;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}

.twins {
    transform: translate(10px, 20px);
}

.loner {
    transform: translate(0px, 65px) rotate(14deg) scale(1.5, 1.5);
}

.imgLinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: beige;

}

.missionLinks {
    margin-top: 20px;
    display: inline-block;
    font-size: 25px;
    background-color: rgb(124 45 35 / 36%);
    padding: 10px 40px;
    border-radius: 20px;
    width: fit-content;
    border-style: solid;
    border-width: 0.5px;
    border-color: dimgray;
    text-align: center;
}
.missionLinks:hover{
    background-color: rgba(230, 76, 76,0.3);;
}
.missionLinks p {
    font-size: 20px;
}

#curiosityLink .missionLinks {
    position: relative;
    left: 10vw;
    top: 30px;
}
@media(max-width: 375px){
    header{
        position: initial;
    }
    #headerDiv{
        display: flex;
        flex-flow: wrap column;
        align-items: center;
        margin:20px 0 ;
    }
   h1 {
    font-size: 1.6em;;
   }
   h2{
    font-size: 1.6em;
       
   }
   .headerNav {
    position: relative;      
    display: none;
   }
   .headerNav a{
    display: block;
    text-align: left;
   }
   main br {
    display: none;
    
}
   #backgroundPlanet{
   transform: none; 
   opacity: 1;    
   }
   #textContent{
    position: initial;
    font-size: 20px;
    width: 100vw;
    padding-left: 5vw;
    padding-right: 5vw;
    margin: 40px 0;
    text-align: center;
   }
   .missionData {
 flex-direction: column; 
 justify-content: space-evenly;
   }
   .missionData a{
    order: 3;
   }
   .missionData a div{
    order: -1;
   }
   .twins {
    transform: translate(0px, 20px);
}
   .cardDiv1 {
    line-height: normal;
    width: 100vw;
    margin-bottom: 15px;
   }
   .missionDescription{
    width: 90vw;
    font-size: 15px;
   }
   .cardDiv2{
    text-align: center;
    font-size: 15px;
   }
   .cardDiv2 br{
    display:block; 
   margin-bottom: 0em;
   }
   .imagenRover {
    width: 25vw;
    height: auto;
    }
    #contenedorMisionSpirit::after{
        background-size: 100vw;
        background-repeat: no-repeat;
        opacity: 0.5;
        background-position-y: -20px;

    }
    #contenedorMisionOpportunity::after{
        background-size: 110vw;
        background-repeat: no-repeat;
        background-position-y: 12px;

    }
    #contenedorMisionCuriosity::after{
        background-size: 100vw;
        background-repeat: no-repeat;  
    }
    #curiosityLink .missionLinks{
        left:0;
    }
}