html {
    height: 100vh;
    touch-action: manipulation;
}

body {
    background-image: url('background.png');
    background-size: cover;
}

#content {
    margin-top: 5vh;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#scorecard {
    width: 607px;
    height: 371px;
    margin: 0;
    border: 1px solid black;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color:#ebebeb;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

#rows {
    height: 67%;
    width: 99%;
    margin: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.row {
    width: 100%;
    height: 24%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row.red {
    background-color: #c92424;
}

.numbers.red,.link.red {
    background-color: #872828;
}

.cell.red,.lock.red {
    background-color: #fdf4f6;
    color: #c92424;
    border-color: #872828;
}
.st0.red {
    fill: #872828
}

.st1.red {
    stroke: #872828;
}

.selected.red {
    background-color: #872828 !important;
}

.row.yellow {
    background-color: #dbdb43;
}

.numbers.yellow,.link.yellow {
    background-color: #8e8e02;
}

.cell.yellow,.lock.yellow {
    background-color: #fdfdf4;
    color: #dbdb43;
    border-color: #8e8e02;
}

.st0.yellow {
    fill: #8e8e02;
}

.st1.yellow {
    stroke: #8e8e02;
}

.selected.yellow {
    background-color: #8e8e02 !important;
}

.row.green {
    background-color: #439b51;
}

.numbers.green,.link.green {
    background-color: #408728;
}

.cell.green,.lock.green {
    background-color: #f4fdf5;
    color: #439b51;
    border-color: #408728;
}

.st0.green {
    fill: #408728;
}

.st1.green {
    stroke: #408728;
}

.selected.green {
    background-color: #408728 !important;
}

.row.blue {
    background-color: #4b438d;
}

.numbers.blue,.link.blue {
    background-color: #282887;
}

.cell.blue,.lock.blue {
    background-color: #f4f5fd;
    color: #4b438d;
    border-color: #282887;
}

.st0.blue {
    fill: #282887;
}

.st1.blue {
    stroke: #282887;
}

.selected.blue {
    background-color: #282887 !important;
}

.arrow {
    width: 0; 
    height: 0; 
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 15px solid black;
}

.numbers {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 80%;
    padding: 2px;
    border-radius: 10px;
}

.cell {
    font-family: 'Lato', sans-serif;
    font-size: 1.5em;
    font-weight: 800;
    width: 45px;
    height: 100%;
    margin: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.link {
    height: 10%;
    width: 0.5%;
}

.lock {
    border: 3px solid;
    border-radius: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    transform: rotate(20deg);
    cursor: pointer;
}


.st1 {
    fill: none;
    stroke-width: 50;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10
}

#points {
    width: 100%;
    height: 14%;
    display: flex;
}

#points-header {
    height: 100%;
    width: 5%;
    background-color: black;
}

#points-helper {
    height: 100%;
    width: 75%;
    background-color: black;
}

#minus-points {
    height: 100%;
    width: 20%;
    padding: 0 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#minus-points-help {
    font-family: lato;
    height: 50%;
    text-align: center;
}

#minus-points-tracker {
    display: flex;
    justify-content: space-around;
    height: 50%;
}

#minus-points-tracker > div {
    width: 15%;
    height: 80%;
    background-color: white;
    border: 2px solid darkgray;
    border-radius: 6px;
    cursor: pointer;
}

#minus-points-tracker > div.selected {
    background-color: black;
}

#totals {
    width: 100%;
    height: 16.5%;
    background-color: #c1c1c1;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#totals > span:first-child {
    font-family: lato;
}

.total {
    width: 5%;
    height: 50%;
    background-color: white;
    border: 3px solid ;
    border-radius: 6px;
    font-family: lato;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.total.red {
    border-color: #c92424;
    cursor: pointer;
}

.total.yellow {
    border-color: #dbdb43;
    cursor: pointer;
}

.total.green {
    border-color: #439b51;
    cursor: pointer;
}

.total.blue {
    border-color: #4b438d;
    cursor: pointer;
}

.total.wide {
    cursor: pointer;
    width: 15%;
}

.operation {
    color: darkgray;
    font-size: 1.5em;
    margin: 0 5px
}

.ineligible {
    opacity: 0.2;
}

#reset {
    background-color: #c92424;
    width: 60px;
    border-radius: 10px;
    font-family: lato;
    cursor: pointer;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}