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

body {
  padding-bottom: 0px;
  color: #5a5a5a;
}





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

/* Carousel base class */
.carousel {
  height: 100%;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  z-index: 10;

  display: table-cell;
  height: 100%;
  vertical-align: middle;
}

.carousel-caption > span {
    height: 100%;
    display: grid;
    align-items: center;
}

/* Declare heights because of positioning of img element */
.carousel .item {
  height: 100%;
  background-color: #777;
}

.carousel-inner > .item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 100%;
}

/** Estil dels missatges **/
.slide-title {
  font-size: 14rem;
  line-height: 1;
  white-space: normal;
  word-break: break-word;
  color: #FFF;
  z-index: 100;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: normal;
  text-shadow: 3px 5px #222;
}

.slide-title span {
  white-space: pre;
  display: inline-block;
  opacity: 0;
}

#slide-title2 {
  font-size: 20rem; !important;
}



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

@media (max-width: 768px) {
  /* Bump up size of carousel content */
  .carousel-caption > span {
    vertical-align: middle;
    text-align: center;
  }

  .carousel-inner > .item {
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    
  }

  .carousel-inner > .item > img {
    display: block;
    max-width: none; !important;
    margin:0 0 -33.3% -50%;
  }

  .slide-title {
    font-size: 16vw;
    max-width: none;
  }

  #slide-title2 {
    font-size: 19vw;
    max-width: none;
  }
}

@media (max-width: 375px) {
  .slide-title {
    font-size: 12vw;
    max-width: none;
  }

  #slide-title2 {
    font-size: 15vw;
    max-width: none;
  }

  .carousel-inner > .item {
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    
  }

  .carousel-inner > .item > img {
    display: block;
    max-width: none; !important;
    margin:0 0 -33.3% -50%;
  }
}
