/* Additional CSS added to template post download */

/* Portfolio Page CSS */
.row {
    margin: 8px -16px;
  }
  
  /* Add padding BETWEEN each column */
  .row,
  .row > .column {
    padding: 8px;
  }
  
  /* Creating two equal columns for current projects section  */
  .currentColumn {
    float:left;
    width: 49%;
    margin-left: .5%;
    margin-right: .5%;
  }

  /* Creating three equal columns for Top projects section  */
  .topColumn {
    float:left;
    width: 32%;
    margin-left: .5%;
    margin-right: .5%;
  }

  /* Create four equal columns that floats next to each other */
  .otherColumn {
    float: left;
    width: 24%;
    margin-left: .5%;
    margin-right: .5%;
  }
  
  /* Clear floats after rows */ 
  .row:after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* outline */
  .outline {
    outline-style: auto;
    outline-width: 2px;
    outline-color: grey;
    padding: 10px;
  }
 
.cardTitle {
    text-align: center;
}

.portfoliop { 
  text-indent: 20px;
  margin-left: 7px;
}

.currentButtonCentered {
  margin-left: 28%;
}

.topButtonCentered {
  margin-left: 17%;
}

.otherButtonCentered {
  margin-left: 6.5%;
}

.cardImg {
  width: 95%;
  max-height: 95%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3px;
}

/* Intro section layout */
.intro-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem; /* Espacio entre imagen y texto */
    margin-top: 20px;
}

/* Imagen de perfil */
.introPic {
    width: 35%; /* La imagen ocupa un 35% del ancho */
    max-width: 300px; /* Límite para pantallas grandes */
    height: auto;
    border-radius: 8px;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.introPic:hover {
    transform: scale(1.05);
}

/* Texto */
.aboutMe {
    flex: 1; /* Ocupa el espacio restante */
    text-align: justify;
    padding: 5px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive: en pantallas pequeñas se apilan */
@media screen and (max-width: 800px) {
    .intro-container {
        flex-direction: column;
        align-items: center;
    }

    .introPic {
        width: 80%;
        max-width: 300px;
        margin-bottom: 20px;
    }

    .aboutMe {
        width: 90%;
        padding: 0 10px;
    }
}


/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 900px) {
  .currentColumn, .topColumn, .otherColumn {
    width: 50%;
   }
  .currentButtonCentered, .topButtonCentered, .otherButtonCentered{
    margin-left: 1%;
  }
  .portfoliop { 
    text-indent: 10px;
    margin-left: 5px;
  }
}
  
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .currentColumn, .topColumn, .otherColumn {
    width: 100%;
    }
  .rHeader {
    font-size: 80%;
  }
  .currentButtonCentered, .topButtonCentered, .otherButtonCentered{
    margin-left: 1%;
  }
  .portfoliop { 
    text-indent: 10px;
    margin-left: 5px;
  }
}