:root{
  --main-color:#073a5c;
	--primary-color:#1b262c;
	--secondary-color: #0f4c75;
	--third-color: #3282b8;
	--fourth-color: #bbe1fa;
}

.main-timeline{
    font-family: 'Poppins', sans-serif;
    position: relative;
}
.main-timeline:after{
    content: '';
    display: block;
    clear: both;
}
.main-timeline .timeline{
    width: 50%;
    padding: 30px 0 0;
    margin: 0 30px 20px 0;
    float: left;
}
.main-timeline .timeline-content{
    color: #333;
    background: linear-gradient(to left bottom,#F1EFF0,#fff);
    min-height: 140px;
    padding: 0 25px 25px 30px;
    border: 2px solid #fff;
    border-radius: 70px;
    display: block;
    position: relative;
}
.main-timeline .timeline-content:hover{ text-decoration: none; }
.main-timeline .timeline-icon{
    color: #fff;
    background:linear-gradient(to right, var(--fourth-color) 20%, var(--third-color) 72%);
    font-size: 45px;
    text-align: center;
    line-height: 150px;
    height: 150px;
    width: 150px;
    box-shadow: 0 0 7px rgba(0,0,0,0.2);
    border-radius: 50%;
    position: absolute;
    top: -32px;
    right: -75px;
    z-index: 1;
}
.main-timeline .timeline-icon:before{
    content: "";
    background: var(--main-color);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transform: translateX(-50%)translateY(-50%);
    position: absolute;
    width: 72%;
    height: 72%;
    top: 50%;
    left: 50%;
    z-index: -1;
}
.main-timeline .title{
    color: #fff;
    background: linear-gradient(to right,var(--third-color),var(--fourth-color));
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 40px;
    margin: -22px 0 20px 80px;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 5% 100%, 0 50%);
}
.main-timeline .description{
    font-size: 14px;
    letter-spacing: 1px;
    text-align: justify;
    margin: 0 65px 0 0;
}
.main-timeline .timeline:nth-child(even){
    float: right;
    margin: 0 0 20px 30px;
}
.main-timeline .timeline:nth-child(even) .timeline-icon{
    right: auto;
    left: -75px;
}
.main-timeline .timeline:nth-child(even) .title{
    margin-left: 0;
    margin-right: 80px;
    padding-left: 50px;
    clip-path: polygon(95% 0, 100% 50%, 95% 100%, 0 100%, 0 0);
}
.main-timeline .timeline:nth-child(even) .description{ margin: 0 0 0 65px; }
.main-timeline .timeline:nth-child(4n+2) .timeline-icon{
    background: linear-gradient(to right,var(--third-color) 20%,var(--fourth-color) 75%);
}
.main-timeline .timeline:nth-child(4n+2) .timeline-icon:before{ background: var(--main-color); }
.main-timeline .timeline:nth-child(4n+2) .title{
    background: linear-gradient(to right,var(--fourth-color),var(--third-color));
}
.main-timeline .timeline:nth-child(4n+3) .timeline-icon{
    background: linear-gradient(to right, var(--fourth-color) 20%, var(--third-color) 72%);
}
.main-timeline .timeline:nth-child(4n+3) .timeline-icon:before{ background: var(--main-color); }
.main-timeline .timeline:nth-child(4n+3) .title{
    background: linear-gradient(to right,var(--third-color),var(--fourth-color));
}
.main-timeline .timeline:nth-child(4n+4) .timeline-icon{
    background: linear-gradient(to right,var(--third-color) 20%,var(--fourth-color) 75%);
}
.main-timeline .timeline:nth-child(4n+4) .timeline-icon:before{ background: var(--main-color); }
.main-timeline .timeline:nth-child(4n+4) .title{
    background: -webkit-linear-gradient(to right,var(--fourth-color),var(--third-color));
    background: -o-linear-gradient(to right,var(--fourth-color),var(--third-color));
    background: linear-gradient(to right,var(--fourth-color),var(--third-color));
}
@media screen and (max-width:990px){
    .main-timeline .timeline .title{ margin-left: 15px; }
    .main-timeline .timeline:nth-child(even) .title{ margin-right: 15px; }
}
@media screen and (max-width:767px){
    .main-timeline .timeline{ width: 100%; }
    .main-timeline .timeline .timeline-content{ min-height: auto; }
    .main-timeline .timeline .timeline-icon{
        font-size: 35px;
        line-height: 83px;
        height: 80px;
        width: 80px;
        right: auto;
        left: 0;
    }
    .main-timeline .timeline:nth-child(even) .timeline-icon{ left: 0; }
    .main-timeline .timeline .title{
        margin-bottom: 30px;
        clip-path: polygon(95% 0, 100% 50%, 95% 100%, 0 100%, 0 0);
    }
    .main-timeline .timeline:nth-child(even) .title{
        margin-right: 0;
        margin-left: 15px;
    }
    .main-timeline .timeline .description,
    .main-timeline .timeline:nth-child(even) .description{
        margin: 0;
    }
    .main-timeline .timeline-icon{ right: -150px; }
}
@media screen and (max-width:576px){
    .main-timeline .title{ font-size: 18px; }
}


.wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
  }
  
  .card {
    width: 420px;
    height: 340px;
    margin: 1em;
    perspective: 1500px;
  }
  .cardgallery{
    width: 100%;
    height: 100%;
     
  }
  .card .content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.75, 0, 0.85, 1);
  }
  
  .more {
    display: none;
  }
  .more:checked ~ .content {
    transform: rotateY(180deg);
  }
  
  .front,
  .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: 6px;
  }
  .front .inner,
  .back .inner {
    height: 100%;
    display: grid;
    padding: 1.5em;
    transform: translateZ(80px) scale(0.94);
  }
  
  .front {
    background-color: #fff;
    background-size: cover;
    background-position: center center;
  }
  .front:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    backface-visibility: hidden;
/*     
    background: linear-gradient(40deg, rgba(50, 130, 184, 0.7), rgba(187, 225, 250, 0.7));
   */
  }
  .front .inner {
    grid-template-rows: 5fr 1fr 1fr 2fr 1fr;
    justify-items: center;
  }
  .front h2 {
    grid-row: 2;
    margin-bottom: 0.3em;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 0 12px black;
  }
  .front .rating {
    grid-row: 3;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    flex-flow: row nowrap;
  }
  .front .rating i {
    margin: 0 1px;
  }
  
  .back {
    transform: rotateY(180deg);
    background-color: #fff;
    border: 2px solid #f0f0f0;
  }
  .back .inner {
    grid-template-rows: 1fr 2fr 1fr 2fr 14fr 1fr 1fr;
    grid-template-columns: repeat(4, auto);
    grid-column-gap: 0.8em;
    justify-items: center;
  }
  .back .info {
    position: relative;
    display: flex;
    align-items: center;
    color: #355cc9;
    grid-row: 3;
  }
  .back .info:not(:first-of-type):before {
    content: "";
    position: absolute;
    left: -0.9em;
    height: 18px;
    width: 1px;
    background-color: #ccc;
  }
  .back .info span {
    font-size: 2em;
    font-weight: 700;
  }
  .back .info i {
    font-size: 1.2em;
  }
  .back .info i:before {
    background: linear-gradient(40deg, #355cc9, #438af3);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
  }
  .back .info .icon {
    margin-left: 0.3em;
  }
  .back .info .icon span {
    display: block;
    margin-top: -0.25em;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
  }
  .back .description {
    grid-row: 5;
    grid-column: 1/-1;
    font-size: 0.86em;
    border-radius: 5px;
    font-weight: 600;
    line-height: 1.4em;
    overflow: auto;
    color: #355cc9;
    padding-right: 10px;
  }
  .back .location,
  .back .price {
    font-weight: 600;
    color: #355cc9;
    grid-row: 1;
    font-size: 0.86em;
  }
  .back .location {
    grid-column: 1/3;
    justify-self: left;
  }
  .back .price {
    grid-column: 3/-1;
    justify-self: right;
  }
  .back .button {
    grid-column: 1/-1;
    justify-self: center;
  }
  
  .button {
    grid-row: -1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    padding: 0 1.5em;
    height: 3em;
    line-height: 2.9em;
    min-width: 3em;
    /* background-color: transparent; */
    background-color: var(--main-color);
    border: solid 2px #fff;
    color: white;
    border-radius: 4px;
    text-align: center;
    left: 50%;
    backface-visibility: hidden;
    transition: 0.3s ease-in-out;
  }
  .button:hover {
    background-color: white;
    box-shadow: 0 0 15px rgba( 187, 225, 250,0.5);
    text-shadow: none;
    color: var(--main-color);
  }
  .button.return {
    line-height: 3em;
    color: #355cc9;
    background-color: var(--fourth-color);
    border-color: #355cc9;
    text-shadow: none;
  }
  .button.return:hover {
    background-color: #355cc9;
    color: #fff;
    box-shadow: none;
  }
  
  ::-webkit-scrollbar {
    width: 5px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #859ddf;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #355cc9;
  }

  

  @import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css);

  /*----- Social Links -----*/
  .center {
    align-content: space-around;
    width: 20%;
    padding: 2%;
    padding-bottom: 2%;
    padding-top: 4%;
    margin-left: auto;
    margin-right: auto;
  }

  .center > h4{
    margin-left: auto;
    margin-bottom: 40px;
    padding-top: 2%;
    padding-bottom: 2%;
  }

  .social-nav {
      padding: 0;
      list-style: none;
      margin: -10px 0 0 -10px;
  }
  .social-nav li {
      float: left;
      margin: 10px 0 0 10px;
      list-style: none;
  }
  .social-nav a {
      display: inline-block;
      /*
      float: left;
      width: 48px;
      height: 48px;
      font-size: 20px;
      */
      color: #fff;
      text-decoration: none;
      cursor: pointer;
      text-align: center;
      line-height: 48px;
      background: #000;
      position: relative;
      transition: all 0.5s;
      -ms-transition: all 0.5s;
      -webkit-transition: all 0.5s;
      -moz-transition: all 0.5s;
  }
  .social-nav a {
      overflow: hidden;
      font-size: 26px;
      border-radius: 4px;
  }
  .social-nav a:hover {
      background: #fff;
      text-shadow: 0px 0px #d4d4d4, 1px 1px #d4d4d4, 2px 2px #d4d4d4, 3px 3px #d4d4d4, 4px 4px #d4d4d4, 5px 5px #d4d4d4, 6px 6px #d4d4d4, 7px 7px #d4d4d4, 8px 8px #d4d4d4, 9px 9px #d4d4d4, 10px 10px #d4d4d4, 11px 11px #d4d4d4, 12px 12px #d4d4d4, 13px 13px #d4d4d4, 14px 14px #d4d4d4, 15px 15px #d4d4d4, 16px 16px #d4d4d4, 17px 17px #d4d4d4, 18px 18px #d4d4d4, 19px 19px #d4d4d4, 20px 20px #d4d4d4, 21px 21px #d4d4d4, 22px 22px #d4d4d4, 23px 23px #d4d4d4, 24px 24px #d4d4d4, 25px 25px #d4d4d4, 26px 26px #d4d4d4, 27px 27px #d4d4d4, 28px 28px #d4d4d4, 29px 29px #d4d4d4, 30px 30px #d4d4d4;
  }
  .social-nav .twitter {
      background: #00ACED;
      text-shadow: 0px 0px #0087ba, 1px 1px #0087ba, 2px 2px #0087ba, 3px 3px #0087ba, 4px 4px #0087ba, 5px 5px #0087ba, 6px 6px #0087ba, 7px 7px #0087ba, 8px 8px #0087ba, 9px 9px #0087ba, 10px 10px #0087ba, 11px 11px #0087ba, 12px 12px #0087ba, 13px 13px #0087ba, 14px 14px #0087ba, 15px 15px #0087ba, 16px 16px #0087ba, 17px 17px #0087ba, 18px 18px #0087ba, 19px 19px #0087ba, 20px 20px #0087ba, 21px 21px #0087ba, 22px 22px #0087ba, 23px 23px #0087ba, 24px 24px #0087ba, 25px 25px #0087ba, 26px 26px #0087ba, 27px 27px #0087ba, 28px 28px #0087ba, 29px 29px #0087ba, 30px 30px #0087ba;
  }
  .social-nav .twitter:hover {
      color: #00ACED;
  }
  .social-nav .facebook {
      background: #3B579D;
      text-shadow: 0px 0px #2d4278, 1px 1px #2d4278, 2px 2px #2d4278, 3px 3px #2d4278, 4px 4px #2d4278, 5px 5px #2d4278, 6px 6px #2d4278, 7px 7px #2d4278, 8px 8px #2d4278, 9px 9px #2d4278, 10px 10px #2d4278, 11px 11px #2d4278, 12px 12px #2d4278, 13px 13px #2d4278, 14px 14px #2d4278, 15px 15px #2d4278, 16px 16px #2d4278, 17px 17px #2d4278, 18px 18px #2d4278, 19px 19px #2d4278, 20px 20px #2d4278, 21px 21px #2d4278, 22px 22px #2d4278, 23px 23px #2d4278, 24px 24px #2d4278, 25px 25px #2d4278, 26px 26px #2d4278, 27px 27px #2d4278, 28px 28px #2d4278, 29px 29px #2d4278, 30px 30px #2d4278;
  }
  .social-nav .facebook:hover {
      color: #3B579D;
  }
  .social-nav .google {
      background: #DD4A3A;
      text-shadow: 0px 0px #c23122, 1px 1px #c23122, 2px 2px #c23122, 3px 3px #c23122, 4px 4px #c23122, 5px 5px #c23122, 6px 6px #c23122, 7px 7px #c23122, 8px 8px #c23122, 9px 9px #c23122, 10px 10px #c23122, 11px 11px #c23122, 12px 12px #c23122, 13px 13px #c23122, 14px 14px #c23122, 15px 15px #c23122, 16px 16px #c23122, 17px 17px #c23122, 18px 18px #c23122, 19px 19px #c23122, 20px 20px #c23122, 21px 21px #c23122, 22px 22px #c23122, 23px 23px #c23122, 24px 24px #c23122, 25px 25px #c23122, 26px 26px #c23122, 27px 27px #c23122, 28px 28px #c23122, 29px 29px #c23122, 30px 30px #c23122;
  }
  .social-nav .google:hover {
      color: #DD4A3A;
  }
  .social-nav .linkedin {
      background: #007BB6;
      text-shadow: 0px 0px #005983, 1px 1px #005983, 2px 2px #005983, 3px 3px #005983, 4px 4px #005983, 5px 5px #005983, 6px 6px #005983, 7px 7px #005983, 8px 8px #005983, 9px 9px #005983, 10px 10px #005983, 11px 11px #005983, 12px 12px #005983, 13px 13px #005983, 14px 14px #005983, 15px 15px #005983, 16px 16px #005983, 17px 17px #005983, 18px 18px #005983, 19px 19px #005983, 20px 20px #005983, 21px 21px #005983, 22px 22px #005983, 23px 23px #005983, 24px 24px #005983, 25px 25px #005983, 26px 26px #005983, 27px 27px #005983, 28px 28px #005983, 29px 29px #005983, 30px 30px #005983;
  }
  .social-nav .linkedin:hover {
      color: #007BB6;
  }
  .social-nav .pinterest {
      background: #CB2026;
      text-shadow: 0px 0px #9f191e, 1px 1px #9f191e, 2px 2px #9f191e, 3px 3px #9f191e, 4px 4px #9f191e, 5px 5px #9f191e, 6px 6px #9f191e, 7px 7px #9f191e, 8px 8px #9f191e, 9px 9px #9f191e, 10px 10px #9f191e, 11px 11px #9f191e, 12px 12px #9f191e, 13px 13px #9f191e, 14px 14px #9f191e, 15px 15px #9f191e, 16px 16px #9f191e, 17px 17px #9f191e, 18px 18px #9f191e, 19px 19px #9f191e, 20px 20px #9f191e, 21px 21px #9f191e, 22px 22px #9f191e, 23px 23px #9f191e, 24px 24px #9f191e, 25px 25px #9f191e, 26px 26px #9f191e, 27px 27px #9f191e, 28px 28px #9f191e, 29px 29px #9f191e, 30px 30px #9f191e;
  }
  .social-nav .pinterest:hover {
      color: #CB2026;
  }