@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

.title{
    text-align: center;
    font-size:45px;
    padding: 12px;
}

.search{
    display: flex;
}

.searchthing{
    position:absolute;
    left:22px;
    font-size: 40px;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    cursor:default;
}

.searchbar{
    margin-top: 10px;
    font-family: Spectral, Arial;
    font-size: 18px;
    resize:none;
    padding:4px;
    padding-inline:8px;
    padding-left:34px;
    border-radius: 8px;
    border: 1px solid black;
    margin-inline: 15px;
    max-width: 400px;
    width: 80vw;
}

.articleslist{
    margin:10px;
    margin-top:22px;
}

.articleslist .articlestitle{
    margin-inline:10px;
    margin-top: 5px;
    margin-bottom: -5px;
    font-size: 20px;
    font-weight: bold;
}

.articleslist .articlescontents{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.articleslist .articlepreview{
    min-height: 130px;
    min-width: 200px;
    max-height: 130px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    margin:2px;
    padding-inline: 10px;
    padding-block:20px;
    justify-content: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    cursor: pointer;
}

.articleslist .articlepreview:hover, .articleslist .articlepreview:hover p{
    background-color: rgb(222, 222, 222);
}

.articleslist .articlepreview img{
    height:95px;
    max-width: 190px;
    object-fit: contain;
    align-items: center;
    justify-content: center;
    margin:auto;
}

.articleslist .articlepreview a{
    position:relative;
    text-align: center;
}

.articleslist .articlepreview p{
    margin:auto;
    width: 100%;
    color: black;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
}