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

body {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #5a5a5a;
}


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

/* Carousel base class */
.carousel {
  margin-top: 1rem;
  margin-bottom: 4rem;
  background-color: #2E5681;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  top: 1rem;
  z-index: 10;
}

.carousel-caption-2 {
  bottom: 3rem;
  z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel-item {
  /* height: 32rem; */
  /* background-color: #2E5681; */
  position: relative;
  display: none;
  width: 100%;
   overflow: hidden;
}
.carousel-item > img {
  /* position: absolute;
  top: 0;
  left: 0;
  min-width: 100%; */
  /* height: 32rem; */
  /* background-color: #2E5681; */

  position: relative;
 /* width: 100vh; */
 /* height: 100vh; */
 display: none;
 width: 100%;
}


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

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.marketing h2 {
  font-weight: 400;
}
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}


/* 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;
}


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

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

  .carousel-caption-2 p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
  h1 {
    font-size: 2rem;
  }

  .carousel-caption h1 {
    margin-top: -2rem;
  }

  .carousel-caption-2 h1 {
    margin-top: -2rem;
  }
}

@media (max-width: 55em) and (min-width: 30em){
  .featurette-heading {
    margin-top: 7rem;
  }
  h1 {
    font-size: 2rem;
  }
  .carousel-caption h1 {
    margin-top: -1rem;
  }

  .carousel-caption-2 h1 {
    margin-top: -1rem;
  }
}

@media (max-width: 70em) and (min-width: 55em) {
  h1 {
    font-size: 2rem;
  }
}

/* Emily stuff
-----------------------*/
.size-mobile {
  height: 120px;
}

.case-layout {
  padding-top: 3em;
}

.hr-spacing {
  margin-top: 4em;
  margin-bottom: 4em;
}

sup {
  font-size: .5rem;
  top: -1em;
}

sup.large {
  top: -2em;
}

.mask {
   height: 100%;
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   background-color: #000000;
   /* background-color: #2E5681; */
   opacity: 0.6;
}

.mask-case {
   height: 100%;
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   background-color: rgba(0,0,0,0.05);
   /* opacity: 0.15; */
}

.content-details {
  position: absolute;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  top: 0;
  /* vertical-align: middle; */
  /* top: 50%; */
  /* left: 50%; */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 505;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background-color: rgba(255,255,255,0);
}

.keypoints {
  text-align: center;
  font-size: 2em;
  /* color: #2E5681; */
  color: #D63333;
  font-family: 'Crimson Text', serif;
}

h1.styled, h2.styled {
  font-family: 'Crimson Text', serif;
}

h3.styledUnderline {
  text-decoration: underline;
  -webkit-text-decoration-color: #FEC414; /* Safari */
  text-decoration-color: #FEC414;
  text-decoration-style: solid;
  text-decoration-thickness: .35rem;
}

h3.bg-color {
  background-color: rgba(255,255,255,0.45);
  border-radius: 5px;
}

.blockquote {
  /* background: #f9f9f9; */
  border-left: 6px solid #DFE0E0;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  font-size: 1.25rem;
  /* quotes: "\201C""\201D""\2018""\2019"; */
}

.case {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5001;
}

/* Flipcard */
.flip-card {
  background-color: transparent;
  width: 100%;
  /* min-height: inherit; */
  perspective: 1000px;
  display: flex;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  /* height: 100%; */
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  display: block;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  width: 100%;
  height: 100%;
  position:absolute!important;
  /* height:auto!important; */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hack, .other {
  position:relative!important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  font-size: 0;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
}

.flip-card-back {
  background-color: white;
  color: black;
  transform: rotateY(180deg);
}

.card-text {
  overflow: auto;
  max-height: 100%;
  z-index: 1000;
  padding: 5px;
}

.works-padding{
  padding-bottom: 25px;
}

iframe { 
  width: 95%;
  aspect-ratio: 16 / 9;
  margin: 25px auto;
}
