/*html {
    background-image: url('bg_blue.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    width: 100vw;
    height: 100vh;
    overflow: auto;
}
*/
html {
    background-color: rgb(16, 14, 159, 1.0);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.news-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0px;
    padding-left: 20px;
    padding-right: 20px;
}

.news-item {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    margin: 10px 0;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 15px;
}

.news-item img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.news-item h2 {
    margin-top: 10px;
}

/*.news-item p {
    margin-top: 5px;
}*/

.news-item .first-content {
/*    line-height: 30px;*/
    overflow:hidden; 
/*    font-size: 20px;    */
    margin-top: 0px;

    /*The problematic part is below*/   
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.astext {
    background:none;
    border:none;
    margin-top: 10px;
    margin-left: 5px;
    padding:0;
    cursor: pointer;
    color: white;
    font-size: 20px;
}

.astext0 {
    background:none;
    border:none;
    margin-top: 10px;
    margin-left: 5px;
    padding:0;
    cursor: pointer;
    color: darkblue;
    font-size: 16px;
    text-decoration: underline overline;
}

h1 {
    color: white;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    margin-top: 0;
    margin-bottom: 0;
}

span {
    display: block; /* Fallback for non-webkit */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* no of lines */
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}