/* PAPERS CAROUSEL */
#recent-papers-carousel {
    display: inline-block;
    width: 90%;
    height: calc(100% - var(--title-line-height) - var(--command-line-height));
}

#carousel-content {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: white;
    overflow: hidden;
}

#carousel-overlay {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 20%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0), rgba(255,255,255,0), rgba(255,255,255,0), rgba(255,255,255,1));
    z-index: 2;
}

#carousel-overlay-left {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 20%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
    z-index: 2;
}

#carousel-overlay-right {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 20%;
    height: 100%;
    background-image: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
    z-index: 2;
}

#carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    margin-left: 20%;
    transition: transform 1s ease;
    padding: 15px 0;
}

/* Carousel item */
.carousel-item {
    display: inline-block;
    width: 60%;
    min-width: 60%;
    padding: 0 20px;
    height: 100%;
    background-color: white;
    vertical-align: top;
    cursor: pointer;
}

.carousel-item:hover {
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    transition-duration: 0.3s;
}

.carousel-item-img-div {
    display: inline-block;
    width: 55%;
    height: 100%;
}

.carousel-item-img {
    display: block;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.carousel-item-info-div {
    display: inline-block;
    width: 40%;
    height: 100%;
    padding-left: 20px;
    vertical-align: top;
}

.carousel-paper-title {
    text-align: center;
    margin-bottom: 10px;
}

.author-name-span {
    white-space: nowrap;
}

.paper-id {
    display: none;
}

.journal-line {
    font-size: 1rem;
}

/* CAROUSEL COMMANDS */
#carousel-commands {
    display: block;
    width: 100%;
    height: 40px;
    text-align: center;
    padding: 10px 0;
}

.carousel-command-button {
    display: inline;
    color: var(--header-blue);
    cursor: pointer;
    font-size: 1.4rem;
    vertical-align: bottom;
}

.carousel-command-button:hover {
    text-decoration: underline;
}

#carousel-item-icons {
    display: inline-block;
    cursor: pointer;
    height: 100%;
}

.carousel-item-icons:hover {
    text-decoration: underline;
}

.carousel-icon-img {
    height: 100%;
    object-fit: contain;
    margin: 0 5px;
}



@media (max-width:1400px) {
    /* Preoblikovanje slajdov */
    .carousel-item-info-div {
        display: block;
        width: 100%;
        height: auto;
        padding-top: 20px;
    }

    .carousel-item-img-div {
        display: block;
        width: 100%;
        height: 150px;
        text-align: center;
    }

    #content{
        font-size: 0.8rem;
    }

    .carousel-item-info-div {
        padding: 5px;
    }

    .carousel-item-img-div {
        height: 150px;
    }

    .carousel-paper-title {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .journal-line {
        font-size: 0.8rem;
    }
}

@media (max-width:800px) {
    .carousel-item-img-div{
        height: 130px;
    }

    .carousel-item {
        padding: 0px 5px;
    }

    .carousel-paper-title {
        font-size: 0.9rem;
    }

    .journal-line {
        font-size: 0.75rem;
        padding-bottom: 3px;
    }

    .author-name-span {
        font-size: 0.8rem;
    }

    .date-published {
        font-size: 0.7rem;
    }
}

@media (max-width: 500px) {
    .carousel-item-img-div {
        height: 100px;
    }

    .carousel-paper-title {
        font-size: 0.8rem;
    }

    .author-name-span {
        font-size: 0.7rem;
    }
}