* {
    font-family: Catamaran, sans-serif;
    color: #808080;
}

body {
    padding: 0;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-between;
    height: 180px;
    margin: 1em 2em;
    z-index: 999;

    .title img {
        height: 120px;
    }
}

#loginForm {
    visibility: hidden;

    > * {
        display: block;
        min-width: 20em;
        max-width: 30em;
    }

    label {
        font-size: 14px;
        padding-bottom: 5px;
    }


    input[type=email],input[type=password] {
        border: 1px solid #ccc;
        margin-bottom: 8px;
        padding: 6px;
        font-size: 14px;
    }

    button {
        border: none;
        background-color: #6DCCF8;
        border-radius: 15px;
        padding: 6px;
        margin: 10px 0;
        width: 100%;
    }
}

#optionsForm fieldset {
    display: flex;
    > div {
        margin: 10px;
    }
}

main {
    position: absolute;
    height: calc(100vh - 150px);
    width: 100%;
    z-index: 999;
}

#errorMessages {
    visibility: hidden;
    width: 400px;
    margin: 0 auto;
    background-color: lightpink;
    padding: 15px;
}

#date {
    text-align: center;
}

#contracts {
    display: inline-flex;
    > div {
        margin: 10px;
    }
}

.daily {
    background-color: hsla(0, 0%, 100%, .9);
    border-radius: 15px;
    overflow: auto;
}

.dailyEvent {
    display: grid;
    grid-template-columns: 30px 1fr 1fr 1fr 40px;
    grid-template-rows: 1fr 1fr;
    border-bottom: 1px solid #cccccc;
    margin-right: 5px;

    &:last-child {
        border-bottom: none;
    }

    div {
        padding: 5px;
        align-content: center;
    }

    .evtType {
        grid-row: 1 / 3;
        grid-column: 1 / 1;

        padding: 0;
        display: grid;
        justify-content: center;

        img {
            height: 20px;
            width: 20px;
        }
    }

    &.sleep .evtType    { background-color: darkblue; }
    &.hygiene .evtType  { background-color: cyan; }
    &.activity .evtType { background-color: darkorange; }
    &.meal .evtType     { background-color: darkviolet; }
    &.medic .evtType    { background-color: red; }
    &.checkIn, &.checkOut {
        grid-template-rows: min-content;
        .evtType {
            background-color: lightpink;
            grid-row: 1;
        }
        .duration, .author {
            display: none;
        }
        .name {
            grid-row: 1; grid-column: 3;
        }
        .mood {
            grid-row: 1;
        }
    }

    .start  {
        grid-row: 1; grid-column: 2;
        font-weight: bold;
    }
    .duration {
        font-style: italic;
        grid-row: 1; grid-column: 3;
    }
    .author {
        grid-row: 1; grid-column: 4;

        &:not(:empty):before {
            content: "🧚";
            padding-right: 10px;
            font-size: small;
            font-style: italic;
        }
    }
    .name   {
        grid-row: 2; grid-column: 2 / 6;
    }
    .mood {
        grid-row: 1 / 3; grid-column: 5;
        img {
            height: 30px;
        }
    }
}

.photo {
    height: 200px;
    margin: 5px;
}
