/* ----- Default style ----- */

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

body {
    margin: 0;
    height: 100vh;
    background-color: #f5f5f5;
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #25291d;
}

/* ----- Generic style ----- */

.title {
    font-size: 1.5rem;
    text-align: center;
}

.container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

.button {
    padding: .5rem 1rem;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    background-color: #9eb381;
    transition: box-shadow .15s ease-in-out, transform .15s ease-in-out;
    line-height: 1.5;
    border-radius: .3rem;
    border: none;
    cursor: pointer;
    user-select: none;
}

.button:focus, .button:hover {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(180, 204, 147, 0.5);
}

.button:active {
    transform: scale(0.95);
}

.form-input {
    position: relative;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.5rem;
    color: #48523b;
    background-color: #fff;
    border: 1px solid #c3d6a9;
    border-radius: .25rem;
    width: 100%;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-input:focus {
    border-color: #c3d6a9;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(180, 204, 147, 0.25);
    z-index: 1;
}

/* Only displayed to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
    border: 0;
}

/* ----- Header ----- */

.header {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    user-select: none;
    text-decoration: none;
}

.brand-logo {
    width: 4rem;
}

.brand-name {
    font-size: 2rem;
    color: #4D8400;
}

/* ----- Login ----- */

.login-form {
    width: 100%;
    max-width: 330px;
    padding: 1rem;
    margin: 0 auto;
}

.login-input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.login-input[type="password"] {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.login-error {
    color: #e35628;
}

.login-form .button {
    font-size: 1.25rem;
    margin-top: 2rem;
    width: 100%;
}

/* ----- Home ----- */

.no-monitor {
    text-align: center;
}

.monitors-list {
    list-style: none;
    padding: 0;
}

.monitor {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.monitor-name {
    margin: 0;
    width: 15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline {
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.timeline-item {
    content: ' ';
    width: 2%;
    display: block;
    height: 34px;
}

.timeline-item.grey {
    background-color: grey;
}

.timeline-item.green {
    background-color: #229922;
}

.timeline-item.yellow {
    background-color: #a6b315;
}

.timeline-item.orange {
    background-color: #f59507;
}

.timeline-item.red {
    background-color: #e65604;
}

.timeline-item.dark-red {
    background-color: #c13737;
}

@media (max-width: 575px) {
    .monitor {
        flex-direction: column;
        align-items: flex-start
    }
}

/* ----- Details ---- */

.no-checkpoints {
    text-align: center;
}

.checkpoints-list {
    list-style: none;
    padding: 0;
    max-width: 540px;
    margin: auto;
}

/* ----- Footer ----- */

.footer {
    text-align: center;
    position: relative;
    padding: 2rem;
    margin-top: 2rem;
    color: #213800;
}

.footer::after {
    content: "";
    background: #a2b884;
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
}

.user {
    display: flex;
    flex-direction: column;
}

.footer .link {
    color: inherit;
}

/* Make the footer appear always at the bottom */
body {
    display: flex;
    flex-direction: column;
}

.spacer {
    flex: 1 0 auto;
}
