@import url("https://fonts.googleapis.com/css?family=Lexend+Deca&display=swap");

:root {
    --background: #33837e;
    --left-side: #b83218d4;
    --card: #c7ffbc;
    --card-line: #80ea69;
    --button-color-3: #26850e;
    --button-color-2: #379e1f;
    --button-color-1: #56be3e;
    --post: #dddde0;
    --numbers: #838183;
    --numbers-2: #aaa9ab;
    --post-line: #757375;
    --post-line2: #545354;
}

.gallery-internship .container-gallery {
    background-color: #ffffff;
    display: flex;
    width: 460px;
    height: 120px;
    position: relative;
    border-radius: 6px;
    transition: 0.3s ease-in-out;
    margin: auto;
}

.gallery-internship.btn-footer .container-gallery {
    width: 130px;
    margin-left: 0;
    background-color: transparent;
}

.gallery-internship.btn-footer .right-side {
    display: none;
}

.gallery-internship.btn-footer .left-side {
    border-radius: 10px;
}

.gallery-internship .container-gallery:before {
    width: 100%;
    position: absolute;
    top: 0;
    left: -100vw;
    height: 100%;
    content: "";
}

.gallery-internship .container-gallery:hover {
    transform: scale(1.03);
    width: 220px;
}

.gallery-internship .container-gallery:hover .left-side {
    width: 100%;
}

.gallery-internship .left-side {
    background-color: var(--left-side);
    width: 130px;
    height: 120px;
    border-radius: 10px 0 0 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    overflow: hidden;
}

.gallery-internship .right-side {
    width: calc(100% - 130px);
    display: flex;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    background-color: #3a6f9c;
    color: white;
    border-radius: 0 10px 10px 0;
}

.gallery-internship .right-side:hover {
    background-color: #f9f7f9;
}
.gallery-internship .left-side:hover  {
    border-radius: 10px;
}
.gallery-internship .arrow {
    width: 20px;
    height: 20px;
    margin-right: 20px;
}

.gallery-internship .new {
    font-size: 23px;
    font-family: "Lexend Deca", sans-serif;
    margin-left: 20px;
}

.gallery-internship .card {
    background-color: transparent !important;
    border-radius: 6px;
    position: absolute;
    display: flex;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    border: unset !important;
}

@media only screen and (max-width: 480px) {
    .gallery-internship .container-gallery {
        transform: scale(0.7);
    }

    .gallery-internship .container-gallery:hover {
        transform: scale(0.74);
    }

    .gallery-internship .new {
        font-size: 18px;
    }
}

.gallery-internship .container-gallery:hover .card {
    animation: slide-top 1.2s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}

@keyframes slide-top {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    50% {
        -webkit-transform: translateY(-70px) rotate(120deg);
        transform: translateY(-70px) rotate(120deg);
    }
    60% {
        -webkit-transform: translateY(-70px) rotate(120deg);
        transform: translateY(-70px) rotate(120deg);
    }
    100% {
        -webkit-transform: translateY(0px) rotate(120deg);
        transform: translateY(0px) rotate(360deg);
    }
}
