@media only screen and (max-width:600px){
    content{
        margin:0;
        width:100%;
    }
    #chart{
        /* height:25em !important; */
    }
    #controls{
        padding:0 !important;
    }
    #controls *{
        font-size:15px;
    }
    #controls>*{
        min-width: 200px !important;
    }
    #controls #teams ul{
        columns: 1;
    }
}
body{
    font-family: Arial, sans-serif;
    margin:0;
}
.content{
    margin:0 5%;
    width: 90%;
}
h1{
    background-color: #EEEEEE;
    width:90%;
    margin:0;
    padding:1em 5%;
}
#chart{
    width:100%;
    max-width:80em;
    max-height:40em;
    margin:auto;
}
#controls{
    margin-top:2em;
    padding-left:5%;
    display:flex;
    flex-wrap:wrap;
    justify-content: space-between;
}
#controls *{
    font-size:20px;
}
#inputs{
    width:100%;
    margin-left:0.5em;
}
#inputs *{
    font-size:0.8em;
}

input{
    padding:5px;
    border:1px solid black;
}
button{
    padding: 6px 9px;
    border:none;
    border-radius: 2px;
    cursor:pointer;
    transition:0.5s;
}
button:hover{
    background-color:#4A2A7C;
    color:white;
}

#teams, #opts{
    background-color: #EEEEEE;
    margin:1em 0.5em;
    padding: 0.25em 1em;
    box-sizing: border-box;
    min-height: 1.5em;
}
#teams{
    min-width:400px;
    flex-grow: 2;
}
#opts{
    flex-grow: 1;
    min-width:200px;
}

#teams ul, #opts ul{
    list-style: none;
    margin:0;
    padding:0;
}

#teams ul{
    columns: 2;
}
#teams ul li{
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.team{
    vertical-align: middle;
    height:1.5em;
    display:flex;
    justify-content: left;
    align-items: center;
    width:fit-content;
    transition:background-color 0.25s;
    padding:0 10px;
}
.team:hover{
    background-color: #DDDDDD;
}

.team .remove{
    color:#EEEEEE;
    width:1em;
    cursor:pointer;
}

.team:hover .remove{
    color:#888888;
}

.team .remove:hover{
    color:#000000;
}

.team .number{
    display:inline-block;
    width:2.5em;
    text-align: right;
}

.team .colour{
    background:url("https://art.pixilart.com/6d5f49bda3b5069.png");
    background-size:contain;
    height:1em;
    width:2em;
    display: inline-flex;
}

#opts li>ul{
    margin-left:0.5em;
}
.opt label{
    padding:2px;
}
.opt label::before{
    margin-top:2px;
}.opt label::after{
    margin-top:2px;
}

.opt label:hover{
    background-color: #DDDDDD;
}


#overlay{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:#CCCCCCAA;
    text-align: center;
    vertical-align: middle;
    font-size: 3em;
}

/* Checkboxes */
.checkbox input[type="checkbox"] {
    display: none;
}

.checkbox label {
    position: relative;
    padding-left: 28px;
    user-select: none;
    cursor: pointer;
    transition: all 0.35s ease-in 10ms;
}

.checkbox label::before {
    content: "";
    display: inline-block;
    height: 1em;
    width: 1em;
    border: 1px solid;
    border-radius: 2px;
    background-color: inherit;
    transition: inherit;

    position: absolute;
    top: 0px;
    left: 0px;
}

.checkbox label::after {
    content: "";
    position: absolute;
    color:transparent;
    display: inline-block;
    transition: inherit;
    /*font-size: 17px;*/

    height: 0.25em;
    width: 0.75em;
    border-left: 0.1em solid;
    border-bottom: 0.1em solid;
    transform:rotate(75deg);
    left: 0.15em;
    top: 0.3em;
}

.checkbox input:checked + label::after {
    color: white;
    transform: rotate(-58deg);
}

.checkbox input:checked + label::before {
    background-color: #4a2a7c;
}

.checkbox input:indeterminate + label::after {
    color: white;
    transform: rotate(0deg);
    height:0px;
    top:0.45em;
}

.checkbox input:indeterminate + label::before {
    background-color: #a0a0a0;
}