/* Latest List */
.latest-list-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.latest-list-width {
    width: 1200px;
    margin-top: 20px;
}

.latest-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.latest-list-drama {
    flex: auto;
    width: 20%;
    margin: 10px;
    cursor: pointer;
}

.latest-list-drama:hover {
    filter: brightness(0.85) contrast(120%);
}

.latest-list-drama-photo {
    width: 100%;
    height: 400px;
    object-position: center;
    object-fit: cover;
    border-radius: 5px;
}

.latest-list-drama-title {
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.latest-list-drama-title-separator {
    border-bottom: 2px solid rgb(0, 162, 255);
    width: 60px;
    margin: auto;
    margin-top: 10px;
}

.latest-list-drama-date {
    margin-top: 10px;
    font-size: 15px;
    color: #636c7d;
}


/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    margin: 20px 0px 0px 0px;
    color: rgb(2, 177, 247) !important;
}

.page-item {
    cursor: pointer;
}

.pagination > .active > a
{
    color: white;
    background-color: rgb(2, 177, 247) !Important;
    border: solid 1px rgb(2, 177, 247) !Important;
}

.pagination > li > a
{
    color: rgb(2, 177, 247);
}

/* Sortlist Bar */
.latest-sortlist-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.latest-sortlist-width {
    width: 1200px;
    margin-top: 100px;
}

.latest-sortlist,
.popular-list,
.category-list {
    display: flex;
    justify-content: left;
    align-items: center;
}

.latest-sortlist-title-all,
.popular-list-title-all,
.category-list-title-all {
    color: rgb(2, 177, 247);
    border: 1px solid rgb(2, 177, 247);
}

.latest-sortlist-title,
.category-list-title {
    flex: auto;
    font-weight: bold;
    margin: 5px 5px 5px 10px;
    padding: 8px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

.popular-list-title-all,
.latest-sortlist-title-all,
.category-list-title-all {
    flex: none;
    width: 105px;
    font-weight: bold;
    margin: 5px 5px 5px 10px;
    padding: 8px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

.latest-sortlist-title:hover,
.latest-sortlist-title-all:hover,
.popular-list-title-all:hover,
.category-list-title:hover,
.category-list-title-all:hover {
    color: rgb(2, 177, 247);
}

.latest-sortlist-header,
.popular-list-header,
.category-list-header {
    flex: none;
    width: 120px;
    height: 42px;
    margin: 10px;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    background-color: rgb(2, 177, 247);
}


/* Other Devices */
@media(max-width: 1200px) {

    .latest-list-width {
        margin: 100px 20px 20px 20px;
    }

    .latest-list-drama {
        width: 35%;
    }

    .latest-sortlist {
        margin: 100px 20px 0px 20px;
    }

    .latest-sortlist,
    .category-list,
    .popular-list {
        margin: 0px 20px 0px 20px;
    }

}

@media(max-width: 750px) {

    .latest-sortlist-container {
        display: none;
    }

}

@media(max-width: 600px) {

    .latest-list-drama-photo {
        height: auto;
        object-fit: contain;
    }

    .latest-list-drama {
        width: 90%;
    }

}