/*=============================================>>>>>
= 1) Widgets
===============================================>>>>>*/

/*----------- 1.1 List -----------*/

.widget-nbateams-list {
    line-height: 18px !important;
}

.widget-nbateams-list a {
    text-decoration: none;
    font-size: 14px;
}

.widget-nbateams-list a:hover {
    color: #47c9e5 !important;
}

/*----------- 1.1 Standings -----------*/

.widget-nbateams-standings {
    display: flex;
}

.standings-conf {
    flex-basis: 50%;
    margin-right: 5px;
    padding-right: 5px;
}

.standings-conf__title {
    color: #0c0c0c;
    margin-bottom: 5px;
    text-align: center;
}

.standings-team {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 2px 5px;
    margin: 2px 0;
}

.standings-team:nth-child(odd) {
    background-color: #f7f7f7;
}

.standings-team:nth-child(8n) {
    border-bottom: 1px solid #47c9e5;
}

.standings-team:nth-child(-n+8) .standings-team__rank, standings-team:nth-child(-n+8) .standings-team__abbrev {
    color: #0c0c0c;
}

.standings-team__left {
    display: flex;
    height: 20px;
}

.standings-team__rank {
    width: 18px;
    font-size: 85%;
    font-weight: 500;
    margin-right: 2px;
}

.standings-team__img {
    margin-right: 5px;
}

.standings-team__abbrev {
    /*color: #0c0c0c;*/
}

.standings-team__winloss {
    font-size: 85%;
}

/*=============================================>>>>>
= 2) Day Games
===============================================>>>>>*/

#day-games {
    font-size: 12px;
    line-height: 1.2em;
}

.day-games-wrapper {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    overflow: auto;
}

.day-games-wrapper__today {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.day-games-wrapper__today-day {
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2em;
}

.day-games__game {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    background-color: white;
    border: solid rgba(51, 51, 51, 0.12);
    border-width: 1px 1px 1px 0;
    padding: 5px 10px 5px 5px;
}

.day-games__game:first-child {
    border-width: 1px;
}

.day-games__game-hour {
    font-size: 80%;
    font-stretch: condensed;
    font-weight: 500;
    margin-bottom: 5px;
}

.day-games__game-team {
    display: flex;
    align-items: center;
    height: 100%;
}

.day-games__game-team__logo {
    height: 35px;
    margin-right: 5px;
}

.day-games__game-team__infos {
    text-align: center;
}

.day-games__game-team__infos-abbrev {
    letter-spacing: 0.1em;
    font-weight: 500;
}

.day-games__game-team__infos-standings {
    font-size: 80%;
    font-stretch: condensed;
    color: #85868c;
    letter-spacing: -0.1em;
}

/*=============================================>>>>>
= 2) Header in Archive page
===============================================>>>>>*/

.nbateams-header__wrapper {
    /*max-width: helpers;*/
    height: 240px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.nbateams-header__wrapper-logo {
    height: 180px;
    opacity: 0.1;
}

.nbateams-header__main {
    margin-top: -180px;
    height: 180px;
    border-bottom: 1px solid white;
    display: flex;
    align-items: center;
    z-index: 100;
}

.nbateams-header__main-logo {
    padding: 0 10px;
}

.nbateams-header__main-location {
    padding: 0 10px;
}

.nbateams-header__main-city {
    font-size: 35px;
    line-height: 35px;
}

.nbateams-header__main-shortname {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 50px;
    line-height: 50px;
    font-weight: 600;
}

.nbateams-header__secondary {
    height: 60px;
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: #fff;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, .8);
}

.stats-column {
    border-right: 1px solid #ffffff;
    padding: 0 10px;
}

.stats-column:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.winloss {
    display: flex;
}

.winloss .letter {
    padding: 0 5px;
    margin: 0 10px;
    background-color: #fff;
    font-weight: bold;
}

.stats-column abbr {
    font-size: 0.8em;
    font-family: 'Roboto Condensed', sans-serif;
    position: relative;
    content: attr(title);
}

abbr:hover::after {
    width: 150px;
    position: absolute;
    bottom: 200%;
    left: 100%;
    display: block;
    padding: 1em;
    background: #fff;
    content: attr(title);
    color: #000;
}

.stats-column .stat {
    font-weight: 700;
    font-size: 1.1em;
}

/*----------- 2.1 Responsive -----------*/

@media only screen and (max-width: 500px) {
    .nbateams-header__main-logo {
        margin-left: -10px;
    }

    .nbateams-header__main-location {
        margin-left: -10px;
    }

    .nbateams-header__main-city {
        font-size: 25px;
        line-height: 25px;
    }

    .nbateams-header__main-shortname {
        font-size: 34px;
        line-height: 34px;
        font-weight: 600;
    }

    .nbateams-header__stats .stats-column {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

@media only screen and (max-width: 320px) {
    /* iPhone 5 */
    .nbateams-header__main-city {
        font-size: 25px;
        line-height: 25px;
    }

    .nbateams-header__main-shortname {
        font-size: 28px;
        line-height: 28px;
        font-weight: 600;
    }
}

/*=============================================>>>>>
= 3) Shortcodes
===============================================>>>>>*/

/*----------- 3.1 Cards -----------*/

#nbateams-cards {
    display: flex;
    flex-wrap: wrap;
}

.nbateams-cards__team {
    flex-basis: 20%;
    align-items: center;
    text-align: center;
    line-height: 1.2em;
    margin-bottom: 30px;
}

.nbateams-cards__team h2 {
    font-size: 18px;
    line-height: 1.2em;
}

.nbateams-cards__team .winloss {
    justify-content: center;
    align-items: center;

}

#nbateams-cards .winloss .stat {
    background-color: #0c0c0c;
    color: white;
    padding: 3px 6px;
}