.newsfeed {
    width: 100vw;
    height: 350px;
    background-color: rgb(var(--bg-color));
    padding: 0px;
    margin-bottom: 40px;
    overflow: hidden;
}

.newshead {
    min-height: 24px;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    width: 100%;
    text-align: right;
    color: #000;
    padding-inline: 4px;
    box-sizing: border-box;
    border-top: solid 2px rgb(var(--main-color));
    background-color: rgb(var(--bg-color));
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.newstray {
    width: 100vw;
    overflow: scroll;
    height: calc(100% - 75px);
    display: flex;
}
.newstray_inner{
    height: 100%;
    width: max-content;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2rem;
    padding-block: 1rem;
    align-items: center;
}
.newstray[data-animated=true]{
   overflow: hidden;
}
[data-animated=true] .newstray_inner{
    animation: scroller 30s linear infinite;
}
.newstray_inner:hover{
    animation: scroller 30s linear infinite paused;
}
@keyframes scroller {

    to{
        transform: translateX(calc(-50% - 1rem));
    }
}

.news {
    width: 240px;
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    position: relative;
    transition: all 300ms;
}
.news:hover{
    scale: 1.1;
    z-index: 99999;
}

.newstitle {
    width: 100%;
    min-height: 40px;
    word-wrap: break-word;
    background-color: rgba(var(--main-color), 0.9);
    position: absolute;
    top: 0;
    left: 0;
    padding-left: 5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.newstray_inner a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    width: 240px;
    height: 100%;
}
.test{
    border: 5px solid red;
}
.news img {
    width: 100%;
    height: 100%;
}
.newsbottom{
    margin-top: 5px;
    padding: 5px;
    border-top: 1px solid rgb(var(--main-color));
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
}
.allnews {
    height: 100%;
    font-size: x-large;
    padding: 3px;
    border: 2px solid rgb(var(--main-color));
    color: #000;
    background-color: rgb(var(--bg-color));
    margin: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.allnews a {
    text-decoration: none;
    color: rgb(var(--main-color));
}
@media screen and (max-width:600px) {
    .newstray{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .newstray_inner {
        flex-direction: column;
        overflow: visible;
        height: fit-content;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .newstray[data-animated=true] .newstray_inner{
    animation: none;

}
    .newsfeed {
        height: auto;
    }

    .news {
        width: 320px;
        height: 200px;
    }
    .newstray_inner a{
        width: 320px;
        height: 200px;
    }

}