/* Media Queries */
/* Card sizing */
/* Colors */
/* Calculations */
/* Placeholders */
@media print, screen and (min-width: 1000px) {
  #timeline .demo-card:nth-child(odd) .head::after, #timeline .demo-card:nth-child(even) .head::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
  }

  #timeline .demo-card:nth-child(odd) .head::before, #timeline .demo-card:nth-child(even) .head::before {
    position: absolute;
    content: "";
    width: 9px;
    height: 9px;
    background-color: #bdbdbd;
    border-radius: 9px;
    -webkit-box-shadow: 0px 0px 2px 8px #f7f7f7;
    box-shadow: 0px 0px 2px 8px #f7f7f7;
  }
}
/* Some Cool Stuff */
.demo-card:nth-child(1) {
  -webkit-box-ordinal-group: 2;
  -ms-flex-order: 1;
  order: 1;
}

.demo-card:nth-child(2) {
  -webkit-box-ordinal-group: 5;
  -ms-flex-order: 4;
  order: 4;
}

.demo-card:nth-child(3) {
  -webkit-box-ordinal-group: 3;
  -ms-flex-order: 2;
  order: 2;
}

.demo-card:nth-child(4) {
  -webkit-box-ordinal-group: 6;
  -ms-flex-order: 5;
  order: 5;
}

.demo-card:nth-child(5) {
  -webkit-box-ordinal-group: 4;
  -ms-flex-order: 3;
  order: 3;
}

.demo-card:nth-child(6) {
  -webkit-box-ordinal-group: 7;
  -ms-flex-order: 6;
  order: 6;
}

/* Border Box */
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Fonts */


#timeline {
background: #f1f1f1;

}
#timeline h1 {
  text-align: center;
  font-size: 3rem;
  font-weight: 200;
  margin-bottom: 20px;
}

#timeline .demo-card-wrapper {
  position: relative;
  margin: auto;
}
@media print, screen and (min-width: 1000px) {
  #timeline .demo-card-wrapper {
/*   display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
      -ms-flex-wrap:wrap;
      flex-wrap:wrap;
      -ms-flex-direction:column;
      -webkit-box-orient:vertical;
      -webkit-box-direction:normal;
      flex-direction:column;*/
    width: 100%;
    height: 1500px;
    margin: 0 auto;
      max-width:1500px;
display: table;/*ipad用*/
  }
}
#timeline .demo-card-wrapper::after {
  z-index: 1;
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid rgba(191, 191, 191, 0.4);
}
@media print, screen and (min-width: 1000px) {
  #timeline .demo-card-wrapper::after {
    border-left: 1px solid #bdbdbd;
  }
}
#timeline .demo-card {
  position: relative;
  display: block;
  margin: 10px auto 50px;
  max-width: 94%;
  z-index: 2;
}
@media print, screen and (min-width: 480px) {
/*
  #timeline .demo-card {
    -webkit-box-shadow: 0px 1px 22px 4px rgba(0, 0, 0, 0.07);
    box-shadow: 0px 1px 22px 4px rgba(0, 0, 0, 0.07);
  }
*/
}
@media print, screen and (min-width: 720px) {
  #timeline .demo-card {
    max-width:100%;
  }
}
@media print, screen and (min-width: 1000px) {
  #timeline .demo-card {
    max-width: 47%;
    height: 400px;
    margin: 0;
    margin-top: 45px;
    margin-bottom: 45px;
      display: inline-block;/*ipad用*/
  }
  #timeline .demo-card:nth-child(odd) {
    margin-right: 3%;
  }
  #timeline .demo-card:nth-child(odd) .head::after {
    border-left-width: 15px;
    border-left-style: solid;
    left: 100%;
  }
  #timeline .demo-card:nth-child(odd) .head::before {
    left: 106%;
  }
  #timeline .demo-card:nth-child(even) {
    margin-left:3%;
  }
  #timeline .demo-card:nth-child(even) .head::after {
    border-right-width: 15px;
    border-right-style: solid;
    right: 100%;
  }
  #timeline .demo-card:nth-child(even) .head::before {
    right: 105.5%;
  }
  #timeline .demo-card:nth-child(2) {
    margin-top: 240px;
       height: 550px!important;
  }
    #timeline .demo-card:nth-child(4) {
       height: 530px!important;
  }
}
#timeline .demo-card .head {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: #fff;
  font-weight: 400;
    height:70px;
    padding-left:20px;
}

#timeline .demo-card .head h2 {
  text-transform: uppercase;
  font-size: 2.2rem;
  font-weight: inherit;
  letter-spacing: 2px;
  margin: 0;
  padding-bottom: 6px;
  line-height: 1rem;
}
@media print, screen and (min-width: 480px) {
  #timeline .demo-card .head h2 {
    font-size: 2.7rem;
    line-height: 1.2rem;
  }
}
#timeline .demo-card .head h2 span {
  display: block;
  font-size: 0.6rem;
  margin: 0;
}
@media print, screen and (min-width: 480px) {
  #timeline .demo-card .head h2 span {
    font-size: 0.8rem;
  }
}
#timeline .demo-card .body {
  background: #fff;
  border-top: 0;
  padding:20px;overflow: hidden;
}
@media print, screen and (min-width: 1000px) {
  #timeline .demo-card .body {
    height: 90%;
  }
}
#timeline .demo-card .body p {
 margin-bottom: 15px;
    display:inline-block;
}
#timeline .demo-card .body p a{
 border-bottom:1px dotted #aaa;
    display:inline-block;
    color:#666;
}
#timeline .demo-card .body img {
  display: block;
  width: 100%;
    max-width: 670px;
    margin: auto;
}
#timeline .demo-card--step1 {
  background-color: #bbc15c;
}
#timeline .demo-card--step1 .head::after {
  border-color: #bbc15c;
}
#timeline .demo-card--step2 {
  background-color: #bbc15c;
}
#timeline .demo-card--step2 .head::after {
  border-color: #bbc15c;
}
#timeline .demo-card--step3 {
  background-color: #bbc15c;
}
#timeline .demo-card--step3 .head::after {
  border-color: #bbc15c;
}
#timeline .demo-card--step4 {
  background-color: #bbc15c;
}
#timeline .demo-card--step4 .head::after {
  border-color:  #bbc15c;
}
#timeline .demo-card--step5 {
  background-color: #bbc15c;
}
#timeline .demo-card--step5 .head::after {
  border-color: #bbc15c;
}

@media print, screen and (min-width: 1000px) {
#timeline .fimg{margin-bottom:20px;}
    #timeline .fcap{display:block;position:absolute;bottom:-10px;}


/*ipad用*/
    #timeline .demo-card--step1 {
        margin-top: 10px;
    vertical-align: top;
    }
    #timeline .demo-card--step3 {
    margin-top: -300px;
    vertical-align: top;
    }
    #timeline .demo-card--step5 {
    margin-top: -400px;
    vertical-align: top;
    }

}