body { /*Aqui se manipula o background*/
    margin:0;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    background-image: url(https://sxcontent9668.azureedge.us/cms-assets/assets/Mars_Web_8fafe15a48.jpg);
    background-position: center 30%;
    background-size: 100%;
    overflow: hidden;
}

header {
    position: relative;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.logo img { /*Define valores da imagem*/
    height: 210px;
    width: auto;
    display: block;
}

.logo { /*Define área clicável da imagem*/
    height: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.menu { /*Classe dentro do header com as opções*/
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex: 1;
    flex-wrap: nowrap;
    flex-direction: row;
    min-width: 0;
}

.opcao { /*Classe para qualquer elemento clicável (só funciona o hover)*/
    display: flex;
    position: relative;
    justify-content: left;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    color: lightgray;
    white-space: nowrap;
    min-width: 20px;
}

.submenu { /*Apenas dos itens do menu*/
    list-style: none;

    padding: 0;
    opacity: 0;
    position: absolute;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    top: 30%;
    left: 0;
    transform: translateY(-100px);
    gap: 8px;
    transition: all 0.5s linear;
}

.menu > .opcao + .opcao { /*Adiciona uma margem aos elementos do header sem afetar a distância da imagem*/
    margin-left: 35px;
}

.opcao:hover .submenu { 
    opacity: 1;
    transform: translateY(10px)
}

.opcao:hover { 
    color: whitesmoke;
}

.temsub::after { /*Adiciona a seta apenas para as opções do menu que possuem um submenu*/
    content: "˅";
    position: absolute;
    right: -15px;
    font-size: 15px;
    opacity: 0;
}

.temsub:hover::after {
    opacity: 1;
}

.upcoming { /*Seção na direita do header (separado do menu*/
    position: relative;
    margin-left: auto;
    margin-right: 110px;
    font-size: 10px;
    color: lightgray;
    border: 0.3px solid grey;
    border-radius: 2px;
    display:block;
    padding: 8px 10px;
    font-weight: 600;
}

.upcoming::after { /*Mesmo modelo da seta nos itens do menu*/
    margin-left: 100px;
    font-size: 15px;
    content: "˅";
    color: whitesmoke;
}

.missions { /*Submenu lateral da seção upcoming*/
    margin-top: 20px;
    font-weight: 400;
    transform: translateX(200px);
    gap: 50px;
    transition: all 0.5s linear;
}

.opcao:hover .missions { 
    opacity: 1;
    transform: translateX(10px)
}

.sublogo img{ /*Controle da imagem no submenu*/
    height: 70px;
    width: 70px;
    border-radius: 10px;
    margin-right: 10px;
}

.launch { /*Variante da classe opção para a seção upcoming*/
    border-bottom: 0.3px solid gray;
    margin-bottom: -25px;
    padding: 10px;
}

.launch::after { /*Mesmo modelo de antes*/
    content: "→";
    position: absolute;
    font-size: 20px;
    right: -10px;
    opacity: 0;
}

.launch:hover::after {
    opacity: 1;
}   

.rodape img{ /*Tecnicamente não é um footer mas achei mais fácil de nomear assim (É o que aparece na última linha do submenu missions*/
    height: 15px;
    width: auto;
    margin-right: 10px;
}

.rodape {
    margin-left: 80px;
    font-weight: 400;
    margin-top: 0px;
}

.desc { /*Subtexto abaixo das opções da seção upcoming*/
    font-size: 12px;
    font-weight: 300;
    color: gray;
}

.texto { /*Corpo que terá o título e descrição dentro da opção launch*/
    display: flex;
    flex-direction: column;
    gap: 10px;
    white-space: normal;
    font-weight: 700;
    font-size: 15px;
}

.centro { /*Divisa que contém o texto central*/
    height: 850px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.centroTexto { /*Corpo que contém o título e descrição central*/
    max-width: 700px;
    margin-right: auto;
    margin-left: 10%;
}

.tituloCentro {
    font-size: 75px;
    font-weight: 600;
    color:whitesmoke;
    line-height: 1;
    margin-bottom: 20px;
}

.descCentro {
    font-size: 16px;
    font-weight: 400;
    color:lightgray;
    line-height: 1.5;
    margin-bottom: 35px;
}

.opcaoCentro { /*A opção EXPLORE que fica abaixo da descrição central*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: lightgray;
    border: 0.3px solid grey;
    max-width: 120px;
    padding: 15px 20px;
    border-radius: 5px;
    transition: background-color 0.5s ease;
}

.opcaoCentro::after { /*Tentei fazer uma animação simples para seta*/
    content: "→";
    margin-left: 10px;
    font-size: 15px;
    margin-top: -2px;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.opcaoCentro:hover {
    background-color: whitesmoke;
    color: black;
}

.opcaoCentro:hover::after {
    transform: translateX(8px);
    opacity: 0.6;
    color: black;
}

.toggle { /*Ícone que representa o menu compacto*/
    margin-left: auto;
    margin-right: -20px;
    display:none;
    flex-direction: column;
    gap: 6px;
}

.toggle span { /*Linhas do icone do menu*/
    display: block;
    width: 25px;
    height: 0.5px;
    background: lightgray;
}

@media (max-width: 1420px) { /*Talvez mudar max-width?*/

    .menu, .upcoming { /*Tudo no header exceto a logo somem*/
        display: none;
    }

    header {
        justify-content: left;
        padding: 0;
        margin-left: -30px;
    }

    .toggle { /*Ícone do menu aparece*/
        display: flex;
    }

    .centro { /*Joga o conteúdo do centro para baixo*/
        align-items: end;
        justify-content: left;
        margin-top: -140px;
    }

    .centroTexto {
        margin: 0;
        padding: 16px;
        max-width: 450px;
    }

    .tituloCentro {
        font-size: 30px;
        margin-bottom: 5px;
        line-height: 1.1;
    }

    .descCentro {
        margin-bottom: 10px;
        font-size: 15px;
        font-weight: 500;
    }

    .opcaoCentro {
        padding: 15px 17px;
    }

    body { /*Ajusta a imagem do background para cima*/
        background-position: 50% 10%;
        background-size: 230%;
        background-repeat: no-repeat;
        background-color: black;
    }
}
