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;
}

.artworks-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    margin-top: 40px; /* To ensure it doesn't overlap with the navbar */
}

.artwork {
    flex: 1 1 calc(25% - 40px); /* Flex-grow, flex-shrink, and basis to handle responsive resizing */
    margin: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeInTop 0.6s ease-in-out;
}

.artwork img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    box-sizing: border-box;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.artwork:hover .overlay {
    opacity: 1;
}

@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 550px) {
    .login{
        display: none;
    }
}

@media screen and (max-width: 404px) {
    .login{
        display: none;
    }

    .navbar{
        height: 32px;
    }

    .navbar a{
        font-size: 11.5px;
    }
}