.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: linear-gradient(to bottom, #2C3E50, #7F8C8D);
    color: white;
    padding: 10px;
    position: relative;
}

.header-brand {
    justify-self: start;

    margin: 0;
    font-size: 1.5rem;
}

.header-title {
    justify-self: center;
    text-align: center;
    font-size: 1.2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-links {
    justify-self: end;

    display: flex;
    gap: 20px;
    align-items: center;
}

.header a {
    color: rgb(162, 166, 198);
    font-weight: bold;
    text-decoration: none;
}

.header a:hover {
    color: rgb(155, 164, 232);
}

.user-name {
    margin-left: 10px;
    margin-right: 10px;
}

h3>i {
    text-decoration: underline;
    color: rgb(114, 69, 69);
}

.Mindex-title {
    text-align: center;
}

@media (max-width: 768px) {
    .header {
        grid-template-columns: auto 1fr;
        /* Stack brand and links */
        gap: 10px;
    }

    .header-title {
        position: static;
        transform: none;
        grid-column: 1 / -1;
        /* Full width */
        order: -1;
        /* Move to top */
    }

    .user-name {
        display: none;
    }

    .nav-link {
        margin-left: auto;
    }


    .header-links {
        justify-self: end;
    }
}