* {
    font-family: 'Fira Code', monospace;
    margin: 0;
    padding: 0;

    --ac-color: #5cb85c;
    --white: #ffffff;
    --black: #000000;
    --gray: #808080;
    --brown: #804000;
    --green: #008000;
    --cyan: #00c0c0;
    --blue: #0000ff;
    --yellow: #c0c000;
    --orange: #ff8000;
    --red: #ff0000;
}

body {
    text-align: center;
    align-items: center;
}

h1 {
    margin: 0.25em;
    margin-top: 1em;
}

h2 {
    margin: 0.5em;
}

span {
    display: inline-block;
}

.span-gray {
    color: gray;
    font-size: 0.75em!important;
}

hr {
    margin: 1em 0;
}

table {
    margin: auto;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

table th,
table td {
    padding: 0.75em;
    text-align: center;
    border: 1px solid #ddd;
}

table th {
    font-weight: 600;
}

.calendar-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 1rem;
}

.calendar-area {
    grid-column: 2;
    justify-self: center;
}

.calendar-legend {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    grid-column: 3;
    justify-self: start;
    margin-top: 0;
    z-index: 10;
    background-color: white;
    padding: 1rem;
}

.legend-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.legend-cell {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 0.75em;
    background: #fff;
}

@media (max-width: 999px) {
    .calendar-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .calendar-area {
        grid-column: 1;
    }

    .calendar-legend {
        position: static;
        grid-column: 1;
        justify-self: start;
        margin-top: 0.5rem;
    }
}

.parent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 68em;
    width: 100%;
    margin: auto;
}

.child {
    flex: 0 0 12em;
    margin: 1em 0;
}

.textbox {
    width: 12em;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #969da3;
    color: #333;
    font-size: 0.75em;
    line-height: 1.5;
    position: relative;
    margin: 1em 1em 1em 0;
}

.textbox::placeholder {
    color: #999;
}

.textbox:focus {
    outline: none;
}

.textbox::after {
    display: block;
    content: '';
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: 0;
    background: #000000;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: 0.3s
}

.textbox:focus::after {
    transform: scale(1, 1);
}

.day-cell {
    width: 5rem;
}

.day-cell.has-ac {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ratio-bar-wrap {
    margin-top: 0.5em;
    height: 0.7em;
    border-radius: 999px;
    border: 1px solid #000000;
    background: #ffffff;
    overflow: hidden;
}

.ratio-bar {
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: transparent;
}

.ratio-bar-wrap.has-ratio {
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.35);
}

.day {
    font-weight: 600;
}

.max-diff {
    margin: 0.5em 0;
    font-size: 1.5em;
}

.ac-count {
    font-size: 1.5em;
}

.submitted-count {

}

.arrow-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
  border-radius: 1em;
  width: 2em;
  height: 2em;
  line-height: 2em;
}

.arrow-button:hover {
  background-color: rgba(60,64,67,.08);
  outline: none;
}

.arrow-button:active {
  background-color: rgba(60,64,67,.12);
  outline: none;
}

.arrow-button:focus {
  background-color: rgba(60,64,67,.1);
  outline: none;
}
