:root {
    --black-transparency: rgba(0,0,0,0.7);
    --green: rgb(88, 146, 49);
    --yellow: rgb(131, 133, 50);
    --red: rgb(149, 48, 48);
    --lightgrey: #aaa;
}
body {
    background-color: #eaeaea;
    padding: 0;
    margin: 0;
    font-size: 12px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
header>* {
    padding: 10px;
}
section {
    text-align: center;
    position: relative;
}
button {
    height: 40px;
    border-radius: 5px;
    border: 0;
    padding: 10px;
    min-width: 100px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: cadetblue;
    color: #fff;
    margin-left: 10px;
    cursor: pointer;
}
header button {
    min-width: 40px;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.success { background-color: var(--green); }
.warning { background-color: var(--yellow); }
.alert { background-color: var(--red); }
#loadingDIV {
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: var(--black-transparency);
    z-index: 100;
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
#notificationsDIV {
    top: 0;
    right: 0;
    position: fixed;
    z-index: 101;
    overflow: hidden;
}
#notificationsDIV>p {
    color: #fff;
    font-weight: bold;
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    text-align: right;
    max-width: 100%;
    right: -100%;
    position: relative;
}
#versionDIV {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.9em;
    color: grey;
}
#pickerDIV {
    width: 400px;
    height: 400px;
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: blue;
    border-radius: 12px;
}
#pickerDIV ul {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}
#pickerDIV li {
    width: 200px;
    height: 60px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 30px;
}
#pickerDIV li:last-child {
    margin-bottom: 0px;
    
}
#pickerDIV a {
    color: blue;
    text-decoration: none;
    text-transform: uppercase;
}
#tournamentTitle span {
    font-weight: bold;
}
#roundDisplayBTN {
    cursor: pointer;
    display: none;
    text-align: center;
    font-weight: bold;
}
#playersDIV,
#buildDIV,
#playingDIV,
#playedGamesDIV {
    position: relative; 
    display: inline-block; 
    vertical-align: top;
    text-align: center;
}
#playersDIV,
#buildDIV,
#playingDIV {
    width: 45%;
}
#playingDIV {
    width: 90%;
}
#playedGamesDIV {
    position: absolute;
    width: 95%;
    display: none;
}
#roundDIV,
#playerDIV,
#pointsDIV,
#courtsDIV {
    overflow: hidden;
    border: 1px solid #aaa;
    background-color: #fff;
    padding: 10px;
    text-align: center;
}
#roundDIV ul {
    list-style: none;
    padding: 0 10px;
}
#roundDIV ul li {
    height: 30px;
    display: inline-flex;
    border: 1px solid var(--lightgrey);
    background-color: #666;
    color: #fff;
    padding: 3px;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}
#roundDIV ul li span {
    position: absolute;
    top: -12.5px;
    right: -12.5px;
    width: 25px;
    height: 25px;
    overflow: hidden;
    background-color: black;
    font-size: 0.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
}
#roundDIV ul li.viable {
    background-color: var(--green);
}
#roundDIV ul li.notviable {
    background-color: var(--red);
}
#roundsCreateDIV {
    display: none;
}
#roundsCreateDIV p {
    color: #fff;
    font-weight: bold;
    display: none;
}
#playersDIV ul li {
    padding: 3px 10px;
}
#buildDIV ul li {
    min-width: 45%;
}
#buildDIV ul li:last-child:after {
    content: 'X';
    color: var(--lightgrey);
    font-weight: bold;
    font-size: 1rem;
    position: relative;
    margin-left: 5px;
    margin-right: 0;
}
#playerDIV p,
#pointsDIV p,
#courtsDIV p {
    text-align: right;
    margin-right: 15px;
}
#playerDIV input,
#pointsDIV input,
#courtsDIV input {
    font-size: 1rem;
    height: 30px;
    border-radius: 5px;
}
#playingDIV p {
    border-bottom: 1px solid lightgrey;
    text-align: left;
    position: relative;
}
#playingDIV p.hidden {
    height: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 0;
    margin: 0;
}
#playingDIV p span {
    display: block;
    margin: 10px 0;
    text-align: center;
}
#playingDIV p span i {
    font-style: normal;
}
#playingDIV p span i.team,
#playingDIV p span i.ghost {
    display: inline-block
}
#playingDIV p span i.team {
    width: 45%;
}
#playingDIV p span i.vs {
    width: 5%;
}
#playingDIV p span i.left {
    text-align: left;
}
#playingDIV p span i.right {
    text-align: right;
}
#playingDIV p span i.vs,
#playingDIV p span i.ghost {
    font-size: 1.2rem;
}
#playingDIV p input {
    width: 60px;
    height: 40px;
    font-size: 1.5rem;
    text-align: center;
    border-radius: 10px;
    border: 1px solid lightgray;
}
#playingDIV p button {
    margin-left: 0;
}
#playingDIV p button.releaseBTN {
    width: calc(100% - 100px);
    left: 0;
    margin: 0 0;
    position: relative;
    border-radius: 0 0 0 5px;
}
#playingDIV p button.actionBTN {
    position: absolute;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    bottom: 0px;
    right: 0;
    color: #fff;
    padding: 0;
    margin: 0;
    border-radius: 0 0 5px 0;
    font-size: 1rem;
}
#playingDIV p button.acceptBTN,
#playingDIV p button.editBTN,
#playingDIV p button.beerBTN {
    right: 50px;
}
#playingDIV p button.editBTN,
#playingDIV p button.acceptBTN,
#playingDIV p button.beerBTN {
    background-color: green;
}
#playingDIV p button.deleteBTN,
#playingDIV p button.denyBTN {
    background-color: red;
}
#playingDIV p button.editBTN,
#playingDIV p button.acceptBTN,
#playingDIV p button.denyBTN {
    display: none;
}
#playingDIV p span:first-child {
    background-color: grey;
    padding: 10px 0;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
    color: #fff;
}
#playingDIV p input:first-child {
    margin-right: 15px
}
#playingDIV p input:last-child {
    border-color: #efefef;
}
#playingDIV .beerDIV,
#playedGamesDIV .beerDIV,
#playingDIV .tieDIV
{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
}
#playingDIV .beerAdd,
#playingDIV .tieSet {
    margin-top: 30px;
}
#playingDIV .beerClose,
#playedGamesDIV .beerClose,
#playingDIV .tieClose {
    min-width: 40px;
    height: 40px;
    position: absolute;
    right: 0px;
    top: -10px;
    background-color: red;
}
#playedGamesDIV {
    padding: 0 10px
}
#playedGamesDIV h3 {
    text-align: center;
}
#playedGamesDIV button {
    position: relative;
}
#playedGamesDIV button span {
    position: absolute;
    color: #000;
    top: -10px;
    left: 0;
    text-align: center;
    width: 100%;
    font-size: 0.5rem;
}
#playedGamesDIV>p {
    font-weight: bold;
    
}
#playedGamesDIV>p span,
#playedGamesDIV>div span {
    width: 10%;
    display: inline-block;
}
#playedGamesDIV>p span:first-child,
#playedGamesDIV>div span:first-child {
    width: 30%;
    text-align: left;
}
#playedGamesDIV>div {
    counter-reset: section;
}
#playedGamesDIV>div span:first-child::before {
    counter-increment: section;
    content: counter(section) ". ";
    font-weight: bold;
}
#playedGamesDIV .beerDIV>p {
    background-color: #fff;
    color: #000;
    font-weight: bold;
}
#fillerDIV {
    margin-top: 20px;
    background-color: var(--red);
    padding: 10px 20px;
    display: none;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
}
#nextDIV {
    padding-bottom: 20px;
}