.input-group-text {
    height: 100%;
}

body {    
    /* background-size: 1300px !important; */
    background-image: url("./soccer-field.dbf91b275fac.avif") !important;
    background-position-y: center !important;
    background-position-x: initial !important;
    background-attachment: fixed !important;
    /* background-repeat: no-repeat !important; */
    color: white;
    font-family: 'Lucida Console', Courier, monospace;
}

a {
    color: lightblue !important;
}

.bg-color-main 
{     
  background-color: #00000094 !important; 
}  

.title 
{     
  font-size: xx-large;     
  font-weight: bolder;     
  text-transform: uppercase; 
}  

.title-nav-bar {
    padding-top: 16px;    
}

.nav-link {
    padding-inline: 1rem !important;
    width: fit-content !important;
}

.nav-link:hover {    
    color: white !important;
    border-color: darkgrey;
}

.navbar-toggler {
    box-shadow: none !important;
}

.text-muted {
    color: lightgray !important;
}

.generic-card {
    padding: 35px;
    background-color: #00000094;
    border-radius: 20px;
    /* width: fit-content; */
}

.site-footer {
    margin-top: 24px;
    padding: 16px 12px;
    background-color: #00000094;
    color: #e6e6e6;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .legal-links a {
    color: #9fd8ff !important;
    text-decoration: none;
    font-weight: 600;
}

.site-footer .legal-links a:hover,
.site-footer .legal-links a:focus {
    color: #cfe8ff !important;
    text-decoration: underline;
}

.site-footer .legal-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

.table-compact th,
.table-compact td {
    padding: 0.5rem 0.6rem;
    font-size: 0.96rem;
    white-space: normal;
    word-break: break-word;
}

.truncate-mobile {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-inner-scroll {
    overflow: visible !important;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filters .btn-link {
    color: #7ecbff !important;
    text-decoration: none;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(126, 203, 255, 0.35);
}

.filters .btn-link:hover,
.filters .btn-link:focus {
    color: #bfe6ff !important;
    border-color: rgba(126, 203, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
}

.champion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.champion-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.champion-label {
    font-weight: 600;
}

.champ-select {
    min-width: 140px;
    max-width: 240px;
    text-align: center;
}

.score-input {
    min-width: 60px;
    max-width: 110px;
    text-align: center;
    font-size: 1.05rem;
}


.tight-row {
    --bs-gutter-x: 0.6rem;
    --bs-gutter-y: 0.6rem;
}

tbody {
    opacity: 80%;
}

form {
    /* max-width: 600px; */
    margin: 0 auto;    
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

/* Mobile-first improvements */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    body {
        background-attachment: scroll !important;
        background-size: cover !important;
    }

    .title {
        font-size: 1.25rem;
        line-height: 1.2;
        text-align: center;
    }

    .title-nav-bar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-nav .nav-link {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        text-align: center;
        border-radius: 10px;
    }

    .navbar-nav .btn {
        width: 100%;
    }

    .generic-card {
        padding: 16px;
        border-radius: 16px;
    }

    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tight-row {
        --bs-gutter-x: 0.35rem;
        --bs-gutter-y: 0.35rem;
    }

    .card-header .btn {
        width: 100%;
    }

    .card-body.table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .card-body.no-inner-scroll {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .btn,
    .form-control,
    .input-group-text,
    .navbar-toggler {
        min-height: 44px;
        font-size: 1rem;
    }

    .input-group {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .table-compact th,
    .table-compact td {
        padding: 0.4rem 0.5rem;
        font-size: 0.92rem;
        white-space: normal;
        word-break: break-word;
    }

    .table-matches {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .truncate-mobile {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .table-matches thead {
        display: none !important;
    }

    .table-matches,
    .table-matches tbody,
    .table-matches tr,
    .table-matches td {
        display: block !important;
        width: 100% !important;
    }

    .table-matches tr {
        background: rgba(0, 0, 0, 0.35);
        margin: 8px 0;
        border-radius: 12px;
        padding: 10px;
        overflow: hidden;
    }

    .table-matches td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 6px 4px;
        overflow: hidden;
    }

    .table-matches td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
        color: #cfe8ff;
        flex: 0 0 auto;
    }

    .table-matches td[data-label="Marcador"] {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .table-matches td[data-label="Marcador"] .input-group {
        width: 100%;
        justify-content: space-between;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .filters .btn-link {
        display: block;
        width: 100% !important;
        text-align: center;
    }

    .champion-row {
        flex-direction: column;
        align-items: stretch;
    }

    .champion-field {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .champ-select {
        max-width: none;
        width: 100%;
    }

    .score-input {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        font-size: 1.1rem;
        height: 50px;
    }
}

