/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

@keyframes bgcolor {
    0% {
        background-color: #5A72B5;
    }

    30% {
        background-color: #7CAF2A;
    }

    60% {
        background-color: #F39426;
    }

    90% {
        background-color: #EA5A49;
    }

    100% {
        background-color: #F39426;
    }
}

@font-face {
    font-family: 'CCofficial-Medium';

    src: url('fonts/SuisseBPIntl-Medium.otf'); /*URL to font*/
}

@font-face {
    font-family: 'CCofficial-Regular';

    src: url('fonts/SuisseBPIntl-Regular.otf'); /*URL to font*/
}

@font-face {
    font-family: 'CCofficial-Light';

    src: url('fonts/SuisseBPIntl-Light.otf'); /*URL to font*/
}

/*----------------*/

body {
  padding-top: 0rem;   /* NS: Distance of body from top and bottom of the frame */
  padding-bottom: 0rem;
  color: #5a5a5a;
  font-family: 'CCofficial-Regular';
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;

}

/* Coloured background*/
#myCarousel{
  -webkit-animation: bgcolor 50s infinite;
  animation: bgcolor 14s infinite;

  -webkit-animation-direction: alternate;
  animation-direction: alternate;

  font-size:0.9em;
}


#CC_logo h1{
  position:absolute;
  left:10rem;
  top: 2rem;
  border-top: 1px solid #000;
  border-top-style: solid;
  color: black;
  font-size:2.5em;
  font-family: 'CCofficial-Medium';
}

#codeParent{
  position: relative;
}


/*-------------*/
#all_publications{
  text-align: center;
  color: rgb(92,117,183);
  margin-top: 0px;
}

#code{
  position: absolute;
  bottom: 400px;
  right:430px;
  color: black;
  word-spacing: 2em;
  font-size:2.0em;
  text-align: left;
}

.slogan {
  /*position: relative;
  float: right;
  bottom:3rem;*/

  position: absolute;
  right: 50px;
  bottom: 50px;
  text-align: left;
}

.slogan h1{
  font-family: 'CCofficial-Medium';

}


#publiTitle{
  position: absolute;
  right:390px;
  bottom: 70px;
  text-align: left;
}


.row h2{
  color: black;
  font-family: 'CCofficial-Light';

}

.row p{
  color: #A8A8A8;
  font-family: 'CCofficial-Light';
}

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-bottom: 2rem; /* NS: Distance of four icons from the bottom of coloured rectangles */
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 8rem;  /* NS: Distance of the text in cloured rectangles from the bottom of it */
  z-index: 10;
}

/* Make it look like Miquel's Cargo!*/
.carousel-caption{
  color: black;
}

/* Declare heights because of positioning of img element */
.carousel-item {
  height: 45rem;   /* NS: Height of the coloured rectangles */
}
.carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 30rem;
} 

/* Change here the color of the scrolling rectangles (Nico): blue, gree, salmon; */
/*
#rec1 {
  fill: rgb(92,117,183); }

#rec2 {
  fill: rgb(239,128,107);
}

#rec3 {
  fill: rgb(125,177,41);
}

#CC_logo {
  float: left;
  padding-bottom: 1rem;
  padding-top: 1rem;

}
*/

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  /*margin-bottom: 2rem;   /* NS: distance of the four icons from the footer */
  text-align: left;
  font-size:1.2em;
  padding-left: 10px;
  padding-right: 10px;

}


.marketing h2 {
  font-weight: 400;
}



/* Featurettes
------------------------- */

.featurette-divider {
  margin: 5rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.05rem;
}

.featurette  p{
  font-style: italic;
}


/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    margin-top: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 35px;
  }

}




@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }

}


/*----RESPONSIVE NICO----*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 812px)
  {
/* Styles */

  #CC_logo h1{
    position:absolute;
    font-size:1.5em;
    color: black;
    left: 30px;
  }

  #code{
  font-size: 20px;
  position: absolute;
  left: 30px;
  bottom: 270px;
  text-overflow: ellipsis;
  white-space: nowrap;
  }


  .slogan{

  position: absolute;
  left: 30px;
  bottom: -110px;
  }

  .slogan p{
    font-size: 15px;
  }

 .slogan h1{
  font-size: 2.8em;
 } 

  #publiTitle{
    position: absolute;
    left:30px;
    bottom: 10px;
    text-align: left;
  }

  #publiTitle p{
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }


  .row{
    margin-left: 30px;
  }

  .carousel-item {
    height: 35rem;   /* NS: Height of the coloured rectangles */
  }

}

@media only screen and (min-device-height:1082px){
	  .carousel-item {
	    height: 52rem;   /* NS: Height of the coloured rectangles */
	  }


 }