/*
 * overrides.css
 * This file contains css added to the site to resolve urgent bugs.
 * Styles should be moved from this file to SASS as soon as possible.
 */

* {
    outline: none !important;
}

/* Readmore.js
---------------------------------------------------------------------------*/

.news .news-article__content + [data-readmore-toggle],
.news .news-article__content[data-readmore] {
    display: block;
    width: 100%;
}

.news .news-article__content[data-readmore] {
    transition: height 100ms;
    overflow: hidden;
}

.news-article [id^=rmjs] + .text-center {
    padding: 16px 0;
}

/* Transforms
---------------------------------------------------------------------------*/

.home .thumbnail:hover,
.slick-slide .thumbnail:hover,
.news .news-thumbnail:hover {
    transition: all 0.2s ease-out 0.1s;
    transform: scale(1.05);
}

/* Globals
---------------------------------------------------------------------------*/

/* this should be a global in SASS; it is only on selected pages presently */
.content {
    padding: 24px 57px 40px;
}

@media (max-width: 1024px) {
    header .navbar .mega-menu {
        left: -597px;
    }
}

@media (max-width: 1330px) {
    .content {
        padding-top: 25px;
        padding-left: 25px;
        padding-right: 25px;
        padding-bottom: 23px;
    }
}

@media (max-width: 991px) {
    .content {
        padding-top: 0;
    }
}

/* show home in mobile nav only */
.navbar .home {
    display: none;
}

@media (max-width: 991px) {
    .navbar .home {
        display: block;
    }
}

/*fix sponsor logo alignment*/
.sponsors img {
    display: inline;
}

.sponsors .row div {
    text-align: center;
}

/* article box */
.thumbnail {
    margin-bottom: 16px;
}

/* 16:9 images */
.thumbnail .thumbnail-wrap {
    display: block;
    width: 100%;
    position: relative;
    height: 0;
    padding: 56.25% 0 0 0;
    overflow: hidden;
}

.thumbnail .thumbnail-wrap img {
    position: absolute;
    display: block;
    max-width: 100%;
    max-height: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.thumbnail a:hover {
    text-decoration: none;
}

.thumbnail .caption {
    padding: 16px;
    height: 150px;
}

/* Home
---------------------------------------------------------------------------*/

.home .play-btn {
    color: white;
}

.home .banner {
    margin-bottom: 16px;
}

.home .banner .caption .tag {
    text-transform: uppercase;
}

.home .thumbnail {
    margin-bottom: 16px;
}

/* Games
---------------------------------------------------------------------------*/

/* dropdown */
.games #fixtures-dropdown .dropdown-item .dropdown {
    margin-right: 0px;
}

@media (max-width: 767px) {
    .games .games-index .header #fixtures-dropdown .dropdown-item.teams {
        border-bottom: 0px;
    }
}

/* fix for 320px; */
@media (max-width: 991px) {
    .games .games-index .list .list-row {
        padding-left: 0px;
        padding-right: 0px;
    }
}

/* fix button hover whilst game is playing */
.playing .btn-red:hover {
    background-color: #ffffff;
    border: solid 1px #ffffff;
    color: #ac0f1f !important;
}

.games .list .panel .time,
.games .list .panel .broadcaster {
    padding-left: 0px;
    padding-right: 0px;
}

.games .list .panel .location {
    padding-left: 0px;
    padding-right: 5px;
}

.games .list .panel .time .final {
    font-size: 16px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: 0.2px;
    color: #ac0f1f;
}

.games .list .panel .time .label {
    padding: 0px;
}

.games .list .panel .panel-body .panel-cell.broadcaster img {
    margin: 0px;
    width: 82px;
    /*height: 60px;*/
}

/* 320px */
@media (max-width: 767px) {
    .games .list .panel .panel-body .panel-cell.time {
        text-align: left;
    }

    .games .games-index .list .panel.fixture .panel-body .panel-cell.time {
        padding-top: 20px;
    }

    .games .games-index .list .panel .panel-body {
        padding-bottom: 100px;
        position: relative;
    }

    .games .games-index .list .panel .panel-body .panel-cell.call-to-action {
        position: absolute;
        width: 100% !important;
        bottom: 0px;
        left: 0px;
        display: block !important;
    }
}

/* Game Info
---------------------------------------------------------------------------*/

.game-info .panel {
    margin-bottom: 0px;
}

.game-details .adslot {
    text-align: center;
    margin: 0px 0px 20px 0px;
}

a.text-uppercase.tab-available {
    opacity: 1;
}

.tab-available span {
    color: #333;
}

/* Game Info - Play By Play
---------------------------------------------------------------------------*/

.games .game-details #play-by-play .minute {
    font-size: 21px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
}

/* Game Info - Linup
---------------------------------------------------------------------------*/

.games .game-details #line-up .team-name {
    font-size: 17px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: 0.1px;
}

.games .game-details #line-up .title {
    margin: 25px 0px 16px 0px;
}

.games .game-details #line-up .squad .panel {
    border: 0px;
}

.games .game-details #line-up .squad .panel .name span {
    margin-right: 0px;
}

.games .name-wrap {
    word-wrap: break-word;
}

@media (max-width: 767px) {
    .games .first-name, .games .last-name {
        font-size: 18px;
    }
}

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

/* remove extra border */
.standings #fixtures header {
    border-bottom: 0px;
}

.standings .list .list-row .panel .team a:hover {
    color: #aa1325;
}

/* VOD
---------------------------------------------------------------------------*/

/* padding for 320px and 768px */
.hero .details {
    padding: 24px;
}

/* hack to vertically center details for 1024, 1280 and 1440 */
@media (min-width: 1200px) {
    .vod .hero .row {
        display: table;
    }

    .vod .hero .player {
        height: 100%;
        display: table-cell;
        float: none;
        padding: 0px;
    }

    .vod .hero .info {
        height: 100%;
        display: table-cell;
        float: none;
        vertical-align: middle;
    }

    .vod .hero .details {
        padding: 0px 15px;
    }
}

/* description below video 1024 and below */
@media (max-width: 1200px) {
    .vod .player {
        width: 100%;
        padding: 0px;
    }

    .vod .info {
        width: 100%;
    }
}

.vod .page-wrap .content {
    margin-left: 40px;
    margin-right: 40px;
}

@media (max-width: 992px) {
    .vod .content {
        margin-left: 0px;
        margin-right: 0px;
    }
}

.vod .adwrapper .content {
    padding: 24px 0px 24px 0px;
}

.vod .adslot {
    text-align: center;
}

.vod .adslot2 {
    text-align: center;
    margin-bottom: 40px;
}

/* News
---------------------------------------------------------------------------*/

@media (min-width: 768px) {
    .news header .navbar {
        margin-bottom: 0px;
    }

    .news .news-thumbnail.selected {
        background: #aa1325;
    }

    .news .news-thumbnail:hover {
        transition: all 0.2s ease-out 0.1s;
        transform: scale(1.05);
    }

    .news .news-thumbnail.selected:hover {
        transition: none;
        transform: scale(1);
    }

    .newsHighlights-wrapper .adslot {
        text-align: center;
        margin: 20px 0px 20px 0px;
    }

    .newsHighlights-wrapper a:hover {
        text-decoration: none;
    }

    /* Players
    ---------------------------------------------------------------------------*/
    /* letters */
    .players .content-no-margin table.table {
        border: 0px;
    }

    .player-profile .statistics #players .list-row .data .panel-default {
        border: 0px;
    }

    .player-profile .header {
        margin-bottom: 0px;
        border-bottom: 0px;
    }

    .players .feature {
        padding-left: 0px;
        padding-right: 0px;
    }

    .players .dropdown {
        border-bottom: 0px;
    }

    .players .table.letters tr th a {
        font-weight: bold;
        color: #333;
    }

    .players .table.letters tr th a:hover {
        font-weight: bold;
        color: #ac0f1f;
    }
}

@media (min-width: 992px) {
    .player .player-name {
        text-align: left;
    }
}

@media (max-width: 767px) {

    /* featured */
    .players .shirt-number {
        color: #909193;
    }

    /* list */
    #players .content, #players .content .list {
        padding-top: 0px;
    }

    #players .underline {
        margin: 0px 10px 20px 0px;
    }

    #players h3, #players .underline {
        margin-left: 10px;
    }

    #players .data .panel {
        margin-bottom: 0px;
    }
}

/* Tickets
---------------------------------------------------------------------------*/
.tickets .ticket .logo .logo-img img {
    width: 104px;
    height: 104px;
}

.tickets .ticket-list .pull-right {
    margin-left: 20px;
}

/* Static
---------------------------------------------------------------------------*/
.static {
    background: #f4f4f4;
}

/*  Step 1 - 320 (default) */
.static .col-xs-12 .content {
    margin: 24px 0px 24px 0px;
    padding: 24px 16px 24px 16px !important;
    background: white;
}

/*  Step 2 - 768 */
@media (min-width: 768px) {
    .static .col-sm-12 .content {
        margin: 43px 0px 43px 0px;
        padding: 40px 24px 40px 24px !important;
        background: white;
    }
}

/* Step 3 - 1024 */
@media (min-width: 992px) {
    .static .col-md-12 .content {
        margin: 43px 40px 43px 40px;
        padding: 40px 24px 40px 24px !important;
        background: white;
    }
}

/* Step 4 - 1280 */
@media (min-width: 1200px) {
    .static .col-lg-12 .content {
        margin: 43px 40px 43px 40px;
        padding: 40px 48px 40px 48px !important;
        background: white;
    }
}

/* Step 5 - 1440 */
@media (min-width: 1400px) {
    .static .col-lg-12 .content {
        margin: 43px 121px 43px 121px;
        padding: 40px 48px 40px 48px !important;
        background: white;
    }
}

.static h1 {
    font-size: 24px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: 24px;
    letter-spacing: normal;
    color: #222427;
    margin: 0px 0px 24px 0px;
    padding: 0px;
}

.static .static-copy {
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.36;
    letter-spacing: normal;
    color: #222427;
}

.static .wp-caption-text {
    opacity: 0.5;
    font-size: 10px;
    font-weight: 600;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.3;
    letter-spacing: normal;
    color: #222427;
}

@media (min-width: 992px) {
    .news .fixed-scroll-wrapper {
        overflow: auto;
        position: fixed;
        top: 171px;
        left: 0;
        bottom: 0;
        height: auto;
    }

    .news .newsHighlights-wrapper li.active .news-thumbnail__copy {
        background: #c20121;
        color: #fff;
    }

    .news .newsHighlights-wrapper li.active .news-thumbnail__meta {
        color: #fff;
    }
}