html { background-color:transparent; } 
body {
    min-height: 100%;
    max-width: 100%;
    
    margin: auto;
    opacity: 1;
    /*background: linear-gradient(to right, aliceblue, #ffffff);*/
}
.youtube-video {
  aspect-ratio: 16 / 9;
  width: 100%;
}
/* Logo section */
.header-logo {
    /*flex:1;
    /*margin-bottom: 20px; /* Add some space below the logo */
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}
.progress-bar {
    height: 30px;
    background-color: #76c7c0;
    width: <?php echo $pourcentage; ?>%;
    line-height: 30px;
    color: #fff;
    text-align: center;
    transition: width 0.5s;
}
.progress-text {
    text-align: center;
    font-size: 18px;
    margin-top: 10px;
}
.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
    width: 300px;
    max-width: 100%;
    max-height: 100%;
}

.chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.chart-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #333;
    pointer-events: none; /* Empêche le texte d'interférer avec les événements de la souris sur le canvas */
    text-align: center;
}

/* Option plus douce (pulse) */
.pulse {
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .35; }
}

/* On ajoute le zoom séparément */
.zoom {
  animation: zoom 1s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}
@keyframes zoom { 0%,100%{transform:scale(1)} 50%{transform:scale(1.5)} }
.header-logo img {
    width: 200px;
    height: auto;
    margin-right: 30px;
}

.navbar-brand {
    font-size: 1.8em;
    font-weight: bold;
}

.card {
    border-radius: 20px;
}

.card h5 {
    font-weight: bold;
}

.btn-light {
    font-weight: bold;
    padding: 10px 20px;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.icon {
    width: 40px;
    height: 40px;
}

.icon-transparent {
    color: rgba(255, 255, 255, 0.7); /* Blanc avec 70% d'opacité */
}

.heat-progress {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.heat-square {
    width: 20px;
    height: 20px;
    margin: 5px;
    border: 1px solid #ccc;
}

.heat-square.consumed {
    background-color: #28a745; /* Vert pour les heats consommés */
    border-color: #28a745;
}


.scoreboard {
 display: flex;
  /*flex-direction: column; /* ou row, selon votre besoin */
  align-items: center; /* Centre les éléments horizontalement */
  /*justify-content: center; /* Centre les éléments verticalement */
  /*width: 50%; /* Utilisez 100% pour occuper toute la largeur du conteneur parent */
  /*max-width: 1200px; /* Vous pouvez définir une largeur maximale pour éviter que le conteneur ne devienne trop large sur les grands écrans */
  /*margin: 0; /* Centre le conteneur */
    width: 100%;
    padding: 0;
    margin: 0;

}

.competitor {
  display: grid;
    grid-template-columns: 1fr 5fr 2fr 5fr; /* Crée 4 colonnes avec des tailles égales */
    gap: 10px; /* Espacement entre les éléments de la grille */
    padding: 0px;
    margin: 0;
    height: auto; 
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1px;
    
}
.competitor-row {
  display: block;
   
    
}
.globalcompetitor {
  margin-bottom: 1px;
background-color: white;
}


.heatcompetitor {
    display: grid;
    grid-template-columns: 2fr 4fr 1fr 1fr 2fr; /* Crée 4 colonnes avec des tailles égales */
    gap: 10px; /* Espacement entre les éléments de la grille */
    padding: 0px;
    margin: 0px; 
    margin-bottom: 1px;
    width: 100%;
    padding-bottom: 10px;
    padding-top: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 20%, rgba(0, 36, 99, 1) 100%);
}

.logobgcolor {
    
    /* background-color:aquamarine; */
   
}
table {
    width: 100%; /* Ajuste la largeur de la table */
    border-collapse: collapse; /* Assure que les bordures de la table sont bien alignées */
}

th, td {
    white-space: nowrap; /* Empêche le texte de revenir à la ligne */
    padding: 8px; /* Ajoute un peu d'espace autour du texte dans les cellules */
    border: 1px solid #ddd; /* Ajoute des bordures aux cellules */
    text-align: left; /* Aligne le texte à gauche, ou à ajuster selon votre préférence */
}

th {
    font-weight: bold; /* Met les en-têtes en gras */
}

.comp_position {
    width: 20px;
    height: 20px;
    font-size: 13px;
    text-align: center;
    border: 2px solid;
    display: inline-block;
    margin-left: 3px;
    margin-right: 3px;
    vertical-align: top;
    /* padding: 2px; */
    color: black;
    border-radius: 50%;
    background-color: slategray;
    color: white;
}

.blinking {
    animation: blink 1s infinite;
    color:orange;
   
  }

  @keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
  }

.waiting-for-score {
    display: inline-block;
    font-size: 16px;  /* Taille du sablier */
    color: black;
    animation: flip 3s infinite;  /* Animation en boucle */
}

/* Animation pour faire tourner le sablier à 180 degrés */
@keyframes flip {
    0% {
        transform: rotate(0deg);  /* Sablier à l'endroit */
    }
    50% {
        transform: rotate(180deg);  /* Sablier à l'envers */
    }
    100% {
        transform: rotate(0deg);  /* Retour à l'endroit */
    }
}

.stint-ultra-condensed-regular {
  font-family: "Stint Ultra Condensed", serif;
  font-weight: 400;
  font-style: normal;
}


 .externalDiv {
        background-color: gray;
        width: 100%; /* Utilisez 100% pour occuper toute la largeur du conteneur parent */
         margin: 0;
     padding:0;
     box-shadow: 5px 5px 7px -2px rgba(0, 0, 0, 0.4);
}
 .headers {
            font-size: 16px;
            text-align: right;
     color: white;
    
        }
 .main_div {
            text-align:center;
            position: relative;
        }
 .div_bottom {
            position: absolute;
            bottom: 0px;
        }
 .div_scores {
            width:auto;
    
        }

.name {
  font-size: 20px;
    /*font-weight: bold;*/
    white-space: nowrap;
  overflow-x: hidden;
font-family: sans-serif, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue";
  /*font-family: "Stint Ultra Condensed", serif;*/
  font-weight: 400;
  font-style: normal;
    text-transform: capitalize;

    
}
 .club {
  font-size: 12px;
     float: left;
    display: inline-block;
  
}

#remaining-time {
    font-size: 80px;
    color:white;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    font-weight: 800;
    font-size: clamp(72px, 10vw, 140px);
    line-height: 1;
    text-shadow: 0 0 22px #000;
    user-select: none;
    
}

.chrono {
  font-size: 32px;
  font-weight: bold;
    /*color:white;
    border: 4px solid;
    border-color: aqua;*/
    text-align: center;  
}

.chronoback {
  font-size: 3vw;
  font-weight: bold;
    //background-color: darkblue;
    //color: aquamarine;
    
    text-align: left;  
}
.score {
  font-size: 20px;
    font-weight: bold; 
    text-align: right;
}
.title {
  font-size: 24px;
    font-weight: bold;    
}

.scores {
  font-size: 20px;
}


.scores-need {
      font-size: 16px;
    text-align: left;
    border: 1px solid;
    display: inline-block;
    /* margin-left: 20px; */
    vertical-align: top;
    /* padding: 2px; */
    float: right;
    /* border-radius: 5px;
  /* padding: 10px; Optionnel : Ajoute un espace à l'intérieur du div pour éloigner le contenu de la bordure */
    
}

.heats-need {
      font-size: 16px;
    text-align: right;
    
    display: inline-block;
    /* margin-left: 20px; */
    vertical-align: top;
    /* padding: 2px; */
    float: right;
    /* border-radius: 5px;
  /* padding: 10px; Optionnel : Ajoute un espace à l'intérieur du div pour éloigner le contenu de la bordure */
    
}

.details {
  margin-top: 5px;
}

.image-container {
    /* Assurez-vous que le conteneur ne dépasse pas les limites que vous souhaitez pour votre image */
    max-width: 20vw; /* Largeur maximale du conteneur */
    min-width: 15vw; /* Largeur minimale du conteneur */
    margin: auto; /* Centrer l'image si le conteneur est plus large que l'image */
}

 .competitor-img {
    width: 100%; /* Permet à l'image de s'adapter à la largeur du conteneur */
    height: auto; /* Garde le ratio de l'image */
    max-width: 60px; /* Largeur maximale de l'image */
    min-width: 2vw; /* Largeur minimale de l'image */
    border: 3px solid;
    border-radius: 50%;
      
}
.color-1 { border-color: #F20606; }
.color-2 { border-color: #FFEC33; }
.color-3 { border-color: #063FF2; }
.color-4 { border-color:gainsboro; }
.color-5 { border-color:black; }

.responsive-flag {
    width: 30px; /* Permet à l'image de s'adapter à la largeur du conteneur */
    height: auto; /* Garde le ratio de l'image */
    min-width: 2vw; /* Largeur minimale de l'image */
    margin-right: 5px;
}
.responsive-logo {
    width: auto; /* Permet à l'image de s'adapter à la largeur du conteneur */
    height: auto; /* Garde le ratio de l'image */
    /*max-width: 10vw; /* Largeur maximale de l'image */
    min-width: 3vw; /* Largeur minimale de l'image */
    max-height: 50px;
}
.waves-scores {
  font-family: Arial, sans-serif;
  text-align: center;
  margin-bottom: 10px; /* Adjust as needed */
}

.waves-scores .header .col,
.waves-scores .scores .col {
  padding: 5px; /* Adjust padding */
  display: inline-block;
  width: 33%; /* Adjust the width based on the number of columns */
  box-sizing: border-box;
}

.waves-scores .scores .col {
  color: white; /* Score text color */
  background-color: #f0ad4e; /* Score background color */
  border-radius: 5px; /* Adjust as needed for rounded corners */
  font-weight: bold; /* Bold font for scores */
}

.scores-video {
     width:100%;
    padding: 0;  
}
.top-score {
  color: red; /* or the specific shade of red you want */
}

.best-score {
  color: red; /* Adjust the color as needed */
}
.wave-score-pair {
  /* Your existing styles */
    font-size: 2vw;
    overflow: hidden;
    
}

.wave-scores-container {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  justify-content: space-around;
    flex-wrap: wrap;
     justify-content: flex-start;
    /*background-color: beige;
  /* Add more styling as needed */
}

.hidden-desktop {
          display: none;
        }

.best-score {
  color: red; /* Or any color you want for the best scores */
}

.normal-score {
  color: black; /* Optional: Style for normal scores, if needed */
}

.wave-score-pair {
  min-width: 25px; /* Adjust the minimum width as needed to prevent collapsing */
}

.wave-scores-container {
  /*overflow-x: auto;  Allows scrolling horizontally if there are many scores */
}



@media (max-width: 768px) { 
        .hidden-mobile {
          display: none;
        }
    .hidden-desktop {
          display: flex;
        }

        .scoreboard {
 
          width: 100%; /* Utilisez 100% pour occuper toute la largeur du conteneur parent */
          /*max-width: 768; /* Vous pouvez définir une largeur maximale pour éviter que le conteneur ne devienne trop */
            
}
    .competitor {
        grid-template-columns: 1fr 5fr 2fr;
       
        
        
    }
     .externalDiv {
 
          width: 100%; /* Utilisez 100% pour occuper toute la largeur du conteneur parent */
          /*max-width: 768px; /* Vous pouvez définir une largeur maximale pour éviter que le conteneur ne devienne trop */
         margin: auto;
            
}
    .responsive-flag {
    width: 75%; /* Permet à l'image de s'adapter à la largeur du conteneur */
    height: auto; /* Garde le ratio de l'image */
    max-width: 10vw; /* Largeur maximale de l'image */
    min-width: 2vw; /* Largeur minimale de l'image */
     }   
     .responsive-logo {
    width: 100%; /* Permet à l'image de s'adapter à la largeur du conteneur */
    height: auto; /* Garde le ratio de l'image */
    
         padding: 0;
         margin:0;
        }
    
        .name {
          /*font-size: 3vw;*/
          /*font-weight: bold;*/
          overflow-x: hidden;

        }
        
        .score {
          /*font-size: 16px;*/
          font-weight: bold;
        text-align: right;
          
        }
        .club {
          font-size: 3vw;
          /*font-weight: bold;*/
            float: left;
            display: inline-block;
          
        }
        .scores {
            font-size: 4vw;
            text-align: center;
    
        }
    .scores-need {
        font-size: 3vw;
        text-align: right;
        }
    .scores-video {
     width:100%;
    
        }
      .headers {
            font-size: 16px;
        text-align: right;
    
        }
    .title {
  font-size: 20px;
     
}
     .div_scores {
            width:50%;
    
        }
    .competitor-img {
    width: 50px;
        height: auto;
        max-width: 50px;
        min-width: 2vw;
        }
    .chrono {
  font-size: 24px;
  
}
   
}

