body {
    font-family: 'Roboto Condensed', 'M PLUS 1p', sans-serif;
}

@font-face {
    font-family: 'GeosansLight';
    src: url('./font/GeosansLight.ttf');
}

/* view */

#view {
    position: relative;

    width: 100vw;
    height: 300px;
}

.score {
    width: 200px;
    height: 40px;
    font-size: 40px;
    line-height: 40px;
}

.score p.value {
    text-align: center;

    font-family: 'GeosansLight', sans-serif;
    font-weight: 600;
}

.controllable {
    position: absolute;
    user-select: none;
    touch-action: none;
}

#view.edit-mode .controllable {
    background-color: #f303;
    outline: 1px solid black;
    box-sizing: border-box;
}

#view .controllable p.label {
    display: none;
}

#view.edit-mode .controllable p.label {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
}

#view #score-delta {
    transition: color 0.5s ease;
}

#score-1 p.value, #view.p1-leading #score-delta p.value {
    color: #3e58d6;
}

#score-2 p.value, #view.p2-leading #score-delta p.value {
    color: #d83d3d;
}

#bar {
    height: 20px;
    width: 200px;
    background-color: #d83d3d;
}

#bar > div {
    height: 100%;
    width: 50%;
    background-color: #3e58d6
}

.edit-mode #bar > div {
    display: none;
}

/* Initial Positions */

#score-1 {
    left: 10px;
    top: 10px;
}

#score-2 {
    left: 10px;
    top: 50px;
}

#score-delta {
    left: 10px;
    top: 90px;
}

#bar {
    left: 10px;
    top: 130px;
}

/* control panel */

#controls {
    z-index: 10;
    user-select: none;
    border-top: 1px solid black;
    background-color: white;
}

#controls > div {
    display: flex;
}

#controls:not(.edit-mode) .for-edit-mode {
    opacity: 0.3;
} 

#controls > div > div {
    display: flex;
    margin-right: 10px;
}

#controls input[type="text"] {
    height: 18px;
    width: 90px;
    margin-top: 2px;
    margin-left: 3px;
}

#controls input[type="button"] {
    height: 22px;
    font-size: 14px;

    margin-top: 0px;
    margin-left: 3px;
}