@import url('https://fonts.googleapis.com/css2?family=Graduate&display=swap');

body {
    font-family: 'Graduate', sans-serif;
    font-size: 16px;
    padding: 1rem 1rem 2rem 1rem;
    margin: 0;
    background: rgb(58, 140, 180);
    background: linear-gradient(
            180deg,
            rgba(2, 172, 255, 1) 0%,
            rgba(203, 238, 238, 1) 45%,
            rgba(203, 238, 238, 1) 79%,
            rgba(190, 165, 39, 1) 79%,
            rgba(16, 131, 48, 1) 83%
        )
        no-repeat;
    background-attachment: fixed;
}

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

.display {
    background: blue;
    border: 0.375rem solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 0.25rem;
    row-gap: 0.5rem;
    padding: 0.5rem 0.375rem;
    margin-bottom: 2rem;
}

/* Grid Layout */
.display__heading--home {
    grid-row: 1;
    grid-column: 1;
}
[data-bind='home'] {
    grid-row: 2/4;
    grid-column: 1;
}

.display__heading--inning {
    grid-row: 3;
    grid-column: 2;
}
[data-bind='inning'] {
    grid-row: 1/3;
    grid-column: 2;
}

.display__heading--guest {
    grid-row: 1;
    grid-column: 3;
}
[data-bind='guest'] {
    grid-row: 2/4;
    grid-column: 3;
}

.display__heading--ball {
    grid-row: 4;
    grid-column: 1;
}
[data-bind='ball'] {
    grid-row: 5;
    grid-column: 1;
}

.display__heading--strike {
    grid-row: 4;
    grid-column: 2;
}
[data-bind='strike'] {
    grid-row: 5;
    grid-column: 2;
}

.display__heading--out {
    grid-row: 4;
    grid-column: 3;
}
[data-bind='out'] {
    grid-row: 5;
    grid-column: 3;
}

.display__heading,
.display__number {
    font-size: 1.75rem;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

.display__heading--inning {
    font-size: 1.5rem;
    justify-content: end;
}

.display__number {
    font-size: 2.375rem;
    background: #000;
    color: red;
    padding: 0.5rem 0;
    margin: 0 auto;
    justify-self: center;
    align-self: center;
    width: 4.25rem;
}

.display__number--inning {
    padding: 0.5rem;
    width: auto;
    align-self: start;
}

.display__heading--small {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.dot-display {
    background: #000;
    padding: 0.25rem 0 0.25rem 0.375rem;
    display: inline-flex;
    justify-content: space-around;
    justify-self: center;
}

.dot {
    display: none;
}

.dot + label {
    border-radius: 100%;
    display: block;
    height: 0.75rem;
    width: 0.75rem;
    margin-right: 0.375rem;
    pointer-events: none;
}

.dot:checked + label {
    background: red;
}

.controls {
    display: grid;
    flex-shrink: 0;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 1rem;
    row-gap: 1rem;
}

.controls button {
    font-family: 'Graduate', sans-serif;
    padding: 1rem;
    background: #fff;
    border: 1px solid red;
    border-radius: 0.25rem;
    text-transform: uppercase;
}
