@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap');

html,
body {
    padding: 0;
    margin: 0;
    --bg-prime: #c42426;
    --bg-prime-inactive: #e29293;
    --bg-sponzor: #f0c8c8;
    --blackish: #1a1a1a;
}

/* desktop: 970x250
 mobile: 410x530 */

#W-wrap {
    position: relative;
    max-width: clamp(240px, 1140px, 100%);
    /* max-width: clamp(240px, 970px, 100%); */
    height: 250px;

    box-sizing: border-box;
    /* display: flex;
    flex-direction: column; */
    overflow: hidden;
    /* display: flex; */
    font-family: Roboto, Helvetica, sans-serif;
}

#W-wrap .W-cloak {
    display: none;
}

#W-wrap .W-show-mobile {
    display: none;
    ;
}

#W-wrap .W-flex-grow-1 {
    display: flex;
    flex-grow: 1;
}

/* tabs header */
#W-wrap .W-header {}

#W-wrap .W-tabs {
    height: 40px;
    display: flex;
    flex-direction: row;
}

#W-wrap .W-tabs h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    padding: 0;
    margin: 3px 10px;
    width: 318px;
}

#W-wrap .W-tabs a {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    padding: 3px;
    font-size: 24px;
    line-height: 1;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    background-color: var(--bg-prime-inactive);
    transition: color .2s linear, background-color .2s linear;
}

#W-wrap .W-tabs a.active {
    background-color: var(--bg-prime);
}

/* tabs */
#W-wrap.W-mode-table #W-table {
    display: blcok;
}

#W-wrap .swiper-button-next,
#W-wrap .swiper-button-prev {
    margin-top: -15px;
}

#W-wrap.W-mode-table #W-table-swiper,
#W-wrap.W-mode-table .swiper-table-container .swiper-button-next,
#W-wrap.W-mode-table .swiper-table-container .swiper-button-prev {
    display: block;
}

#W-wrap.W-mode-table .swiper-table-container .swiper-button-next svg path,
#W-wrap.W-mode-table .swiper-table-container .swiper-button-prev svg path {
    fill: var(--bg-prime);
}

#W-wrap.W-mode-table .W-footer,
#W-wrap.W-mode-table #W-rez,
#W-wrap.W-mode-table .swiper-rez-container .swiper-button-next,
#W-wrap.W-mode-table .swiper-rez-container .swiper-button-prev {
    display: none;
}

#W-wrap.W-mode-rez #W-table,
#W-wrap.W-mode-rez #W-table-swiper,
#W-wrap.W-mode-rez .swiper-table-container .swiper-button-next,
#W-wrap.W-mode-rez .swiper-table-container .swiper-button-prev {
    display: none;
}

#W-wrap.W-mode-rez #W-rez,
#W-wrap.W-mode-rez .swiper-rez-container .swiper-button-next,
#W-wrap.W-mode-rez .swiper-rez-container .swiper-button-prev {
    display: block;
}

#W-wrap.W-mode-rez .swiper-rez-container .swiper-button-next svg path,
#W-wrap.W-mode-rez .swiper-rez-container .swiper-button-prev svg path {
    fill: var(--bg-prime);
}

#W-wrap.W-mode-rez .swiper-rez-container .swiper-button-disabled {
    display: none;
}

/* tablica */
#W-wrap #W-table .W-table-flex {
    display: flex;
    padding: 10px 5px;
    overflow-y: auto;
    height: 210px;
    flex-direction: row;
    /* justify-content: space-between; */
    justify-content: space-evenly;
}

#W-wrap .W-table {
    margin-top: 8px;
    /* width: 380px; */
    color: var(--blackish);
    border-collapse: collapse;
}

#W-wrap .W-table th:nth-child(1) {
    text-align: left;
}

#W-wrap .W-table thead {
    margin-bottom: 8px;
}

#W-wrap .W-table th {
    padding: 0 3px;
    /* font-size: 18px; */
    font-size: 12px;
    color: var(--blackish);
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

#W-wrap .W-table th:first-child {
    color: var(--bg-prime);
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-weight: 900;
}

#W-wrap .W-table th:last-child,
#W-wrap .W-table td:last-child {
    color: var(--bg-prime);
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-weight: 900;
}

#W-wrap .W-table td:nth-child(1) {
    text-align: left;
}

#W-wrap .W-table td:last-child {
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-weight: 900;
}

#W-wrap .W-table td {
    padding: 2px 5px;
    text-align: center;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    /* font-size: 15px; */
    font-size: 12px;
    border-bottom: 1px solid #D9D9D9;
}

#W-wrap .W-table tr:last-child td {
    border: none;
}

#W-wrap .W-table .W-position {
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-weight: 900;
    display: inline-block;
}

#W-wrap .W-table .W-team {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

#W-wrap .W-table .W-flag {
    /*border-radius:20px; */
    height: 20px;
    margin-right: 5px;
    display: flex;
    /* outline: 1px solid rgba(0,0,0,0.2); */
}

/* table icons */
#W-wrap .W-table-icons {
    width: 122px;
    margin: 0 34px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#W-wrap .W-table-icons .W-icon-row {
    display: flex;
    direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#W-wrap .W-table-icons img {
    height: 30px;
}

/* swiper rezultati */
#W-rez-swiper {
    margin-top: 37.5px;
    height: 200px;
    /* padding: 0 55px; */
    padding: 0 35px;
}

#W-table-swiper {
    padding: 0 30px;
}

#W-table-swiper .swiper-slide.W-sponzor-slide {
    max-width: 140px;
}

#W-table-swiper .W-table-slide-wrap {
    display: flex;
    flex-direction: row;
    gap: 20px; /* sa sponzorima */
    height: 170px;
    align-items: center;

}

#W-table-swiper .W-sponzor.vertical {
    margin: 10px 0;
    flex-direction: column;
}

#W-wrap .swiper-slide.W-sponzor-slide {
    /* display: none; */
}

#W-wrap .swiper-slide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#W-wrap #W-rez-swiper .swiper-wrapper>*:not(:last-child)::after {
    content: " ";
    position: absolute;
    top: 40px;
    bottom: 100px;
    right: -30px;
    width: 1px;
    background-color: #D9D9D9;
}

#W-wrap .swiper-slide .W-sponzor {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    /* height: 100%; */
    background-color: var(--bg-sponzor);
    text-align: center;
    vertical-align: middle;

    /* padding: 40.5px 28.5px; */
    padding: 20px 10px;
}

#W-wrap .swiper-slide .W-sponzor img {
    display: flex;
    max-width: 100px;
}

/* swiper arrows */
#W-wrap .swiper-button-next,
#W-wrap .swiper-button-prev {
    --swiper-navigation-size: 27px;
    width: 16px;
    height: 29px;
    /* margin-top:10px; */
}

#W-wrap #W-table-swiper .swiper-button-next,
#W-wrap #W-table-swiper .swiper-button-prev {
    margin-top: 12px;
}

#W-wrap .swiper-button-prev {
    margin-left: 0;
    /* left:27px; */
    left: 2px;
}

#W-wrap .swiper-button-next {
    margin-right: 0;
    /* right:27px; */
    right: 2px;
}

#W-wrap .swiper-button-next::after,
#W-wrap .swiper-button-prev::after {
    content: "";
}

/* swiper hide pagination */
#W-wrap .swiper-pagination {
    display: none;
}

/* items */
#W-wrap .W-tekma {
    display: display;

    /* width:231px; */
    width: 191px;
    text-align: center;
    /* text-transform: uppercase; */
    color: var(--bg-prime);

    font-weight: 900;
    font-family: Roboto, Helvetica, sans-serif;
}

#W-wrap .W-tekma .W-group {
    color: var(--bg-prime);
    font-size: 24px;
    line-height: 1;
    margin: 0;
    margin-top: 0px;
    margin-bottom: 10px;

    text-transform: uppercase;
    font-weight: 900;
    font-family: Roboto, Helvetica, sans-serif;
    transition: color .2s linear;
}

#W-wrap .W-tekma .W-date {
    color: var(--blackish);
    font-size: 18px;
    line-height: 1;
    margin: 0;
    margin-bottom: 4.4px;
    font-weight: 700;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
}

#W-wrap .W-tekma .W-location {
    font-size: 9.57px;
    line-height: 1;
    margin: 0;
    margin-bottom: 12.15px;
    font-weight: 300;
    font-family: Roboto, Helvetica, sans-serif;
}

/* teams */
#W-wrap .W-tekma .W-team-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#W-wrap .W-tekma .W-score-flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

#W-wrap .W-tekma .W-team-flex .W-score-flex strong {
    color: var(--bg-prime);
    /* min-width: 120px; */
    min-width: 60px;
    font-size: 32px;
    line-height: 1;
    margin: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 900;
    font-family: Roboto, Helvetica, sans-serif;
}

#W-wrap .W-tekma .W-team-flex .W-vs-symbol-bold {
    font-size: 30px;
    font-weight: 900;
    font-family: Roboto, Helvetica, sans-serif;
}

#W-wrap .W-tekma .W-team-flex span {
    display: block;
    margin: 0 5px;
    font-size: 30px;
    font-weight: 400;
    font-family: Roboto, Helvetica, sans-serif;
}

/* team */
#W-wrap .W-tekma .W-team-flex .W-team {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#W-wrap .W-tekma .W-team-flex .W-team.W-left {
    margin-right: 9px;
}

#W-wrap .W-tekma .W-team-flex .W-team.W-right {
    margin-left: 9px;
}

#W-wrap .W-tekma .W-team-flex small {
    font-size: 9.57px;
    font-weight: 400;
    font-family: Roboto, Helvetica, sans-serif;
}

#W-wrap .W-tekma .W-team-flex .W-flag {
    margin-top: 15px;
    margin-bottom: 4.4px;
    /*border-radius:20px;*/
    width: 43.5px;
    height: 30px;
    display: flex;
    /* outline: 1px solid rgba(0,0,0,0.2); */
}

#W-wrap .W-tekma .W-team-flex .W-team small {
    /* position: absolute;

    bottom: -14px; */
    color: var(--blackish);
    font-size: 15px;
    font-family: Roboto, Helvetica, sans-serif;
    font-weight: 700;
    /* text-transform: uppercase; */
}

/* footer */
#W-wrap .W-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 50px;
    z-index: 10;

    padding: 5px 0;

    background-color: white;
    box-shadow: -4px 0 17px rgba(0, 0, 0, 0.1);

    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

#W-wrap .W-footer img {
    height: 30px;
}

/* responsive 410x530*/
@media only screen and (max-width: 481px) {
    #W-wrap {
        position: relative;
        max-width: 100%;
        height: 395px;
    }

    #W-wrap .W-content {
        padding: 10px;
        height: 395px;
        overflow-y: auto;
    }

    #W-wrap .W-show-mobile {
        display: block;
    }

    #W-wrap .W-hide-mobile {
        display: none !important;
    }

    /* tabs */
    #W-wrap .W-tabs {
        height: 46px;
    }

    #W-wrap .W-tabs a {
        padding: 15px;
    }

    /* title */
    #W-wrap .W-mobile-title {
        text-align: center;
        font-size: 32px;
        margin-top: 0;
        margin-bottom: 5px;
        font-family: Roboto, Arial, Helvetica, sans-serif;
        font-weight: 900;
    }

    /* sponzor */
    #W-wrap .W-sponzor {
        color: black;
        font-family: Roboto, Arial, Helvetica, sans-serif;
        font-weight: 700;
        display: flex;
        flex-direction: row;
        gap: 15px;
        height: auto;
    }

    #W-wrap .W-sponzor img {
        display: flex;
        max-width: 125px;
    }

    /* tablica */
    #W-wrap.W-mode-table .W-bg {
        border-top-width: 70px;
    }

    #W-wrap #W-table {
        margin-top: 20px;
        margin-bottom: 50px;
        padding: 0;
        height: auto;
    }

    #W-wrap .W-table {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 30px;
    }

    #W-wrap .W-table th {
        padding: 0 5px;
        font-family: Roboto, Arial, Helvetica, sans-serif;
        font-weight: 700;
        /* font-size: 18px; */
        font-size: 14px;
    }

    #W-wrap .W-table th:first-child {
        font-family: Roboto, Arial, Helvetica, sans-serif;
        font-weight: 700;
    }

    #W-wrap .W-table th:first-child,
    #W-wrap .W-table td:first-child {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    #W-wrap .W-table td {
        width: 21px;
        padding: 15px 5px;
        /* font-size:14px; */
        font-size: 12px;
        font-family: Roboto, Arial, Helvetica, sans-serif;
        font-weight: 700;
        letter-spacing: 0;
    }

    #W-wrap .W-table tr:last-child td {
        /* border-bottom: 1px solid #999999; */
    }

    #W-wrap .W-table .W-flag {
        height: 30px;
        margin-right: 5px;
        width: auto;
    }

    /* rezultati */
    #W-wrap #W-rez {
        padding-bottom: 110px;
    }

    #W-wrap #W-rez .W-tekma {
        width: 100%;
        border-bottom: 1px solid #D9D9D9;
        padding: 10px 0;
    }

    #W-wrap #W-rez .W-tekma .W-date {
        font-size: 18px;
        margin-top: 5px;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    #W-wrap #W-rez .W-tekma .W-score-flex {
        min-width: 62px;
        margin: 0 8px;
    }

    #W-wrap #W-rez .W-team-flex {
        justify-content: center;
    }

    #W-wrap #W-rez .W-tekma .W-team {
        display: flex;
        flex-direction: row;
        width: 135px;
    }

    #W-wrap #W-rez .W-tekma .W-team .W-flag-wrap {
        /* min-width: 45px; */
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    #W-wrap #W-rez .W-tekma .W-team .W-flag {
        margin: 0;
        height: 30px;
        width: auto;
    }

    #W-wrap #W-rez .W-tekma .W-team small {
        display: flex;
        flex-grow: 1;
        align-items: center;

        font-size: 12px;
        margin: 0;
        max-width: 85px;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-left {
        flex-direction: row-reverse;
        margin: 0;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-left small {
        text-align: right;
        justify-content: end;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-left .W-flag-wrap {
        margin-left: 10px;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-right {
        margin: 0;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-right small {
        text-align: left;
        justify-content: start;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-right .W-flag-wrap {
        margin-right: 10px;
    }

    #W-wrap .W-sponzor {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        font-family: Roboto, Arial, Helvetica, sans-serif;
        font-weight: 700;
        text-transform: uppercase;

        height: 67px;
        background-color: var(--bg-sponzor);
        text-align: center;
        vertical-align: middle;
    }

    /* footer */
    #W-wrap .W-footer {
        display: flex !important;
    }


}

/* 396 */
@media only screen and (max-width: 481px) and (max-height: 396px) {
    #W-wrap {
        position: relative;
        max-width: 100%;
        height: 395px;
    }
}

/* 340 */
@media only screen and (max-width: 340px) {
    #W-wrap .W-table th {
        width: 18px;
        padding: 0 3px;
        font-size: 14px;
    }
}

/* 240 */
@media only screen and (max-width: 240px) {
    #W-wrap .W-content {
        padding: 15px 5px;
    }

    #W-wrap .W-table .W-flag {
        height: 15px;
        margin-right: 2px;
    }

    #W-wrap .W-table th {
        width: 18px;
        padding: 0 2px;
        font-size: 12px;
    }

    #W-wrap .W-table td {
        padding: 10px 2px;
        font-size: 12px;
    }

    #W-wrap #W-rez .W-tekma .W-team {
        flex-direction: column !important;
    }

    #W-wrap #W-rez .W-tekma .W-team .W-flag-wrap {
        margin: 0 !important;
        width: 100%;
    }

    #W-wrap #W-rez .W-tekma .W-team .W-flag {
        height: 30px;
    }

    #W-wrap .W-footer img {
        height: 20px;
    }

    #W-wrap #W-rez .W-tekma .W-team small {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}