  /* Reset básico */
body, h1, h2, p {
    margin: 0;
    padding: 0;
}

.body {
    background-color: #f3f4f6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #93c5fd;
    color: black;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.header-content {
    text-align: center;
}

.header h1  {
    font-size: 20px;
    font-weight: bold;
}


.header h2 {
    font-size: 18px;
    font-style: italic;
    font-weight: normal;
}

/* Main grid responsivo automático */

.main {
    display: grid;
    gap: 16px;

    grid-template-columns: 1fr; /* 1 coluna no mobile */
     
    justify-items: center;
    padding-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 100px;
}


.card-img-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
    width: 100%;
    flex-grow: 1;
}

/* Imagem ocupa 80% do container */
.card-img {
    width: 80%;
    max-width: 150px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

/* Texto ocupa o restante */
.card-title {
    height: 20%;
    display: flex;
    align-items: center;
    margin-top: 30px;
    font-size: 24px;
    font-weight: bold;

}


/* Card */
.card {
    background-color: white;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 16px;
    text-align: center;

    min-height: 220px;
    min-width: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 95%;
    max-width: 95%;

    border: 1px solid gray;
    
}


/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #93c5fd;
    color: black;
    padding: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    height: 32px;
    margin-left: 16px;
}

.footer-text {
    text-align: center;
    flex-grow: 1;
    font-size: 10px;
    font-style: italic;

}


/* ========================= */
/*      RESPONSIVIDADE       */
/* ========================= */

@media (min-width: 480px) {
    .main {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        padding-bottom: 100px;
    }

  .footer-text {
    font-size: 9px;
  }    

}

@media (min-width: 768px) {
    .main {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
        padding-bottom: 100px;
    }

  .footer-text {
    font-size: 16px;
  } 

  .header h1  {
    font-size: 34px;
  }


  .header h2 {
    font-size: 26px;
    padding-top: 8px;
  }


}

@media (min-width: 1024px) {
    .main {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        padding: 24px;
        padding-bottom: 100px;
    }

  .footer-text {
    font-size: 14px;
  } 

}

@media (min-width: 1280px) {
    .main {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }

  .footer-text {
    font-size: 14px;
  } 

}