.natours-card{
  //Fucntionality
  perspective: 150rem;
  -moz-perspective: 150rem;
  position: relative;
  height: 53rem;

  &__side{
    height: 53rem;

    font-size: 2rem;
    transition: all .8s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1.5rem 4rem rgba($natours-color-black, .15);

    &--front{
      background-color: $natours-color-white;
    }

    &--back{

      transform: rotateY(180deg);

      &-1{
        background-image: linear-gradient(to right bottom, $natours-color-secondary-light, $natours-color-secondary-dark);
      }
      &-2{
        background-image: linear-gradient(to right bottom, $natours-color-primary-light, $natours-color-primary-dark);
      }
      &-3{
        background-image: linear-gradient(to right bottom, $natours-color-tertiary-light, $natours-color-tertiary-dark);
      }
    }
  }

  &:hover &__side--front {
    transform: rotateY(-180deg);

  }
  &:hover &__side--back {
    transform: rotateY(0deg);

  }

  //Front side styling
  &__picture{
    background-size: cover;
    height: 23rem;
    background-blend-mode: screen;
    clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;


    //&--1{
    //  background-image: linear-gradient(to right bottom, $natours-color-secondary-light, $natours-color-secondary-dark);
    //
    //
    //}
    //
    //&--2{
    //  background-image: linear-gradient(to right bottom, $natours-color-primary-light, $natours-color-primary-dark), url("../img/nat-6.jpg");
    //
    //}
    //
    //&--3{
    //  background-image: linear-gradient(to right bottom, $natours-color-tertiary-light, $natours-color-tertiary-dark), url("../img/nat-7.jpg");
    //
    //}
  }
  &__heading{
    font-size: 2.8rem;
    font-weight: 300;
    color: $natours-color-white;
    text-transform: uppercase;
    position: absolute;
    top: 12rem;
    right: 2rem;
    text-align: right;
    width: 75%;


  }
  &__heading-span{
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 1rem 1.5rem;
    &--1{
      background-image: linear-gradient(to right bottom, rgba($natours-color-secondary-light,.85), rgba($natours-color-secondary-dark,.85));
    }

    &--2{
      background-image: linear-gradient(to right bottom, rgba($natours-color-primary-light,0.85), rgba($natours-color-primary-dark,0.85));
    }

    &--3{
      background-image: linear-gradient(to right bottom, rgba($natours-color-tertiary-light,0.85), rgba($natours-color-tertiary-dark,0.85));
    }
  }

  &__details{
    padding: 3rem;

    ul{
      list-style: none;
      width: 80%;
      margin: 0 auto;

      li{
        text-align: center;
        font-size: 1.5rem;
        padding: 1rem;
        &:not(:last-child){
          border-bottom: 1px solid $natours-color-gray-light-2;
        }
      }
    }
  }

  //Back side styling

  &__cta{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }
  &__price-box{
    text-align: center;
    color: $natours-color-white;
    margin-bottom: 8rem;
  }
  &__price-only{
    font-size: 1.4rem;
    text-transform: uppercase;
  }
  &__price-value{
    font-size: 6rem;
    font-weight: 100;
  }

  //@include respond(tab-port){
  @media only screen and (max-width:56.25em),
         only screen and (hover:none){
    height: auto;
    border-radius: 3px;
    background-color: $natours-color-white;
    box-shadow: 0 1.5rem 4rem rgba($natours-color-black, .15);

    &__side{
      height: auto;
      position: relative;
      box-shadow: none;


      &--back{

        transform: rotateY(0deg);
        clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);

      }
    }

    &:hover &__side--front {
      transform: rotateY(0deg);

    }
    &:hover &__side--back {
      transform: rotateY(0deg);

    }

    &__details{
      padding: 1rem 3rem;
    }



    //Back side styling

    &__cta{
      position: relative;
      top: 0;
      left: 0;
      transform: translate(0);
      width: 100%;
      padding: 7rem 4rem 4rem 4rem;

    }
    &__price-box{
      margin-bottom: 3rem;
    }

    &__price-value{
      font-size: 6rem;
    }
  }
}
