﻿

.body{
  margin:0;
  padding:0;
  top:0;
}

/* .flip-card-container */
.flip-card-container {
    --hue: 150;
    --primary: hsl(var(--hue), 50%, 50%);
    --white-1: hsl(0, 0%, 90%);
    --white-2: hsl(0, 0%, 80%);
    --dark: hsl(var(--hue), 25%, 10%);
    --grey: hsl(0, 0%, 50%);
    height: 350px;
    width: 480px;
    margin: 30px 0 0 115px;
    perspective: 1000px;
   
    float: left; /*Side by Side Slide */
}

/* .flip-card */
.flip-card {
    width: inherit;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: .6s .1s;


}

/* hover and focus-within states */
.flip-card-container:hover .flip-card,
.flip-card-container:focus-within .flip-card {
    transform: rotateY(180deg);
}

/* .card-... */
.card-front {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: var(--dark);
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-back {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: white;
    background-color:white;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .card-front */
.card-front {
    transform: rotateY(0deg);
    z-index: 2;
}

/* .card-back */
.card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

/* figure */
figure {
    z-index: -1;
}

/* figure, .img-bg */
figure,
.img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* img */
img {
    height: 100%;
    border-radius: 24px;
}

/* figcaption */
figcaption {
  /*  display: block;*/
    width: auto;
    margin-top: 8%;
    padding: 8px 22px;
    font-weight: bold;
    font-size:26px;
    line-height: 1.6;
    letter-spacing: 2px;
    word-spacing: 6px;
    text-align: right;
    position: absolute;
    top: 5%;
    right: 32px;
    /*color: var(--white-1);*/
    color:deeppink;
    /*background: hsla(var(--hue), 25%, 10%, .5);*/
}
/* figcaption */
figcaption1 {
    display: block;
    width: 220px;
    margin-top: 8%;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 26px;
    line-height: 1.6;
    letter-spacing: 2px;
    word-spacing: 6px;
    text-align: center;
    position: absolute;
    top: -15px;
    left: 140px;
    /*color: var(--white-1);*/
    color: darkblue;
    /*background: hsla(var(--hue), 25%, 10%, .5);*/
    background: hsl(195, 53%, 79%,0.6);
}

 /*.img-bg */
.img-bg {
    /*background: hsla(var(--hue), 25%, 10%, .3);*/
 
}

/*.card-front .img-bg {
    clip-path: polygon(0 20%, 100% 40%, 100% 100%, 0 100%);
}*/

    .card-front .img-bg::before {
        content: "";
        position: absolute;
        top: 24%;
        left: 40%;
        transform: translate(-50%, -50%) rotate(18deg);
        width: 100%;
        height: 6px;
        /*border: 1px solid var(--primary);*/ 
        border-left-color: transparent;
        border-right-color: transparent;
        transition: .1s;
    }

.card-back .img-bg {
    clip-path: polygon(100% 100%);
}

/* hover state */
.flip-card-container:hover .card-front .img-bg::before {
    width: 6px;
    border-left-color: var(--primary);
    border-right-color: var(--primary);
}

/* ul */
.card-style {
    padding-top: 3%;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    list-style: none;
    /* background: hsla(195, 53%, 79%, 0.25);*/
    background-color: #E6E6FF;
    /* color: var(--white-1);*/
    color: darkblue;
    font-family: 'Adobe Devanagari';
    font-size: 18px;
    display: flex;
    right: 15px;
    justify-content: left;
    align-items: start;
    flex-direction: column;
}

/* li */
    .card-style li {
        width: 100%;
        margin-top: 8px;
        ;
        padding-bottom: 12px;
        color: darkblue;
        font-family: 'Adobe Devanagari';
        font-size: 18px;
        text-align: left;
        right: 15px;
        /*position: relative;*/
    }

.card-style li:nth-child(2n) {
    color: var(--white-2);
}

.card-style li:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right:5px;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: .2;
}

/* button */
button {
    font-family: inherit;
    font-weight: bold;
    color: var(--white-1);
    letter-spacing: 2px;
    padding: 9px 20px;
    border: 1px solid var(--grey);
    border-radius: 1000px;
    background: transparent;
    transition: .3s;
    cursor: pointer;
}

    button:hover,
    button:focus {
        color: var(--primary);
        background: hsla(var(--hue), 25%, 10%, .2);
        border-color: currentColor;
    }

    button:active {
        transform: translate(2px);
    }

/* .design-container */
.design-container {
    --tr: 90;
    --op: .5;
    width: 100%;
    height: 100%;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* .design */
.design {
    display: block;
    background: var(--grey);
    position: absolute;
    opacity: var(--op);
    transition: .3s;
}

.design--1,
.design--2,
.design--3,
.design--4 {
    width: 1px;
    height: 100%;
}

.design--1,
.design--2 {
    top: 0;
    transform: translateY(calc((var(--tr) - (var(--tr) * 2)) * 1%))
}

.design--1 {
    left: 20%;
}

.design--2 {
    left: 80%;
}

.design--3,
.design--4 {
    bottom: 0;
    transform: translateY(calc((var(--tr) + (var(--tr) - var(--tr))) * 1%))
}

.design--3 {
    left: 24%;
}

.design--4 {
    left: 76%;
}

.design--5,
.design--6,
.design--7,
.design--8 {
    width: 100%;
    height: 1px;
}

.design--5,
.design--6 {
    left: 0;
    transform: translateX(calc((var(--tr) - (var(--tr) * 2)) * 1%));
}

.design--5 {
    top: 41%;
}

.design--6 {
    top: 59%;
}

.design--7,
.design--8 {
    right: 0;
    transform: translateX(calc((var(--tr) + (var(--tr) - var(--tr))) * 1%))
}

.design--7 {
    top: 44%;
}

.design--8 {
    top: 56%;
}

/* states */
button:hover + .design-container,
button:active + .design-container,
button:focus + .design-container {
    --tr: 20;
    --op: .7;
}

.abs-site-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: hsla(0, 0%, 100%, .6);
    font-size: 16px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}
