/* Font */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --nmu-navy: #00152a;
    --nmu-gold: #ffca1e;
    --bg: #eff1f3;
    --surface: #ffffff;
    --muted: #334155;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--nmu-navy);
    min-height: 100vh;
}

/* For mobile phones: */
[class*="col-"] {
    width: 100%;
}

[class*="col-"] {
    float: left;
    padding: 15px;
}

.row::after {
    content: "";
    clear: both;
    display: table;
}

header {
    background-color: var(--nmu-navy);
    padding: 0.75rem 1rem;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stacks elements vertically for mobile view */
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid rgba(0, 0, 0, 0.55);
}

.logo {
    flex-basis: 0%;
    text-align: center;
}

.logo img {
    display: block;
    margin: 0 auto;
    max-height: 90px;
    width: auto;
    max-width: min(340px, 92vw);
    height: auto;
    object-fit: contain;
}

.social-links img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.logoDesktop {
    display: none;
}

.logoMobile {
    display: block;
}

.social-links {
    flex-basis: 10%;
    text-align: right;
}

    .social-links a {
        display: inline-block;
        padding: 0.5em;
    }

nav {
    flex-basis: 40%;
    text-align: center;
    margin-left: 1px;
    margin-right: 1px;
    font-size: 14px;
    font-family: Arial Black;
    letter-spacing: 1px;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}

    nav ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
        gap: 0.25rem;
    }

        nav ul li {
            display: inline-block;
            margin: 0 10px;
        }

            nav ul li a {
                display: block;
                color: #fff;
                text-decoration: none;
                padding: 10px 12px;
                border-radius: 10px;
                transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
            }

                nav ul li a:hover {
                    color: var(--nmu-gold);
                    background-color: rgba(255, 255, 255, 0.08);
                }

                nav ul li a:active {
                    transform: translateY(1px);
                }

/* Content styling */
#content {
    margin: 10px auto;
    width: 95%;
    max-width: 1100px;
    padding: 1rem 0.75rem 1.5rem;
    background-color: var(--surface);
    color: var(--nmu-navy);
    text-align: center;
    border: 2px solid var(--nmu-navy);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

h1 {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    color: var(--nmu-navy);
    text-align: center;
}

h2 {
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    color: var(--nmu-navy);
}

h3 {
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    color: var(--nmu-navy);
}

.subtext {
    padding: 0;
    margin: 0;
    margin-top: 15px;
    font-size: 16px;
    font-family: Arial Black;
    letter-spacing: 2px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    color: var(--nmu-navy);
}

h1 span {
    position: relative;
    display: inline-block;
}

    h1 span::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 3px;
        background-color: var(--nmu-gold);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

/* Slideshow container */
.slideshow-container {
    max-width: 100%;
    position: relative;
    isolation: isolate;
    margin: 0.5rem auto 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--nmu-navy);
    padding: 0.35rem 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
}

.mySlides {
    display: none;
    position: relative;
    width: 100%;
    max-width: 920px;
    height: 30vh;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

    .mySlides img,
    .mySlides .slideshow-image {
        display: block;
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
        border: 2px solid var(--nmu-navy);
        box-shadow: var(--shadow-md);
    }


.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: auto;
    padding: 16px;
    color: #00152a;
    font-weight: bold;
    font-size: 14px;
    transition: 0.6s ease;
    border-radius: 0 10px 10px 0;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.3); /* Add a background color */
}

.prev {
    left: 0;
    border-radius: 10px 2px 2px 10px;
}

.next {
    right: 0;
    border-radius: 2px 10px 10px 2px;
}
    /* On hover, add a black background color with a little bit see-through */
    .prev:hover, .next:hover {
        color: #ffca1e;
        /*background-color: #00152a;*/
    }

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

    .active, .dot:hover {
        background-color: #ffca1e;
    }

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.box {
    flex: 1;
    padding: 10px;
    background-color: #f7f9fc;
    box-sizing: border-box;
    display: flex; /* Add this line */
    flex-direction: column; /* Add this line */
    border-top: 3px solid var(--nmu-gold);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

    .box h2 {
        margin-top: 5px; /* Remove any existing top margin */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        margin-bottom: 0;
        color: #00152a;
    }

.box1 {
    flex: 1;
}

.box2 {
    border-bottom-left-radius: 10px; /* Add border radius */
    border-bottom-right-radius: 10px; /* Add border radius */
    flex: 1;
    overflow: auto;
}

.box-container p {
    letter-spacing: 0.5px;
    font-family: Arial;
    font-size: 14px;
    text-align: justify;
    margin-left: 5px;
    margin-right: 5px;
}

.table-container {
    max-width: 100%;
    overflow-x: auto;
    margin: 0 auto;
    padding: 0.25rem 0 0.5rem;
    -webkit-overflow-scrolling: touch;
}

table caption {
    caption-side: top;
    padding: 0.65rem 0.5rem 0.85rem;
    font-size: 13px;
    font-weight: bold;
    color: #00152a;
    text-align: center;
    line-height: 1.35;
}

.team-table {
    width: 80%;
    border-spacing: 0;
    margin: auto;
    border-radius: 12px;
    border: 2px solid #00152a;
}

.status-card {
    width: 90%;
    margin: auto;
    border: 2px solid var(--nmu-navy);
    border-radius: 14px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9edf2 100%);
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

    .status-card p {
        font-size: 13px;
        margin: 6px 0;
        text-align: center;
    }

.empty-table {
    width: 100%;
    min-width: 280px;
    max-width: 100%;
    border-spacing: 0;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--nmu-navy);
    border-radius: 14px;
    overflow: hidden;
    border-collapse: separate;
}

    .empty-table th,
    .empty-table td {
        padding: 10px;
        text-align: center;
        border: 1px solid var(--nmu-navy);
        font-size: 12px;
        line-height: 1.35;
    }

    .empty-table tbody tr:nth-child(even) {
        background-color: #f7f9fc;
    }

    .empty-table th {
        background-color: var(--nmu-navy);
        color: #fff;
        font-family: Arial Black;
        letter-spacing: 0.5px;
    }

/* Home page participating teams table */
#MainContent_teamTable {
    min-width: 640px;
}

#MainContent_teamTable th,
#MainContent_teamTable td {
    vertical-align: top;
}

#MainContent_teamTable th {
    text-align: left;
    padding-left: 12px;
}

#MainContent_teamTable td {
    text-align: left;
    padding: 12px;
    line-height: 1.5;
}

#MainContent_teamTable td:nth-child(1) {
    width: 20%;
    font-weight: 700;
}

#MainContent_teamTable td:nth-child(2) {
    width: 45%;
}

#MainContent_teamTable td:nth-child(3) {
    width: 35%;
}

    .team-table th,
    .team-table td {
        padding: 5px;
        text-align: center;
        border: 2px solid #00152a;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        font-size: 12px;
        font-family: Arial;
    }

    .team-table th {
        background-color: #00152a !important;
        font-size: 12px !important;
        font-family: Arial;
        font-weight: bold;
    }

    .team-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .team-table tr:hover {
        background-color: #e5e5e5;
    }

    .team-table tr:last-child td:first-child {
        border: 2px solid #00152a;
        border-bottom-left-radius: 10px;
    }

    .team-table tr:last-child td:last-child {
        border: 2px solid #00152a;
        border-bottom-right-radius: 10px;
    }

    .team-table tr:first-child td:first-child {
        border: 2px solid #00152a;
        border-top-left-radius: 10px;
    }

    .team-table tr:first-child td:last-child {
        border: 2px solid #00152a;
        border-top-right-radius: 10px;
    }

/* Fixtures */

.fixtures-container {
    position: relative;
    max-width: 95%;
    margin: auto;
}

.fixtures-container-left,
.fixtures-container-right {
    padding: 0px;
}



.fixture-box {
    border: 3px solid #00152a;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.teams-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: flex-start;
    overflow: auto;
    vertical-align: top;
    margin-bottom: 5px;
    gap: 4px;
}

.team-left {
    font-size: 11px;
    font-weight: bold;
    text-align: left;
    color: #00152a;
    text-shadow: 1px 1px 1px #fff;
    font-family: Arial Black;
    min-width: 0;
    max-width: 100%;
}

.vs {
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    padding: 2px;
    margin: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.team-right {
    font-size: 11px;
    font-weight: bold;
    text-align: right;
    color: #00152a;
    text-shadow: 1px 1px 1px #fff;
    font-family: Arial Black;
    min-width: 0;
    max-width: 100%;
}

.round {
    font-size: 11px;
    text-align: center;
}

.time-container {
    font-size: 11px;
    margin-top: auto;
    padding: 10px;
    border-top: 1px dashed #00152a;
}

.court {
    font-size: 11px;
    padding: 5px;
    text-align: center;
}

.score-container {
    margin-top: auto;
    padding: 5px;
}

.score1 {
    font-size: 15px;
    padding: 5px;
    font-weight: bold;
    text-align: left;
    color: #ffca1e;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    font-family: Arial Black;
    float: left; /* Add this line to align Score 1 to the left */
}

.score2 {
    font-size: 15px;
    padding: 5px;
    font-weight: bold;
    text-align: right;
    color: #ffca1e;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    font-family: Arial Black;
    float: right; /* Add this line to align Score 2 to the right */
}

.date-container {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.date-header {
    grid-column: 1 / span 2; /* Span the header label across both columns */
    text-align: center; /* Center-align the header label */
    position: relative;
    background-color: #00152a;
    font-size: 14px;
    font-family: Arial Black;
    letter-spacing: 2px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    color: white;
    margin-top: 5px;
}

    .date-header::after {
        content: "";
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #ffca1e;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .date-header::before {
        content: "";
        position: absolute;
        top: -3px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #ffca1e;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

.team-dropdown {
    width: 200px; /* Adjust the width as needed */
    height: 40px; /* Adjust the height as needed */
    border: 1px solid #00152a; /* Add border styles */
    border-radius: 2px; /* Add border radius for rounded corners */
    padding: 8px; /* Add padding inside the dropdown */
    font-size: 14px; /* Adjust the font size */
    color: #00152a; /* Set the text color */
    background-color: #eff1f3; /* Set the background color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.date-dropdown {
    width: 200px; /* Adjust the width as needed */
    height: 40px; /* Adjust the height as needed */
    border: 1px solid #00152a; /* Add border styles */
    border-radius: 2px; /* Add border radius for rounded corners */
    padding: 8px; /* Add padding inside the dropdown */
    font-size: 14px; /* Adjust the font size */
    color: #00152a; /* Set the text color */
    background-color: #eff1f3; /* Set the background color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.filter-button {
    padding: 10px 20px; /* Adjust the padding as needed */
    font-size: 14px; /* Adjust the font size */
    height: 40px; /* Adjust the height as needed */
    color: #fff; /* Set the text color */
    background-color: #00152a; /* Set the background color */
    border: none; /* Remove the button border */
    border-radius: 2px; /* Add border radius for rounded corners */
    cursor: pointer; /* Change cursor to a pointer on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.log-container {
    border-radius: 4px;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.25rem;
}

.log-page .league-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 10px;
    justify-items: center;
}

@media (min-width: 900px) {
    .log-page .league-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "mens"
            "ladies";
        align-items: start;
        justify-content: center;
    }

    .log-page .league-card--mens {
        grid-area: mens;
    }

    .log-page .league-card--ladies {
        grid-area: ladies;
    }
}

.log-page .league-card {
    background: var(--surface);
    border: 2px solid var(--nmu-navy);
    border-radius: 14px;
    padding: 12px;
    width: 100%;
    max-width: 820px;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 900px) {
    .log-page .league-card {
        max-width: 680px;
    }
}

.log-page .league-card h2 {
    margin-top: 2px;
    margin-bottom: 10px;
}

.log-page .league-card .log-table {
    min-width: 560px;
}

.log-table {
    width: 100%;
    max-width: 100%;
    border-spacing: 0;
    margin: 0 auto 0.25rem;
    border-radius: 10px;
    border: 2px solid #00152a;
    border-collapse: separate;
    overflow: hidden;
    table-layout: auto;
}

    .log-table th,
    .log-table td {
        padding: 6px 4px;
        text-align: center;
        border: 1px solid #00152a;
        font-size: 11px;
        font-family: Arial, sans-serif;
        white-space: nowrap;
    }

    .log-table th {
        background-color: #00152a !important;
        font-size: 11px !important;
        font-family: Arial, sans-serif;
        color: #fff;
        font-weight: bold;
    }

    /* Men's table: team name is column 2 (after rank) */
    .log-page #league-log-2026-mens td:nth-child(2) {
        text-align: left;
        padding-left: 8px;
        white-space: normal;
    }

    /* Ladies table: team name is column 1 */
    .log-page #league-log-2026-ladies th:first-child,
    .log-page #league-log-2026-ladies td:first-child {
        text-align: left;
        padding-left: 8px;
        white-space: normal;
    }

.log-header {
    background-color: #00152a !important;
    color: #fff;
    font-weight: bold;
}

.log-table tbody tr:nth-child(even) {
    background-color: #f7f9fc;
}

.log-table tbody tr:hover {
    background-color: #e8ecf3;
}

.log-table thead th:first-child {
    border-top-left-radius: 8px;
}

.log-table thead th:last-child {
    border-top-right-radius: 8px;
}

.log-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.log-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.legend {
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
}

    .legend p {
        border: none;
        font-size: 10px;
        font-family: Arial Black;
        text-transform: uppercase;
        color: #00152a;
        margin: auto;
        word-spacing: 5px;
        position: relative;
    }

.centered-list {
    border: none;
    font-size: 12px;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    color: #00152a;
    margin: 0.35rem auto 1rem;
    word-spacing: 2px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    list-style-position: inside;
    max-width: 28rem;
    line-height: 1.5;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

.logo-link:focus-visible {
    outline: 3px solid #ffca1e;
    outline-offset: 4px;
    border-radius: 6px;
}

.slideshow-dots {
    text-align: center;
    margin: 0.35rem 0 0.75rem;
}

.table-legend {
    max-width: 42rem;
    margin: 0.5rem auto 0;
    padding: 0 0.5rem;
    font-size: 11px;
    line-height: 1.45;
    color: #334155;
    text-align: center;
}


/* Footer */
footer {
    background-color: var(--nmu-navy);
    padding: 20px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-md);
    border-top: 3px solid rgba(0, 0, 0, 0.55);
    width: 100%;
    clear: both;
}

/* Phones and small tablets (portrait + landscape) */
@media only screen and (max-width: 767px) {
    body {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
    }

    header {
        padding: 0.65rem 0.75rem;
        gap: 0.5rem;
    }

    .logo img {
        max-height: 76px;
        max-width: min(280px, 88vw);
    }

    nav {
        width: 100%;
        max-width: 100%;
    }

    nav ul {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.35rem;
    }

    nav ul li {
        margin: 0;
        width: 100%;
    }

    nav ul li a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .social-links {
        text-align: center;
        flex-basis: auto;
    }

    #content {
        width: calc(100% - 1rem);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0.85rem 0.65rem 1.25rem;
        border-radius: 12px;
    }

    h1 {
        font-size: clamp(1.2rem, 5vw, 1.65rem);
        line-height: 1.25;
        padding: 0 0.25rem;
    }

    h2 {
        font-size: clamp(1.05rem, 4vw, 1.35rem);
    }

    .subtext {
        font-size: 13px;
        letter-spacing: 1px;
        padding: 0 0.35rem;
    }

    .slideshow-container {
        max-width: 100%;
        padding: 0.35rem 2rem;
    }

    .prev,
    .next {
        padding: 10px 12px;
        font-size: 12px;
    }

    .mySlides {
        height: clamp(200px, 38vh, 320px);
        min-height: 200px;
    }

    .box-container {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .table-container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .empty-table {
        min-width: 0;
        width: 100%;
        border-radius: 10px;
    }

    .empty-table th,
    .empty-table td {
        padding: 8px 6px;
        font-size: 11px;
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    table caption {
        font-size: 12px;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    #MainContent_teamTable {
        min-width: 0 !important;
        width: 100%;
    }

    #MainContent_teamTable th,
    #MainContent_teamTable td {
        font-size: 11px;
        padding: 8px 6px;
        vertical-align: top;
        word-break: break-word;
        white-space: normal;
    }

    .status-card {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    .fixtures-container {
        max-width: 100%;
    }

    .fixture-box {
        padding: 8px;
    }

    .team-left,
    .team-right {
        font-size: 12px;
    }

    .vs {
        font-size: 9px;
        align-self: center;
    }

    .teams-container {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 6px;
    }

    .log-page .league-card {
        max-width: 100%;
        padding: 10px;
    }

    .log-page .league-card .log-table {
        min-width: 420px;
    }

    .log-table th,
    .log-table td {
        padding: 5px 3px;
        font-size: 9px;
    }

    #copyright {
        font-size: 13px;
    }
}

#copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

#currentYear {
    font-weight: bold;
}

@media only screen and (min-width: 600px) {
    /* For tablets: */
    .col-s-1 {
        width: 8.33%;
    }

    .col-s-2 {
        width: 16.66%;
    }

    .col-s-3 {
        width: 25%;
    }

    .col-s-4 {
        width: 33.33%;
    }

    .col-s-5 {
        width: 41.66%;
    }

    .col-s-6 {
        width: 50%;
    }

    .col-s-7 {
        width: 58.33%;
    }

    .col-s-8 {
        width: 66.66%;
    }

    .col-s-9 {
        width: 75%;
    }

    .col-s-10 {
        width: 83.33%;
    }

    .col-s-11 {
        width: 91.66%;
    }

    .col-s-12 {
        width: 100%;
    }

    nav {
        flex-basis: 60%;
        text-align: center;
        margin-left: 1px;
        margin-right: 1px;
        font-size: 14px;
        font-family: Arial Black;
        letter-spacing: 1px;
        text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    }

        nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            text-align: left;
        }

    .slideshow-container {
        max-width: 95%;
    }

    .mySlides {
        width: 100%;
        max-width: 920px;
        height: 40vh;
    }
}

/* Large devices (laptops/desktops, 768px and up) */
@media only screen and (min-width: 768px) {

    .col-s-1 {
        width: 8.33%;
    }

    .col-s-2 {
        width: 16.66%;
    }

    .col-s-3 {
        width: 25%;
    }

    .col-s-4 {
        width: 33.33%;
    }

    .col-s-5 {
        width: 41.66%;
    }

    .col-s-6 {
        width: 50%;
    }

    .col-s-7 {
        width: 58.33%;
    }

    .col-s-8 {
        width: 66.66%;
    }

    .col-s-9 {
        width: 75%;
    }

    .col-s-10 {
        width: 83.33%;
    }

    .col-s-11 {
        width: 91.66%;
    }

    .col-s-12 {
        width: 100%;
    }

    .logoDesktop {
        display: block;
    }

    .logoMobile {
        display: none;
    }

    body {
        font-size: 15px;
    }

    nav {
        flex-basis: 60%;
        text-align: center;
        font-size: 16px;
    }

        nav ul {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.25rem;
            grid-template-columns: none;
            text-align: center;
        }

    .slideshow-container {
        max-width: 95%;
    }

    .mySlides {
        width: 100%;
        max-width: 920px;
        height: 50vh;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

    .subtext {
        font-size: 18px;
    }

    .box-container {
        display: flex;
        justify-content: space-between;
        position: relative;
        align-items: stretch;
    }

        .box-container::before {
            content: "";
            position: absolute;
            top: -3px; /* Adjust the top value to control the distance of the shadow */
            left: 0;
            width: 100%;
            height: 3px; /* Adjust the height value to make the line thicker */
            background-color: #ffca1e;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .box-container::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 3px; /* Adjust the width value to control the thickness of the line */
            background-color: #ffca1e;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

    .box {
        flex: 1;
        padding: 10px;
        background-color: #f2f2f2;
        box-sizing: border-box;
        display: flex; /* Add this line */
        flex-direction: column; /* Add this line */
        border-top: none;
    }

        .box h2 {
            margin-top: 5px; /* Remove any existing top margin */
            font-size: 30px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            margin-bottom: 0;
            color: #00152a;
        }

    .box1 {
        border-bottom-left-radius: 10px; /* Add border radius */
        flex: 1;
    }

    .box2 {
        border-bottom-right-radius: 10px; /* Add border radius */
        flex: 1;
        overflow: auto;
    }

    .fixtures-container {
        max-width: 90%;
    }

    .fixture-box {
        margin-bottom: 10px;
        padding: 10px;
    }

    .team-left {
        font-size: 20px;
        max-width: 100%;
        letter-spacing: 1px;
    }

    .team-right {
        font-size: 20px;
        max-width: 100%;
        letter-spacing: 1px;
    }

    .vs {
        font-size: 14px;
        padding: 5px;
        margin: 5px;
    }

    .round {
        font-size: 12px;
        text-align: center;
    }

    .time-container {
        font-size: 14px;
        margin-top: auto;
        padding: 10px;
        border-top: 1px dashed #00152a;
    }

    .court {
        font-size: 14px;
        padding: 5px;
        text-align: center;
    }

    .score-container {
        margin-top: auto;
        padding: 10px;
    }

    .score1 {
        font-size: 40px;
        padding: 5px;
        font-weight: bold;
        text-align: left;
        color: #ffca1e;
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        font-family: Arial Black;
        float: left;
    }

    .score2 {
        font-size: 40px;
        padding: 5px;
        font-weight: bold;
        text-align: right;
        color: #ffca1e;
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        font-family: Arial Black;
        float: right;
    }

    .date-header {
        font-size: 18px;
    }

    .log-table {
        width: 80%;
        border-spacing: 0;
        margin: auto;
        border-radius: 12px;
        border-style: hidden;
        box-shadow: 0 0 0 3px #00152a;
        border: 2px solid #00152a;
    }

        .log-table th,
        .log-table td {
            padding: 8px;
            text-align: center;
            border: 2px solid #00152a;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            font-size: 16px;
            font-family: Arial;
        }

        .log-table th {
            background-color: #00152a !important;
            font-size: 18px !important;
            font-family: Arial;
            color: #fff;
            font-weight: bold;
            font-size: 16px;
        }

    .log-header {
        background-color: #00152a !important;
        color: #fff;
        font-weight: bold;
    }

    .log-table tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .log-table tbody tr:hover {
        background-color: #e5e5e5;
    }

    .log-table tr:last-child td:first-child {
        border: 2px solid #00152a;
        border-bottom-left-radius: 10px;
    }

    .log-table tr:last-child td:last-child {
        border: 2px solid #00152a;
        border-bottom-right-radius: 10px;
    }

    .log-table tr:first-child td:first-child {
        border: 2px solid #00152a;
        border-top-left-radius: 10px;
    }

    .log-table tr:first-child td:last-child {
        border: 2px solid #00152a;
        border-top-right-radius: 10px;
    }

    .legend p {
        border: none;
        font-size: 10px;
        font-family: Arial Black;
        text-transform: uppercase;
        color: #00152a;
        margin: auto;
        word-spacing: 5px;
        position: relative;
    }
}

/* Large devices (laptops/desktops, 992 and up) */
@media only screen and (min-width: 992px) {
    .col-1 {
        width: 8.33%;
    }

    .col-2 {
        width: 16.66%;
    }

    .col-3 {
        width: 25%;
    }

    .col-4 {
        width: 33.33%;
    }

    .col-5 {
        width: 41.66%;
    }

    .col-6 {
        width: 50%;
    }

    .col-7 {
        width: 58.33%;
    }

    .col-8 {
        width: 66.66%;
    }

    .col-9 {
        width: 75%;
    }

    .col-10 {
        width: 83.33%;
    }

    .col-11 {
        width: 91.66%;
    }

    .col-12 {
        width: 100%;
    }

    .logoDesktop {
        display: block;
    }

    .logoMobile {
        display: none;
    }

    body {
        font-size: 14px;
    }

    nav {
        flex-basis: 60%;
        text-align: center;
        font-size: 16px;
    }

        nav ul {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.25rem;
            grid-template-columns: none;
            text-align: center;
        }

    .slideshow-container {
        max-width: 95%;
    }

    .mySlides {
        width: 100%;
        max-width: 920px;
        height: 50vh;
    }

    .box-container {
        display: flex;
        justify-content: space-between;
        position: relative;
        align-items: stretch;
    }

        .box-container::before {
            content: "";
            position: absolute;
            top: -3px; /* Adjust the top value to control the distance of the shadow */
            left: 0;
            width: 100%;
            height: 3px; /* Adjust the height value to make the line thicker */
            background-color: #ffca1e;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .box-container::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 3px; /* Adjust the width value to control the thickness of the line */
            background-color: #ffca1e;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

    .box {
        flex: 1;
        padding: 10px;
        background-color: #f2f2f2;
        box-sizing: border-box;
        display: flex; /* Add this line */
        flex-direction: column; /* Add this line */
        border-top: none;
    }

        .box h2 {
            margin-top: 5px; /* Remove any existing top margin */
            font-size: 30px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            margin-bottom: 0;
            color: #00152a;
        }

    .box1 {
        border-bottom-left-radius: 10px; /* Add border radius */
        flex: 1;
    }

    .box2 {
        border-bottom-right-radius: 10px; /* Add border radius */
        flex: 1;
        overflow: auto;
    }

    .fixtures-container {
        max-width: 80%;
    }

    .fixture-box {
        margin-bottom: 10px;
        padding: 10px;
    }

    .team-left {
        font-size: 20px;
        max-width: 100%;
        letter-spacing: 1px;
    }

    .team-right {
        font-size: 20px;
        max-width: 100%;
        letter-spacing: 1px;
    }

    .vs {
        font-size: 14px;
        padding: 5px;
        margin: 5px;
    }

    .round {
        font-size: 12px;
        text-align: center;
    }

    .time-container {
        font-size: 14px;
        margin-top: auto;
        padding: 10px;
        border-top: 1px dashed #00152a;
    }

    .court {
        font-size: 14px;
        padding: 5px;
        text-align: center;
    }

    .score-container {
        margin-top: auto;
        padding: 10px;
    }

    .score1 {
        font-size: 40px;
        padding: 5px;
        font-weight: bold;
        text-align: left;
        color: #ffca1e;
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        font-family: Arial Black;
        float: left;
    }

    .score2 {
        font-size: 40px;
        padding: 5px;
        font-weight: bold;
        text-align: right;
        color: #ffca1e;
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        font-family: Arial Black;
        float: right;
    }

    .date-header {
        font-size: 18px;
    }

    .log-table {
        width: 80%;
        border-spacing: 0;
        margin: auto;
        border-radius: 12px;
        border-style: hidden;
        box-shadow: 0 0 0 3px #00152a;
        border: 2px solid #00152a;
    }

        .log-table th,
        .log-table td {
            padding: 8px;
            text-align: center;
            border: 2px solid #00152a;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            font-size: 16px;
            font-family: Arial;
        }

        .log-table th {
            background-color: #00152a !important;
            font-size: 18px !important;
            font-family: Arial;
            color: #fff;
            font-weight: bold;
        }

    .log-header {
        background-color: #00152a !important;
        color: #fff;
        font-weight: bold;
    }

    .log-table tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .log-table tbody tr:hover {
        background-color: #e5e5e5;
    }

    .log-table tr:last-child td:first-child {
        border: 2px solid #00152a;
        border-bottom-left-radius: 10px;
    }

    .log-table tr:last-child td:last-child {
        border: 2px solid #00152a;
        border-bottom-right-radius: 10px;
    }

    .log-table tr:first-child td:first-child {
        border: 2px solid #00152a;
        border-top-left-radius: 10px;
    }

    .log-table tr:first-child td:last-child {
        border: 2px solid #00152a;
        border-top-right-radius: 10px;
    }

    /* Specific column widths */
    .rank-column {
        width: 5%;
    }

    .team-column {
        width: 25%;
    }

    .pl-column {
        width: 5%;
    }

    .w-column {
        width: 5%;
    }

    .d-column {
        width: 5%;
    }

    .l-column {
        width: 5%;
    }

    .gf-column {
        width: 10%;
    }

    .ga-column {
        width: 10%;
    }

    .avg-column {
        width: 10%;
    }

    .bp-column {
        width: 5%;
    }

    .pts-column {
        width: 10%;
    }


    .legend p {
        border: none;
        font-size: 10px;
        font-family: Arial Black;
        text-transform: uppercase;
        color: #00152a;
        margin: auto;
        word-spacing: 5px;
        position: relative;
    }
}

@media only screen and (min-width: 1200px) {
    header {
        flex-direction: row; /* Changes layout to horizontal for larger screens */
        justify-content: space-evenly;
    }

    .logo img {
        max-height: 120px;
        max-width: min(420px, 42vw);
    }
    
    /* For desktop: */
    .col-1 {
        width: 8.33%;
    }

    .col-2 {
        width: 16.66%;
    }

    .col-3 {
        width: 25%;
    }

    .col-4 {
        width: 33.33%;
    }

    .col-5 {
        width: 41.66%;
    }

    .col-6 {
        width: 50%;
    }

    .col-7 {
        width: 58.33%;
    }

    .col-8 {
        width: 66.66%;
    }

    .col-9 {
        width: 75%;
    }

    .col-10 {
        width: 83.33%;
    }

    .col-11 {
        width: 91.66%;
    }

    .col-12 {
        width: 100%;
    }

    .logoDesktop {
        display: block;
    }

    .logoMobile {
        display: none;
    }

    body {
        font-size: 14px;
    }

    nav {
        flex-basis: 50%;
        text-align: center;
        margin-left: 2px;
        margin-right: 2px;
        font-size: 18px;
        letter-spacing: 2px;
    }

        nav ul {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.35rem;
            grid-template-columns: none;
            text-align: center;
        }

    #content {
        width: 90%;
    }

    .slideshow-container {
        max-width: 85%;
    }

    .mySlides {
        width: 100%;
        max-width: 920px;
        height: 60vh;
    }

    .box-container {
        display: flex;
        justify-content: space-between;
        position: relative;
        align-items: stretch;
    }

        .box-container::before {
            content: "";
            position: absolute;
            top: -3px; /* Adjust the top value to control the distance of the shadow */
            left: 0;
            width: 100%;
            height: 3px; /* Adjust the height value to make the line thicker */
            background-color: #ffca1e;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .box-container::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 3px; /* Adjust the width value to control the thickness of the line */
            background-color: #ffca1e;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

    .box {
        flex: 1;
        padding: 10px;
        background-color: #f2f2f2;
        box-sizing: border-box;
        display: flex; /* Add this line */
        flex-direction: column; /* Add this line */
        border-top: none;
    }

        .box h2 {
            margin-top: 5px; /* Remove any existing top margin */
            font-size: 30px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            margin-bottom: 0;
            color: #00152a;
        }

    .box1 {
        border-bottom-left-radius: 10px; /* Add border radius */
        flex: 1;
    }

    .box2 {
        border-bottom-right-radius: 10px; /* Add border radius */
        flex: 1;
        overflow: auto;
    }

    .fixtures-container {
        max-width: 80%;
    }

    .fixture-box {
        margin-bottom: 10px;
        padding: 10px;
    }

    .team-left {
        font-size: 20px;
        max-width: 100%;
        letter-spacing: 1px;
    }

    .team-right {
        font-size: 20px;
        max-width: 100%;
        letter-spacing: 1px;
    }

    .vs {
        font-size: 14px;
        padding: 5px;
        margin: 5px;
    }

    .round {
        font-size: 12px;
        text-align: center;
    }

    .time-container {
        font-size: 14px;
        margin-top: auto;
        padding: 10px;
        border-top: 1px dashed #00152a;
    }

    .court {
        font-size: 14px;
        padding: 5px;
        text-align: center;
    }

    .score-container {
        margin-top: auto;
        padding: 10px;
    }

    .score1 {
        font-size: 40px;
        padding: 5px;
        font-weight: bold;
        text-align: left;
        color: #ffca1e;
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        font-family: Arial Black;
        float: left;
    }

    .score2 {
        font-size: 40px;
        padding: 5px;
        font-weight: bold;
        text-align: right;
        color: #ffca1e;
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        font-family: Arial Black;
        float: right;
    }

    .date-header {
        font-size: 18px;
    }

    .log-table {
        width: 80%;
        border-spacing: 0;
        margin: auto;
        border-radius: 12px;
        border-style: hidden;
        box-shadow: 0 0 0 3px #00152a;
        border: 0px solid #00152a;
    }

        .log-table th,
        .log-table td {
            padding: 8px;
            text-align: center;
            border: 2px solid #00152a;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            font-size: 16px;
            font-family: Arial;
        }

        .log-table th {
            background-color: #00152a !important;
            font-size: 18px !important;
            font-family: Arial;
            color: #fff;
            font-weight: bold;
        }

    .log-header {
        background-color: #00152a !important;
        color: #fff;
        font-weight: bold;
    }

    .log-table tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .log-table tbody tr:hover {
        background-color: #e5e5e5;
    }

    .log-table tr:last-child td:first-child {
        border: 2px solid #00152a;
        border-bottom-left-radius: 10px;
    }

    .log-table tr:last-child td:last-child {
        border: 2px solid #00152a;
        border-bottom-right-radius: 10px;
    }

    .log-table tr:first-child td:first-child {
        border: 2px solid #00152a;
        border-top-left-radius: 10px;
    }

    .log-table tr:first-child td:last-child {
        border: 2px solid #00152a;
        border-top-right-radius: 10px;
    }

    /* Specific column widths */
    .rank-column {
        width: 5%;
    }

    .team-column {
        width: 25%;
    }

    .pl-column {
        width: 5%;
    }

    .w-column {
        width: 5%;
    }

    .d-column {
        width: 5%;
    }

    .l-column {
        width: 5%;
    }

    .gf-column {
        width: 10%;
    }

    .ga-column {
        width: 10%;
    }

    .avg-column {
        width: 10%;
    }

    .bp-column {
        width: 5%;
    }

    .pts-column {
        width: 10%;
    }


    .legend p {
        border: none;
        font-size: 10px;
        font-family: Arial Black;
        text-transform: uppercase;
        color: #00152a;
        margin: auto;
        word-spacing: 5px;
        position: relative;
    }
}

/* After (min-width: 600px)+ breakpoints so phones/tablets in portrait keep one-column nav */
@media only screen and (max-width: 767px) {
    nav ul {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.35rem;
    }

    nav ul li {
        margin: 0;
        width: 100%;
    }

    .slideshow-dots {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        row-gap: 8px;
        padding: 0 0.25rem;
    }
}
