@font-face {
    font-family: "Futura";
    src: url("fonts/Futura Light font.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Futura";
    src: url("fonts/Futura Bold font.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

body {
    background-color: #E3F3FE;
    font-family: "Futura", sans-serif;
    font-weight: 700;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

h1 {
    font-size: 50px;
    color: rgb(10, 56, 101);
    text-align: center;
    margin-top: 40px;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo-titre {
    height: 80px;
    width: auto;
}



header {
    display: flex;
    justify-content: center;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 40px;
    height: auto;

    gap: 20px;
    width: 80%;
    border-radius: 15px;
}

.button {
    background-color: rgb(240, 47, 155);
    border-radius: 10px;

    color: #eeeeee;
    text-align: center;

    transition: all 0.5s;

    padding: 20px;
    margin: 0;
    cursor: pointer;
}

.button:hover {
    background-color: rgb(10, 56, 101);
}

#leaderboard {
    margin: auto;
    width: 60%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 15px;
}

#leaderboard li {
    list-style: none;

    display: flex;
    align-items: center;

    padding: 20px;
    border: 3px solid rgb(10, 56, 101);
    border-radius: 5px;

    color: rgb(10, 56, 101);
    font-size: 25px;
    font-weight: bold;

    transition:
        background-color .5s,
        box-shadow .2s ease-out,
        bottom .2s ease-out;

    bottom: 0px;

    box-shadow:
        0px 5px 5px rgba(0, 0, 0, 0.2),
        inset 0px 5px 5px rgba(255, 255, 255, 0.1);
}

#leaderboard li > div {
    flex: 1;
    text-align: center;
}

#leaderboard li > div:first-child {
    text-align: left;
}

#leaderboard li > div:last-child {
    text-align: right;
}


#leaderboard li > #nomDansLeaderboard {
    flex: 0 0 40%;
}

#leaderboard li > #nomTournoiDansLeaderboard {
    flex: 0 0 30%;
}

#nomTournoiDansLeaderboard{
    font-size: 20px;
}

#leaderboard li > div {
    flex: 1;
    text-align: center;
}

#leaderboard li > div:first-child {
    text-align: left;
}

#leaderboard li > div:last-child {
    text-align: right;
}


#leaderboard li > #nomDansLeaderboard {
    flex: 0 0 40%;
}

#leaderboard li > #nomTournoiDansLeaderboard {
    flex: 0 0 30%;
}

#nomTournoiDansLeaderboard{
    font-size: 20px;
}

#leaderboard li:hover {
    background-color: rgb(197, 197, 197);
    bottom: 5px;

    box-shadow:
        0px 10px 5px rgb(0, 0, 0, 0.2),
        inset 0px 5px 5px rgba(255, 255, 255, 0.1);
}

#leaderboard li:nth-child(1) {
   padding-bottom: 20px;
   padding-top: 20px;
   font-size: 45px;
    color: rgb(240, 47, 155);
}
#leaderboard li:nth-child(2) {
    padding-bottom: 20px;
    padding-top: 20px;
    font-size: 35px;
}
#leaderboard li:nth-child(3) {
    padding-bottom: 20px;
    padding-top: 20px;
    font-size: 25px;
}


h2,
h3,
h4,
h5,
h6 {
    color: white;
    text-align: center;
}

#c_vide{
    color: rgb(10, 56, 101);
}

#c_vide{
    color: rgb(10, 56, 101);
}

select,
select::picker(select) {
    appearance: base-select;
    padding: 0.5rem;
    margin-top: 20px;
    border: 2px solid white;
    border-radius: 10px;

    color: black;
}

#header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: none;
    width: 50em;
    max-width: 90%;
    padding: 30px;
    backdrop-filter: blur(20px);
    background-color: rgb(10, 56, 101);
    border: solid whitesmoke 8px;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);

    z-index: 1000;
}

#nomNouveauTournoi {
    border-radius: 5px;
    padding: 0.5em;
    background-color: rgb(76, 76, 76);
    color: white;
}
#nomNouveauTournoi::placeholder {
    color: white;
    opacity: 0.5;
}

#submit-button {
    border-radius: 5px;
    padding: 0.5em;
    background-color: rgb(240, 47, 155);
    color: white;
    border: 1px solid white;
    transition: all 0.5s;
}
#submit-button:hover {
    background-color: rgb(10, 56, 101);
    cursor: pointer;
}

#fermerTournois {
    height: 1.8em;
    cursor: pointer;
    fill: white;
}

#overlay ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 20px 0 0 0;
    max-height: 50vh;
    overflow-y: auto;
}

#listeTournois li {
    color: white;
    font-size: 25px;
    padding: 15px;
    background-color: rgb(180, 180, 180);
    border-radius: 5px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4);
}

.score-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.tournoi-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.btn-supprimer {
    height: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-supprimer:hover {
    transform: scale(1.2);
}

.btn-renommer {
    background: none;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-renommer:hover {
    transform: scale(1.2);
}

.tournoi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* A partir de là c'est poubelle un peu, à refaire */

#manage-tournaments, #change-password {
    border: 2px solid #ffffff;
    font-weight: bold;
    font-size: medium;
}

#connexion {
  text-decoration: none;
  position: fixed;
  top: 20px;
  right: 20px;

  width: 120px;
  height: 60px;
  font-size: 25px;

  display: flex;
  align-items: center;    
  justify-content: center; 

  background-color: rgb(10, 56, 101);
  color: #FFFFFF;
  font-weight: bold;

  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#connexion:hover {
  background-color: rgb(240, 47, 155);
  color: white;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  transform: translateY(-2px); 
}

#boxConnexion {
  position: fixed;     
  top: 50%;        
  left: 50%;   
  transform: translate(-50%, -50%);
  padding: 30px 40px;
  border-radius: 10px;
  width: 300px;
  z-index: 1000;
  text-align: center;
  font-family: Arial, sans-serif;
  background-color: whitesmoke;
  border: solid 5px rgba(240, 47, 155);
}

#boxConnexion h2 {
    margin-bottom: 20px;
    color: rgb(10, 56, 101);
}

#boxConnexion input[type="text"],
#boxConnexion input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

#boxConnexion button {
    width: 100%;
    padding: 10px 15px;
    background-color: rgb(240, 47, 155);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#boxConnexion button:hover {
    background-color: rgb(10, 56, 101);
}

#menuToggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background-color: rgb(240, 47, 155);
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
}

#sideMenu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    background-color: rgb(76, 76, 76);
    padding: 100px 20px 20px 20px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;

    transform: translateX(-100%);
    transition: transform 0.3s ease;

    z-index: 1000;
}

#sideMenu.open {
    transform: translateX(0);
}

#sideMenu #connexion {
    position: static;
    width: 100%;
    line-height: normal;
}

#sideMenu select {
    box-sizing: border-box;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.title-container h1 {
    font-size: 50px;
    color: rgb(10, 56, 101);
    margin: 0;
}

.title-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

@keyframes nouveauScore {
    0%   { background-color: transparent; box-shadow: 0px 5px 5px rgba(0,0,0,0.2); }
    25%  { background-color: gold; box-shadow: 0 0 30px goldenrod; }
    50%  { background-color: rgba(255, 215, 0, 0.5); box-shadow: 0 0 10px goldenrod; }
    75%  { background-color: gold; box-shadow: 0 0 30px goldenrod; }
    100% { background-color: transparent; box-shadow: 0px 5px 5px rgba(0,0,0,0.2); }
}

.nouvellement_ajoute {
    animation: nouveauScore 3s ease-in-out;
}

