.avatar {
  vertical-align: middle;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  margin: auto;
}
h5  {
  font-size: 1rem;
}
.card-minwidth {
  min-width: 150px;
}
#ImageGallery {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  transform: translateZ(.25px) scale(.75);
  transform-origin: 50% 50%;
}
@media only screen and (max-width: 840px) {
    .card {
      padding: 0;
      margin: 10px;
    }
    .card-deck {
      padding: 0;
      margin: 0;
    }
    #ImageGallery {
      padding: 0 !important;
    }
    .card-body {
      padding: 0;
    }
    .btn {
      max-width: 100%;
    }
}

.card {
  border: none;
  border-radius: 5px;
  background: rgba(240,230,220, .9);
  box-shadow: 0 0 8px rgba(0, 0, 0, .7);
}

@import url(https://fonts.googleapis.com/css?family=Nunito);

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin:0;
  padding:0;
	perspective: 1px;
	transform-style: preserve-3d;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  font-family: Nunito;
}

h1 {
   font-size: 250%;
}

p {
  font-size: 140%;
  line-height: 150%;
  color: #333;
}

.slide {
  position: relative;
  padding: 10vh 10%;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  box-shadow: 0 -1px 10px rgba(0, 0, 0, .7);
	transform-style: inherit;
}

.bg-logo {
  position: absolute;
  bottom: 25%;
  max-width: 100vw;
  transform: translateZ(.25px) scale(.75) translateX(-68%) translateY(10%);
}

.oldimgprofile {
  position: absolute;
  top: 50%;
  left: 35%;
  width: 320px;
  height: 240px;
  transform: translateZ(.25px) scale(.75) translateX(-94%) translateY(-100%) rotate(2deg);
  padding: 10px;
  border-radius: 5px;
  background: rgba(255,255,255, .7);
  box-shadow: 0 0 8px rgba(0, 0, 0, .7);
}

.oldimageprofile:last-of-type {
  transform: translateZ(.4px) scale(.6) translateX(-104%) translateY(-40%) rotate(-5deg);
}

.slide:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 0 8px 1px rgba(0, 0, 0, .7);
}

.title {
  width: 100%;
  padding: 5%;
  border-radius: 5px;
  background: rgba(240,230,220, .9);
  box-shadow: 0 0 8px rgba(0, 0, 0, .7);
}

.title-centered {
  text-align: center;
}

.title-motto {
  width: 100%;
  padding: 5%;
  border-radius: 5px;
  background: rgba(64,135,241);
  box-shadow: 0 0 8px rgba(0, 0, 0, .7);
}

.title-motto p {
  color: white;
  font-size: 2.5em;
}

.slide, .slide::before {
  background: 50% 50% / cover;
}

.header {
  text-align: center;
  font-size: 175%;
  color: #fff;
  text-shadow: 0 2px 2px #000;
}
.video-header {
  text-align: left;
  font-style: italic;
}
#title {
  background-image: url("../img/bg-1-2048.jpg");
  z-index: 2 !important;
}

#title h1 {
 transform: translateZ(.25px) scale(.75);
 transform-origin: 50% 100%;

}

#slide1::before {
  background-image: url("../img/img001.jpg");
  transform: translateZ(-1px) scale(2);
}

#slideMotto {
  background-color: #4087F1;
  z-index: 3 !important;
  position: relative;
  padding: 0;
}

#slide2 {
  background-image: url('../img/img006.jpg');
  z-index: 2;
  display: table;
  padding: 0;
}

#slide3::before {
  background-image: url("../img/purpose.png");
  transform: translateZ(-1px) scale(2);
  z-index: 1;
}

#slide4 {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #4087F1;
  z-index: 2;
}

/* #slide4 .title {
  transform: translateZ(.25px) scale(.75);
}

#slide4 .img-cards {
  transform: translateZ(.25px) scale(.75);
} */

#slideEnd {
  background: #222;
  z-index: 2 !important;
}
/* ===== Style for smartphone and iPad in portrait & landscape== =  */
@media only screen and (min-device-width : 320px) and (max-device-width : 1024px) and (orientation:portrait) {
  html {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .slide {
    padding: 10px;
  }
  .card {
    width: 100%;
  }

  #title h1 {
    visibility: hidden;
  }
  #contact-btn {
    font-size: 2em;
  }
  #title {
    background-image: url("../img/bg-1-800.jpg");
  }
  #slide1::before {
    background-image: url("../img/img001_800.jpg") !important;
    transform: translateZ(-1px) scale(2);
    z-index: -1;
  }
  #slide2 {
    background-image: url('../img/img006_800.jpg');
  }
  #slide3::before {
    background-image: url("../img/purpose_800.png");
  }
  #slide4 {
    background-image: url('../img/board_800.jpg');
  }
}

@media only screen and (min-device-width : 320px) and (max-device-width : 1024px) and (orientation:landscape) {
  html {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
  #title h1 {
    visibility: hidden;
  }
  #contact-btn {
    font-size: 2em;
  }
  #title {
    background-image: url("../img/bg-1-800.jpg");
  }
  #slide1::before {
  background-image: url("../img/img001_800.jpg") !important;
  transform: translateZ(-1px) scale(2);
  z-index: -1;
  }
  #slide2 {
    background-image: url('../img/img006_800.jpg');
  }
  #slide3::before {
    background-image: url("../img/purpose_800.png");
  }
  #slide4 {
    background-image: url('../img/board_800.jpg');
  }
}
