@media (min-width: 801px) {
    header {
        display: flex;
        justify-content: space-between;
        grid-area: header;
    }

    body .container header .header-left {
        flex: 0 0 20%; /* 20% width */
        display: flex;
        align-items: center;
    }

    body .container header .header-left img {
        max-height: 100%;
        width: auto;
        border-radius: 12px;
        object-fit: contain;
    }

    body .container header .header-right {
        position: relative;
        flex: 0 0 80%; /* 80% width */
        display: flex;
        justify-content: flex-start; /* Align items to the left - otherwise right (-end) or center (literally center) */
        align-items: center;
        gap: 10px; /* Space between profile pic, name, and logout */
    }

    .header-right .profile-card {
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        align-items: center;
        gap: 12px; /* slightly larger gap */
        padding: 8px 14px; /* increased padding */
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
        font-size: 15px; /* base font size up */
    }

    /* Profile picture */
    .profile-card .profile-pic {
        height: 38px;
        width: 38px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* Profile name */
    .profile-card .profile-name {
        color: white;
        font-weight: bold;
        text-decoration: none;
        font-size: 15px;
    }

    /* Meta */
    .profile-card .profile-meta {
        color: #ccc;
        font-size: 13px;
    }

    /* Logout button */
    .profile-card .logout-button {
        background-color: #D65555;
        color: #fff;
        text-decoration: none;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 13px;
        transition: background-color 0.3s ease;
        margin-left: auto;
    }

    .profile-card .logout-button:hover {
        background-color: #b44848;
    }


    /* -----MAIN CONTENT----- */
    body .container main {
        grid-area: main;
        padding-left: 6px;
        height: auto;
        max-height: 100vh;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        scrollbar-color: darkred transparent;
        scrollbar-width: thin;
    }

    body .container main .scrollable-content {
        overflow-y: auto;
        max-height: calc(100vh - 60px);
    }

    body .container main ul {
        list-style-type: none;
        padding: 0;
    }

    body .container main .artist-entry:hover {
        background-color: rgba(139, 0, 0, 0.9);
    }

    body .container main .artist-entry {
        background-color: rgba(139, 0, 0, 0.7);
        border: 2px solid darkred;
        margin-bottom: 10px;
        padding: 10px;
        display: flex;
        align-items: flex-start;
        margin-right: 20px;
        transition: background-color 0.3s;
        border-radius: 12px;
    }

    body .container main a.artist-link {
        text-decoration: none;
        color: inherit;
    }

    body .container main .artist-content {
        display: flex;
        align-items: flex-start;
        width: 100%;
    }

    body .container main .artist-image {
        height: 20vh;
        width: 20vh;
        margin-right: 20px;
        border-radius: 10px;
    }

    body .container main .artist-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    body .container main .artist-name {
        font-size: larger;
        margin-bottom: 5px;
    }

    body .container main .artist-bio {
        font-size: medium;
        color: #FFF;
        opacity: 0.8;
    }

    body .container main h1,
    body .container main h2,
    body .container main p,
    body .container main li {
        color: white;
    }
    /* -----MAIN CONTENT----- */
    .error-box {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    }

    .error-box p {
        color: black !important;
    }
}


@media (max-width: 800px) {

    header {
        position: relative;
    }

    .container {
        grid-template-rows: 13vh 10vh 67vh 10vh;
    }

    .header-right .profile-card {
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-17%);
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 5px 10px;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        font-size: 14px;
    }

    /* Profile picture */
    .profile-card .profile-pic {
        height: 32px;
        width: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* Profile name */
    .profile-card .profile-name {
        color: white;
        font-weight: bold;
        text-decoration: none;
        font-size: 14px;
    }

    /* Meta */
    .profile-card .profile-meta {
        color: #ccc;
        font-size: 12px;
    }

    /* Logout button */
    .profile-card .logout-button {
        background-color: #D65555;
        color: #fff;
        text-decoration: none;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        transition: background-color 0.3s ease;
        margin-left: auto;
    }

    .profile-card .logout-button:hover {
        background-color: #b44848;
    }

    .error-box {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    }

    .error-box p {
        color: black !important;
    }
}