html {
    --content-bg: #1a1c1a;
    --nav-bg: #242b24;
    --selected: #3d4b3d;
    --card-busy: #202521;
    --card-free: #434842;
    --number-bg: #96d79b;
    --number-bg-free: #16353c;
    --text: #ffffff;
    --text-secondary: #e2e3de;
    --text-invert: #000000;
    --border: #8c928a;
    --button-text: #96d79b;
    --size: 1;
}

@media (prefers-color-scheme: light) {
    html {
        --content-bg: white;
        --nav-bg: #ebf1e9;
        --selected: #d7e7d3;
        --card-busy: #f1f6ef;
        --card-free: #dee4db;
        --number-bg: #b2f3b5;
        --number-bg-free: #c8e9f3;
        --text: #1a1c1a;
        --text-secondary: #434842;
        --text-invert: var(--text);
        --button-text: #2f6b3a;
    }
}

body {
    margin: 0;
    background-color: var(--content-bg);
    font-family: 'Roboto', sans-serif;
}

.navbar {
    position: fixed;
    height: 74px;
    width: 100vw;
    background-color: var(--nav-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.container {
    padding-top: 85px;
}

.navbar-title {
    color: var(--text);
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.days-selector {
    display: flex;
    align-items: flex-start;
    overflow-x: scroll;
    -ms-overflow-style: none;
}

.days-selector::-webkit-scrollbar {
    display: none;
}

.days-selector>.chip {
    cursor: pointer;
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    padding: 6px 16px;
    margin: 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}

.days-selector>.chip.selected {
    background-color: var(--selected);
    border-color: var(--selected);
}

.days-selector span {
    font-size: 16px;
}

.chip-text {
    font-size: 14px !important;
}

.selected .chip-text {
    margin-left: 2px;
}

.calendar {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 20px auto;
    max-width: 400px;
}

.card {
    max-width: 390px;
    margin: 12px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    background-color: var(--card-busy);
    line-height: 15px;
    min-height: 86px;
    height: calc(var(--size) * 86px);
    box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.card.current {
    background-color: var(--card-free);
}

.card:not(.busy) .number {
    background-color: var(--number-bg-free) !important;
}

.card:not(.busy) .number span {
    color: var(--text) !important;
}

.card-content {
    margin: auto 0;
}

.card-title {
    color: var(--text);
}

.card-description {
    color: var(--text-secondary);
    font-weight: normal;
}

.number {
    border-radius: 50%;
    background-color: var(--number-bg);
    height: 60px;
    width: 60px;
    margin: auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

#infoIcon {
    position: absolute;
    left: calc(100vw - 50px);
    top: 25px;
    color: var(--text-secondary);
    cursor: pointer;
}

modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.modal-background {
    width: 100%;
    height: 100vh;
    background-color: #00000060;
}

.modal-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    height: 150px;
    width: 320px;
    border-radius: 28px;
    padding: 10px;
    background-color: var(--nav-bg);
    box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

modal h3 {
    color: var(--text);
    text-align: center;
    margin: 10px 0;
    font-size: 20px;
}

modal p {
    color: var(--text);
    text-align: center;
    font-size: 12px;
    padding-top: 80px;
}

modal a {
    color: var(--button-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
}

.number span {
    font-size: 25px;
    font-weight: bold;
    color: var(--text-invert);
}

.placeholder {
    color: var(--text);
    text-align: center;
}

@media (max-width: 420px) {
    .calendar {
        margin: 20px 10px;
    }

    .card {
        margin: 5px;
    }
}