.publication-wrap {
    /*  --flexDirection: column;*/
    /*  --padding: 400px 0;*/
    /*
  font-family: helvetica;
  background: linear-gradient(to bottom, #e9e9f3 0%, #ffffff 100%);
  background: rgb(84 104 255 / 80%);
*/
    padding: var(--padding);
    /*
   display: flex;
  align-items: center;
  justify-content: center;
*/
}

/*
.scene {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: var(--flexDirection);
  flex: 0 1 80%
}
*/

@media (min-width: 620px) {
    body {
        --flexDirection: row;
        --padding: 0 3em;
    }
}

.publcationCard {
    perspective: 900px;
    display: flex;
    flex-grow: 1;
    width: 100%;
    justify-content: center;
    margin-bottom: 100px;

}

.book {

    --rotation: 18deg;
    --scale: 0.8;
    --width: 200px;
    --height: 300px;
    --fontSize: 22px;
    --coverBackground: 255 255 255;
    --titleColor: #36395a;
    --4thBackground: #b6b7d5;

    width: var(--width);
    height: var(--height);
    transform: rotate3d(0, 1, 0, var(--rotation)) translateZ(-50px) scale(var(--scale));
    transform-origin: center center;
    transition: transform 0.2s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.book:hover {
    --rotation: 30deg;
    --4thBackground: #d6d6e7;
    /* GREY 100 */
}

.book:active {
    --rotation: 20deg;
    --scale: 0.78;
    --4thBackground: #d6d6e7;
    /* GREY 100 */
}

/* Book Shadow */
.book:before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: -60px;
    height: 60px;
    width: 100%;
    background: rgb(0 0 0 / 55%);
    border-radius: 0;
    filter: blur(40px);
    z-index: -1;
    /* enable hardware acceleration to avoid visual glitches */
    transform: translate3d(-34px, 0, -40px);
}

/* 4th cover */
.book:after {
    content: "";
    display: block;
    height: var(--height);
    width: 60px;
    background: var(--4thBackground);
    transform: rotateY(-90deg) translateZ(30px);
    transition: background-color 0.2s ease;
    will-change: background-color;
}

.book .cover {
    background: linear-gradient(to top, #e9e9f3 0%, #ffffff 100%);
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transform: translateZ(30px);
    background-size: contain;
}

/* Gradient from bottom to top */
.book .cover:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgb(var(--coverBackground)),
            rgb(var(--coverBackground) / 80%),
            rgb(var(--coverBackground) / 60%),
            rgb(var(--coverBackground) / 0%),
            rgb(var(--coverBackground) / 0%));
    z-index: 1;
}

.book .cover .cover-icon {
    width: calc(100% - 64px);
    height: 80%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-items: flex-end;
    margin: auto;
    font-size: 14px;
    color: #000;
}

.book .cover .cover-title {
    width: calc(100% - 64px);
    height: 20%;
    position: relative;
    z-index: 2;
    align-self: flex-end;
    justify-self: flex-end;
    display: flex;
    font-size: var(--fontSize);
    line-height: var(--lineHeight);
    font-weight: bold;
    color: var(--titleColor);
    padding-bottom: 1em;
    z-index: 2;
    margin: auto;
    backface-visibility: hidden;
/*    font-size: 22px;*/
}

/* Top book pattern */
.book .cover .pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 200%;
}

.book .cover .icon {
    width: 64px;
    height: 64px;
    background-repeat: no-repeat;
    background-size: 100%;
    transform: translateY(-16px);
    z-index: 3;
}

@media (min-width: 780px) {
    .book {
        --width: 300px;
        --height: 400px;
        --fontSize: 22px;
        --lineHeight:26px;
        --scale: 1;
    }

    .book:active {
        --scale: 0.95;
    }
}




/*Responsive Css Start*/
@media only screen and (max-width: 575px) {

    .book {
        --fontSize: 14px;
        --lineHeight:20px;
        --scale: 1;
    }
    
}