/** Applies both to current match and standings components */

@import url('//thw-handball.de/wp-content/uploads/omgf/local-stylesheet-import-113/local-stylesheet-import-113.css');

.a20-current-match-team-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
}

.ahz-liveticker-info-container-item {
    background-color: white;
    border-radius: 10px;
    padding: 16px;
    color: black;
}

.ahz-liveticker-info-container-item  p{
    margin-bottom: 0;
}

.ahz-liveticker-info-container-item  h4{
    margin-bottom: 0;
    font-weight: bold;
    text-transform: uppercase;
}

.ahz-liveticker-info-container-item-first {
    margin-right: 4px;
}

.ahz-liveticker-info-container-item-second {
    margin-left: 4px;
}

.a20-current-match-team-row .home {
    width: calc((100% - 17px) / 2);
}
.a20-current-match-team-row .guest {
    width: calc((100% - 17px) / 2);
}

.a20-current-match-team-row > .home > p {
    text-overflow: ellipsis;
    /* Needed to make it work */
    overflow: hidden;
    white-space: nowrap;
}

.a20-current-match-team-row > .guest > p {
    text-overflow: ellipsis;
    /* Needed to make it work */
    overflow: hidden;
    white-space: nowrap;
}

.ahzlive-match-cards .a20-match-card-container {
    font-weight: bold;
}

.a20-current-match-btn-row > .a20-main-btn-styling {
    width: 50%;
	background-color: black;
	border-radius: 0;
	border: solid 2px black;
    text-decoration: none !important;
	transition: all 300ms;
}

.a20-current-match-btn-row > .a20-main-btn-styling:hover {
    background-color: white;
    color: black;
}

.a20-current-match-btn-left {
    margin-right: 4px;
}

.a20-current-match-btn-right {
    margin-left: 4px;
}

.a20-current-match-tile-header {
    font-weight: 700;
	font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    margin-bottom: 8px;
}

section button.show-more {
	background-color: black;
    color: #FFFFFF;
    padding: 8px;
    font-weight: bold;
    border: solid 2px black;
    transition: all 300ms;
    border-radius: 0;
}

section button.show-more:hover {
	background-color: white;
    color: black;
}


section.ahzlive-standings button.show-more {
    width: 100%;
}

/** Overview Buttons */
.a20-match-cards-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-left: 16px;
    padding-right: 16px;
}

#ahzlive-select-contest {
    border-radius: 0px;
    color: black;
}

.a20-left-buttons > button {
    border-radius: 0px;
    background-color: white;
    color: black;
}

.a20-left-buttons > button:hover {
    border-radius: 0px;
    color: white;
    background-color: black;
}

.a20-match-cards-buttons-first {
    margin-right: 16px;
}

/** Overview tile styling */
.a20-match-card-container-game-info-home, .a20-match-card-container-game-info-guest {
    text-align: center;
}

.a20-match-card-container-logo {
    max-height: 52px;
}

.a20-match-card-container-game-info {
    display: flex;
    justify-content: space-around;
    height: 80px;
}

.a20-match-card-container-text {
    text-align: center;
    margin-bottom: 16px;
}

.a20-match-card-container-logo-wrapper {
    display: flex;
    justify-content: center;
}

.a20-match-card-container-score {
    text-align: center;
    width: 66px;
    line-height: 28px;
    font-weight: 700;
    font-size: 18px;
}

.a20-match-card-container-game-info-guest, .a20-match-card-container-game-info-home {
    width: calc((100% - 48px)/2);
}

.a20-match-card-button-row {
    margin-top: 16px;
    display: flex;
    max-height: 35px;
    justify-content: space-between;
    height: 28px;
    max-height: 28px;
}

.a20-match-card-button {
    color: white;
    background-color: black;
    text-decoration: none !important;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    width: 100%;
    text-align: center;
    margin-right: 16px;
}

.a20-match-card-button:hover {
    color: white !important;
}

.a20-calendar-icon-wrapper {
    background-color: #F2F2F2;
    border-radius: 10px;
	border: 2px solid #F2F2F2;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 13px;
    padding-right: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35px;
}

.a20-calendar-icon-wrapper:hover {
    background-color: #F2F2F2;
}

.a20-calendar-icon-wrapper > img {
    width: 25px;
    height: 18px;
}

.a20-no-match-report > .a20-calendar-icon-wrapper >  img {
    width: 21px;
}

/** Liveticker styling */
.a20-liveticker-container {
    margin-top: 8px;
    margin-bottom: 8px;
}

.a20-liveticker-event-minute {
    width: 50px;
    text-align: center;
}

.a20-liveticker-event-left, .a20-liveticker-event-right  {
    width: calc((100% - 50px)/2);
}

.a20-liveticker-event-right {
    text-align: right;
}

.a20-liveticker-content-left > .a20-liveticker-content-headline {
    display: flex;
}


.a20-liveticker-content-right > .a20-liveticker-content-headline {
    display: flex;
    justify-content: flex-end;
}

.a20-liveticker-content-right p {
    margin-right: 6px;
}

.a20-liveticker-content-headline > p {
    font-weight: 700;
    margin-bottom: 0;
}

.a20-liveticker-content-logo {
    object-fit: contain;
    max-height: 25px;
    max-width: 25px;
}

.a20-liveticker-content-logo {
    margin-right: 6px;
}

/* 2 tiles with info about current match at the bottom */
.ahz-liveticker-info-container {
    display: flex;
    justify-content: space-between;
}

.ahz-liveticker-info-container-item {
    width: 45%;
}

.a20-lineup-button {
    width: 45%;
    margin-left: 2%;
    margin-right: 2%;
    color: black;
    background-color: #f2f2f2;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 700;
}

.a20-lineup-button:hover {
    width: 45%;
    margin-left: 2%;
    margin-right: 2%;
    background-color: black;
    color: white;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 700;
}

.a20-lineup-left-selected {
    color: white !important;
    background-color: black !important;
}

.a20-lineup-button-selected:hover {
    background-color: black;
}
.a20-lineup-button-row {
    margin-bottom: 16px;
}

.a20-lineup-headline {
    color: white;
    background-color: black;
    text-transform: uppercase;
    padding-right: 15px;
    padding-left: 15px;
    padding-top: 2px;
    font-weight: 700;
    font-size: 17px;
    margin-top: 16px;
}

.a20-lineup-wrapper {
    display: flex;
    margin-left: -16px;
}

.a20-lineup-opponent .a20-lineup-player-number-wrapper {
    height: 20px;
    width: 20px;
    background-color: black;
    color: white;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.a20-lineup-thw .a20-lineup-player-number-wrapper {
    height: 20px;
    width: 20px;
    background-color: black;
    color: white;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 12px;
    margin-left: -12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

.a20-lineup-player-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.a20-lineup-player-name {
    text-transform: uppercase;
}

.a20-lineup-player-surname {
    font-weight: 700;
}

.a20-player-lineup-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/** Statistics styling */

.a20-statistics-row {
    margin-top: 16px;
}

.a20-statistics-row-title {
    text-align: center;
    text-transform: uppercase;
}

.a20-liveticker-statistics-left-bar {
    height: 8px;
    background-color: black;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.a20-liveticker-statistics-right-bar {
    height: 8px;
    background-color: black;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.a20-liveticker-statistics-complete-border-radius {
    border-radius: 4px;
}

.a20-statistics-row-percentage-row-bars {
    display: flex;
    width: 100%;
    padding-left: 6px;
    padding-right: 6px;
}

.a20-statistics-row-percentage-row {
    display: flex;
    align-items: center;
}

.a20-statistics-logo {
    max-height: 30px;
}

.a20-liveticker-statistics {
    margin-top: 8px;
}

/** Current match styling */

section.ahzlive-current-match {
    border-radius: 10px;
    background-color: #fff;
    color: #000;
    text-align: center;
}

section.ahzlive-current-match h3 {
    font-family: "Directa Serif", "Helvetica", sans-serif;
    display: contents;
    text-transform: uppercase;
    font-weight: 900;
}

section.ahzlive-current-match p {
    margin-bottom: .4em;
}

section.ahzlive-current-match .home {
    width: 30%;
    display: inline-block;
    text-align: center;
}

section.ahzlive-current-match .home img {
    margin: 0 auto;
}

section.ahzlive-current-match .guest {
    width: 30%;
    display: inline-block;
    text-align: center;
}

section.ahzlive-current-match .guest img {
    margin: 0 auto;
}

section.ahzlive-current-match span.vs {
    margin: 0 auto;
    width: 30%;
    display: inline-block;
    text-align: center;
}


/** Standings styling */

#a20-standings-table-head-played,
.a20-standings-table-body-played {
    width: 30px;
    display: flex;
    justify-content: center;
}

.a20-standings-table-wrapper {
    font-family: "Directa Serif", "Times New Roman", serif;
    font-size: 17px;
}

.a20-standings-table-head {
    font-weight: bold;
    margin-bottom: 16px;
}

.a20-standings-table-body-name {
    display: flex;
    align-items: center;
}

.a20-standings-table-body-placement {
    width: 54px;
    min-width: 54px;
    text-align: center;
    border-radius: 10px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 3px;
    margin-right: 16px;
}

.a20-standings-table-row, .a20-standings-table-card-row  {
    display: flex;
    justify-content: space-between;
    background-color: #F2F2F2;
    border-radius: 10px;
    margin-bottom: 10px;
    height: 44px;
    align-items: center;
	font-family: "IBM Plex Sans", sans-serif;
}

.a20-standings-table-card-body-rank {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 5px;
	font-family: "IBM Plex Sans", sans-serif;
}

.a20-standings-table-card-table-head {
    display: flex;
    justify-content: space-between;
}

.a20-current-match-description {
    display: flex;
    margin-right: 18px;
    font-size: 13px;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
}

.a20-current-match-description > div {
    min-width: 32px;
    font-weight: bold;
    text-transform: uppercase;
	font-family: "Barlow Condensed", sans-serif;
}

.a20-standings-table-card-body-same-size {
    min-width: 40px;
    font-weight: 700;
}

.a20-standings-table-head {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
}

.a20-standings-table-left {
    display: flex;
    justify-content: flex-start;
}

.a20-standings-table-right {
    display: flex;
    justify-content: flex-end;
    font-weight: bold;
}

.a20-standings-table-body-logo {
    display: flex;
    align-items: center;
    width: 70px;
    min-width: 70px;
    margin-right: 16px;
    justify-content: center;
}

.a20-standings-table-body-logo>img {
    max-height: 33px;
    max-width: 33px;
}

.a20-standings-table-right-cols-small {
    width: 54px;
    margin-left: 64px;
    text-align: center;
}

.ahz-liveticker-ad-container-class {
    display: flex;
    justify-content: center;
}

.a20-standings-table-right-cols {
    width: 72px;
    margin-left: 64px;
    text-align: center;
}

#a20-standings-table-head-draw,
#a20-standings-table-head-won,
#a20-standings-table-head-lost,
.a20-standings-table-body-victories,
.a20-standings-table-body-draws,
.a20-standings-table-body-defeats {
    min-width: 40px;
    text-align: center;
}

#a20-standings-table-head-goal,
.a20-standings-table-body-goals {
    margin-left: 60px;
}

.a20-standings-table-body-played,
#a20-standings-table-head-played {
    margin-right: 40px;
}

.a20-standings-table-body-name {
    line-height: 15px;
}

.a20-standings-first-place {
    background-color: black;
    color: #fff;
}

.a20-standings-second-place {
    background-color: black;
    color: #fff;
    opacity: .5;
}

.a20-standings-second-last-place {
    background-color: #000;
    color: #fff;
    opacity: .5;
}

.a20-standings-last-place {
    background-color: #000;
    color: #fff;
}

.thw-kiel-row {
    color: black;
}

section.ahzlive-standings {
    border-radius: 10px;
    background-color: #fff;
    color: #000;
    padding: .5em;
}

section.ahzlive-standings h3 {
    font-family: "Directa Serif", "Helvetica", sans-serif;
    display: contents;
    text-transform: uppercase;
    font-weight: 900;
}

section.ahzlive-standings span.right {
    float: right;
    font-weight: 700;
}

section.ahzlive-standings table {
    border: none;
    margin: 5px;
    width: 100%;
}

section.ahzlive-standings tr {
    background-color: #f2f2f2;
    border-bottom: solid 4px #fff;
    max-height: 3.5em;
    overflow: hidden;
}

section.ahzlive-standings .gold {
    color: black;
}

section.ahzlive-standings tr img {
    display: block;
    height: 75%;
    margin-left: auto;
    margin-right: auto;
}

section.ahzlive-standings tr th {
    background-color: #fff;
    border-top: none;
    border-bottom: solid 4px #fff;
    text-transform: uppercase;
}

section.ahzlive-standings td {
    vertical-align: middle;
    height: 3.5em;
    padding: 0 5px;
}

section.ahzlive-standings td:first-child {
    border-radius: 12px;
}

section.ahzlive-standings td span {
    display: block;
    padding-top: .9em;
}

section.ahzlive-standings td.placement {
    background-color: transparent;
    color: #000;
    width: 2em;
    border-radius: 12px;
    display: inline-block;
    font-weight: bold;
    text-align: center;
    width: 3.5em;
    border-top: none;
}

section.ahzlive-standings td span.points {
    float: right;
    text-align: center;
    font-weight: bold;
}

.ahzlive-matches-container {
    display: block;
}

.a20-match-card-container {
    margin: 16px;
    position: relative;
    float: left;
    width: calc(100% / 2 - 64px);
}

.a20-match-card-ad-container {
    width: calc(100% - 64px);
}

.a20-match-card-container.ad {
    background-color: #bbb;
}

.ahzlive-match-card {
    background-color: #eee;
    margin: 10px;
    border-radius: 10px;
    height: 200px;
    text-align: center;
}

.ahzlive-match-card p {
    text-align: center;
    margin-bottom: 5px;
}

.ahzlive-match-card-content {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.ahzlive-match-card-content .left {
    float: left;
}

.ahzlive-match-card-content .right {
    float: right;
}

.ahzlive-match-card-content img {
    height: 60px;
}

.ahzlive-match-card-content .score {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
}

.ahzlive-match-cards button.selected {
    color: white;
    background-color: black;
}

.a20-download-calendar-btn {
    color: white;
    background-color: black;
	border: 2px solid black;
    width: 100%;
	transition: all 300ms;
	font-weight: 700;
}

.a20-download-calendar-btn:hover {
    color: black;
    background-color: white;
}

.a20-calendar-accept-checkbox-wrapper input {
    margin-right: 7px;
}

.ahzlive-match-cards a.banner {
    grid-area: 3/1;
}


/* Popup */
.ahzlive-popup-modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.ahzlive-popup-modal-content {
    text-align: center;
    background-color: #fefefe;
    margin: auto;
    padding: 0 0 40px 0;
    max-width: 640px;
    border-radius: 10px;
    text-transform: none;
    color: #000;
}

.a20live-calendar-modal-content-wrapper {
    margin-left: 80px;
    margin-right: 80px;
}

.ahzlive-popup-modal-content button {
    width: 350px;
    border-radius: 10px;
    margin: 8px 0;
    color: #fff;
    background-color: black;
    font-weight: 700;
}

.ahzlive-popup-modal-content button img {
    float: left;
}

.ahzlive-popup-close {
    color: #aaaaaa;
    background-color: black;
    color: white;
    float: right;
    border-radius: 0 10px 0 10px;
    width: 35px;
    height: 35px;
    margin-right: -80px;
    line-height: 31px;
    font-size: 43px;
    font-family: initial;
}

.a20-calendar-accept-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.ahzlive-popup-close:hover,
.ahzlive-popup-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.a20-match-card-button-row  > a  {
    width: 100%;
    margin-right: 10px;
}

.a20-match-card-button-row  > a > button {
    width: 100%;
    background-color: black;
    color: white;
	border: 2px solid black;
	transition: all 300ms;
	font-weight: 700;
}
.a20-match-card-button-row  > a > button:hover {
    width: 100%;
    background-color: white;
    color: black;
}

#ahzlive-download-buttons h5 {
    font-weight: 700;
    text-transform: uppercase;
}

#ahzlive-download-buttons button:disabled {
    background-color: #999;
}

#ahzlive-download-buttons button {
    width: 100%;
}

#ahzlive-download-buttons .info-box {
    margin: auto;
    background-color: #f2f2f2;
    border-radius: 10px;
    text-align: left;
    color: #000;
    padding-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 2px;
}

.a20-no-match-report {
    justify-content: flex-end;
}

.ahz-thw-is-guest a {
    visibility: hidden;
}

.a20-standings-ko-table-card-row {
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 11px;
    font-size: 17px;
    line-height: 31px;
    margin-bottom: 8px;
}

.a20-standings-ko-table-card-row.ahz-golden-color {
    color: black;
}

.a20-standings-ko-table-card-body-score-wrapper {
    display: flex;
}

.a20-standings-ko-table-score {
    margin-left: 2px;
    text-align: center;
    margin-right: 2px;
    width: 22px;
}

.a20-standings-ko-table-card-body-name {
    width: calc((100% - 57px)/2);
}

.a20-standings-ko-table-card-body-name-guest {
    text-align: right;
}

@media (max-width: 1199.98px) {
    #a20-standings-table-head-goal,
    .a20-standings-table-body-goals {
        margin-left: 50px;
    }
    .a20-standings-table-body-played,
    #a20-standings-table-head-played {
        margin-right: 40px;
    }
    .a20-standings-table-right-cols-small {
        margin-left: 50px;
    }
    .a20-standings-table-right-cols {
        margin-left: 50px;
    }
}

@media (max-width: 1080px) {
    .ahzlive-match-cards .a20-match-cards-buttons {
        display: block;
    }

    .ahzlive-match-cards .a20-match-cards-buttons .a20-left-buttons {
        margin-bottom: 16px;
        display: flex;
        justify-content: space-between;
    }
    .ahzlive-match-cards .a20-match-cards-buttons .a20-left-buttons .ahzlive-selectable {
        width: 100%;
        margin: unset;
    }
    .ahzlive-match-cards .a20-match-cards-buttons .a20-left-buttons .ahzlive-selectable:not(:last-child) {
        width: 100%;
        margin-right: 8px;
    }
    .a20-right-buttons {
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 1000px) {
    .a20-match-card-container {
        width: calc(100% - 64px);
    }
    .a20-match-card-ad-container {
        width: calc(100 - 64px);
    }
}

@media (max-width: 991.98px) {
    .a20-hide-tablet,
    #a20-standings-table-head-played {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .a20-standings-table-body-placement {
        margin-right: unset;
    }
    .a20-standings-table-body-logo {
        margin-right: unset;
    }
    .a20-standings-table-wrapper {
        font-size: 16px;
    }
    .a20-standings-table-right-cols-small {
        width: 50px;
        margin-left: 20px;
    }
    .a20-standings-table-right-cols {
        margin-left: 20px;
    }
    .a20-match-card-container {
        /* width: calc(100vw - 140px); */
    }
    .a20-match-card-ad-container {
        width: calc(100vw - 140px);
    }
}

@media (max-width: 650px) {
    .a20-left-buttons {
        margin-bottom: 16px;
    }
}

@media (max-width: 575.98px) {
    .ahzlive-match-cards .a20-match-cards-buttons .a20-left-buttons {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .ahzlive-match-cards .a20-match-cards-buttons .a20-left-buttons .ahzlive-selectable {
        margin-bottom: 8px;
    }
    .d-mobile-none {
        display: none;
    }
    .a20-standings-table-body-placement {
        width: 44px;
        min-width: 44px;
    }
    .a20-standings-table-body-logo {
        width: 50px;
        min-width: 50px;
    }
    .a20-match-card-container-game-info {
        height: unset;
    }
    .a20live-calendar-modal-content-wrapper {
        margin-left: 20px;
        margin-right: 20px;
    }
    .ahzlive-popup-close {
        margin-right: -20px;
    }
}

@media (max-width: 500px) {
    .ahz-liveticker-info-container {
        display: block;
    }
    .ahz-liveticker-info-container-item {
        width: unset;
        margin: 0;
        margin-bottom: 8px;
    }
}

@media (max-width: 400px) {
    .a20-left-buttons {
        display: inline-grid;
        max-width: 241px;
    }
    .a20-left-buttons {
        width: 100%;
    }
    .a20-match-cards-buttons-first {
        margin-bottom: 16px;
        margin-right: 0;
    }
}

@media (max-width: 360px) {
    .a20-match-card-container {
        width: calc(100vw - 130px);
    }
}
