/* colors */
:root {
    --headerBackground: #263238;
    --menuBackground: #263238;
    --contentBackground: #263238;
    --windowBackground: #F5F5F5;
    --scoreBackground: #37474F;
    --border: #546E7A;
    --textColor: #CFD8DC;
    --textColorDark: #B0BEC5;
    --textColorLight: #ECEFF1;
    --positive: #43A047;
    --negative: #E53935;
    --arrow: #FFC107;
}

body {
    margin:0px;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--headerBackground);
}
header {
    position: relative;
    float: left;
    width: 100%;
    height: 60px;
    background: var(--headerBackground);
    display: flex;
    justify-content: center;
    align-items: center;
}
header img {
    height: 50px;
}
#menu {
    position: relative;
    float:left;
    width: 100%;
    height: 80px;
    background: var(--menuBackground);
    
}
.menu-button, .menu-button-selected {
    position: relative;
    float: left;
    height: calc(100% - 2px);
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.menu-button {
    border-bottom: 2px solid var(--menuBackground);
}
.menu-button-selected {
    border-bottom: 2px solid var(--textColorLight);
}
.menu-button i {
    color: var(--textColorDark);
    font-size: 20pt;
    margin-bottom: 10px;
}
.menu-button-selected i {
    color: var(--textColorLight);
    font-size: 20pt;
    margin-bottom: 10px;
}
.menu-button label {
    font-size: 12pt;
    color: var(--textColorDark);
}
.menu-button-selected label {
    font-size: 12pt;
    color: var(--textColorLight);
}
.menu-button:focus {
    background: var(--menuBorder);
}
#content {
    position: relative;
    float: left;
    width: 100%;
    background: var(--contentBackground);
}
h1 {
    font-size: 12pt;
    font-weight: normal;
    color: var(--textColorDark);
    margin: 10px;
}
h2 {
    font-size: 10pt;
    font-weight: normal;
    color: var(--textColorDark);
    margin: 10px;
}
/* teams */
.div-team, .div-teams, .div-team-name {
    position: relative;
    float: left;
    width: calc(100% - 12px);
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: left;
}
.div-team, .div-teams {
    flex-direction: column;
    border: 1px solid var(--border);
}
.div-team-name {
    height: 60px;
    flex-direction: row;
}
.div-team-players {
    position: relative;
    float: left;
    width: calc(100% - 10px);
    margin: 5px;
    display: none;
}
.div-team-name img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid var(--border);
    margin: auto 10px auto 10px;
}
.div-team-name label {
    color: var(--textColor);
    font-size: 10pt;
}
/* players */
.div-player {
    position: relative;
    float: left;
    width: calc(100% - 10px);
    margin: 0px 0px 10px 10px;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--border);
}
.div-player-photo {
    position: relative;
    width: 100px;
    height: 100px;
    margin:10px;
}
.div-player-photo object, .div-player-photo img {
    width: 100px;
    height: 100px;
}
.div-player-info {
    position: relative;
    float: left;
    width: calc(100% - 120px);
    height: 100px;
    margin: 10px 10px 10px 0px;
    display: flex;
    flex-direction: column;
}
.div-player-name {
    position: relative;
    float: left;
    width: 100%;
    height: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
}
.div-player-name label {
    font-size: 12pt;
}
.player-number {
    font-size: 12pt;
    font-weight: bold;
    width: 30px;
    color: var(--textColorDark);
}
.player-name {
    font-size: 12pt;
    font-weight: normal;
    color: var(--textColor);
}
.div-player-stats {
    position: relative;
    float: left;
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: left;
}
.stat-box, .stat-title, .stat {
    position: relative;
    float: left;
}
.stat-box {
    width:50px;
    height: 50px;
    border: 1px solid var(--border);
    margin-right: 10px;
    display: flex;
    flex-direction: column;
}
.stat-title {
    width: 100%;
    height: 20px;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-title label {
    font-size: 8pt;
    color: var(--textColorLight);
}
.stat-value {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-value label {
    font-size: 10pt;
    color: var(--textColor);
}

/* filter & sort */
.filter {
    position: relative;
    float: left;
    width: 100%;
    margin: 5px 0px 5px 0px;
}
.filter select {
    width: calc(100% - 20px);
    margin: 10px auto 0px 10px;
    padding: 10px;
    border: 0px;
    background: var(--contentBackground);
    color: var(--textColor)
}
.filter select:focus {
    outline: none;
}
.sort {
    position: relative;
    float: left;
    width: 100%;
    margin: 10px auto 10px auto;
    display: flex;
    flex-direction: row;
}
.sort-button, .sort-button-selected {
    width: 40px;
    height: 30px;
    border: 0px;
    font-size: 10pt;
    border: 1px solid var(--border);
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}
.sort-button {
    color: var(--textColorLight);
} 
.sort-button-selected {
    background: var(--windowBackground);;
    color: var(--textColorDark);
}
/* games */
.div-game {
    position: relative;
    float: left;
    width: calc(50% - 10px);
    margin: 5px;
}
.div-field {
    position: relative;
    float: left;
    width: calc(100% - 10px);
    margin: 5px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
}
.div-field label {
    margin: 0px 5px 0px 5px;
}
.label-time {
    display: block;
    font-size: 12pt;
    font-weight: bold;
    color: var(--textColor);
}
.label-field {
    display: block;
    font-size: 10pt;
    font-weight: normal;
    color: var(--textColor);
}
.div-game-teams {
    position: relative;
    float: left;
    border: 0px;
    background: var(--scoreBackground);
    width: calc(100% - 12px);
    margin: 0px 5px 15px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 0px 10px 0px;
}

.div-game-team {
    position: relative;
    float: left;
    width: calc(100% - 4px);
    height: 42px;
    margin: 5px 10px 0px 10px;
}
.div-game-name {
    position: relative;
    float: left;
    width: calc(100% - 50px);
    height: 100%;
    margin-left: 2px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
}
.div-game-name img {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
}
.div-game-name-label {
    font-size: 12pt;
    font-weight: normal;
    color: var(--textColorLight);
    margin-left: 10px;
}
.div-game-score, .div-game-record, .div-game-arrow {
    position: relative;
    float: left;
    width: 30px;
    height: 100%;
    display: flex;
    justify-content: right;
}
.div-game-score {
    align-items:center;
}
.div-game-score label {
    font-size: 12pt;
    
    color: var(--textColor);
}
.div-game-record {
    align-items:flex-end;

}
.div-game-record label {
    font-size: 8pt;
    color: var(--textColor);
    margin-bottom: 10px;
}
.div-game-arrow {
    width: 20px;
    align-items: center;
    justify-content: center;
}
.div-game-arrow i {
    font-size: 14pt;
    color: var(--arrow);
}


.div-team label {
    color: var(--textColor);
    font-size: 10pt;
}
.div-game-pitchers {
    position: relative;
    float: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}
.div-game-pitcher {
    position: relative;
    float: left;
    width: 100%;
    display: flex;
    flex-direction: row;
}
.div-game-pitcher-title {
    font-size: 8pt;
    font-weight: bold;
    margin: 0px 10px 7px 7px;
    color: var(--textColorDark);
}
.div-game-pitcher-name {
    font-size: 8pt;
    margin: 0px 10px 5px 0px;
    color: var(--textColor);
}

/* table */
table {
    width: calc(100% - 20px);
    margin: 20px 10px auto 10px;
    border-spacing: 0px;
}
table thead tr th {
    padding: 5px 0px 5px 0px;
    font-size: 10pt;
    font-weight: normal;
    color: var(--textColorLight);
    text-align: center;
    border-bottom:1px solid var(--border);
}
table tbody tr {
    height: 50px;
}
table tbody td {
    font-size: 10pt;
    color: var(--textColor);
    border-bottom:1px solid var(--border);
    text-align: center;
}
table tbody tr td img {
    width: 32px;
    height: 32px;
    /* border-radius: 2px; */
    border: 1px solid var(--border);
}
.td-team {
    justify-content: left;
}

/*tabs */
.tabs {
    position: relative;
    float: left;
    display: flex;
    flex-direction: row;
    width: calc(100% - 10px);
}
.tab, .tab-selected {
    position: relative;
    float: left;
    width: 50%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10pt;
}
.tab {
    color: var(--textLightColor);
    border-bottom: 1px solid var(--border);
}
.tab-selected {
    color: var(--textColorDark);
    border-bottom: 1px solid var(--textColorDark);
}

.div-game-stats {
    position: relative;
    float: left;
    width: 100%;
    display: flex;
    flex-direction: row;
}
.div-stats-title {
    font-size: 10pt;
    margin: 5px auto 0px 5px;
    color: var(--textColorDark);
    font-weight: bold;
}
.div-team-stats {
    position: relative;
    float: left;
    width: calc(50% - 5px);
}
.div-team-stats table thead tr th {
    width: 50%;
    font-size: 8pt;
    color: var(--textColorDark);
    font-weight: bold;
    text-align: left;
    border: 0px;
}
.div-team-stats table tbody tr{
    height: 20px;
}
.div-team-stats table tbody tr td {
    width: 50%;
    font-size: 8pt;
    color: var(--textColor);
    text-align: left;
    border: 0px;
}

/*smartphone */
@media only screen and (max-width:480px) {
    .div-game {
        width: calc(100% - 10px);
    }
}