.card-div {
    position: relative;
    border: #f8f9fa;
    display: flex;
    flex-direction: column;
    /* height: 100px; */
    transition: 0.3s;
    transform: scale(1);
    filter: brightness(100%);

}

.card-div:hover {
    filter: brightness(108%);
    transform: scale(1.02);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-img-top {
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    height: 300px;
    object-fit: cover;
}

.mainpage-clock {
    color: white;
}

.story {
    position: absolute;
    margin-top: 35px;
    background-color: #2278CE;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 0.5%;
    padding-bottom: 0.5%;
    color: #F8F9FA;
}

.story-time {
    position: absolute;
    margin-top: 50%;
    margin-left: 78%;
    background-color: black;
    color: #f1f1f1;
    padding: 0.5%;
    border-radius: 5px;
}

.card-body-text {
    position: relative;
    top: -40px;
    background-color: white;
    width: 95%;
    margin: 0px auto;
    border-color: #333;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.popularity-button {
    background-color: #ccc !important;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    padding-right: 10px;
    margin-left: 5px;
}

.popularity-button:hover,
.popularity-button.active {
    background-color: #7d9cba !important;
    transform: scale(1.10);
}

.search-container {
    float: right;

}

input[type=text] {
    padding: 6px;
    margin-top: 5px;
    font-size: 15px;
    border-style: solid;
}

.search-container button {
    float: right;
    padding: 6px 10px;
    margin-top: 5px;
    margin-right: 16px;
    background: #DFECF7;
    font-size: 17px;
    border: none;
    cursor: pointer;
}

.search-container button:hover {
    background: #ccc;
}



@media (min-width: 768px) {
    .py-md-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}