/* Poppins */ @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* Almarai */ @import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

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

body{
    background-color: black;
    font-family: "Poppins", sans-serif;
    color: white;
}

button{
    cursor: pointer;
}

.cap{
    background-image: url('../img/img-pagina-inicial.jpeg');
    font-family: "Almarai", sans-serif;
    height: 50rem;
    object-fit: cover;
    border-bottom: 5px red solid;
}

.title{
    display: flex;
    flex-direction: column;
    text-align: end;
    position: absolute;
    top: 10%;
    right: 7%;
}

.title-arquivos{
    font-size: 2.5rem;
    font-weight: 900;
}

.title-serial, .title-killers{
    font-size: 7rem;
    font-weight: 800;
    margin-top: -3%;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 12%;
}

.areas{
    position: absolute;
    right: 5%;
    top: 86%;
}

.pages{
    display: flex;
    flex-direction: row;
    margin-top: 30px;

}

.pages button{
    background-color: transparent;
    color: white;
    padding: 25px 3rem;
    font-size: 20px;
    border: none;
}

.pages button.active{
    color: red;
    border-bottom: 2px solid red;
}

.pages hr{
    border: red 2px solid;
}

.text{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    margin-top: 11%;
    font-size: 1.5rem;
    width: 80%;
    text-align: initial;
    color: white;
}

.text h1{
    font-size: 5.5rem;
    font-weight: 400;
    margin-bottom: 2%;
}

.page-principal{
    display: block;
}

.text p{
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 2.3rem;
}

span{
    color: red;
}

.table{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 7%;
    width: 100%;
}

.persons {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    margin-top: 110px; 
    max-width: 1600px; 
}

.card-person {
    background-color: #111;
    border: 1px solid red;
    border-radius: 10px;
    padding: 20px;
    text-align: initial;
    width: 250px;
    align-items: center;
}

.img-person {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    filter: grayscale(100%);
}

.card-person h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: white;
}

.card-person p {
    margin-bottom: 15px;
    color: #ccc;
}

.card-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-btn{
    background-color: #930000;
    color: white;
    border: none;
    padding: 3px 50px;
    border-radius: 5px;
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
}

.save-btn{
    background-color: black;
    border: 2px solid red;
    padding: 5px 10px;
    border-radius: 10px;
}

.save-btn img {
    width: 25px;
    height: 32px;
}

.buttons{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

.types{
    display: flex;
    flex-direction: row;
    margin-right: 700px;
}

.types button{
    background-color: transparent;
    color: white;
    padding: 25px 5rem;
    font-size: 30px;
    border: none;
}

.types button.active{
    color: red;
}

.types hr{
    border: red 2px solid;
}

.input-save{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.div-pesquisa{
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: rgb(94, 94, 94);
    padding: 10px 10px;
    gap: 10px;
    border-radius: 50px;
}

.div-pesquisa img{
    width: 30px;
}

.div-pesquisa input{
    background-color:  transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
}

.div-pesquisa input::placeholder{
    color: rgb(223, 223, 223);
    font-family: "Poppins", sans-serif;
}

.saves{
    padding: 15px;
    background-color: transparent;
    border: red 2px solid;
    border-radius: 20px;
}

.saves img{
    width: 50px;
    height: 60px;
}

.dev{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10%;
}

.perfil{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 70px;
    margin-bottom: 7%;
}

.perfil-img img{
    width: 400px;
    height: 400px;
    border-radius: 100%;
    object-fit: cover;
    box-shadow: -5px 5px 1px red;
}

.perfil-text h2{
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 50px;
}

.perfil-text p{
    font-size: 1.2rem;
    font-weight: 300;
    width: 800px;
}

.acess{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 10%;
}

.acess h2{
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 50px;
}

.cards-redes{
    display: flex;
    flex-direction: row;
    gap: 200px;
}

.card{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card a{
    color: white;
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 10px;
    text-decoration: none;
}

.card img{
    width: 150px;
    height: 150px;
}

footer{
    display: flex;
    flex-direction: row;
    background-color: #110000;
    border-top: 3px red solid;
    color: white;
    align-items: center;
    gap: 40px;
    padding: 50px 10px;
    justify-content: center;
}

.direitos{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

footer hr{
    height: 180px;
}

.redes{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.buttons-footer img{
    width: 50px;
    height: 50px;
    margin: 0 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    display: flex;
    flex-direction: row;
    background-color: #111;
    margin: 13% auto;
    border: 5px solid red;
    width: 100%;
    max-width: 800px;
    color: white;
    text-align: center;
    border-radius: 40px;
    gap: 30px;
}

.close {
    color: red;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 32%;
    top: 29%;
}

.close:hover {
    color: #fff;
}

#modal-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 40px;
}

.text-modal{
    display: flex;
    flex-direction: column;
    text-align: initial;
    margin-top: 25px;
    margin-right: 30px;
}

#modal-nome {
    font-size: 2rem;
    margin-bottom: 10px;
}

#modal-nascimento {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#modal-descricao {
    font-size: 0.9rem;
    line-height: 1.4;
}

.salvos-section {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


.salvos-section.active {
    display: flex;
}

.save-btn.saved {
    background-color: red;
    border: 2px solid red;
}

/* --- RESPONSIVIDADE MOBILE --- */

@media (max-width: 768px) {
    /* Ajuste da Capa e Títulos */
    .cap {
        height: 16rem; /* Reduz a altura na mobile */
        background-position: center;
    }

    .title {
        right: 5%;
        top: 5%;
        text-align: center;
        width: 90%;
    }

    .title-arquivos {
        font-size: 1.5rem;
    }

    .title-serial, .title-killers {
        font-size: 3.5rem; /* Diminui o texto gigante */
        margin-top: 0;
    }

    /* Navegação e Botões de Menu */
    .pages {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .pages button {
        padding: 10px 1.5rem;
        font-size: 16px;
    }

    .areas {
        position: relative; /* Remove o absolute para não sobrepor */
        top: 0;
        right: 0;
        margin-top: 20px;
        text-align: center;
    }

    /* Seção de Texto */
    .text {
        width: 90%;
        margin-top: 20%;
        font-size: 1.1rem;
    }

    .text h1 {
        font-size: 2.5rem;
    }

    .text p {
        font-size: 1.1rem;
        line-height: 1.8rem;
    }

    /* Barra de Pesquisa e Filtros */
    .buttons {
        flex-direction: column; /* Empilha os filtros e a busca */
        gap: 30px;
    }

    .types {
        margin-right: 0;
        justify-content: center;
        width: 100%;
    }

    .types button {
        padding: 15px 1.2rem;
        font-size: 20px;
    }

    .input-save {
        flex-direction: column;
        width: 100%;
    }

    .div-pesquisa {
        width: 80%;
    }

    .div-pesquisa input {
        width: 70%;
        min-width: 90px;
        max-width: 200px;
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .saves {
        padding: 12px;
    }

    .saves img {
        width: 30px;
        height: 40px;
    }

    /* Cards dos Personagens */
    .persons {
        gap: 15px; /* Espaçamento menor entre os cards */
        padding: 0 10px;
    }

    .card-person {
        width: 160px; /* Largura reduzida para caber dois lado a lado em telas médias */
        padding: 12px;
        border-radius: 8px;
    }

    .img-person {
        width: 100%; /* A imagem se ajusta ao novo tamanho do card */
        height: 140px; /* Altura menor para manter a proporção */
        margin-bottom: 8px;
    }

    .card-person h3 {
        font-size: 0.9rem; /* Nome do serial killer menor */
        margin-bottom: 4px;
    }

    .card-person p {
        font-size: 0.75rem; /* Descrição curta menor */
        margin-bottom: 10px;
    }

    .info-btn {
        padding: 4px 15px; /* Botão mais delicado */
        font-size: 0.8rem;
        width: 70%;
    }

    .save-btn {
        padding: 4px 8px;
    }

    .save-btn img {
        width: 18px;
        height: 22px;
    }

    /* Footer */
    footer {
        flex-direction: column;
        text-align: center;
    }

    footer hr {
        height: 2px;
        width: 80%;
    }

    /* Modal Responsivo */
    .modal-content {
        flex-direction: column; /* Imagem em cima, texto embaixo */
        width: 95%;
        margin: 20% auto;
        padding-bottom: 20px;
    }

    #modal-img {
        width: 100%;
        height: 250px;
        border-radius: 35px 35px 0 0;
    }

    .text-modal {
        margin: 0 20px;
    }

    .close {
        right: 10%;
        top: 13%;
        background: black;
        border-radius: 50%;
        padding: 0 10px;
    }

    .perfil{
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .perfil-img img{
        width: 300px;
        height: 300px;
    }

    .perfil-text h2{
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .perfil-text p{
        font-size: 0.9rem;
        width: 300px;
    }

    .cards-redes{
        flex-direction: row;
        gap: 40px;
        margin: 0 auto;
    }

    .card{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card img{
        width: 50px;
        height: 50px;
    }

    .card h3{
        font-size: 0.7rem;
    }

     /* Ajuste para a seção de acessibilidade */
     .acess {
         margin-bottom: 20%;
     }

     .acess h2 {
         font-size: 1.5rem;
     }
}