h1 {
    font-weight: lighter;
}

html {
    height: 100%;
    background-color: var(--light);
}

#page.background-light {
    background-color: var(--light);
}

#masthead {
    background: var(--white);
    position: relative;
    z-index: 9;
}

.admin-header {
    padding: 2rem 0;
}

#main {
    background: var(--white);
    /* overflow: hidden; */
    padding: 3rem;
    box-sizing: border-box;
}

#nav-bar {
    box-shadow: 0 0 5px var(--gray);
}

div#avatar-container {
    margin-left: auto;
    display: flex;
    align-items: center;
}

#profile_menu {
    position: relative;
    cursor: pointer;
    padding: 1rem 1rem 1rem 0;
}

#profile_menu:after {
    content: "";
    border-left: 6px solid transparent;
    width: 0;
    height: 0;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--secondary);
}

#profile_menu h4 {
    color: var(--text);
    margin: 0 0 0 .25rem;
    font-size: .9rem;
}

#profile_menu:hover #profile_sub_menu {
    display: block;
}

#profile_sub_menu {
    position: absolute;
    display: none;
    background: var(--white);
    box-shadow: 0 0 05px var(--black);
    border-radius: 5px;
    padding: 1rem;
    list-style: none;
    width: 175px;
    right: 0;
    top: 99%;
    text-align: right;
}

#profile_sub_menu a {
    color: var(--secondary);
    display: inline-block;
    width: 100%;
    transition: all 0.3s ease 0s;
    border-bottom: 1px solid transparent;
}

#profile_sub_menu li a:hover {
    border-bottom: 1px solid;
}

div#avatar {
    display: inline-flex;
    flex: 0 0 auto;
}

#avatar img {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-block;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--secondary);
}

#profile-image-preview {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: top center;
}

#dash_nav {
    background-color: var(--white);
}

#nav-bar #nav-cards {
    display: flex;
    flex-flow: row;
    justify-content: start;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row;
    align-content: flex-start;
    gap: 2%;
}

.dash-nav-card {
    padding-right: unset;
    display: flex;
    cursor: pointer;
    align-items: center;
}

.dash-nav--icon {
    margin-right: 5px;
    display: inline-block;
    width: 40px;
    height: 40px;
}

#dynamic_content article {
    margin: 0 0 3rem;
}

.nav-title {
    font-size: .9rem;
    color: var(--black);
    display: inline-block;
    text-decoration: none;
    vertical-align: middle;
    font-weight: bold;
    margin: 1.25rem 0;
}

.dash-search-form .search-form button {
    margin: 0 0 0 .5rem;
}

.list-header h2 {
    font-family: var(--font-family-secondary);
    font-weight: lighter;
}

.title-icon {
    position: relative;
    padding: 0 0 0 25px;
}

.title-icon::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 0;
    width: 40px;
    height: 40px;
}

.title-icon--added::before {
    background-image: url('../images/added.svg');
}

.title-icon--overdue::before {
    background-image: url('../images/overdue.svg');
}

.title-icon--quicklink::before {
    background-image: url('../images/quicklink.svg');
}

.title-icon--news::before {
    background-image: url('../images/green-compass.svg');
}

.dashcard {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
    position: relative;
}

.dashcard--item {
    background-color: var(--white);
    box-shadow: 0 0 5px var(--gray);
    border-radius: 5px;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-flow: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow: hidden;
    overflow-wrap: anywhere;
    min-height: 300px;
}

.dashcard--item.add-button {
    text-align: center;
    justify-content: center;
    cursor: pointer;
}

.add-button span.material-symbols-outlined {
    font-size: 7rem;
    font-weight: 300;
    margin: 0 0 1rem;
}

.dashcard--item h3 {
    text-transform: uppercase;
    font-family: var(--font-family-secondary);
    font-weight: lighter;
    font-size: 13px;
}

.dashcard--item p {
    margin: 0;
}

.dashcard--border::before {
    border-left: 4px;
    border-style: solid;
    content: '';
    left: -25px;
    position: absolute;
    height: 100%;
    border-radius: 20px;
}

.dashcard--primary .add-button {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 900;
}

.dashcard--primary::before {
    border-color: var(--primary);
}

.dashcard--secondary::before {
    border-color: var(--secondary);
}

.dashcard--warning::before {
    border-color: var(--secondary);
}

.dashcard--danger::before {
    border-color: var(--secondary);
}

.dashcard--secondary .add-button {
    color: var(--primary);
}

.dashcard--title,
.dashcard--title a {
    font-size: 1.25rem;
    color: var(--black);
    margin: 1rem 0 0;
}

.dashcard--subtitle {
    font-size: 1.25rem;
    color: var(--black);
    margin: 1rem 0 0;
}

#quicklinks .dashcard--item {
    cursor: pointer;
}

#quicklinks .dashcard--item h3 {
    font-family: var(--font-family-primary);
    font-weight: 900;
    text-transform: capitalize;
    font-size: 1rem;
}

.quicklink--icon {
    width: auto;
    height: 5rem;
    display: inline-block;
    margin: 2rem auto 0;
}

.updated-tag {
    font-size: .9rem;
    text-align: right;
}

.button:hover {
    opacity: 0.9;
}

.button.button--full {
    width: 100%;
    text-align: center;
}

.button.button--hollow--primary {
    background-color: transparent !important;
    border: 2px solid var(--primary);
    border-radius: 5px;
    color: var(--primary);
}

.button.button--hollow--secondary {
    background-color: transparent !important;
    border: 2px solid var(--secondary);
    border-radius: 5px;
    color: var(--secondary);
}

.button.button--primary {
    background-color: var(--primary) !important;
    color: var(--white);
}

.button.button--secondary {
    background-color: var(--secondary) !important;
    color: var(--white);
}

.button.button--accent {
    background-color: var(--accent) !important;
    color: var(--white);
}

.button.button--logout {
    font-size: 1.25rem;
    padding: .75rem 2rem;
    text-align: center;

}

@media screen and (max-width: 850px) {
    .button.button--logout {
        font-size: 12px;
        padding: 5px 1rem;
    }

}

.pagination {
    margin: 1.5rem;
}

.flex.flex--space-evenly {
    justify-content: space-evenly;
}

@media screen and (min-width: 1600px) {
    .dashcard {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media screen and (min-width: 1400px) {
    .dashcard {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media screen and (min-width: 1400px) {
    .dashcard {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }
}