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

html {
  scroll-behavior: smooth;
}

.site-wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.side{
    width: 5%;
    border-right: 5px solid black;
}

body{
    display: flex;
}



/* -------------------- NAV -------------------- */

header{
    border-bottom: 3px solid black;
}

.header-home{
    border: none;
}

nav ul{
    font-weight: 500;
    font-size: 1.25rem;
    gap: 3em;
}

.side-menu{
    z-index: 1;
    position: absolute;
    left: 0;
    width: 5%;
    height: 65px;
    border-right: 5px solid black;
    border-bottom: 3px solid black;
}

/* -------------------- MAIN -------------------- */

.apod-container{
    display: flex;
    flex-wrap: wrap;
    border-top: 4px solid black;
}

.apod-text,
.apod-image{
    height: 85vh;
}

.apod-text{
    padding: 0 0em;
    position: relative;
    width: 40%;
    padding-left: 5em;
    padding-top: 2em;
}

.apod-title{
    font-size: 8rem;
    font-family: "Oxanium", sans-serif;
    font-weight: 400;
}


.apod-see{
    padding-top: 1em;
    font-family: "Exo 2", sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(113, 113, 113, 1);
    width: 70%;
}

.apod-here{
    padding-top: 3em;
    font-family: "Exo 2", sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    width: 70%;
    color: rgba(113, 113, 113, 1);
}


.apod-image{
    width: 57%;
    height: 85vh;
    left: 43%;
    text-align: center;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    position: absolute;
    background-color: lightgray;
}

.apod-image img{
    width: 100%;
    height: 85vh;
    object-fit: cover;
}


.apod-image img:hover{
    webkit-filter: blur(3px); /* Chrome, Safari, Opera */
    filter: blur(3px);
    transition: 0.4s;
    cursor: pointer;
}





/* -------------------- CURIOSITY -------------------- */

.curiosity-container{
    background-color: rgba(2, 1, 10, 1);
    display: flex;
    flex-wrap: nowrap;
}

.curiosity-text{
    color: white;
    width: 60%;
    padding-left: 3em;
}

.curiosity-title{
    font-family: "Michroma", sans-serif;
    font-size: 6rem;
    font-weight: 500;
}

.curiosity-desc{
    padding-top: 2em;
    width: 40%;
    font-family: "Exo 2", sans-serif;
    font-size: 1.5rem;
    color: rgba(139, 139, 139, 1);
    font-weight: 300;
}

.curiosity-here{
    padding-top: 2.5em;
    font-family: "Exo 2", sans-serif;
    font-size: 1.75rem;
    color: rgba(223, 223, 223, 1);
    font-weight: 300;
}

.curiosity-images{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5em;
    padding-bottom: 20em;
}

.mars-img{
    width: 100%;
    max-width: 35em;
    margin-right: 10em;
}

.sat-img{
    width: 100%;
    max-width: 20em;
    margin-left: 12em;
    margin-top: 5em;
    transform: rotate(30deg);
}


.side-curiosity{
    min-width: 5%;
    height: 100%;
    border-right: 5px solid white;
}




/* -------------------- FOOTER -------------------- */

footer{
    width: 100%;
    background-color: rgba(2, 1, 10, 1);
    color: white;
    font-family: sans-serif;
}

footer ul{
    border-top: 1px solid white;
    height: 3em;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    padding-top: 1em;
}

footer p{
    border-top: 1px solid white;
    text-align: center;
    font-size: .8rem;
    padding-top: 1.5em;
}

.side-footer{
    position: absolute;
    width: 5%;
    height: 119px;
    background-color: transparent;
    border-right: 5px solid white;
}

.back-to-top{
    text-decoration: none;
    color: white;
}











            /* ---------------------------------------- */
/* -------------------- HOME PAGE MOBILE VERSION SECTION -------------------- */
            /* ---------------------------------------- */

        

/* -------------------- MENU MOBILE  -------------------- */

@media (max-width: 991px){
    .side-menu{
        visibility: hidden;
    }
}




/* -------------------- HOME APOD MOBILE  -------------------- */

@media (max-width: 1560px){
    .apod-title{
        font-size: 6rem;
    }
}


@media (max-width: 1200px){
    .apod-title{
        font-size: 5rem;
    }
    .apod-see{
        font-size: 1.2rem;
    }
    .apod-here{
        font-size: 1.2rem;
    }
}

@media (max-width: 980px){
    .apod-text{
        padding-top: 2em;
        padding-left: 2.5em;
    }

    .apod-title{
        font-size: 4.5rem;
    }
}

@media (max-width: 850px){
    .apod-image{
        width: 100%;
        height: 85vh;
        z-index: 0;
        position: absolute;
        left: 0;
        clip-path: none;
        filter: brightness(50%);
    }

    .apod-text{
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin: auto;
        width: 80%;
        position: relative;
        z-index: 1;
        color: white;
        padding: 0
    }
    .side-main{
        width: 0%;
        border: none;
    }
}

@media (max-width: 450px){
        .apod-title{
        font-size: 3rem;
    }
}

/* -------------------- HOME CURIOSITY MOBILE  -------------------- */

@media (max-width: 1650px){
    .sat-img{
        margin-left: 0em;
    }
    .curiosity-desc{
        width: 80%
    }

}

@media (max-width: 1100px){
    .curiosity-title{
        font-size: 4.5rem;
    }
    .curiosity-here{
        padding-top: 1em;
    }
    .sat-img{
        max-width: 13em;
    }
    .mars-img{
        max-width: 20em;
    }
    .curiosity-desc {
        color: rgb(213, 199, 199);
        width: 80%;
        font-size: 1.3rem;
    }
}



@media (max-width: 850px){
    .curiosity-images{
        position: absolute;
        left: 45%;
        z-index: 0;
        opacity: 50%;
    }
    .curiosity-title{
        z-index: 1;
        position: absolute;
    }
    .curiosity-container{
        width: 100%;
        height: 150vh;
    }

    .curiosity-text{
        max-width: 100%;
        padding: 0;
        position: absolute;
        z-index: 1;
        padding-left: 2em;
    }

    .curiosity-desc{
        margin-top: 22em;
        font-size: 1.3rem;
        width: 90%;
        color: rgb(213, 199, 199);
    }

    .side-curiosity{
        visibility: hidden;
    }
}

@media (max-width: 560px){

    .curiosity-text{
        display: flex;
        flex-direction: column;
    }
    .curiosity-title{
        width: 100%;
        font-size: 5rem;
    }

    .curiosity-desc{
        width: 100%;
        font-size: 1.2rem;
        margin-top: 25em;
        z-index: 1;
    }
}

@media (max-width: 460px){

    .curiosity-title{
    font-size: 3rem;
    }
    .curiosity-images{
        padding: 0;
        max-width: 100%;
        left: 40%
    }
    .curiosity-desc{
        margin-top: 15em;
        z-index: 1;
    }

}

@media (max-width: 330px){
    .curiosity-title{
        font-size: 2rem;
    }
    .curiosity-images{
        left: 30%;
    }
    .sat-img{
        width: 6em;
    }
}


/* -------------------- HOME FOOTER MOBILE  -------------------- */

@media(max-width: 850px){
    .side-footer{
    visibility: hidden;
    width: 0%;
    height: 0%;
}
}

@media (max-width: 400px){
    footer ul{
        font-size: .8rem;
    }
}













            /* ---------------------------------------- */
        /* -------------------- APOD PAGE -------------------- */
            /* ---------------------------------------- */


.apod-content-container{
    padding: 2em 0em 2.5em 0em;
    display: flex;
}


/* -------------------- APOD IMAGE  -------------------- */         


.apod-image-page{
    display: flex;
    justify-content: space-evenly;
}

.apod-image-page img{
    width: 50%;
    object-fit: cover;
    vertical-align: middle;
}


/* -------------------- APOD IMAGE TEXT  -------------------- */

.apod-image-text-container{
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apod-today-text{
    color: rgb(164, 151, 151);
    font-family: "Oxanium", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.apod-image-title{
    font-family: "Oxanium", sans-serif;
    font-size: 6rem;
}

.apod-text-divider{
    width: 95%;
    height: 1.5px;
    background-color: black;
    margin: 1em 0em 3em 0em;
}

.apod-image-explanation{
    font-size: 1.1rem;
    font-family: "Exo 2", sans-serif;
}


/* -------------------- APOD MOBILE  -------------------- */


@media (max-width: 950px){
    .apod-image-page{
        flex-direction: column;
        
    }
    .apod-image-page img{
        width: 100%;
        order: 1;
        padding: 0em 2em 0em 2em;
        margin-top: 3em;
    }
    .apod-image-text-container{
        width: 100%;
        border: 2px solid red;
        padding: 0em 2em 0em 2em;
    }
    .apod-text-divider{
        width: 80%;
    }
}

@media (max-width: 400px){
    .apod-today-text{
        font-size: 1.1rem;
    }
    .apod-image-title{
        font-size: 4rem;
    }
    .apod-image-explanation{
        font-size: 1rem;
    }
}






            /* ---------------------------------------- */
        /* -------------------- CURIOSITY PAGE -------------------- */
            /* ---------------------------------------- */

.latest-curiosity-photo-container{
    display: flex;
    gap: 4em;
    padding-top: 3em;
}

.about-curiosity{
    padding-left: 5em;
    width: 55%;
    
}
.about-curiosity-title{
    font-family: "Oxanium", sans-serif;
    font-size: 6rem;
    border-bottom: 2px solid black;
    width: 875px;
    max-width: 100%;
}

.latest-curiosity-photo-desc{
    width: 90%;
    font-family: "Exo 2", sans-serif;
    font-size: 1.3rem;
    padding-top: 2em;
}

.about-curiosity-call h2{
    width: 875px;
    max-width: 100%;
    margin-top: 3em;
    font-family: "Exo 2", sans-serif;
}

.about-curiosity-call p{
    margin-top: 1.5em;
    font-family: "Exo 2", sans-serif;
    font-size: 1.2rem;
}

.MSP-input-container{
    margin-top: 5em;
    margin-bottom: 2em;
    text-align: center;
}

.curiosity-date-submit-btn{
    border: 1px solid black;
    background-color: rgb(242, 237, 237);
    padding: 3px 8px;
    cursor: pointer;
    transition: 0.3s;
}

.curiosity-date-submit-btn:hover{
    transition: 0.3s;
    color:white;
    background-color: black;
}


.latest-curiosity-photo{
    display: flex;
    flex-direction: column;
    width: 38%;
}

.latest-curiosity-photo img{
    max-width: 100%;
}

.mars-small-pictures-container{
    padding-bottom: 5em;
}

.mars-small-pictures{
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    width: 1800px;
    max-width: 100%;
    margin: auto;
}


.mars-small-pictures img{
    width: 250px;
}

.mars-small-pictures img:hover{
    transform: scale(1.05);
}



/* -------------------- CURIOSITY MOBILE  -------------------- */

@media (max-width: 990px){
    .latest-curiosity-photo-container{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .about-curiosity{
        width: 100%;
        padding: 0em 5em 0em 5em;
    }
    .about-curiosity-title{
        max-width: 85%;
    }
    .latest-curiosity-photo{
        width: 90%;
    }
}

@media (max-width: 550px){
    .about-curiosity-title{
        font-size: 4rem;
    }
    .latest-curiosity-photo-desc{
        font-size: 1rem;
    }
    .about-curiosity-call h2{
        font-size: 1.5rem;
    }
    .about-curiosity-call p{
        font-size: .8rem;
    }
}

@media (max-width: 450px){
    .about-curiosity{
        padding: 0em 2em 0em 2em;
    }
    .about-curiosity-title{
        font-size: 2rem;
    }
    .latest-curiosity-photo-desc{
        font-size: .8rem;
    }
    .MSP-input-container{
        padding: 0em 2em 0em 2em;
    }
}




            /* ---------------------------------------- */
        /* -------------------- ABOUT PAGE -------------------- */
            /* ---------------------------------------- */

.about-container{
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid black;
    
}

.about-side{
    height: 81vh;
}

.about-text{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    gap: 1em;
}

.about-title{
    font-family: "Oxanium", sans-serif;
    font-size: 4rem;
    border-bottom: 2px solid black;
    margin-bottom: .5em;
}

.about-desc{
    font-family: "Exo 2", sans-serif;
    font-size:  1.1rem;
}


/* -------------------- ABOUT MOBILE  -------------------- */

@media (max-width: 1700px){
    .about-text{
        width: 60%;
        padding: 2em 0em 4em 0em;        
    }
    .about-side{
        height: 100%;
    }
}



@media (max-width: 992px){
    .about-side{
        display: none;
    }
}



/* -------------------- FADE ANIMATION  -------------------- */

@keyframes fadeInUp {
  0% {
    transform: translateY(2%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.fadeInUp-animation {
  animation: 1s fadeInUp;
}