@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@100..900&family=Lexend:wght@100..900&display=swap");

html {
    font-size: 1.125rem;
    color: #000000eb;
}

* {
    box-sizing: border-box;
}

html, input, textarea, button, select {
    font-family: "Lexend", sans-serif;
}

body {
    display: flex;
    flex-flow: column nowrap;
    background-color: #f5f5f5;
    padding: 0;
    margin: 0;
    align-items: center;
}

nav {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    padding: 0 16px;
    height: 64px;
    background-color: #000000;
    gap: 2ch;
    width: 100%;
    position: sticky;
    top: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.33, 1, 0.68, 1);
    font-family: "Lexend Exa", "Lexend", sans-serif;
    font-size: 0.875rem;
    height: 100%;
    display: flex;
    align-items: center;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

nav a.active {
    border-top: 4px solid #4DB6AC;
    color: #80CBC4;
}

nav a:hover {
    color: #80CBC4;
    text-decoration: underline;
}

#navi-logo {
    display: flex;
    align-items: center;
    gap: 1ch;
    font-weight: bold;
}

#navi-logo > img {
    width: 32px;
    height: 32px;
}

main {
    padding: 16px;
    width: min(800px, 100%);
}

#navi-spacer {
    flex: 1 0 auto;
}

input, textarea {
    padding: 0.5rem;
    border: 2px solid #009688;
    border-radius: 6px;
    background: #ffffff;
    color: #000000;
    transition: box-shadow 0.25s cubic-bezier(0.33, 1, 0.68, 1),
                background 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}

button, .button {
    padding: 0.5rem;
    border: 2px solid #009688;
    border-radius: 6px;
    background: #009688;
    color: #ffffff;
    transition: box-shadow 0.25s cubic-bezier(0.33, 1, 0.68, 1),
                background 0.25s cubic-bezier(0.33, 1, 0.68, 1);
    font-weight: 575;
    font-family: "Lexend Exa", "Lexend", sans-serif;
    cursor: pointer;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    text-decoration: none;
    justify-content: center;
}

h1 {
    font-weight: 900;
    font-size: 3rem;
    margin: 0.25em 0;
    color: #000000df;
}

h2 {
    font-weight: 767.5;
    font-size: 2rem;
    margin: 0.25em 0;
    color: #000000df;
}

h3 {
    font-weight: 767.5;
    font-size: 1.6rem;
    margin: 0.25em 0;
    color: #000000df;
}

* {
    transition: box-shadow 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}

:focus {
    box-shadow: 0 0 0 4px #009688cc;
    outline: none;
}

button, .button, input, select, textarea {
    font-size: 1rem;
}

:is(input, textarea):hover {
    background: #B2DFDB;
}

:is(button, .button):hover {
    background: #00695C;
}

::placeholder {
    color: #009688cc;
}

.stacked-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="password"]:not(:placeholder-shown) {
    letter-spacing: 0.25rem;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    background: #FFC107;
    color: #000000;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
    font-family: "Lexend Exa", "Lexend", sans-serif;
}

.app-card, .endpoint-card {
    width: 100%;
    border: 2px solid #000000aa;
    padding: 0.75rem;
    border-radius: 24px;
}

:is(.app-card, .endpoint-card) h2 {
    margin-top: 0;
    font-size: 1.45rem;
    font-weight: 750;
}

.app-uptime {
    display: flex;
    flex-flow: row nowrap;
    overflow: hidden;
    border-radius: calc(24px - 0.75rem);
}

.app-info {
    font-family: "Lexend Exa", "Lexend", sans-serif;
    font-style: italic;
}

.app-info-ok {
    color: #00C853;
}

.app-info-broken {
    color: #FFD600;
}

.app-info-down {
    color: #D50000;
}

.uptime-bar {
    background: #546E7A;
    height: 2rem;
    flex: 1 0 auto;
    outline: 1px solid #ffffff;
    color: #ffffff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uptime-bar-ok {
    background: #00C853;
}

.uptime-bar-broken {
    background: #FFD600;
}

.uptime-bar-down {
    background: #EF5350;
}

.subtitle {
    font-weight: 400;
    margin-top: 0;
}

iconify-icon {
    display: inline-block;
    width: 0.8lh;    /* match parent line-height */
    height: 0.8lh;
    font-size: 1.25em;
}

.quiet-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    display: inline-block;
}

.quiet-link:has(:is(.app-card, .endpoint-card)) {
    display: block;
    border-radius: 24px;
}

.app-card:hover {
    border-color: #009688;
    background: #B2DFDB;
}

textarea {
    resize: vertical;
    appearance: none;
}

#endpoint-editor, #endpoint-list {
    display: flex;
    gap: 2rem;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
}

.side-by-side {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-around;
}

.extend {
    flex: 1 1 100%;
}

.danger-button {
    background: #F44336;
    border-color: #F44336;
}

.danger-button:hover {
    background: #D32F2F;
}

nav a:focus {
    box-shadow: none;
    text-decoration: underline;
}

.horizontal-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

label {
    color: #00796B;
    display: block;
}

label > input {
    width: 100%;
}

.endpoint-header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.endpoint-header > h2 {
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.uptime-bar-buggy {
    background-image: url("/static/bugs.svg");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

a {
    color: #00695C;
    text-decoration: none;
}

a:not(.quiet-link):hover {
    text-decoration: underline;
}

