/* ESTILO GERAL ======================================*/

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

body{
    background-color: #000a20;
}

.interface {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding-left: 5rem;
    padding-right: 5rem;
}

.flex{
    display: flex;
}

.txt {
    color: white;
    font-family: "Poppins", serif;
    font-weight: 300;
    font-style: normal;
    flex: 1;
}

.txt h1{
    font-family: "Bebas Neue", serif;
    font-weight: 400;
    font-style: normal;   
    margin-bottom: 2%;
    font-size: 90px;
}

.txt h2{
    font-size: 36px;
}

.txt h4{
    font-size: 28px;
    margin-bottom: 2%;
    color:rgba(240, 248, 255, 0.523)
}

.txt p{
    margin-bottom: 2%;
    font-size: 20px;
}
.txt li{
    margin-bottom: 1%;
    margin-left: 5%;
    font-size: 20px;
}

.txt strong {
    font-weight: 700;
}


/* ESTILO DO CABEÇALHO  =================================================================*/


.menu-icon {
    display: none;
    font-size: 40px;
    color: rgb(147, 175, 234);
    cursor: pointer;
    position: absolute;
    top: 2.5vh;
    right: 20px;
    z-index: 1001;
}

#menu-toggle {
    display: none;
}

.menu-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(5, 5, 59, 0.9);
    width: 30%;
    z-index: 1000;
    height: 100%;
    text-align: right;
    padding: 1vh 5vw;
}

.menu-txt {
    margin-top: 10vh;
}

.menu-mobile ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.menu-mobile ul li {
    padding-top: 10%;
    width: 100%;
}

.menu-mobile a {
    text-decoration: none;
    color: rgb(165, 203, 239);
    font-size: 24px;
    display: block;
}

#menu-toggle:checked + .menu-icon + .menu-mobile {
    display: block;
}

header{
    background-color: #001a55;
    width: 100%;
}

header .cabecalho{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo img{
    width: 200px;
    height: auto;
}

header a{
    color: rgb(165, 203, 239);
    font-family: "Bebas Neue", serif;
    font-weight: 400;
    font-style: normal;   
    text-decoration: none;
}

header nav ul li a{
    font-size: 30px;
    display: inline-block;
    transition: .2s;
}

header nav ul li a:hover{
    color: #A3D7EC;
    transform: scale(1.1);
}

header nav ul{
    list-style-type: none;
    display: flex;
    gap: 3vw;
}

header nav ul li{
    padding: 0;
}


/* ESTILO DO RODAPE =====================================================================*/

footer{
    background:
        linear-gradient(to right, #0a2641, #2e0d1b);
    padding-left: 10vw;
    padding-right: 10vw;
    padding-top: 6vh;
}


footer .rodape .flex{
    align-items: center;
    justify-content: space-between;
}

footer .rodape img{
    height: auto;
    width: 15vw;
    max-width: 200px;
}

footer .rodape .txt{
    padding-top: 5vh;
    color: rgb(87, 113, 168);
    text-align: center;
}

footer .rodape .txt p{
    font-size: 18px;
}

/* ESTILO DA PAGINA DE INICIO ===========================================================*/

section.topo-site {
    background-image: url("components/images/castle_main_background.png");
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    height: 60vh; 
    padding: 2vh 5vw; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section.topo-site .flex {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section.topo-site .flex .txt {
    flex: none;
    max-width: 70%;
    text-align: center;
}

.imagem-topo-site {
    display: flex;
    justify-content: center;
}

.imagem-topo-site img {
    width: 100vw; 
    max-width: 400px;
}


.topo-site .flex .txt{
    max-width: 70%;
}

.topo-site .txt h1{
    font-size: 10vw;
}

.topo-site .txt p{
    font-size: 2vh;
    margin: 1vh 0;
    padding-left: 20%;
    padding-right: 20%;
    text-align: center;
}

.botao button{
    margin: 2vh 0;
    padding: 10px 40px;
    color: white;
    font-size: 3vh;
    font-family: "Poppins", serif;
    font-weight: 400;
    font-style: normal;
    background-color: rgb(35, 78, 216);
    cursor: pointer;
    transition: .2s;
    clip-path: polygon(
        10% 5%, 90% 5%, 
        100% 50%, 90% 95%, 
        10% 95%, 0% 50%
    );
}

.botao button:hover{
    box-shadow: 0px 0px 8px rgb(95, 131, 250);
    transform: scale(1.1);
}

.descricao {
    position: relative;
    padding: 8vh 10vw;
    background-image: 
        linear-gradient(rgba(11, 31, 73, 0.8), rgba(11, 31, 73, 0.8)),
        url("components/images/castle_dot_element_double.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.descricao::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(0, 10, 32, 0.8), rgba(0, 10, 32, 0.8)),
        url("components/images/castle_dot_element_double.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(8px);
}

.descricao > * {
    position: relative;
    z-index: 1;
}

.descricao .interface .resumo .txt p{
    text-align: start;
    font-size: 18px;
    z-index: 1;
}

.descricao .flex {
    justify-content: center;
}

.descricao .flex .box {
    max-width: 300px;
}

.descricao-desafios {
    padding: 8vh 10vw;
}

.descricao-niveis {
    padding: 8vh 10vw;
    background-color: #051438;
}

.desafios .flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;            
    gap: 10%;                      
    margin-bottom: 3vh;
}

.desafios img{
    max-width: 600px;
    width: 45%;
    height: auto;
    justify-self: center;      
}

/* ESTILO BOX GRADIENTE GERAL ===========================================================*/


.box{
    background:
        linear-gradient(135deg, #0a2641, #2e0d1b);
    padding: 1em;
    border: 2px solid;
    border-image: linear-gradient(135deg, #439bdb 0%, #f4505d 100%) 1;
    box-shadow: 0px 0px 50px 10px rgba(100, 128, 218, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    justify-content: space-between;
}

/* ESTILO PROJETO =======================================================================*/

.projeto .solucao{
    background-color: #051438;
}

.projeto .interface .txt {
    padding-top: 5%;
    padding-bottom: 5%;
}

.projeto .objetivos .flex{
    flex-wrap: wrap;
    justify-content: center;
}

.projeto .objetivos .interface .box{
    margin-top: 5%;
    margin-bottom: 5%;
}

.projeto .box .flex img{
    width: 300px;
    height: 300px;
    padding: 3% 3%;
    align-items: center;
    display: block;
}

.projeto .equipe {
    background-color: #051438;
    padding-bottom: 3%;
}
.equipe-membros .interface{
    padding: 5% 10%;
}

.equipe .box {
    margin: 2%;
}

.flex-equipe .box h2{
    font-size: 18px;
    margin-top: 10%;
    margin-bottom: 3%;
}

.flex-equipe .box p{
    font-size: 16px;
    text-align: center;
}

.flex-equipe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-items: center;
    justify-content: center;
}

.flex-equipe img{
    height: auto;
    width: 200px;
}

/* ESTILO noticias =======================================================================*/

.noticias .interface .txt h1{
    padding-top: 2rem;
}

.noticias .box {
    padding: 5%;
    margin-top: 8%;
}

.noticias img {
    width: 45%;
    height: auto;
    margin: 2%;
}

.noticias .txt h2 {
    margin-bottom: 2%;
}

.flex-imagens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* ESTILO DEMOS =========================================================================*/

.demos .box {
    padding: 5%;
    margin-top: 8%;
}

.demos .txt h2 {
    margin-bottom: 2%;
}

/* ESTILO PARA DISPOSITIVOS MOBILE ======================================================*/

@media (max-width: 768px) {
    .menu-desktop {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .txt h1{
        font-size: 36px;
    }
    .txt h2{
        font-size: 24px;
    }
    .txt h4{
        font-size: 20px;
    }
    .txt p{
        font-size: 16px;
    }
    .txt li{
        font-size: 16px;
    }

    .interface{
        padding: 1% 1%;
    }

    header .cabecalho {
        padding: 0% 1%;
    }
    header .logo img {
        width: 150px;
        height: auto;
    }

    .topo-site{
        max-height: 50vh;
    }
    .topo-site .interface .flex {
        max-width: 80vw;
        max-height: 50vh;
    }
    .topo-site .interface .flex .txt h1 {
        font-size: 15vw;
    }
    .topo-site .interface .flex .txt p {
        font-size: 18px;
    }

    .topo-site .interface .flex .txt .botao button{
        font-size: 20px;
    }

    .descricao .interface .resumo .txt p{
        font-size: 20px;
        z-index: 1;
    }

    .desafios .flex {
        display: flex;
        flex-direction: column;
        align-items: flex-start;            
        gap: 3vw;                      
    }

    .desafios img{
        width: 100%;
        height: auto;
        justify-self: center;      
    }

    .projeto .objetivos .interface .box img {
        width: 200px;
        height: 200px;
        margin: 5%;
    }

    .projeto .box {
        margin: 2%;
    }
    .projeto .equipe .box img {
        width: 120px;
        height: 120px;
    }

    .projeto .equipe .box .txt h2{
        font-size: 11px;
    }
    .projeto .equipe .box .txt p{
        font-size: 9px;
    }

    .projeto .interface {
        padding: 6% 8%;
    }

    .demos .interface {
        padding: 6% 8%;
    }
    .demos iframe {
        width: 80%;
        height: auto;
    }

    .noticias img {
        width: 90%;
        height: auto;
        margin-bottom: 3%;
        margin-top: 3%;
    }

    footer .rodape .txt p{
        font-size: 10px;
    }
}