@media (min-width: 768px) {
    .club-logo {
        width: 100px;
        height: 100px;
    }
    .team-header #club-address {
        font-size: 22px;
    }
}
@media (min-width: 1024px) {
    .club-logo {
        width: 200px;
        height: 200px;
    }
    .team-header .club-name {
        font-size: 30px;
    }
    .team-header .team-name {
        font-size: 25px;
    }
}
@media (max-width:1199px) {
    #page1 #main {
        grid-template-columns: 100%;
        gap: 28px;
    }
    .vs {
        width: 60px;
        text-align: center;
        display: inline-block;
    }
    #page3 .columns {
        display: grid;
        gap: 20px;
        grid-template-columns: 335px auto;
    }
}
@media (max-width:1023px) {
    #page2 h1 span:nth-child(2) {
        display: none;
    }
    #page2 h1 span:nth-child(3) {
        display: block;
    }
    h1 span:nth-child(4) {
        display: none;
    }
    h1 span:last-child {
        /* display: block; */
            left: 0;
        }
    .match-header .score {
        margin-top: 20px;
    }
    #page3 .columns {
        grid-template-columns: auto;
    }
    .team-header #club-address {
        bottom: -27px;
    }
    .match-header .spordle_link, .team-header .spordle_link {
        top: 2px;
        right: 5px;
    }
}
@media (max-width:767px) {
    body {
        padding: 15px;
        margin: 0;
    }
    #header-top {
        grid-template-columns: 1fr;
    }
    #league-logo img {
        /*width: 300px;*/
        margin-bottom: 15px;
    }
    #league-name {
        display: none;
    }
    #page1 h1 span:first-child {
        display: block;
        margin-bottom: 0px;
    }
    #page1 h1 span:nth-child(2) {
        display: none;
    }
    #page1 h1 span:nth-child(3) {
        display: inline-block;
        font-size: 20px;
    }
    h1 span:nth-of-type(1), h1 span:nth-of-type(3) {
        border-bottom-width: 5px;
    }
    h1 span:nth-of-type(5) {
        border-bottom-width: 5px;
        border-left-width: 5px;
    }
    /*#page1 h1 span:nth-child(4) {*/
    /*    display: inline;*/
    /*}*/
    #page1 h1 span:nth-child(5) {
        display: inline-block;
        font-size: 20px;
    }
    #page2 h1 span:nth-child(3),#page3 h1 span:nth-child(3) {
        font-size: 20px;
    }
    #page2 h1 span:nth-child(5),#page3 h1 span:nth-child(5) {
        font-size: 20px;
    }
    h1 {
        font-size: 24px;
        line-height: 29px;
    }
    h1 span:nth-child(4) {
        display: none;
    }
    h1 span:last-child {
        display: block;
    }
    #page2 h1 span:last-child {
         display: inline-block;
        left: 0px;
    }
    #page3 h1 span:nth-child(1) {
        display: block;
    }
    /*#page3 h1 span:nth-child(4) {*/
    /*    display: initial;*/
    /*}*/
    #page3 h1 span:last-child {
        display: inline-block;
    }
    #page3 h1 span:nth-child(2) {
        display: none;
    }
    #page3 h1 span:nth-child(3) {
        /*display: block;*/
    }
    h1 span:nth-of-type(3) {
        left: -10px;
    }
    h1 span:last-child {
        left: -20px;
    }
    h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    h3 {
        margin-bottom: 5px;
        margin-top: 0;
    }
    #games-carousel {
        width: 450px;
    }
    .result-card {
        padding-left: 0;
    }
    .result-card .clubs {
        font-size: 15px;
    }
    .result-club-name {
        width: 187px;
    }
    .result-card .date {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        color: #555;
        padding-left: 0px;
        width: 55px;
        text-align: center;
    }
    .result-card .date a {
        text-decoration: none;
        color: #555;
    }
    /*.result-card .date a:hover,.result-card .date:hover a {*/
    /*    color: #fff;*/
    /*}*/
    .standings-wrapper,.scorers-wrapper {
        overflow-x: auto;
    }
    table.standings th, table.standings td {
        padding: 10px 9px;
    }
    table.standings {
        margin-top: 0px;
        margin-bottom: 16px;
    }
    table.standings:last-child {
        margin-bottom: 2px;
    }
    .club-name .name {
        font-size: 15px;
    }
    table.scorers th, table.scorers td {
        padding: 16px 6px 10px 6px;
    }
    .date.past {
        display: none;
    }
    .rosters .column {
        width: 100%;
    }
    .match-header .score {
        margin-top: 35px;
    }
    .match-header .team {
        display: grid;
        text-align: center;
        justify-items: center;
    }
    .match-header .score {
        font-size: 18px;
        line-height: 22px;
    }
    .score a {
        height: 48px;
        align-content: center;
    }
    .scorers li span.name {
        position: relative;
        top: 1px;
    }
    .match-header .score .team {
        width: 170px;
    }
    .match-header .score .team.host {
         justify-content: center;
    }
    .visitor span.score-club-logo {
        order: 2;
    }
    .team-header #club-address {
        bottom: -20px;
    }
    .team-header {
        padding: 28px 15px;
    }
    .match-header .spordle_link, .team-header .spordle_link {
        top: 3px;
        font-size: 14px;
    }
}
@media (max-width: 672px) {
    .page0 h1 {
        line-height: 35px;
    }
    #page3 .schedule .match {
        height: 36px;
    }
    #page3 .match .date {
        width: 45px;
        padding-right: 5px;
        font-size: 13px;
    }
    #page3 .match .team {
        gap: 6px;
        width: 154px;
    }
    #page3 .match .team .team-name {
        text-align: right;
    }
    #page3 .match .team.visitor .team-name {
        text-align: left;
    }
    #page3 .match .score {
        width: 30px;
    }
    .rosters {
        display: grid;
        grid-template-columns: max-content;
        gap: 20px;
    }
    .score a.postponed {
        color: #da2828;
        font-size: 14px;
        text-overflow: ellipsis;
        overflow: hidden;
        display: inline-block !important;
        max-width: 41px;
        white-space: nowrap;
        position: relative;
        top: 2px;
        /* text-transform: uppercase; */
    }
    .team-header .club-name {
        font-size: 20px;
    }
}
@media (max-width:479px) {
    .page0 #main #leagues-nav .level2 a {
        font-size: 28px;
        line-height: 28px;
    }
    .page0 #main #leagues-nav .level2 a span {
        font-size: 20px;
    }
    #nav-btn {
        font-size: 12px;
    }
    #nav-btn i {
        margin-right: 0;
        font-size: 28px;
        vertical-align: middle;
        display: block;
        margin-bottom: 5px;
        /* order: 2; */
    }
    #nav-btn span {
        display: none;
    }
    .schedule .match {
        font-size: 14px;
        line-height: 16px;
    }
    #header-top {
        height: 85px;
            justify-items: center;
        }
    #league-logo {
        height: 70px;
        position: relative;
        top: -6px;
    }
    #header-top #league-logo img {
        height: 90px;
        margin-bottom: 0;
    }
    #header-bottom {
        padding: 15px 0;
    }
    #league-name {
        font-size: 21px;
        line-height: 26px;
        margin-top: 5px;
    }
    h1 {
        font-size: 20px;
        line-height: 23px;
        margin-bottom: 15px;
    }
    h1 em {
        font-size: 16px;
    }
    #page1 h1 span:first-child {
        margin-bottom: 0px;
    }
    #page1 h1 span:nth-child(3) {
        font-size: 16px;
    }
    #page1 h1 span:nth-child(5) {
        font-size: 16px;
    }
    #page2 h1 span:nth-child(3),#page3 h1 span:nth-child(3) {
        font-size: 16px;
    }
    #page2 h1 span:nth-child(5),#page3 h1 span:nth-child(5) {
        font-size: 16px;
    }
    #page2 h1 span:last-child {
        display: inline-block;
        /* left: 0px; */
        position: unset;
        right: 10px;
        left: unset;
        bottom: -26px;
        padding: 3px 15px;
        position: absolute;
        z-index: 2;
    }
    h2 {
        font-size: 19px;
        margin-bottom: 6px;
    }
    #games-carousel {
        width: 363px;
    }
    .result-card .clubs {
        font-size: 14px;
        line-height: 16px;
        column-gap: 8px;
    }
    .score-box {
        width: 55px;
    }
    .result-club-name {
        width: 143px;
        padding-right: 0px;
    }
    .result-club-name.right {
        padding-left: 3px;
    }
    .result-club-name.right a {
        grid-template-columns: auto 28px;
    }
    .result-club-name a {
        grid-template-columns: 28px auto;
    }
    .result-club-logo {
        width: 28px;
        height: 28px;
    }
    table.standings th, table.standings td {
        padding: 10px 7px;
    }
    .club-name a {
        grid-template-columns: 30px auto;
    }
    .standing-club-logo {
        width: 30px;
        height: 30px;
    }
    .club-name .name {
        font-size: 14px;
        width: 109px;
        white-space: normal;
        line-height: 16px;
    }
    table.scorers th, table.scorers td {
        padding: 10px 3px;
    }
    table.scorers th {
        font-size: 13px;
    }
    table.scorers th:last-child {
        padding-right: 10px;
    }
    table.scorers td {
        font-size: 14px;
    }
    .player-cell .lastname {
        font-size: 14px;
    }
    .player-cell .firstname {
        font-size: 14px;
    }
    .player-cell .club {
        font-size: 13px;
    }
    .scorers .club {
        grid-template-columns: 28px auto;
    }
    .player-club-logo {
        width: 28px;
        height: 28px;
    }
    .player-cell .club {
        font-size: 13px;
    }
    .name-row {
        display: inline-block;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        width: 193px;
    }
    .team-header {
        min-height: 80px;
        padding: 15px 5px;
    }
    .team-header .club-name {
        width: 165px;
    }
    #page3 .team-header .team-name {
        white-space: nowrap;
    }
    .team-header .team-name {
        right: -5px;
        font-size: 18px;
        padding: 7px 8px 7px 16px;

    }
    #page3 #season-subname {
        font-size: 14px;
        white-space: nowrap;
    }
    #page3 .match .date {
        width: 10px;
        text-align: left;
        font-size: 12px;
        line-height: 13px;
        position: relative;
        left: -10px;
        color: #444;
    }
    #page3 .match .team {
        gap: 5px;
        width: 123px;
    }
    .team-header #club-address {
        width: 140px;
    }
    #page3 table.scorers tr th:first-child {
        padding-left: 8px;
    }
    #page2 .scorers li {
        font-size: 14px;
    }
    .vs .postponed {
        font-size: 16px;
    }
    .team-header #club-address {
        bottom: -20px;
    }
}
@media (max-width:392px) {
    h1 {
        font-size: 18px;
        line-height: 22px;
    }
    #page2 h1 span:nth-child(5), #page3 h1 span:nth-child(5) {
        font-size: 14px;
        line-height: 24px;
    }
    #games-carousel {
        width: 345px;
    }
    .result-card .clubs {
        font-size: 13px;
    }
    .result-club-name {
        width: 134px;
    }
    .result-card .game-name {

    }
    .name-row {
        width: unset;
    }
    #page3 .match .team {
        width: 122px;
    }
    .team-header .team-name {
        font-size: 16px;
    }
}