body {
    background-color: #88452a;
    background-image: url(../img/bc.jpg);
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-repeat: repeat-y;
    overflow-x: hidden;
    margin: 0;
    font-family: "Open Sans", arial, sans-serif;
}

.navbar {
    width: 100vw;
    height: 50px;
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.9), rgba(23, 23, 23, 0.9) 75%, rgba(185, 185, 185, 0));
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure the navbar is above other content */
    display: flex;
    justify-content: first baseline; /* Distribute links evenly */
    align-items: center; /* Center items vertically */
}

.navbar a {
    text-decoration: none;
    color: white;
    font-family: "Open Sans",arial,sans-serif;
    font-size: 15.5px;
    padding: 10px 15px;
    position: relative;
    top: -5px;
}

.navbar a:hover {
    text-decoration: underline;
    color: #ccc;
}

.login {
    margin-left: auto;
}

.articles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.news-main {
    border-radius: 5px;
    margin: 10px;
    width: 100%;
    position: relative;
}

.news-main img {
    width: 40%;
    height: auto;
    position: relative;
    left: 55vw;
    top: 7vh;
}

.news-main .title {
    text-decoration: none;
    font-size: 4vw; /* Responsive font size */
    margin-bottom: 2vw; /* Responsive spacing */
    position: absolute;
    top: 2%;
    left: 3%;
    mix-blend-mode: difference;
    filter: contrast(0);
}

.news-main .description {
    text-decoration: none;
    mix-blend-mode: difference;
    filter: contrast(0);
    font-size: 1.2vw; /* Responsive font size */
    position: absolute;
    top: 28%; /* Adjusted to ensure spacing between title and description */
    left: 3.1%;
    width: 50vw;
}

.news {
    background-color: #212121;
    border: 1px solid #212121;
    border-radius: 5px;
    margin: 10px;
    width: calc(33% - 40px);
    box-shadow: 10px 11px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.2s;
}

.news:hover {
    transform: scale(1.05);
}

.news img {
    width: 100%;
    height: auto;
}

.news .overlay {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

@media screen and (min-width: 550px) {
    .news-main{
        overflow: hidden;
    }
}

@media screen and (max-width: 550px) {
    .login{
        display: none;
    }

    .news-main .title {
        font-size: 8vw; /* Responsive font size */
    }
    
    .news-main .description {
        font-size: 1.5vw; /* Responsive font size */
        top: 52%; /* Adjusted to ensure spacing between title and description */
    }

    .news{
        margin: 55px;
        width: calc(84% - 40px);
    }

    .news-main{
        border-radius: 5px;
        margin: 10px;
        width: 100%;
        position: relative;
    }

    .artwork-text p {
        font-size: 0.7em;
    }
}

@media screen and (max-width: 404px) {
    .login{
        display: none;
    }

    .navbar{
        height: 32px;
    }

    .navbar a{
        font-size: 11.5px;
    }
}