body {
    background-color: #f5f5f5;
    color: #105749ff;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0), rgb(0 0 0 / 8%)), url(pattern2.svg);
}

.search-results-container {
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 -4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
    min-height: 80vh;
    width: 80%;
}

.search-options {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
}

.search-bar {
    max-width: 560px;
    padding: 8px;
    border-radius: 5px;
    margin-right: 10px;
    border: 1px solid black;
    height: 25px;
    color: black;
}

.sort-by-dropdown,
.sort-type-dropdown {
    padding: 8px;
    border-radius: 5px;
    margin-right: 10px;
    margin-top: 20px;
}
option{
    padding: 8px;
    border-radius: 0;
}
.search-button {
    padding: 8px;
    border-radius: 5px;
    margin-right: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 80px;
}
.search-button:hover{
    background-color: var(--primary-color-dark);
    cursor: pointer;
}
.search-results {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.journal-item {
    display: flex;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 -4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle box shadow */
    transition: transform 0.3s ease-in-out;
    background-color: var(--body-color);
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    height: 219px;
    flex-direction: row;
    flex-wrap: nowrap;
}
.journal-item:hover {
    transform: scale(1.01);
    cursor: pointer;
  }
.search-results img {height: 100%;}

.search-results .info {
    padding: 0px 15px;
    width: 75%;
}

.search-results h3 {
    margin-top: 0;
    font-size: 24px;
    color: #ECB402;
    margin-bottom: 10px;
}

.search-results p {
    margin: 0;
    color: #105749ff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.about {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
} 
.info p strong {
    font-weight: bold;
    color: var(--primary-color-dark);
}
.pagination {
    display: flex;
    align-items: center;
    margin: auto;
    font-size: 18px;
}
.pagination a{
    margin: 5px;
    padding: 3px;
    background-color: var(--primary-color);
    width: 20px;
    display: block;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;

}
.pagination a:hover{
    background-color:var(--highlight-color);
}
@media only screen and (max-width: 750px) {

    .search-results img{
        display: none;
        
    }
    .journal-item{
        height:auto;
    }
    .search-results .info {
        padding: 0px 15px;
        width: 100%;
    }
}