:root {
    --body-gray: #ededed;
    --primary-fg: rgb(45, 45, 55);
    --link-color: #5e92d6;
    --link-color-hover: #5dc7bc;
    --button-bg: #dbdbdb;
    --good-bg: #d3f5e1;
    --good-fg: #146e3a;
    --bad-bg: #f5dadc;
    --bad-fg: #ad3945;
    --soft-text: rgb(120, 120, 120);
    --adv-dialog-padding: 0.3rem;
    --border-color: darkgray;
    --handwriting-font: "Architects Daughter", cursive;
    --sticky-bg: linear-gradient(125deg, #fffb94, #e3df76);
    --sticky-important-bg: linear-gradient(125deg, #deffc7, #b2db95);
    --sticky-font-size: 18px;
    --sticky-width: 250px;
    --sticky-height: 250px;
    --sticky-shadow: 3px 3px 5px rgb(180, 180, 180);
    --spacing: 1em;
    --spacing-sm: 0.6em;
    --spacing-lg: 1.4em;
    --sticky-overdue-fg: #f54545;
    --sticky-low-importance-fg: green;
}

html {
    font-size: 14px;
    height: 100%;
    color: var(--primary-fg);
    background: var(--body-gray);
}
body {
    font-family: "mukta";
}
h1, h2, h3 {
    font-family: "raleway";
}
h3 {
    font-size: 1.4em;
}
h3.section-header {
    border-bottom: solid var(--body-gray) 1px;
    padding-bottom: 0.3rem;
    margin-top: 2rem;
    margin-bottom: 0.3rem;
}
h1, h2 {
    font-weight: lighter;
}
form {
    display: flex;
    flex-direction: column;
}
file-picker {
    border: solid darkgray 2px;
    border-radius: 0.3pc;
    margin-bottom: 0.5rem;
}
input, textarea, select, item-picker {
    margin-bottom: 0.5rem;
    border: solid darkgray 2px;
    padding: 0.4rem;
    border-radius: 0.3pc;
    font-size: 14px;
    background: white;
}
item-picker {
    padding: 0px;
}
input, label {
    margin-bottom: 0.5rem;
}
input[type=date] {
    width: 100%;
}
option {
    border-radius: 0px
}
input:active, input:focus, textarea:active, textarea:focus {
    border-color: var(--link-color-hover) !important;
    outline: none;
}
input:not([type='checkbox']):not([type='radio']), textarea, select, item-picker {
    height: 2.6rem;
}
a.linkbutton {
    display: flex;
    justify-content: center;
    align-items: center;
}
button, input[type=submit], a.linkbutton, a.linkbutton:visited {
    margin-bottom: 0.5rem;
    border: none;
    padding: 0.3rem 0.5rem;
    border-radius: 0.3pc;
    background: var(--button-bg);
    transition: color 0.5s, background-color 0.5s;
    color: var(--primary-fg);
}
button[type=submit]{
    padding: 0.8rem;
}
button > i:first-of-type, input[type=submit] > i:first-of-type,
a.linkbutton > i:first-of-type {
    margin-right: 0.3rem;
}

button:hover, input[type=submit]:hover, a.linkbutton:hover {
    color: white;
    background: var(--link-color-hover);
}
textarea {
    resize: vertical;
    min-height: 120px;
}
form label, p.label {
    display: block;
    margin-bottom: 0px;
    color: rgb(140, 140, 140);
    font-size: 0.85rem;
}
form button[type=submit] {
    margin-top: 1rem;
}
.auto-cols {
    display: flex;
    width: 100%;
}
.auto-cols > * {
    flex: 1;
    margin: 0px 0.3rem;
    display: flex;
    flex-direction: column;
}
.auto-cols > *:first-child {
    margin-left: 0px;
}
.auto-cols > *:last-child {
    margin-right: 0px;
}

body {
    background: var(--body-gray);
    display: flex;
    flex-direction: column;
    height: 100%;
}
advanced-dialog button[slot="controls-panel"]:not([unstyled]) {
    font-size: 0.9rem;
    padding: 0.1rem;
}
advanced-dialog button[slot="controls-panel"]:hover {
    color: black;
}

a, a:visited {
    color: var(--link-color);
    transition: color 0.5s;
    text-decoration: none;
}
a:hover {
    color: var(--link-color-hover);
}
button.danger:hover {
    background: rgb(255, 120, 120);
}
input.thin {
    border-width: 1px;
    padding: 0.2rem;
    font-size: 0.9rem;
}

.page-title {
    margin: 2rem;
    text-align: center;
}
.page-subtitle {
    margin-top: -2rem;
    margin-bottom: 2rem;
    color: darkgray;
    text-align: center;
}
.spaced-fa-icon {
    margin-right: 0.3rem;
}

.file-drop {
    outline: solid #79d182 2px !important;
}
.form-small {
    width: 100%;
    max-width: 25rem;
}
.form-medium {
    width: 100%;
    max-width: 30rem;
}
.form-file{
    border: dotted var(--button-bg) 2px;
    padding: 1rem;
    background: none;
    transition: color 0.5s, border-color 0.5s;
}
.form-file:hover{
    border-color: var(--link-color-hover);
    color: var(--link-color-hover);
    background: none;
}
.file-preview-container, .highlight-section-container {
    border: solid var(--button-bg) 1px;
}
.file-preview-header, .highlight-section-header {
    background: var(--body-gray);
    display: flex;
    align-items: center;
    padding: 0.5rem;
    font-size: 1.2rem;
    border-bottom: solid var(--button-bg) 1px;
}
.file-preview-body, .highlight-section-body {
    display: flex;
    margin: 0.2rem;
}
.file-preview-body > img {
    max-width: 100%;
    margin: auto;
}
.highlight-section-body > p {
    margin: 0.3rem;
}
.text-good {
    color: var(--good-fg);
}
.text-bad {
    color: var(--bad-fg) !important;
}
.panel-good, .panel-bad {
    border-radius: 0.3pc;
    background: var(--good-bg);
    color: var(--good-fg);
    padding: 0.3rem;
}
.panel-bad {
    background: var(--bad-bg);
    color: var(--bad-fg);
}
.align-h {
    display: flex;
    align-items: center;
}
form .align-h > input[type=radio], form .align-h > input[type=checkbox]{
    margin-bottom: 0px;
    margin-right: 0.3rem;
}
label.required::after, label[required]::after {
    content: '*';
    color: var(--bad-fg);
}
.form-separator {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 1rem 0px;
}
.form-separator-left, .form-separator-right {
    flex: 1;
    height: 1px;
    background: var(--button-bg);
}
.form-separator p {
    margin: 0px 0.5rem;
    color: rgb(90, 90, 90);
}

#header {
    display: flex;
    align-items: center;
    overflow: hidden;
}
#header #logo {
    height: 3rem;
    margin: 0.4rem;
}
#body-scroller{
    display: flex;
    flex-direction: column;
    overflow: auto;
    flex: 1;
    background: none;
}
#body {
    flex: 1;
    width: 80%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    box-sizing: border-box;
}
#body {
    margin-top: 2rem;
}
.nav-items-container{
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-items-container > a {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 0.3rem;
    color: black !important;
    text-decoration: none;
    font-size: 1.1rem;
    transition: none;
    min-width: 75px;
}
.nav-items-container {
    margin-left: auto;
}
.nav-items-container > a {
    padding-right: 0px;
}
.nav-items-container > a:last-of-type {
    padding-right: 0.3rem;
}
.nav-items-container > a:hover * {
    color: #5dc7bc !important;
}
.nav-items-container > a:hover > div.header-nav-item-container {
    background: var(--body-gray);
}
.header-nav-item-container {
    padding: 0.4rem 0.6rem;
    border-radius: 0.4pc;
    white-space: nowrap;
}
.header-nav-item-container > i {
    color: rgb(120, 120, 120);
    font-size: 0.9rem;
    margin-right: 0.3rem;
}
#user-name-container {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}
#home-logo {
    display: flex;
    align-items: center;
}
#logo-stack {
    display: flex;
    flex-direction: column;
}
#home-logo p {
    color: black;
    margin: 0px;
    line-height: 1;
}
#logo-stack > p:first-child {
    font-size: 1.3rem;
}
#logo-stack > p:last-child {
    font-size: 0.8rem;
    color: rgb(120, 120, 120);
}
#show-nav-flyout {
    margin-left: auto;
    font-size: 1.5rem;
    display: none;
    height: 100%;
    display: none;
    padding: 0px 0.5rem;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
}
#show-nav-flyout > p {
    margin: 0px;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}
#nav-flyout-shader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(120, 120, 120, 0.5);
    backdrop-filter: blur(4px);
    display: none;
}
#nav-flyout {
    width: max(80%, 300px);
    height: 100%;
    background: white;
    transform: translate(-100%, 0%);
    transition: transform 0.15s;
}
#nav-flyout-header {
    display: flex;
    align-items: center;
    padding: 0.3rem;
}
#nav-flyout-header > img {
    height: 3rem;
}
#nav-flyout-header > h2 {
    margin: 0px;
    margin-left: 0.3rem;
}
#nav-flyout .nav-items-container {
    flex-direction: column;
}
#nav-flyout .nav-items-container > a {
    width: 100%;
    padding: 1rem;
    height: auto;
    text-align: left;
    justify-content: left;
}
#nav-flyout-close {
    margin-left: auto;
    height: 40px;
    width: 40px;
    font-size: 1.3rem;
}
#nav-flyout-close > i {
    margin: 0px;
}

.file-search-body, .pet-dialog-container, .breed-dialog-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.file-search-dialog .file-search-top {
    display: flex;
    align-items: center;
}
.file-search-dialog .file-search-top input {
    flex: 1;
    margin: 0px;
}
.file-search-dialog .file-search-bottom, .pet-dialog-scroller {
    overflow: auto;
    min-height: min-content;
    flex: 1;
}
.file-search-row, .pet-search-row {
    display: grid;
    align-items: center;
    grid-column-gap: 0.3rem;
    grid-template-columns: auto 1fr 1fr auto;
    border-bottom: solid rgb(235, 235, 235) 1px;
    padding: 0.3rem;
}
.file-search-row:last-of-type, .pet-search-row:last-of-type {
    border-bottom: none;
}
.file-search-row > p, .pet-search-row > p {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 0px;
}
.file-search-row img {
    max-width: 30px;
    max-height: 30px;
    border-radius: 0.3pc;
}
.file-search-row button, .pet-search-row button {
    margin: 0px;
}
.profile-image, .faux-profile-div {
    height: 50px;
    width: 50px;
    border-radius: 25px;
    object-fit: cover;
}
.faux-profile-div {
    background: darkgray;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
}
.pet-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 75px;
}
.pet-list-container, .pet-list-container-left {
    display: flex;
    flex-wrap: wrap;
}
.animal-dashboard-title {
    display: grid;
    grid-template-columns: 0px auto 1fr;
    align-items: center;
    margin: 1rem 0px;
}
.animal-dashboard-title > p {
    margin: 0px;
    margin-right: 1rem;
    font-size: 1.2rem;
}
.animal-dashboard-title > div {
    height: 1px;
    background: var(--body-gray);
}
.big-link {
    margin: auto;
    border: solid var(--link-color) 2px;
    padding: 0.5rem;
    display: block;
    text-align: center;
    width: 250px;
    border-radius: 0.3pc;
    transition: color 0.5s, border-color 0.5s;
}
.big-link:hover{
    border-color: var(--link-color-hover);
}
.pet-dialog-container {
    display: flex;
    flex-direction: column;
}
.pet-dialog-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.pet-dialog-header input {
    flex: 1;
}
.pet-dialog-selector {
    cursor: pointer;
    margin: 0.3rem;
}
.pet-dialog-selector[active] {
    color: var(--link-color-hover);
}
.pet-search-row {
    grid-template-columns: auto 1fr auto;
}
.pet-search-row > i:first-of-type {
    width: 3rem;
}
.clean-container {
    margin: auto;
    width: 100%;
    padding: 1rem;
    max-width: 800px;
}
.error-message, .success-message, .notification-message {
    display: flex;
    border: none;
    margin-bottom: 0.3rem;
    padding: 0.3rem;
    border-radius: 0.3pc;
}
.error-message {
    color: #bf4545;
    background: #ffd1d1;
}
.success-message {
    color: #20a855;
    background: #c2ffda;
}
.notification-message {
    color: #004abf;
    background: #dbe9ff;
}
.success-message *:last-child, .error-message *:last-child,
.notification-message *:last-child{
    margin-bottom: 0px !important;
}
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(4px);
}
.loading-spinner > i {
    font-size: min(10vw, 80px);
    color: white;
}
.unclickable {
    pointer-events: none;
}
.page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.page-nav > a {
    background: var(--body-gray);
    padding: 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 0.5pc;
    text-align: center;
    margin: 0.3rem;
    height: auto;
    width: auto;
    line-height: 1;
    vertical-align: middle;
}
.page-nav > a > p {
    margin: 0;
    margin-top: 0.2rem; /* Hack to make icons visually align with text */
    }
.page-nav > a > i {
    font-size: 1.2rem;
    margin-bottom: 0;
    margin-right: 0.3rem;
}
.count {
    background: var(--link-color);
    color: white;
    padding: 0px 0.5rem;
    border-radius: 0.4pc;
    margin-left: 0.3rem;
    line-height: 1.4;
    display: inline-block;
}
.back {
    display: block;
    margin-bottom: 1rem;
}
.preserve-whitespace {
    white-space: pre-wrap;
}
.uncolored-link, .uncolored-link:hover, .uncolored-link:visited {
    color: var(--primary-fg);
    text-decoration: none;
}
*[character-count] {
    margin-bottom: 0px;
}
.character-count-display {
    text-align: right;
    margin-top: 0px;
    color: var(--soft-text);
    font-size: 0.6rem;
}

.announcements-list {
    display: flex;
    margin: 1rem 0px;
    flex-direction: column;
}
.announcement {
    border: solid var(--notification-color, darkgray) 1px;
    display: flex;
    align-items: center;
    border-left-width: 4px;
    margin-bottom: 0.3rem;
    padding: 0.6rem;
    border-radius: .4pc;
}
.announcement > p:first-of-type {
    margin: 0px;
    text-align: center;
    font-size: 1.8rem;
    width: 3rem;
    text-align: center;
    color: var(--notification-color, darkgray)
}
.announcement > div {
    flex: 1;
    padding: 0.3rem;
}

/* Disposition: good */
.announcement-disposition-g {
    --notification-color: #4cc766;
}
/* Disposition: neutral / informational */
.announcement-disposition-n {
    --notification-color: #5e92d6;
}
/* Disposition: advisory */
.announcement-disposition-a {
    --notification-color: #e69147;
}
/* Disposition: advisory-important */
.announcement-disposition-ai {
    --notification-color: #f05e56;
}
/* Disposition: special */
.announcement-disposition-s {
    --notification-color: #6716c4;
}

.todo-card {
    width: var(--sticky-width);
    height: var(--sticky-height);
    background: var(--sticky-bg);
    border-radius: 2px;
    box-shadow: var(--sticky-shadow);
    display: flex;
    flex-direction: column;
}
.todo-card-important {
    background: var(--sticky-important-bg);
}
.todo-card > * {
    font-family: var(--handwriting-font);
    font-weight: bold;
    font-size: var(--sticky-font-size);
}
.todo-card-header, .todo-card-body {
    padding: var(--spacing-sm);
}
.todo-card-header {
    padding-bottom: 0px;
}
.todo-card-header > p {
    margin: 0px;
}
.todo-card-body {
    min-height: 0px;
    overflow: auto;
    scrollbar-color: rgba(40, 40, 40, 230) transparent;
}
.todo-card-body > p {
    margin: 0px;
}
.todo-card-footer {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: auto;
    padding: var(--spacing-sm);
}
.todo-card-footer > button {
    background: none;
    margin: 0px;
    margin-right: 2px;
}
.todo-card-footer > button:hover {
    background: rgba(30, 30, 30, 0.3);
    color: var(--primary-fg);
}
.todo-card-footer > button > i {
    margin: 0px;
}
.sticky-important-icon {
    color: var(--sticky-overdue-fg);
    margin-right: var(--spacing-sm);
}
.sticky-low-importance-icon {
    color: var(--sticky-low-importance-fg);
    margin-right: var(--spacing-sm);
}
.sticky-container {
    display: flex;
    flex-wrap: wrap;
}
.sticky-container > * {
    margin-top: var(--spacing);
    margin-right: var(--spacing);
}
.sticky-container-center {
    justify-content: center;
}
.hint {
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
}
.sticky-overdue-text {
    color: var(--sticky-overdue-fg);
}

.attribute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 0.3rem;
}
.attribute-grid div {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

@media (max-width: 975px) {
    #logo-stack {
        display: none;
    }
    .nav-items-container i {
        display: none;
    }
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
@media (max-width: 768px) {
    #body {
        width: 100%;
    }
    .auto-cols {
        flex-direction: column;
    }
    .auto-cols > * {
        margin: 0px;
    }
}
@media (max-width: 675px){
    .pet-list-container {
        justify-content: center;
    }
    .pet-list-title {
        text-align: center;
        margin: 1rem;
        margin-top: 3rem;
    }
    .animal-dashboard-title {
        text-align: center;
        grid-template-columns: 1fr auto 1fr;
    }
    .animal-dashboard-title > p {
        margin-left: 1rem;
    }
    #header .nav-items-container {
        display: none;
    }
    #show-nav-flyout {
        display: flex;
    }
    .nav-items-container > a:hover > div.header-nav-item-container {
        background: none;
    }
    .nav-items-container > a:hover {
        background: var(--body-gray);
    }
    .nav-items-container i {
        display: inline-block;
    }
    .nav-items-container {
        overflow: auto;
    }
    #logo-stack {
        display: flex;
    }
    #logo-stack > p:first-child {
        font-size: 1.3rem;
    }
    #logo-stack > p:last-child {
        display: none;
    }
    .announcement {
        padding: 0.4rem;
    }
    .sticky-container {
        justify-content: center;
    }
}
@media (max-width: 400px) {
    #logo-stack > p:first-child {
        font-size: 1rem;
    }
}
@media (max-width: 550px) {
    .attribute-grid div {
        display: flex;
        flex-direction: column;
        text-align: initial;
        justify-content: start;
    }
}