html {
    font-size: 0.7em;
}

a {
    cursor: pointer;
    color: #222299;
}

body {
    background-color: #2d2d2d;
    color: #cccccc;
}

input {
    font-size: 0.8em;
}

#container {
    width: 1600px;
}

#main {
    display: inline-block;
    vertical-align: top;
    width: 1200px;
}

#under-pitch {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 8px 10px;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.9em;
}

#under-pitch .strategy select {
    margin-left: 6px;
}

#canvas {
    width: 1200px;
    height: 580px;
}

#ui {
    display: inline-block;
    vertical-align: top;
    padding-left: 10px;
    width: 370px;
    height: 560px;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-weight: 400;
}

.back {
    color: #aaaaaa;
}

.teams {
    width: 170px;
    display: inline-block;
    vertical-align: top;
}

.settings {
    width: 190px;
    display: inline-block;
    vertical-align: top;
    line-height: 1.9em;
    padding-left: 10px;
}

.teams ul {
    padding: 0;
    margin: 0 0 20px 0;
}

.teams li {
    list-style-type: none;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 0.9em;
    line-height: 1.4em;
    /*border-bottom: 1px solid;*/
    cursor: pointer;
}

.player.selected, .player.selected:hover,
    .team.selected, .team.selected:hover {
    background-color: #5a5a5a;
}

.player:hover, .team:hover {
    background-color: #494949;
}

li.team {
    line-height: 1.9em;
    font-size: 1.0em;
}

.teams span {
    display: inline-block;
}

.teams span.nr {
    width: 20px;
    text-align: right;
    padding-right: 10px;
}

/* The public site (ui/public-site): just the pitch, centred on the page and
   as large as the window allows, with the FPS number in its top right corner. */
body.public {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public #container {
    width: auto;
    position: relative;
}

.public #main {
    display: block;
    width: auto;
}

/* The canvas keeps drawing at 1200 x 580 and the browser scales it to fill the
   window's width or height, whichever runs out first. */
.public #canvas {
    display: block;
    width: min(100vw, calc(100vh * 1200 / 580));
    height: auto;
}

.public #under-pitch {
    display: none;
}

.public #ui {
    position: absolute;
    top: 8px;
    right: 12px;
    width: auto;
    height: auto;
    padding: 0;
}
