:root {
    --color-calendar-graph-day-border: rgb(27 31 35 / 6%);
}

html, body, p {
    margin: 0;
}

body {
    width: 820px;
    margin: 0 auto;
}

h1 {
    text-align: center;
}

.form {
    & > label {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;

        & > span {
            font-size: 18px;
        }
    }

    & input {
        min-width: 15em;
        padding: .5em;
        font-size: 16px;
    }

    & select {
        padding: .5em;
        font-size: 16px;
        margin-left: .5em;
    }

    & .actions {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;

        & > button {
            position: relative;
            font-size: 16px;
        }
    }
}

.container {
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 820px;
}

.room {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    fill: var(--color-calendar-graph-day-bg);
    shape-rendering: geometricPrecision;
    background-color: var(--color-calendar-graph-day-bg);
    border-radius: 2px;
    outline: 1px solid var(--color-calendar-graph-day-border);
    outline-offset: -1px;

    & > span {
        font-size: 16px;
    }

    &.dead {
        --color-calendar-graph-day-bg: rgba(252, 0, 0, 0.8);
    }
    &.low {
        --color-calendar-graph-day-bg: rgba(232, 238, 72, 0.8);
    }
    &.mid {
        --color-calendar-graph-day-bg: rgba(164, 199, 80, 0.8);
    }
    &.high {
        --color-calendar-graph-day-bg: rgb(64, 184, 32, 0.8);
    }
}

.statics {
    position: fixed;
    right: 0;
    top: 0;
    padding: 20px;
    background: cornsilk;

    & > p {
        width: 6em;
    }
}

.memory-usage {
    position: fixed;
    bottom: 30px;
    right: 10px;
    padding: 0;

    & > p {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-width: 140px;
        border-bottom: 1px solid #d5d5d5;
        height: 30px;
        padding: 0 1em;

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