.clearfix:before,.clearfix:after{content:"";display:table}.clearfix:after{clear:both}.clearfix{zoom:1}


i.i-plus {
    display: block;
    position: relative;
    width: 1em;
    height: 1em;
}
i.i-plus:before, i.i-plus:after {
    display: inline-block;
    position: absolute;
    content: '';
    width: 1em;
    height: 2px;
    top: 50%;
    left: 50%;
    background-color: #212121;
    transform: translate(-50%, -50%);
}
i.i-plus:after {
    transform: translate(-50%, -50%) rotate(90deg);
}



input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.number-input:focus-within input[type=number] {
    color: #59f;
}

.number-input {
    border: none;
    border-bottom: 1px solid #aaa;
    display: inline-flex;
    color: #000;
    overflow: hidden;
    transition: border 0.3s;
}

.number-input:focus-within {
    border-color: #59f;
}

.number-input,
.number-input * {
    box-sizing: border-box;
}

.number-input button {
    outline:none;
    -webkit-appearance: none;
    background-color: transparent;
    border: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    margin: 0;
    position: relative;
}

.number-input input[type=number] {
    color: #aaa;
    transition: all 0.3s;
    font-family: Arial, Helvetica, Verdana, sans-serif;
    font-weight: 300;
    max-width: 5rem;
    padding: .5rem;
    padding-left: .2rem;
    border: none;
    outline: none;
    font-size: 1.4rem;
    letter-spacing: -2px;
    text-align: center;
}

@keyframes playerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}


html, body {
    margin: 0;
    display: block;
    position: relative;
}

.mainTitle {
    position: relative;
    font-family: 'Cinzel', serif;
    font-size: 3em;
    float: left;
    padding: 24px 0 0 22px;
    margin: 0 0 20px 0;
    line-height: 0.8em;
}

.mainTitle span {
    position: relative;
    font-size: 0.8em;
    font-weight: 100;
    padding-left: 20px;
}

.mainTitle span:after {
    content: '';
    position: absolute;
    width: 1px;
    top: 2px;
    height: 80%;
    background: #000;
    left: 11px;
}

#generalInfo {
    position: relative;
    display: block;
    list-style: none;
    margin: 0 0 1em 0;
}

#generalInfo > li {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#generalInfo > li > span {
    color: #0af;
    font-weight: 600;
}

#players {
    position: relative;
    box-sizing: border-box;
    padding: 20px;
    left: 50%;
    display: block;
    float: left;
    transform: translate(-50%);
    min-height: 300px;
}

#players > li {
    display: inline-block;
    position: relative;
    margin: 0 20px 40px 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    float: left;
    animation: 0.4s ease 0s 1 normal both running playerFadeIn;
}

#players > li > div {
    box-sizing: border-box;
    padding: 0;
    position: relative;
    display: block;
}

#players > li > div > input[type=text] {
    border: none;
    font-size: 1.3em;
    margin-bottom: 15px;
    max-width: 215px;
    height: 30px;
    outline: none;
    text-align: center;
    background: #fff;
    color: #aaa;
    padding: 10px 0 10px 0;
    border-bottom: 1px dashed #aaa;
}

#players > li > div > .number-input {
    position: relative;
    left: 50%;
    transform: translate(-50%);
}

#players > li .team {
    position: relative;
    user-select: none;
    display: block;
    width: 100%;
    height: 80px;
    margin: 20px 0 0 0;
}

#players > li .team input ~ .check {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.5),rgba(0,0,0,0));
    background-repeat: no-repeat;
    background-size: calc(100% + 80px) calc(100% + 80px);
    background-position: -80px -40px;
    background-color: #fd0;
    background-blend-mode: add;
    box-shadow: 0 0 14px rgba(255,221,0,0.4);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s, background-color 0.3s, background-position 0.5s;
}

#players > li .team:hover input ~ .check {
    box-shadow: 0 0 14px rgba(255,221,0,0.8);
}

#players > li .team input:checked ~ .check {
    box-shadow: 0 0 14px rgba(170,0,221,0.4);
    background-color: #a0d;
    background-position: 0 -80px;
}

#players > li .team:hover input:checked ~ .check {
    box-shadow: 0 0 14px rgba(170,0,221,0.8);
}

#players input[type=checkbox] {
    opacity: 0;
}

#players .winnings {
    user-select: none;
    position: absolute;
    bottom: 57px;
    height: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: 900;
    margin: 0;
    pointer-events: none;
}

.addPlayerButton {
    position: absolute;
    border: none;
    border-radius: 8px;
    right: 10px;
    top: 10px;
    padding: 10px;
    font-size: 2.6em;
    background: #444;
    outline: none;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,238,102,0);
    transition: all 0.3s;
}
.addPlayerButton:hover {
    background: #0e6;
    box-shadow: 0 0 14px rgba(0,238,102,0.8);
}

.addPlayerButton > i:before, .addPlayerButton > i:after {
    background: #777;
    transition: background 0.3s;
}

.addPlayerButton:hover > i:before, .addPlayerButton:hover > i:after {
    background: #ffffff;
}


.contextMenu {
    position: fixed;
    background: #ffffff;
    border: 1px solid #aaa;
    padding: 4px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    user-select: none;
}

.contextMenu > ul {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.contextMenu > ul > li {
    box-sizing: border-box;
    padding: 2px 14px 4px 20px;
    margin: 0;
    cursor: default;
    border: none;
}

.contextMenu > ul > li:hover {
    background: #eee;
}

.footer {
    position: relative;
    display: block;
    margin-top: 100px;
    left: 50%;
    transform: translate(-50%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.8em;
    color: #555;
    text-align: center;
}

.footer > p {
    position: relative;
    display: block;
}

.footer > p > span {
    font-weight: 600;
}

.footer a {
    text-decoration: none;
    color: inherit;
}