:root {
    --background-color-main: #454545;
    --border-color-main1: #393939;
    --border-color-main2: #b6b6b6;
    --displayLand: table-cell;
    --displayPort: none;
    --displayprint: none;
}

@media (orientation: portrait) {
    :root {
        --font-size-html: 22px;
        --displayLand: none;
        --displayPort: table-cell;
    }
}

/* Landscape (orizzontale) */
@media (orientation: landscape) {
    :root {
        --font-size-html: 12px;
        --displayLand: table-cell;
        --displayPort: none;
    }
}

@media screen and (orientation: landscape) and (min-width: 1200px) {
    :root {
        --font-size-html: 9px;
        --displayLand: table-cell;
        --displayPort: none;
        --displayprint: table-cell;
    }
}

@media (max-width: 600px) {
    :root {
        --displayLand: none;
        --displayPort: table-cell;
    }
}

/* body */
html {
    font-size: var(--font-size-html);
}

body {
    margin: 0;
    font-size: 2.1rem;
    font-family: Arial, sans-serif;
}

/* loader icon */
.loader {
    width: 2rem;
    height: 2rem;
    border: 5px solid #ccc;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 100px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* link */

a:link,
a:visited,
a:hover,
a:active {
    color: inherit;
    text-decoration: none;
    font-weight: normal;
    background: none;
}

/* Controls */

button,
.colControls label,
select {
    background-color: #ffffff;
    border-radius: 5px;
    border: 2px solid #242424;
    cursor: pointer;
    color: #000000;
    font-family: Arial;
    font-size: 2rem;
    padding: 7px 21px;
    text-decoration: none;
}

button:hover {
    background-color: #01a70f;
}

label {
    cursor: default;
}

select:disabled,
button:disabled {
    background-color: #cccccc;
    color: #666666;
    border: 1px solid #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

.small-control button {
    padding: 5px 5px;
    border-radius: 4px;
    border: 1px solid #b9b9b9;
    font-size: 1.7rem;
    width: 10rem;
}

.small-control button:hover {
    background-color: #01a70f;
}

.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
    width: 100%;
}

.autoCompleteGray {
    color: #bdbdbd;
}

.autoCompleteGray:focus {
    color: #000000;
}

input {
    border: 1px solid transparent;
    background-color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: inherit;
    width: 100%;
}

/* input:hover {
    border: 1px solid var(--border-color-main1);
    background-color: #ffffff;
} */

input:focus {
    outline: none;
    border: 1px solid var(--border-color-main1);
    background-color: #ffffff;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid var(--border-color-main1);
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    font-size: inherit;
    font-weight: inherit;
    padding: 2px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color-main2);
}

.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}

/* Tables */

table {
    font-size: 1.5rem;
}

table {
    table-layout: auto;
    border-collapse: 1collapse;
    border-spacing: 0;
}


.th-sortable {
    cursor: pointer;
}

.sortable th {
    position: relative;
}

.headerLast {
    background-color: #d96200ff;
}

.tbplayer {
    width: 100%;
    background-color: #ffffff;
    border: 0px solid var(--border-color-main2);
}

.tbplayer th,
.tbplayer td {
    padding: 5px;
    text-align: center;
}

.tbplayer td {
    border-bottom: 1px solid var(--border-color-main2);
}

.tbplayer>tbody>tr:nth-child(even) {
    background-color: #f0f0f0
}

.header {
    font-size: 1.5rem;
    color: rgb(255, 255, 255);
    background-color: var(--background-color-main);
    border: 0px solid var(--border-color-main1);
    text-align: center;
}

.footer {
    color: rgb(0, 0, 0);
    background-color: #ffbb00;
    border-bottom: 0px solid var(--border-color-main2);
    text-align: center;
    padding: 5px;
}

.note {
    font-size: 1.5rem;
}

.displayLandscape {
    display: var(--displayLand);
}

.displayPortrait {
    display: var(--displayPort);
}

.displayPrint {
    display: var(--displayprint);
}

/* Top bar */

.divtop {
    font-size: 3.2rem;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px 20px 10px 10px;
    align-items: center;
    box-sizing: border-box;
    height: 6rem;
    z-index: 1000;
    background-color: var(--background-color-main);
    border-bottom: 1px solid var(--border-color-main1);
    box-shadow: 0px 5px 5px #a7a7a7;
    color: white;
    align-items: center;
}

.icontopbar {
    width: 4rem;
    padding-right: 15px;
}

.colTitle {
    flex: 1;
}

.colControls {
    flex: none;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: right;
}

.label-combobox {
    font-size: 2.2rem;
}


.linea-verticale {
    width: 2px;
    height: 20px;
    background-color: rgb(255, 255, 255);
    margin: 0 2px;
}

.streach {
    flex: 1;
}

@media screen and (orientation: portrait) {
    .colTitle.streachable {
        flex: none;
    }

    .colControls.streachable {
        flex: 1;
    }
}

.flexbox1 {
    display: flex;
    align-items: center;
}

.flexbox2 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flexbox3 {
    display: flex;
    justify-content: left;
    align-items: center;
}

.divplayers {
    box-shadow: 0px 5px 5px #a7a7a7;
    width: 100%;
    padding: 5px;
    background-color: #ffffff;
    border: 1px solid var(--border-color-main2);
    border-radius: 5px;
}

.maincontent {
    padding: calc(7.6rem) 20px 20px 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    align-items: start;
    gap: 20px;
    padding-bottom: 20px;
}

.cornice {
    background-color: #FFFFFF;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border-color-main2);
    opacity: 1;
    animation: fadeIn 1s forwards;
    max-width: calc(100vw - 60px);
}

.cornice-int {
    background-color: #f0f0f0;
    border: 1px solid var(--border-color-main2);
    padding: 0px;
    height: 100%;
    margin: 0px;
}

.cornice-int-rem {
    border-bottom: 0px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scrollable {
    overflow: scroll;
    overflow-y: hidden;
}

.iconTeam {
    width: 4.0rem;
    margin-right: 10px;
}

.nomeTeam {
    font-size: 2.3rem;
    font-weight: bold;
}

.coachTeam {
    font-size: 1.8rem;
    color: #393939;
}

.iconTeamSerieA {
    width: 2rem;
}

.tooltip {
    position: absolute;
    background-color: var(--background-color-main);
    box-shadow: 0px 5px 5px #a7a7a7;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 1.7rem;
    display: none;
    z-index: 10000;
    opacity: 0;
    max-width: calc(100vw - 40px);
    animation: fadeIn 1s forwards;
}

.barra-presenza {
    display: flex;
    width: 100%;
    min-width: 100px;
    max-width: 200px;
    background-color: #FFF;
    border: 1px solid rgb(200, 200, 200);
    border-radius: 3px;
    padding: 1px;
}

.rank {
    padding: 4px;
    background-color: #2460bb;
}

.rank-out {
    padding: 4px;
    background-color: #2460bb30;
}

#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--background-color-main);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-family: Arial, sans-serif;
    opacity: 0;
    box-shadow: 0px 5px 5px #a7a7a7;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#toast.show {
    visibility: visible;
    opacity: 1;
}

.arrow {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgb(255, 255, 255);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.arrow.asc {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

.arrow.desc {
    transform: translateY(-50%) rotate(0deg);
    opacity: 1;
}