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

header {
    background-color:#8d5493;
    padding: 0.4em;
}

footer {
   background-color:#8d5493;
   text-align: center;
   font-size: 0.8rem;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
  
img, video {
    max-width: 100%;
    height: auto;
}

header nav a {
    color: white;
}

nav ul {
    display: flex;
    justify-content:center;
    gap: 40px;
    margin: 0.5em;
}

body { 
    background-color: #f8b0ff;
   display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
}

h1 {
    color: #5e1c64;
    margin:1em;
}

h2 { 
    background-color: #945dbc;
    margin: 1em;
}

div h3 {
    color: #5e1c64;
}

h4 {
    margin: 0.5em;
    padding: 0.5em;
}

p {
    margin: 2em;
}

footer p {
    color: #fde8ff;
}

.nombre {
   text-align: center;
}

.texto {
   text-align: center;
}

.instagram {
    text-align: center;
}

figure img {
    border: solid 5px rgb(107, 24, 117);
    border-radius: 20px;
    height: 450px;
    margin: 1.7em;
    display: grid;
    justify-self: center;
}

.megusta { 
    border-bottom: 2px solid #5e1c64;
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
}

.fotografias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    padding: 1rem;
}

.collage, .collagedos  {
    height: 900px;
}

.historial {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    padding: 1rem;
}

/*.historial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
} */

.historial h3 {
    text-align: center;
    border-bottom: 2px solid #5e1c64;
    padding-bottom: 0.5rem;
    margin: 0.5em;
}

.cbc {
    background-color: rgb(234, 136, 241);
    margin: 5px;
    padding: 5px;
    border: solid 5px rgb(107, 24, 117);
    border-radius: 30px;
    height: 250px;
    width: 350px;
}

.primero {  
    background-color: rgb(234, 136, 241);
    margin: 5px;
    padding: 5px;
    border: solid 5px rgb(107, 24, 117);
    border-radius: 30px;
    height: 250px;
    width: 350px;
}

.segundo {
    background-color: rgb(234, 136, 241);
    margin: 5px;
    padding: 5px;
    border: solid 5px rgb(107, 24, 117);
    border-radius: 30px;
    height: 250px;
    width: 350px;
}

.encurso {
    background-color: rgb(234, 136, 241);
    margin: 5px;
    padding: 5px;
    border: solid 5px rgb(107, 24, 117);
    border-radius: 30px;
    height: 250px;
    width: 350px; 
}

ul li { 
    list-style: none;
    padding: 1px;
}

a:hover {
    color: blue;
}

.chiara {
    object-fit: cover;
    border-radius: 200px;
    border: solid 4px rgb(107, 24, 117);
    height: 110px;
    width: 110px;
}

.martina {
    object-fit: cover;
    border-radius: 200px;
    border: solid 4px rgb(107, 24, 117);
    height: 110px;
    width: 110px;
}

.rotulochiara {
    background-color: rgb(215, 107, 242);
    margin: 15px;
    padding: 10px;
    border-radius: 30px;
    width: 350px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
}

.rotulochiara h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}
  
.rotulochiara a {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    font-size: 1.2em;
}

.rotulomartina {
    background-color: rgb(215, 107, 242);
    margin: 15px;
    padding: 10px;
    border-radius: 30px;
    width: 350px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
}

.rotulomartina h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}
  
.rotulomartina a {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    font-size: 1.2em;
}

/* @media */
.equipo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    justify-items: center;
}

.academicos {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
}

.uba {
    background-color: rgb(234, 136, 241);
    margin: 15px;
    padding: 10px;
    border-radius: 30px;
    width: 350px;
}

.fadu { 
    background-color: rgb(234, 136, 241);
    margin: 15px;
    padding: 10px;
    border-radius: 30px;
    width: 350px;
}

.catedra { 
    background-color: rgb(234, 136, 241);
    margin: 15px;
    padding: 10px;
    border-radius: 30px;
    width: 350px;
}

.logodgpc {
    width: 60px;
    height: auto;
    display: grid;
    justify-self: center;
}

.logoig {
    width: 30px;
    height: auto;
    margin: 1em;
}

.logouba {
    width: 400px;
    height: auto;
}

.logofadu {
    width: 150px;
    height: auto;
}

.logocatedra {
    width: 100px;
    height: auto;
}

h3 {
    border-bottom: 2px solid #5e1c64;
    padding-bottom: 0.5rem;
    text-align: center;
    margin: 2rem;
}

.mobile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-items: center;
    gap: 0.5rem
}

.desktop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-items: center;
    gap: 0.5rem
}

.tablet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-items: center;
    gap: 0.5rem
}

.mobile img {
    max-width: 100%;
    height: auto;
}

.desktop img {
    max-width: 100%;
    height: auto;
}

.tablet img {
    max-width: 100%;
    height: auto;
}