.header {
    margin-top: 50px;
}

body {
    overflow-x: hidden;
}

.sfondo {
    color: rgb(55, 36, 12);
    background-color:olive !important;
}

h1 {
    color:#e4ca7b
}

h2 {
    margin-top: 100px;
    text-align: center;
}

.accordion {
    --bs-accordion-border-color: olive !important
}

#accordion-item {
    border-width: 0px !important;
}

#accordion-button {
    background-color: #b9861a !important;
    display: block;
    text-align: center;
}

.accordion-button {
    color: #37240c !important;
    background-color: olive !important
}

.accordion-body {
    background-color: olive;
}

.chart-container {
    background-color: olive;
}

/* Stile predefinito per desktop */
.container {
    width: 80%;
    margin: auto;
}

.partita-container {
    margin-bottom: 80px;
}

/* Per dispositivi più piccoli di 768px, ad esempio mobile */
@media (max-width: 768px) { 
    .container {
        width: 100% !important; /* Usa !important se necessario */
        max-width: 800px !important;
        font-size: xx-large;
    }

    .btn-primary {
        font-size: xx-large;
    }

    .btn-success {
        font-size: xx-large;
    }

    .form-select {
        font-size: xx-large;
        margin-top: 20px;
    }

    .form-control {
        font-size: xx-large;
        margin-top: 20px;
    }

    .modal-title {
        font-size: xx-large;
    }

    .modal-dialog {
        max-width: 800px;
    }

    .modal-content {
        font-size: xx-large;
    }

}

/* Per dispositivi più piccoli di 992px, ad esempio tablet */
@media (max-width: 992px) { 
    .container {
        width: 100% !important; /* Usa !important se necessario */
        max-width: 1000px !important;
        font-size: xx-large;
    }

    .btn-primary {
        font-size: xx-large;
    }

    .btn-success {
        font-size: xx-large;
    }

    .form-select {
        font-size: xx-large;
        margin-top: 20px;
    }

    .form-control {
        font-size: xx-large;
        margin-top: 20px;
    }

    .modal-title {
        font-size: xx-large;
    }

    .modal-dialog {
        max-width: 1000px;
    }

    .modal-content {
        font-size: xx-large;
    }

    #accordion-button {
        font-size: larger;
    }

    .highcharts-axis {
        font-size: xxx-large;
    }

    .highcharts-legend {
        font-size: xxx-large;
    }

    .highcharts-axis-labels {
        font-size: xx-large;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    border-color: #484848;
    border-style: solid;
    overflow: hidden;

}

.colonna-foto {
    border-top-left-radius: 8px !important;
    overflow: hidden;
}

.colonnapunteggio {
border-top-right-radius: 8px !important;
overflow: hidden;
}

.tabella {
    width: 100%;
    border-collapse: collapse;
    border-color: #484848;
    border-style: solid;
    border-radius: 8px !important;
    overflow: hidden;
}

.tabella tr th {
    background-color: #b9861a; /* Grigio molto chiaro per le righe dispari */
    border-color: #484848;
    border-style: solid;
}

.tabella tr:nth-child(odd) {
    background-color: #e4ca7b; /* Grigio molto chiaro per le righe dispari */
    border-color: #484848;
    border-style: solid;
}

.tabella tr:nth-child(even) {
    background-color: #ab915c; /* Grigio un po' più scuro per le righe pari */
    border-color: #484848;
    border-style: solid;
}

.tabellavincitori {
    padding: 0px;
}

.form-select {
    color: rgb(55, 36, 12);
    background-color: #e4ca7b !important;
    border-color: #484848;
    position: relative;
    z-index: 3;
}

.form-control {
    color: rgb(55, 36, 12);
    border-color: #484848;
    background-color: #e4ca7b;
    margin-top: auto;
}

.form-control::placeholder {
    color: rgb(55, 36, 12);
}

.giocatore {
    cursor: pointer;
    position: relative;
}

.foto-container {
    position: relative;
    width: 50px;
}

.foto-giocatore {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.giocatore-selezionato .foto-container::after {
    content: '✓';
    color: green;
    font-size: 48px;
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 2;

}

.fa-crown {
    position: absolute;
    color: rgb(170, 64, 32); 
    left: 50px;
    text-shadow: -3px 3px 3px black;
}

.colonna-foto {
    width: 10%;
}

.colonna-nome {
    width: 80%;
    text-transform: uppercase;
}

.colonna-giocatoretorneo {
    width: 60%;
    text-transform: uppercase;
}

.colonna-torneo {
    width: 30%;
    text-transform: uppercase;
    text-align: center;
}

.colonnapunteggio {
    width: 10%;
    text-align: center;
}

.decimali {
    font-size: x-small;
    color: dimgray;
    visibility: hidden;
}

.titolopartita {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    text-transform: uppercase;
}

.btn-primary {
    margin-top: 8px;
    color: rgb(55, 36, 12);
    background-color: #b9861a;
    border-color: #484848;
}

.btn-success {
    margin-top: 8px;
    color: rgb(55, 36, 12);
    background-color: #b9861a;
    border-color: #484848;
}

.btn-primary:hover, .btn-success:hover{
    margin-top: 8px;
    color: bisque;
    background-color: #111214;
    border-color: #484848;
}

.modal-content {
    background-color: #ab915c;
    border-color: #484848;
    border-style: solid;
    border-radius: 8px !important;
    text-align: justify;
}

.modal-header {
    background-color: #ab915c;
    border-color: #484848;
    text-align: center;
    text-transform: uppercase;
    display:inline;
}

.modal-footer {
    background-color: #ab915c;
    border-color: #484848 !important;
}

.form-control::file-selector-button {
    color: bisque;
    background-color: #3a1312;
    border-color: #484848;
}

.form-control::file-selector-button:hover {
    color: bisque;
    background-color: #111214;
    border-color: #484848;
}

.banner {
    width: 100%;
    position: relative;
    height: auto;
    background-image: url('/2023/images/banner_background.jpeg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    padding: 20px;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Il colore nero con opacità al 50% */
    z-index: 2; /* Assicurati che sia sopra l'immagine */
}

.back-hall {
    background-color: #ffffff20;
}

@media (max-width: 768px) {
    .banner {
        height: 150px; /* Altezza più piccola per i dispositivi più piccoli */
    }
}

@media (max-width: 480px) {
    .banner {
        height: 100px; /* Ancora più piccola per gli schermi dei telefoni */
    }
    .back-hall {
        background-color: red;
    }
}

.menu {
    position: relative;
    z-index: 3;
    text-shadow: -1px 1px 1px rgb(84, 68, 51);

}

#formPartita {
    margin-top: 15px;
}


.title-role {
    color: #ffffff;
    text-decoration:underline;
}

.text-white {
    color: #ffffff;
}

  .nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    color: #37240c;
    border: none;
    border-radius: 8px 8px 0 0;
    margin-right: 4px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: rgba(185, 134, 26, 0.4);
}

.nav-tabs .nav-link.active {
    color: white;
    background-color: #ffffff20;
    border: none;
}

.nav-tabs .nav-link i {
    margin-right: 8px;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .nav-tabs .nav-link i {
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .nav-tabs .nav-link {
        font-size: 12px;
        padding: 6px 8px;
    }

    .nav-tabs .nav-link i {
        display: none;
    }
}

@media (min-width: 992px) {
    .back-hall img {
        max-height: 200px;
        object-fit: contain;
    }
}

.back-hall {
    height: 100%;
}

#chart-container-fields {
    min-height: 100%;
}

@media (max-width: 991px) {
    #chart-container-fields {
        min-height: 500px;
    }
}

.colonnapunteggio {
    text-align: center;
}

.punteggio-principale {
    font-size: 1.2em;
    font-weight: bold;
}

.differenza {
    font-size: 0.8em;
    color: #a72828; /* Colore verde per la differenza positiva */
    margin-top: 5px;
    font-weight: bold;
}