* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
body {
    font-family: 'Open Sans', sans-serif;
    font-size: .9em;
    padding-bottom: 90px;

}
.ui-menu .ui-menu-item-wrapper {
    padding: 8px
}
.umpire-summary {
    background: #eee;
    padding: 10px;
    max-width: 50%
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}
.stats .table-container th:nth-of-type(1) {
    width: 80%;
}
.stats .table-container td:nth-of-type(2),.stats .table-container th:nth-of-type(2){
    text-align: center;
}
.table-container tr {
    padding: 3px
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}
.table-container tr:nth-child(even) {
    background-color: #eee
}
.main-container {
    max-width: 960px;
    margin: auto;
    flex: 1;
    min-width: 50%
}
.umpire-profile {
    padding-top: 50px
}
h1,h2,h3,h4 {
    font-family: 'Domine', serif;
    font-size: 1.2em
}
footer {
    margin: 100px 0 30px;

    background: #f1f1f1; /* Change this to match your desired footer style */
    padding: 10px 0; /* Adjust padding as needed */
    text-align: center; /* Center the footer content */
    width: 100%;
}
.header {
    background:#8d8d8d;
    position: relative;
    padding: 10px
}
a.home {
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
}
.row-header {
    background-color: #f1f1f1;
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid #ccc;
    font-weight: bold;
}
.row-header.level1 {
    font-weight: 300;
    font-style: italic;
    padding-left: 30px
}
.row-header.level2 {
    font-weight: normal;
    background: #f8f8f8;
    padding-left: 30px;
}
.row-content {
    background: #f1f1f1
}
.row-content.level2 .child-row-header,.level2 .child-row-content {
    padding-left: 40px;
}
a {
    color: #666;
    text-decoration: dotted;
}
span.label {
    font-weight: bold;
}
.row-header.level1 i {
    margin-right: 5px
}
a:hover {
    text-decoration: underline;
    color: #222
}
h1 {
    text-align: center;
    font-size: 1.5em;
    color: #fff;
    margin: 5px 0;
    padding: 10px;
}
.logos {
    display: flex;
    justify-content: space-around;
}

.logos img {
    width: 33%;
    max-width: 100%;
    object-fit: contain;
    max-height: 100px;
}

.row-content {
    display: none;
    background-color: #fff;
}

.child-row-header {
    padding: 8px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    background-color: #f9f9f9;
}

.child-row-content {
    display: none;
    padding: 8px;
    background-color: #fff;
}

.cell {
    padding: 8px;
    border-bottom: 1px solid #ccc;
}

.cell:last-child {
    border-bottom: none;
}
.child-row-content .indent {
    padding-left:10px;
}
.child-row-content .subheading {
    font-weight: bold;
    font-size: 1.5em;
}

input#search-input {
    padding: 16px;
    width: 100%;
    margin: 8px 0;
    font-size: 16px
}
.week-header {
    background-color: #f1f1f1;
    padding: 8px 16px;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: bold;
}

.week-content {
    display: none;
}

.alert-message {
    display: flex;
    align-items: center;
    background-color: #f1c40f;
    color: #222;
    padding: 15px 20px;
    border-radius: 5px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.alert-icon {
    font-weight: bold;
    font-size: 20px;
    margin-right: 10px;
}

.alert-text {
    flex-grow: 1;
}

.alert-close-btn {
    background: none;
    border: none;
    color: #222;
    font-size: 20px;
    cursor: pointer;
    outline: none;
}
.expand-collapse-btn {
    background-color: #f1f1f1;
    border: none;
    color: #333;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}
.banner {
    max-width: 100%;
    margin: auto
}
.banner img {
    display: block;
    margin: 10px auto;
    max-width: 100%
}
.hidden {
    display: none
}
.archive-list {
    padding: 20px
}
.archive-list ul {
    list-style: none;
}
.archive-list li {
    padding: 2px 10px
}
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    width: 100%
}

.search-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
}

.search-container .input-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.search-container input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.search-container input[type="text"]:focus {
    border-color: #007BFF;
}

.search-container select {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
    background-color: white;
    cursor: pointer;
}

.search-container select:focus {
    border-color: #007BFF;
}

.search-button {
    align-self: center;
    display: flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 16px;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    min-width: 120px;
    justify-content: center;
}

.search-button i {
    margin-right: 5px;
}

.search-button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}
/* Web3.0 Button Styles */
.umpire-profile-container {
    float: right;
    margin: 10px 0
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #feb47b 0%, #ff7e5f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.milestone {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1em;
    margin-bottom: 1em;
    background-color: #f9f9f9;
}

.milestone h2 {
    margin-top: 0;
}
/* Ensure the table container is scrollable on smaller screens */
.table-container {
    width: 100%;
    overflow-x: auto;
    padding:2px;
}
li.ui-menu-item {
        padding: 8px;
    }
@media screen and (max-width: 767px) {
    body {
        overflow-x: hidden
    }
    .umpire-summary {
        max-width: 90%;
        margin: auto;
    }
    .main-container {
        padding: 3px;
        width: 98%;
    }
    .row-header, .child-row-header {
        /* Adjust styles for smaller screens */
        font-size: 14px;
    }
    
    .child-row-content {
        /* Adjust styles for smaller screens */
        font-size: 12px;
    }
    .banner img {
        max-width: 100%;
    }
     table {
        width: 100%;
        border-collapse: collapse;
    }
    
    th, td {
        display: block;
        text-align: left;
        padding: 8px;
        box-sizing: border-box;
        border-bottom: 1px solid #ddd;
    }

    th {
        background-color: #f8f8f8;
    }

    tr {
        display: block;
        margin-bottom: 10px;
    }

    thead {
        display: none;
    }

    td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
        .stats .table-container table {
        width: 100%;
        border-collapse: collapse;
            border:none
    }

    .stats .table-container thead {
        display: none;
    }

    .stats .table-container tr {
        display: flex;
        margin-bottom: 10px;
        border: 1px solid #ddd; /* Add border around each row for clarity */
        border-radius: 8px; /* Round the corners for a more modern look */
        overflow: hidden;
        padding: 10px; /* Add padding for better spacing */
        align-items: center
    }

    .stats .table-container td {

        text-align: left; /* Change to left-align text */
        padding: 8px 10px; /* Adjust padding for better spacing */
        position: relative;
        border: none;

    }

    .stats .table-container td:before {
        content: attr(data-label);
        position: absolute;
        left: 16px; /* Adjust to align labels with padding */
        width: calc(50% - 32px); /* Adjust width to fit within padding */
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
    }
    .stats .table-container tr td:nth-of-type(1){
        flex-basis: 80%
    }
    .stats .table-container tr td:nth-of-type(2) {
        text-align: right;
        flex-basis: 20%
    }

    .stats .table-container td:last-child {
        border-bottom: 0;
    }
    footer {
        bottom: 0;
        left: 0;
    }
    .umpire-profile-container {
    float: none;
    margin: 15px auto;
    text-align: center;
    }
}