#content {
    margin-left: auto;
    margin-bottom: 0;
    margin-right: auto;
    margin-top: 50px;
    width: min(600px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.service-table {
    margin-top: 16px;
    width: 100%;
}

.service-row {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0 0 12px 12px;
}

.service-table .icon {
    width: 27px;
    text-align: center;
}

.service-table .service {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

.service-table .service-state {
    text-align: right;
    white-space: nowrap;
}

ul span {
    float: right;
}

.down {
    font-weight: bold;
    color: #ff1600;
}
.maintenance {
    font-weight: bold;
    color: #ff1600;
}
.up {
    color: #089a00;
    font-weight: bold;
}

.site-ant .up {
    color: #9bcdde;
}

.site-nbl .up {
    color: #2e99e7;
}

footer {
    text-align: center;
    font-size: 10px;
    margin-top: 50px;
    width: min(600px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 25px;
}

footer ul li {
    list-style:none;
    display: inline;
}

footer ul {
    padding: 0;
}

footer ul li:after {
 content:"·";
 color:#666;
}

footer ul li:last-child:after {
    content:"";
}

footer ul li a {
 margin:0 8px; 
 color:blue;
}

body {
    background: #0b1a2a no-repeat center center fixed;
    background-image: var(--site-bg-image);
    background-size: cover;
    color: #757575;
    text-shadow: #111 0px 1px 0px;
    font-family: "Lucida Grande", Verdana, Arial, sans-serif;
    line-height: 1.45;
    margin: 0;
    min-height: 100vh;
}

a:link, a:visited {
    color: #999;
    text-decoration: none;
    overflow-wrap: anywhere;
}
a:hover, a:visited:hover {
    color: #aaa;
}
.disclaimer {
    margin-top: 20px;
    text-align: center;
    font-size: 10px;
}
th {
    text-align: left;
}
h3 {
    padding-top: 0px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    padding-bottom: 3px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.status-dashboard {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.message-board {
    width: 100%;
    max-width: 550px;
    margin: 18px auto 0;
    background: rgba(8, 18, 31, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 14px;
}

.message-board h3 {
    margin-top: 0;
}

.message-feedback {
    margin: 8px 0;
    font-size: 12px;
}

.message-feedback-error {
    color: #ff8b7f;
}

.message-feedback-success {
    color: #9bcdde;
}

.message-form {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.message-form label {
    font-size: 12px;
    font-weight: 700;
}

.message-form input,
.message-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(10, 20, 34, 0.75);
    color: #d8d8d8;
    padding: 8px;
    font-family: inherit;
}

.message-form textarea {
    resize: vertical;
}

.message-form button {
    justify-self: start;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(46, 153, 231, 0.2);
    color: #e6f4ff;
    padding: 6px 12px;
    cursor: pointer;
}

.message-form button:hover {
    background: rgba(46, 153, 231, 0.32);
}

.message-list {
    max-height: 220px;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    padding-right: 4px;
}

.message-entry {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 8px;
    background: rgba(5, 11, 20, 0.55);
}

.message-meta {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 11px;
    color: #b0bac3;
    margin-bottom: 5px;
}

.message-entry p,
.message-empty {
    margin: 0;
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.message-delete-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}

.message-delete-form input {
    width: 150px;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(10, 20, 34, 0.72);
    color: #d8d8d8;
    padding: 5px 7px;
    font-family: inherit;
    font-size: 11px;
}

.message-delete-form button {
    border: 0;
    background: transparent;
    color: #ff8b7f;
    padding: 0;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.message-delete-form button:hover {
    color: #ffc0b9;
}

.message-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 12px;
    font-size: 11px;
}

.message-pagination a,
.message-pagination span {
    min-width: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    padding: 3px 7px;
    text-align: center;
}

.message-pagination a {
    background: rgba(46, 153, 231, 0.14);
    color: #d8edff;
}

.message-pagination span {
    color: #8c99a5;
}

.message-pagination [aria-current="page"] {
    background: rgba(155, 205, 222, 0.2);
    color: #f3fbff;
}

.logo {
    height: 140px;
    margin: 0 auto;
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.logo img {
    height: 100%;
}

p.api-description {
    font-size: 12px;
    padding-left: 15px;
    margin-top: 3px;
    margin-bottom: 3px;
}

.api {
    margin-bottom: 10px;
}

h4 {
  margin-top: 5px;
  margin-bottom: 5px;
}

:target {
  color: yellow;
}

:target a:visited {
  color: yellow;
}

@media (max-width: 640px) {
    #content {
        margin-top: 24px;
        width: min(100%, calc(100% - 24px));
    }

    .status-dashboard {
        max-width: 100%;
    }

    .message-board {
        max-width: 100%;
        margin-top: 14px;
        padding: 12px;
    }

    .message-list {
        max-height: 200px;
    }

    .service-row {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 10px;
        background: rgba(8, 18, 31, 0.45);
        padding: 10px 0;
    }

    .service-table .icon {
        width: 28px;
        text-align: center;
    }

    .service-table .service {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .service-table .service-state {
        text-align: right;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .service-table .service a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    footer {
        width: min(100%, calc(100% - 24px));
        margin-top: 32px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    #content {
        width: min(100%, calc(100% - 16px));
        margin-top: 16px;
    }

    .service-row {
        grid-template-columns: 24px minmax(0, 1fr) auto;
        column-gap: 8px;
        padding: 0 12px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .service-table .icon {
        width: 24px;
    }

    .service-table .service {
        font-size: 0.86rem;
    }

    .service-table .service-state {
        font-size: 0.82rem;
    }

    .message-board {
        padding: 10px;
        border-radius: 10px;
    }

    .message-form button {
        width: 100%;
        justify-self: stretch;
    }

    footer {
        width: min(100%, calc(100% - 16px));
        margin-bottom: 18px;
    }
}

@media (hover: none), (pointer: coarse) {
    body {
        background-attachment: scroll;
    }
}

@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}
