.header {
    margin-top: 50px;
}

body {
    overflow-x: hidden;
}

.sfondo {
    color: bisque;
}

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

/* 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;
    }

}

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: #3a1212; /* Grigio molto chiaro per le righe dispari */
    border-color: #484848;
    border-style: solid;
}

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

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

.tabellavincitori {
    padding: 0px;
}

.form-select {
    color: bisque;
    border-color: #484848;
    position: relative;
    z-index: 3;
}

.form-control {
    color: bisque;
    border-color: #484848;
    background-color: #111214;
    margin-top: auto;
}

.form-control::placeholder {
    color: bisque;
}

.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: gold; 
    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;
}

.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: bisque;
    background-color: #3a1312;
    border-color: #484848;
}

.btn-success {
    margin-top: 8px;
    color: bisque;
    background-color: #3a1312;
    border-color: #484848;
}

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

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

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

.modal-footer {
    background-color: #343434;
    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('../img/banner.jpg');
    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.6); /* Il colore nero con opacità al 50% */
    z-index: 2; /* Assicurati che sia sopra l'immagine */
}

@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 */
    }
}

.menu {
    position: relative;
    z-index: 3;
    text-shadow: -3px 3px 3px black;

}

#formPartita {
    margin-top: 15px;
}