body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #00894b;
}
header, footer {
    text-align: center;
    padding: 10px;
    color:#fff
}
#Leader{
    font-family: 'KabelUltra';
    letter-spacing: -.05em;
    font-size:40px;
    margin:8px auto 0px auto;
    line-height: .85em;
}
@media (min-width: 600px) {
    #Leader{
        font-family: 'KabelUltra';
        letter-spacing: -.05em;
        font-size:80px;
        margin:15px auto 0px auto;
        line-height: .85em;
    }
}
.leaderboard-container {
    overflow-x: auto;
}
table {
    border-collapse: separate;
    border-spacing: 0 2px; /* Horizontal spacing 0, vertical spacing 2px */
    width: 97%;
    margin: auto;
    background-color: #00894b;
    font-family:'futura';
    font-weight:600;
    color:#00894b;
    min-width: 600px;
}
@media (max-width: 600px) {
    table {
        width: 99%;
    }
}
th, td {
    text-align: center;
    padding: 2px;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 20px;
    max-width: 160px;
    background-color: inherit;
}
th {
    background-color: #00894b;
    color: white;
}
thead th {
    background-color: #00894b;
    letter-spacing: .06em;

}
.sticky {
    position: sticky;
    position: -webkit-sticky;
    z-index: 5;
    color: #00894b;
    
}

/* Specific styles for each sticky column */
.sticky.pos { width: 26px; left: 0px; z-index: 5}
.sticky.icon-cell { width: 24px; left: 25px; margin:0px; z-index: 5} /* adjust width as needed */
.sticky.team-name {min-width:160px; width: 140px; left: 49px; z-index: 5} /* adjust width as needed */
.sticky.plus-minus { width: 20px; left: 214px; z-index: 5} /* adjust width as needed */

thead th.sticky.pos,
thead th.icon-cell,
thead th.team-name,
thead th.plus-minus {
    color: #fff;
}

.search-bar {
    padding:4px 15px 15px 15px;
    text-align: center;
    display: flex;
    justify-content: center;
}
.search-wrapper {
    position: relative;
    display: inline-block;
}
.search-wrapper input[type="text"] {
    padding: 10px;
    padding-left: 40px; /* Make space for the search icon */
    padding-right: 35px; /* Make space for the clear 'x' button */
    /* Ensure the input takes up the full width of its parent */
    width: calc(100% - 70px); /* Subtract the total padding */
    border-radius: 50px;
    border: 1px solid #fff;
}
.search-bar input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #FFD600;
}
.search-bar input::placeholder {
    color: #00894b80;
}
.search-wrapper #clearSearch {
    position: absolute;
    right: 0px;
    padding-right:5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family:'futura';
    /* Style your 'x' as needed */
}
.search-bar input {
    padding-right: 0px;
    padding-left:40px;
    margin-bottom: 0px;
    border: 1px solid #fff;
    border-radius: 50px;
    font-family:'futura';
}
.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Ensure it's above the input field */
    height: 15px;
    width: 15px;
}
#clearSearch {
    position: absolute;
    right: 10px; /* Adjust to move closer to the edge of the input */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    z-index: 10; /* Ensure it's above the input field */
    font-size: 20px;
    cursor: pointer;
    color: #d3e5dd;
}
#clearSearch:hover {
    color: #00894b; /* Darker color on hover, change as needed */
}
@media screen and (max-width: 768px) {
    .search-bar input {
        width: 100%;
    }
}
.team-name {
    text-align: left;
    padding-left:5px;
    padding-right:0px;
}
.sticky.plus-minus {
    box-shadow: inset -1px 0px #00894b;
    z-index: 3;
    color:#00894b;
}
.icon-cell {
    text-align: center; /* Center the icon in the cell */
    /* Other styling as needed */
  }
.info-icon {
    cursor: pointer; /* Indicates the icon is clickable */
    display:flex;
    /* Any additional icon styling */
  }
.positive {
    color: #00894b!important;
}
.negative {
    color: #ea0029!important;
}
.row-color-one {
    background-color: #ffffff;
}
.row-color-two {
    background-color: #d3e5dd;
}
@font-face {

    font-family: 'KabelUltra';

       src: url(https://storage.googleapis.com/ham-tags/Leaderboard/ITCKabelStd-Ultra.otf);

}
.hole-numbers{
    font-size:12px;
    line-height: 0px;
}

tbody td.team-name {
    font-size: 11px; /* or the specific size you want for the team names */
}
tbody td.plus-minus {
    letter-spacing: .06em;
    text-align: right;  
}

.flex-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size:10px;
    text-align: left;
    padding-left:10px;
    font-weight: 100;
    letter-spacing: .02em  !important;
}
.flex-container img {
    margin-right: 10px; /* Space between the icon and the text */
}
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    align-content: center;
    z-index: 10; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 10px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    color: #00894b;
    text-align: center;
}
#modalTeamName {
    font-family: 'kabelUltra';
    font-size: 36px!important;
    letter-spacing: -.04em!important;
    color: #00894b!important;
    justify-content: center;
    margin-top:40px;
    line-height:.9em;
}
#modalStartingHole {
    font-family: 'futura';
    padding: 2px; /* Adjust as needed */
    text-align: center; /* Or 'center' depending on the design */
    color:#000;
    text-transform: uppercase;
    font-size:12px;
}
#modalTotalScore{
    font-family: 'futura';
    margin:10px auto;
    text-transform: uppercase;
    font-weight: 700;
}
#modalPlayersList{
    font-family: 'futura';
    color:#000;
    margin-bottom:40px;
}

/* The Close Button */
.close {
    color: #d3e5dd;
    float: left;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #00894b;
    text-decoration: none;
    cursor: pointer;
}
