.card-stack {
    width: 450px;
    position: absolute;
}

.card-stack .card-list li {

    transition: all 100ms ease-in-out;
    position: absolute;
    list-style: none;
    height: 500px;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    border-radius: 30px;
    border: 1px solid #134139;
    /*background: #FFE8B3;*/
    background: url("../img/paper-bg.jpg") no-repeat center;
    background-size: cover;
}

.card-stack .card-list li:nth-child(1) {
    top: 72px;
    left:150px;
    width: 80%;
}
.card-stack .card-list li:nth-child(2) {
    top: 72px;
    left:150px;
    width: 80%;
}
.card-stack .card-list li:nth-child(3) {
    top: 72px;
    left:150px;
    width: 80%;
}
.card-stack .card-list li:nth-child(4) {
    top: 72px;
    left:150px;
    width: 80%;
}
.card-stack .card-list li:nth-child(5) {
    top: 72px;
    left:150px;
    width: 80%;
}
.card-stack .card-list li:nth-child(6) {
    top: 74px;
    left:150px;
    width: 80%;
}
.card-stack .card-list li:nth-child(7) {
    top: 74px;
    left:150px;
    width: 80%;
}
.card-stack .card-list li:nth-child(8) {
    top: 74px;
    left:150px;
    width: 80%;
}
.card-stack .card-list li:nth-child(9) {
    top: 74px;
    left:150px;
    width: 80%;
}
.card-item.activeNow{
    top: 84px !important;
    left:0 !important;
    width: 80% !important;
}

.transformThis {
    animation: scaleDown 500ms;
}

.transformPrev {
    animation: scaleUp 100ms;
    display: none;
}

.cards-nav{
    display:flex;
    gap:4rem;
}
.cards-nav img{
    max-width: 50px;
}
.cards-nav span{

    opacity: 0.5;
    transition: 0.5s;
}
.cards-nav span:hover{
    cursor: pointer;
    opacity: 1;
    transition: 0.5s;
}

.card-item-bordered{
    border-radius: 30px;
    border: 3px solid #0F4C41;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    align-items: center;
}
.card-item-img{
    max-width: 70px;
    margin-top:1.5rem;
}
.card-item-title{
    color: #134139;
    font-size: 30px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-transform: uppercase;
    text-align: left;
    width: 100%;
    margin:20px 0;
}
.card-item-description{
    color: #134139;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    /*text-align: left;*/
    line-height: 1.3;
    width:100%;
    text-align: justify;
}
@keyframes scaleUp {
    0% {
        transform: scale(1.2) translateY(50px);
        opacity: 0;
    }
    20% {
        transform: scale(1.15) translateY(40px);
        opacity: 0.1;
    }
    40% {
        transform: scale(1.1) translateY(30px);
        opacity: 0.2;
    }
    60% {
        transform: scale(1.05) translateY(20px);
        opacity: 0.4;
    }
    80% {
        transform: scale(1.01) translateY(10px);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes scaleDown {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    20% {
        transform: scale(1.01) translateY(20px);
        opacity: 0.8;
    }
    40% {
        transform: scale(1.05) translateY(40px);
        opacity: 0.4;
    }
    60% {
        transform: scale(1.1) translateY(60px);
        opacity: 0.2;
    }
    80% {
        transform: scale(1.15) translateY(80px);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.2) translateY(100px);
        opacity: 0;
    }
}

@keyframes scaleCard {
    0% {
        top: 5px;
    }
    100% {
        top: 24px;
    }
}

@keyframes bounceInLeft {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes bounceInRight {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        transform: translateX(0);
    }
}
