* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    width: 100%
}

body {
    width: 100%;
    font-family: Roboto, Helvetica, sans-serif;
    font-size: 1.25em;
    color: #111111
}

form {
    position: relative
}

input, select, button {
    font-family: inherit
}

.message {
    color: #336699;
    font-weight: bold;
    text-align: center;
    margin-top: 1.5em
}

.message img {
    border-radius: 5px;
    box-shadow: 0 0 5px black;
    margin-bottom: 0.5em
}

.message a {
    color: inherit
}

#container {
    margin: 5px;
    position: relative
}

#selectors {
    z-index: 100;
    position: absolute;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 30px
}

#formations {
    z-index: 102;
    position: absolute;
    top: -1px;
    right: auto;
    bottom: auto;
    left: 0
}

#squad, #powered {
    width: 100%;
    text-align: center;
    z-index: 101;
    position: absolute;
    top: 0;
    right: auto;
    bottom: auto;
    left: auto
}

#actions {
    z-index: 102;
    text-align: right;
    position: absolute;
    top: -1px;
    right: 0;
    bottom: auto;
    left: auto
}

div.selector {
    display: inline-block;
    font-size: 0.7em;
    padding: 5px;
    background: #AAAAAA;
    text-decoration: none;
    color: #F8F8F8;
    border-radius: 5px;
    cursor: pointer;
    width: 125px;
    height: 30px
}

div.selector:hover {
    background: #9999AA
}

div.selector:before {
    content: "▼";
    display: block;
    text-align: center;
    color: #F8F8F8;
    font-size: 0.5em;
    position: absolute;
    top: 11px;
    right: 5px;
    bottom: auto;
    left: auto
}

div.selector select {
    cursor: pointer;
    opacity: 0;
    border: none;
    background: none;
    position: absolute;
    top: 2px;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 30px
}

#squad {
    font-size: .7em
}

#squad a {
    display: inline-block;
    padding: 5px 0;
    text-align: center;
    background: #AAAAAA;
    text-decoration: none;
    color: #F8F8F8;
    margin-right: 1px;
    width: 55px;
    height: 30px
}

#squad a:hover {
    background: #9999AA
}

#squad a:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px
}

#squad a:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px
}

#squad a.selected {
    background-color: #222266 !important
}

#powered a {
    display: inline-block;
    background-image: url(/images/statsfc.png);
    background-size: 100% 100%;
    border-radius: 5px;
    width: 82px;
    height: 30px
}

button {
    display: inline-block;
    cursor: pointer;
    border: none;
    background: none;
    background-size: 100% 100%;
    margin-left: 5px;
    text-indent: -999em;
    vertical-align: top;
    width: 30px;
    height: 30px
}

button#download {
    background-image: url(/images/download.png)
}

button#facebook {
    background-image: url(/images/facebook.png)
}

button#tweet {
    background-image: url(/images/twitter.png)
}

#pitch {
    top: 35px;
    position: relative;
    background: #40A040;
    background-size: 100% 100%
}

aside {
    position: absolute;
    bottom: 2px;
    display: block;
    width: 100%;
    font-size: small;
    padding: 0 20px
}

aside a {
    color: #BBDDBB;
    text-decoration: none
}

aside a#statsfc {
    float: left
}

aside a#customer {
    float: right
}

.player {
    position: absolute;
    cursor: pointer;
    width: 80px;
    height: 100px
}

.player.empty {
    opacity: 0.5
}

.player img {
    background: gray;
    border-radius: 32px;
    position: absolute;
    top: 8px;
    right: auto;
    bottom: auto;
    left: 8px;
    width: 64px;
    height: 64px
}

.player span {
    width: 100%;
    font-size: 0.7em;
    line-height: 1.25em;
    text-align: center;
    color: #F8F8F8;
    text-shadow: 1px 1px 2px black;
    position: absolute;
    top: 75px;
    right: auto;
    bottom: auto;
    left: 0
}

.player em {
    display: block;
    border: 3px solid #F8F8F8;
    border-radius: 35px;
    box-shadow: 0 0 5px black;
    transition: 0.25s;
    position: absolute;
    top: 5px;
    right: auto;
    bottom: auto;
    left: 5px;
    width: 70px;
    height: 70px
}

.player:hover em {
    border-color: #77AAFF
}

.player.auto img {
    background: none;
    border-radius: 0;
    transition: 0.25s
}

.player.auto em {
    display: none
}

.player.auto:hover img {
    opacity: 0.75
}

#substitutes {
    width: 100%;
    background: #40A040;
    background-size: 100% 100%;
    text-align: center;
    position: absolute;
    top: auto;
    right: auto;
    bottom: auto;
    left: 0
}

#substitutes .player {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 75px
}

#substitutes .player img {
    top: 6px;
    left: 11px;
    border-radius: 24px;
    width: 48px;
    height: 48px
}

#substitutes .player span {
    top: 57px;
    font-size: 0.55em;
    bottom: 0
}

#substitutes .player em {
    top: 3px;
    left: 8px;
    display: block;
    border-radius: 27px;
    width: 54px;
    height: 54px
}

#substitutes .player.auto img {
    border-radius: 0
}

#substitutes .player.auto em {
    display: none
}

.subs1 #substitutes {
    height: 90px
}

.subs2 #substitutes {
    height: 180px
}

.subs3 #substitutes {
    height: 270px
}

#players {
    width: 100%;
    background: black;
    background-color: rgba(0, 0, 0, 0.85);
    text-align: center;
    overflow-y: hidden;
    transition-property: all;
    transition-duration: 0.4s;
    transform: translate3d(0, 0, 0);
    position: absolute;
    top: 35px;
    right: 0;
    bottom: auto;
    left: auto
}

#players.closed {
    max-height: 0
}

#players h3 {
    text-align: center;
    font-size: 11pt;
    line-height: 35px;
    color: #F0F0F0
}

#player-search {
    padding: 0 10px 6px 10px;
}

#player-search input {
    display: block;
    width: 100%;
    padding: 5px;
}

#list {
    display: block;
    width: 100%;
    overflow: auto;
    position: absolute;
    top: 70px;
    right: auto;
    bottom: auto;
    left: 0
}

#list div {
    position: relative;
    display: inline-block;
    margin: 2px 5px;
    cursor: pointer;
    width: 100px;
    height: 100px
}

#list div.filtered-out {
    display: none !important;
}

#list div.current em {
    border-color: #FFD700 !important
}

#list div:hover em {
    border-color: #77AAFF
}

#list div.remove em {
    border-color: #F8F8F8 !important
}

#list div.remove:hover em {
    border-color: #DD0000 !important
}

#list em {
    border: 3px solid #f8f8f8;
    border-radius: 35px;
    box-shadow: 0 0 5px black;
    transition: 0.25s;
    position: absolute;
    top: 0;
    right: auto;
    bottom: auto;
    left: 15px;
    width: 70px;
    height: 70px
}

#list img {
    border-radius: 32px;
    position: absolute;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 64px;
    height: 64px
}

#list span {
    width: 100%;
    font-size: 0.7em;
    line-height: 1.2em;
    text-align: center;
    color: #F8F8F8;
    display: block;
    position: absolute;
    top: 72px;
    right: auto;
    bottom: auto;
    left: auto
}

#close {
    display: block;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: small;
    text-align: center;
    color: #F8F8F8;
    text-decoration: none;
    line-height: 30px;
    text-transform: uppercase;
    border-top: 1px solid #F0F0F0;
    position: absolute;
    top: auto;
    right: auto;
    bottom: 0;
    left: 0
}

@media only screen and (max-width: 509px) {
    /* #download {
        display: none
    } */

    .player {
        width: 48px;
        height: 60px
    }

    .player img {
        top: 4px;
        left: 4px;
        border-radius: 20px;
        width: 40px;
        height: 40px
    }

    .player span {
        width: 60px;
        font-size: 0.6em;
        top: 48px;
        left: -6px
    }

    .player em {
        top: 2px;
        left: 2px;
        border-width: 2px;
        border-radius: 22px;
        box-shadow: 0 0 3px black;
        width: 44px;
        height: 44px
    }

    .subs1 #substitutes {
        height: 72px
    }

    .subs2 #substitutes {
        height: 144px
    }

    .subs3 #substitutes {
        height: 216px
    }

    #substitutes .player {
        width: 42px;
        height: 42px
    }

    #substitutes .player img {
        top: 5px;
        left: 5px;
        border-radius: 16px;
        width: 32px;
        height: 32px
    }

    #substitutes .player span {
        font-size: 0.5em;
        top: 40px
    }

    #substitutes .player em {
        top: 3px;
        left: 3px;
        border-radius: 18px;
        width: 36px;
        height: 36px
    }

    aside {
        bottom: 15px;
        padding: 0 15px
    }

    #players h3 {
        font-size: 13px;
        line-height: 25px
    }

    #player-search {
        padding: 0 10px;
    }

    #player-search input {
        padding: 3px 5px;
    }

    #list {
        top: 53px
    }

    #list #list div {
        margin: 1px 3px;
        width: 60px;
        height: 60px
    }

    #list #list em {
        left: 10px;
        border-width: 2px;
        border-radius: 20px;
        box-shadow: 0 0 3px black;
        width: 40px;
        height: 40px
    }

    #list #list img {
        border-radius: 18px;
        width: 36px;
        height: 36px
    }

    #list #list span {
        top: 42px;
        font-size: 10px;
        line-height: 10px
    }

    #close {
        line-height: 24px
    }
}
