@import url('style-menu.css');
@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');

/* Colors variáveis */
:root{
    --color-box: #f4f4f4a2;

    --color-azul: #3F49EA;
}

/* Areas Principais:  */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
}

main {
    width: 100%;
    height: 100vh;
    padding-top: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Box:  */
.container__box {
    width: 90%;
    height: 95%;
    background-color: var(--color-box);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.titulo{
    width: 100%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.titulo h1{
    font-size: 30px;
    font-weight: 600;
}

.conteiner__cards {
    width: 91.5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    overflow-y: auto;
}

/* Cards:  */
.card {
    max-width: 100%;
    width: 320px;
    height: 490px;
    background-color: white;
    border-radius: 10px;
    border: 2px solid var(--color-azul);
    transition: transform 0.9s ease-in-out, box-shadow 0.9s ease-in-out;
    box-shadow: 1px 5px 10px rgba(0, 0, 0, 0.733);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.img-ult{
    width: 80%;
    height: auto;
    border-radius: 10px;
}

.nome-card {
    position: relative;
    width: 100%;
    height: 70px;
    max-height: 70px;
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
    overflow-y: auto;
    text-align: center;
}

.por-cima-card{
    width: 100%;
    height: 100%;
    background-color: transparent;
    position: relative;
}

.parte-superior{
    width: 100%;
    height: 50%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.parte-inferior {
    width: 100%;
    height: 50%;
    position: relative; 
    overflow: hidden;
    background-color: transparent ;
}

.linha-decorativa-1 {
    width: 12px;
    height: 185px;
    background-color: var(--color-azul);
    position: absolute;
    border-radius: 10px 10px;
    transform: rotate(68deg);
    top: 25%;
    left: 21%;
}

.container__decorativo {
    width: 200px;
    height: 23rem;
    background-color: var(--color-azul);
    position: absolute;
    top: 20%;
    left: 30%;
    transform: rotate(69deg);
}

.linha-decorativa-2 {
    width: 12px;
    height: 185px;
    background-color: white;
    position: absolute;
    top: -5%;
    left: 5%;
    border-radius: 10px 10px;
}

.meu-botao {
    background-color: white;
    color: #3F49EA;
    padding: 15px 50px;
    border: 1px solid var(--color-azul);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    z-index: 2;
    top: 40%;
    position: relative;
    left: 22%;
}
.meu-botao:hover {
    background-color: var(--color-azul); 
    color: white;
    border: 2px solid white;
}


/* MODAL:  */
/* FUNDO ESCURO */
.custom-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

/* MODAL BASE */
.custom-modal {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* CONTAINER GERAL DO MODAL  */
.modal-wrapper {
  position: relative;
  width: 70vw;
  height: 60vh;
  max-width: 1000px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* BOTÃO FECHAR */
.btn-fechar {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: 2px solid var(--color-azul);
  border-radius: 50px;
  padding: 5px 10px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  color: var(--color-azul);
  transition: 0.3s;
}

.btn-fechar:hover {
  background: var(--color-azul);
  color: white;
}

/* CONTEÚDO DO MODAL: IMAGEM + TEXTO  */
.modal-content {
  display: flex;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* LADO ESQUERDO: IMAGEM  */
.modal-left {
  width: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-left img {
  width: 90%;
  height: auto;
  border-radius: 10px;
}

/*  LADO DIREITO: TEXTO */
.modal-right {
  width: 50%;
  padding: 20px 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-text-content {
  width: 100%;
  max-height: 290px;
  overflow-y: auto;
  text-align: justify;
}

.modal-text-content h2 {
  color: var(--color-azul);
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
}

.modal-text-content p {
  font-size: 14px;
  line-height: 1.6;
  padding-right: 5px;
}

/* IMAGENS DECORATIVAS */
.modal-decor {
  position: absolute;
  z-index: 3;
  opacity: 0.95;
  pointer-events: none;
  width: 150px;         
  height: auto;
  transition: transform 0.3s ease;
}

/* Decoração canto superior esquerdo */
.decor-top-left {
  top: 0;
  left: 0;
  transform: translate(-10%, -10%);
}

/* Decoração canto inferior direito */
.decor-bottom-right {
  bottom: 0;
  right: 0;
  transform: translate(10%, 10%);
}
.modal-decor.decor-bottom-right {
  width: 480px;
  height: auto;
}

/* Seta Voltar:  */
.seta_voltar {
    position: absolute;
    bottom: 0;
    left: 10px;
    padding: 5px; 
    z-index: 3; 
    transition: transform 0.2s ease;
}

.seta_voltar:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Imagens Decorativas:  */
.decorative__img1 {
    position: fixed;
    top: 15vh;
    left: 0vw;
    width: 20vw;
    z-index: -1;
}

.decorative__img2 {
    position: fixed;
    top: 20vh;
    right: -12vw;
    width: 20vw;
    z-index: -1;
}
.decorative__img2 img{
    width: 40%;
    height: auto;
}

.decorative__img3 {
    position: fixed;
    right: -6vw;
    bottom: -1vw;
    width: 20vw;
    z-index: -1;
}
.decorative__img3 img{
    width: 70%;
    height: auto;
}

/* Responsividades: */
/* Celulares pequenos (smartphones compactos) */
@media (max-width: 575.98px){
    main{
        padding-top: 100px;
    }
    .container__box{
        height: 100%;
        overflow-y: auto;
    }
    .titulo{
        height: 10%;
    }
    .titulo h1{
        font-size: 25px;
    }
    .conteiner__cards {
        height: 90%;
        justify-content: center;
    }
    .card {
        height: 450px;
    }
    .linha-decorativa-1{
        top: 18%;
    }
    .container__decorativo{
        top: 14%;
        left: 28%;
    }
    .meu-botao {
        padding: 15px 55px;
        left: 20%;
        top: 37%;
    }
    .nome-card{
        font-size: 20px;
    }

    /* Modal:  */
    .modal-wrapper{
        height: 80vh;
    }
    .modal-content{
        flex-direction: column;
    }
    .modal-left{
        width: 100%;
    }
    .modal-left img {
        width: 80%;
    }
    .modal-right{
        width: 100%;
    }
    .modal-decor{
        width: 80px; 
    }
    .modal-decor.decor-bottom-right {
        width: 150px;
        height: auto;
    }
    .btn-fechar {
        right: 6px;
        padding: 5px 5px;
    }

    /* Seta Voltar:  */
    .seta_voltar {
        top: 10px;
        left: 5px;
    }
    .seta_voltar img{
        width: 70%;
        height: auto;
    }

    /* Imagens Decorativas:  */
    .decorative__img1{
        top: 20vh;
    }
    .decorative__img1 img{
        width: 50%;
        height: auto;
    }
    .decorative__img3{
        bottom: -2vw;
    }
}

/* Celulares médios e grandes (smartphones modernos) */
@media (min-width: 576px) and (max-width: 767.98px){
    main{
        padding-top: 100px;
    }
    .container__box{
        height: 100%;
        overflow-y: auto;
    }
    .titulo{
        height: 10%;
    }
    .titulo h1{
        font-size: 25px;
    }
    .conteiner__cards {
        height: 90%;
        justify-content: center;
    }
    .card {
        height: 450px;
    }
    .meu-botao {
        padding: 15px 50px;
        left: 21%;
    }

    /* Modal:  */
    .modal-wrapper{
        height: 85vh;
    }
    .modal-content{
        flex-direction: column;
    }
    .modal-left{
        width: 100%;
    }
    .modal-left img {
        width: 70%;
    }
    .modal-right{
        width: 100%;
    }
    .modal-decor{
        width: 80px; 
    }
    .modal-decor.decor-bottom-right {
        width: 150px;
        height: auto;
    }
    .btn-fechar {
        right: 6px;
        padding: 5px 5px;
    }

    /* Seta Voltar:  */
    .seta_voltar {
        top: 10px;
    }

    /* Imagens Decorativas:  */
    .decorative__img1{
        top: 20vh;
    }
    .decorative__img1 img{
        width: 50%;
        height: auto;
    }
    .decorative__img3{
        bottom: -2vw;
    }
}

/* Tablets e celulares em paisagem */
@media (min-width: 768px) and (max-width: 991.98px){
    main{
        padding-top: 100px;
    }
    .container__box{
        overflow-y: auto;
    }
    .titulo{
        height: 10%;
    }
    .titulo h1{
        font-size: 25px;
    }
    .conteiner__cards {
        height: 90%;
        justify-content: center;
    }
    .meu-botao {
        padding: 15px 55px;
        left: 20%;
    }
    .img-ult{
        width: 70%;
        height: auto;
    }

    /* Modal:  */
    .modal-wrapper{
        height: 85vh;
    }
    .modal-content{
        flex-direction: column;
    }
    .modal-left{
        width: 100%;
    }
    .modal-left img {
        width: 60%;
    }
    .modal-right{
        width: 100%;
    }
    .modal-decor{
        width: 80px; 
    }
    .modal-decor.decor-bottom-right {
        width: 180px;
        height: auto;
    }
    .btn-fechar {
        right: 6px;
    }

    /* Seta Voltar:  */
    .seta_voltar {
        top: 10px;
    }
        

    /* Imagens Decorativas:  */
    .decorative__img1{
        top: 20vh;
    }
    .decorative__img1 img{
        width: 50%;
        height: auto;
    }
    .decorative__img3{
        bottom: -2vw;
    }
}

/* Notebooks e desktops padrão */
@media (min-width: 992px) and (max-width: 1199.98px){
    main{
        padding-top: 100px;
    }
    .container__box{
        overflow-y: auto;
    }
    .titulo{
        height: 10%;
    }
    .titulo h1{
        font-size: 25px;
    }
    .conteiner__cards {
        height: 90%;
        justify-content: center;
    }
    .meu-botao {
        padding: 15px 60px;
        left: 20%;
    }
    .img-ult{
        width: 70%;
        height: auto;
    }

    /* Seta Voltar:  */
    .seta_voltar {
        top: 10px;
    }
    

    /* Modal:  */
    .modal-decor.decor-bottom-right {
        width: 250px;
        height: auto;
    }

    /* Imagens Decorativas:  */
    .decorative__img1{
        top: 20vh;
    }
    .decorative__img1 img{
        width: 50%;
        height: auto;
    }
    .decorative__img3{
        bottom: -2vw;
    }
}

/* Desktops grandes e telas Full HD */
@media (min-width: 1200px) and (max-width: 1399.98px){
    .container__box{
        overflow-y: auto;
    }
    .titulo{
        height: 10%;
    }
    .titulo h1{
        font-size: 25px;
    }
    .conteiner__cards {
        height: 90%;
        justify-content: center;
    }

    .container__decorativo {
        top: 5%;
        left: 25%;
    }
    .linha-decorativa-1{
        top: 9%;
    }
    .meu-botao {
        left: 15%;
        padding: 15px 70px;
    }

    /* Modal:  */
    .modal-decor.decor-bottom-right {
        width: 280px;
        height: auto;
    }

    /* Imagens Decorativas:  */
    .decorative__img1{
        top: 20vh;
    }
    .decorative__img1 img{
        width: 50%;
        height: auto;
    }
    .decorative__img3{
        bottom: -2vw;
    }
}

/* Pequenos Ajustes:  */
@media (min-width: 992px) and (max-height: 650px) {
    .modal-decor.decor-bottom-right{
        display: none;
    }
}
@media (min-width: 1400px) and (max-height: 900px) {
    .modal-decor.decor-bottom-right{
        width: 250px;
    }
}

/* Matheus Manja  */