body {
    background-color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-family: 'EB Garamond', serif;
    font-family: 'Ibarra Real Nova', serif;
    font-family: 'Inter', sans-serif;
}

/* <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 400 to 700

.ibarra-real nova-<uniquifier> {
  font-family: "Ibarra Real Nova", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
*/

.backgroundimage 
{
    background-color: black;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

    animation: animateBg 60s infinite;
}

@keyframes animateBg{
    0% {
        background-size: 100%;
        background-image: url('/assets/media/backgrounds/BackgroundImage01.webp');
    }
    30% {
        background-size: 120%;
        background-image: url('/assets/media/backgrounds/BackgroundImage01.webp');
    }
    35% {
        background-size: 120%;
        background-image: url('/assets/media/backgrounds/BackgroundImage02.webp');
    }
    65% {
        background-size: 100%;
        background-image: url('/assets/media/backgrounds/BackgroundImage02.webp');
    }
    70% {
        background-size: 100%;
        background-image: url('/assets/media/backgrounds/BackgroundImage03.webp');
    }
    100% {
        background-size: 120%;
        background-image: url('/assets/media/backgrounds/BackgroundImage03.webp');
    }
}


.TotalContainer {
    border: 1px white;
    justify-content: center;
}

/*    2 maneras de alinear div a centro:
        display: flex;
        justify-content: center; (centra segun horizontal)
        align-items: center; (centra en vertical)

     display: grid;
     place-items: center;

*/

header {
    border: 1px blue;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);

    border-radius: 10px;
    position: sticky;
    top: 0;
    margin: auto;
    display: flex;
    min-width: 300px;
    max-width: 1400px;
    height: 70px;
    justify-content: space-between;

    transition: top 0.2s ease-in-out;

}

#myHeader {
    border: 1px blue;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);

    border-radius: 10px;
    position: sticky;
    top: 0;
    margin: auto;
    display: flex;
    min-width: 300px;
    max-width: 1400px;
    height: 70px;
    justify-content: space-between;
    transition: top 0.5s;
}

.logoIFPB:link {
    text-decoration: none; /*quita el subrayado del enlace*/
    border: 1px red;
    width: 70px;
    font-family: inter;
    font-size: 24px;
    font-weight: bold;
    color: white;
    padding: 0.5rem 2rem;

    display: flex;
    align-items: center; /*centra en vertical*/
    /*justify-content: center; centra segun horizontal */
}

.logoIFPB:visited {
    text-decoration: none;
    color: white;
}

.logoIFPB:hover {
    /*text-shadow: 0px 0px 3px white;*/
    color: #980000;
    
}

@keyframes revealIFPB {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
        letter-spacing: 0em;
        overflow: visible;
    }
    100% {
        opacity: 1;
        letter-spacing: 0em;
        overflow: visible;
    }
}
.logoIFPB span {
    display: inline-flex;
    overflow: hidden;
    letter-spacing: -1em;
}

.logoIFPB:hover span {
    animation: revealIFPB 2s forwards; /* Animation duration is 1 second */
}


nav {
    border:  1PX yellow;
    display: flex;
    padding: 0.5rem 2rem;


    display: flex;
    align-items: center;
    justify-content: center;
}

/*
.NAVbutton {
    color: white;
    text-decoration: none;
    border: solid 1px;
    border-color: white;
    /* font-family: 'EB Garamond';*/
    /*
    font-size: 18px;
    margin:auto;
    padding-left: 2rem;
    padding-right: 2rem;

    display: flex;
    align-items: center;
    justify-content: center;
}
*/
.Navbutton:link {
    text-decoration: none;
    color: white;

    border-color: white;
    /*font-family: 'EB Garamond';*/
    font-size: 16px;
    margin: auto;
    padding: 0.5rem 2rem;

    display: flex;
    align-items: center;
    justify-content: center;

}

.Navbutton:visited {
    text-decoration: none;
    color: white;
}

.Navbutton:hover {
    /*text-shadow: 0px 0px 3px white;*/
    color: #980000;
}
/*
.Navbutton:active {
    /*text-shadow: 0px 0px 3px white;
    text-decoration: underline;
}
*/
.LogoContainer {
    border: 1px white;
    display: flex;
    margin:auto;
    margin: 0.5rem;
    width:24px;
    height:24px;
    align-items: center;
    vertical-align: middle;
    justify-content: center;
}
.LogoContainer:hover {
    background-color: #980000b6;
    border-radius: 8px;
}
.LogoContainer img {
    width:24px;
    height:24px;
}

.MainContainer {
    border: 3px orange;
    min-height: 80vh;
}

.MainBox {
    border: /*solid */ 1px yellow;

    min-width: 500px;
    max-width: 1400px;
    min-height: 50px;
    margin:auto;
    padding: 0rem 0rem;

    display: flex;
    align-items: center;
    justify-content: center;
}

.elfsight-app-81dc9667-1bfa-4224-9aac-5a3f73a20944 {
    margin: auto;
    margin: 1rem;
}

p {
    color: white;
}
/* test estilos clase y ID
.example-class {
    color: blue;
}

#example-id{
    color: green;
}
*/
.TituloSeccion {
    color: rgb(210, 210, 210);
    margin: 0px;
    margin: auto;
    font-family: 'Ibarra Real Nova';
    font: bold;
    font-style: italic;
    font-size: 26px;
    max-width: 1000px;
    text-align: justify;
    line-height: 1.2;
}

footer {
    border-color: red;
    font-size: 12px;
    text-align: center;
}

.hrbetweenBoxes {
    display: block;
    border: 1px solid rgb(30, 30, 30);
    max-width: 1400px;
}

.hrrounded {
    border: 1px solid rgb(60, 60, 60);
    border-radius: 2px;
    max-width: 1400px;
}

.Fleuron {
    margin: auto;
    font-size: 24px;
    color: grey;
    
}

/* CSS PAGINAS PARTICULARES */

/* CSS INDEX */

.welcome {
    border:  1px;
    font-size: 40px;
    font-family: 'Ibarra Real Nova';
    color: antiquewhite;
    /* transform: translate(0, -6rem); /* Moves the div up by 3rem */;
    animation: disappear 10s forwards;
}

@keyframes disappear {
    50% {
        opacity: 100;
    }
    100%{
        opacity: 0;
        display: none;
    }
}


/* CSS MUQARNAS */

.videoInsert {
    position: relative; 
    max-width: 100%; 
    max-height: 100%;
    width: auto; 
    height: auto; 
    overflow: hidden;
}

.TeachingExerSampleTABLE{
    display: table;
    width: 100%;
}

.TeachingExerSampleCELL {
    border: 1px white;
    display: table-cell;
    width: 30%;
    margin: auto;
    padding: 1rem;
}

.PublicactionColumnText {
    border:  1px red;
    width: 40%;
    padding: 0rem 2rem;
    padding-top: 2rem;

}

.PublicationColumnImages{
    border: solid 2px #98000027 ;
    border-radius: 15px;
    width: 60%;
    min-height: 100%;
    padding: 0rem 2rem;
    display: flex;
    align-items: center;

}

/*Prueba GALLERY flickity.css*/

.carousel {
    border: 1px #98000027 ;
    margin-bottom: 35px;

    width: 100%; /*toma el 100% del ancho anterior */
    max-height: 100%;
    aspect-ratio: 1.50/1; /*Esto iguala la altura al ancho */
    justify-content: center;  
    display: inline-block;

  }

.carousel img {
    border: 5px orange;
    max-height: 100%;
    max-width: 100%;
    margin: 10px;
    object-fit: contain;
  }
.carousel video {
    border: 1px yellow;
    height: 100%;
    width: 100%;
    margin: 10px;
    object-fit: contain;
  }

/* PUNTOS ABAJO GALERIA */

/* white circles 
.flickity-page-dots .dot {
    width: 12px;
    height: 12px;
    opacity: 1;
    background: transparent;
    border: 2px solid #370000;
  }
*/

/* fill-in selected dot */
.flickity-page-dots .dot.is-selected {
    background: #980000;
  }

/* BOTONES ABAJO GALERIA 

.flickity-button { }

.flickity-button-icon {     
}  

*/
  /* FLICKITY estilos botones NO FUNCIONA! */

  /*
.flickity-prev-next-button {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: #333;
  }

  /* position outside */
  /*
.flickity-prev-next-button.previous {
    left: -40px;
  }
  .flickity-prev-next-button.next {
    right: -60px;
  }

  */
  /*Prueba flickity.css*/


.OverflowContainer{
    border: 1px yellow;
    width: 100%; /*toma el 60% del ancho anterior */
    max-height: 100%;

    aspect-ratio: 1.50/1; /*Esto iguala la altura al ancho */
    /**/
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

.OverflowContainer div{
    border: 1px red;
    margin: 0rem 0.5rem;
    
    height: 100%;
    min-width: fit-content;
    max-width: 90%;
    max-height: 100%;

    font-size: 50px;
    background-color: #98000020;

    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
}

/*
.OverflowBox {
    object-fit: cover;
    max-height: 100%;
    max-width: 100%;

}

.MediaWithCaption {
    border: solid 10px pink;
    height: 100%;

    height: auto; 
    overflow: hidden;

    display:block;

}
*/

img {
    border: 1px white;
    object-fit: cover;
    height: 100%;
    width: 100%;

    display: block;
    overflow: hidden;
    pointer-events: none;
}

.CaptionText {
    border: solid 1px yellow;
    height: 9%;
    width: 100%;
    margin: 0px;
    font-size: 18px;
    display: block;
    

}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 20px;
    height: 20PX;
}
 
/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 0px red; 
    -webkit-border-radius: 10px;
    border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: #98000050; 
    border: 5px solid transparent;
    background-clip: content-box;

    -webkit-box-shadow: inset 0 0 6px #370000; 
}

::-webkit-scrollbar-thumb:window-inactive {
	background: #98000050; 
    border: 5px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover{
    background: #980000b6; 
    border: 4px solid transparent;
    background-clip: content-box;}

/* CUSTOM SCROLLBAR */

.PublicactionTitle {
    border: 1px green;
    font-family: 'Ibarra Real Nova';
    color: white;
    font-size: 22px;
    width: 100%;
    margin: auto;

}
.PublicactionAbstract {
    border: 1px green;
    color: white;
    font-size: 13px;
    font-weight: 200;
    line-height: 1.7;

    width: 100%;
    margin: 1.5rem 0rem;

}
.PublicactionData {
    border: 1px green;
    color: grey;
    font-family: 'Ibarra Real Nova';
    width: 100%;
    font-size: 16px;
    font-weight: 200;
    line-height: 1.4;

    margin: 2rem 0rem;

}
.ThesisAbstract {
    border: 1px green;
    color: white;
    font-size: 13px;
    font-weight: 200;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 15;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-y: scroll;

    width: 100%;
    margin: 1.5rem 0rem;
}
.Articlehref:link {
    text-decoration: none;
    color: #980000;
}
.Articlehref:visited {
    text-decoration: none;
    color: #980000;
}

/* CSS PAINTING */

/* CSS DESIGN */

/* CSS About */

.TextBIO {
    font-size: 18px;
    font-family: 'Ibarra Real Nova';
    color: grey;
    max-width: 650px;
    text-align: justify;
    line-height: 1.5;
}

.EPFLredfont {
    font-family: 'Inter';
    font-weight: bold;
}

.CNPAfont {
    font-family: Impact;
    font-weight: 0.9;

}
