*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

@font-face { font-family: CL; src: url('ComicLemon.otf'); }
@font-face { font-family: DO; src: url('DarumadropOne-Regular.ttf'); }

/* Ne pas séléctionner les textes */
*:not(#my-node *){
  user-select: none;
}
#my-node *{
  user-select:text;
}

/* div, section{
  border: 4px solid black;
} */
#lobby{
  background: url("/fond.png") no-repeat;
  position: fixed;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background-size:cover;
  display: flex;
  flex-direction: row;
}

/* code dégueulasse */

#center-lobby{
  justify-content: center;
  /* width: 75vw; */
  margin-left: 7vw;
  position: relative;
}

#player-cont-lobby{
  position: relative;
  top: 0px;
  display: flexbox;
  width: 350px;
  max-height: 100vh;
  min-width: 350px;
  /* border-right: solid black 10px; */
  padding-left: 15px;
  padding-right: 10px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.modal-lobby {transition: top 0.5s ease-out;
  top: 0vh;}

#titre{
  animation-name: titleanim;
  animation-duration: 4s;
  transition: linear all;
  animation-iteration-count: infinite;
}

h1{
  font-family: DO;
  color: white;
  font-size: 84pt;
  margin-top: 30px;
  text-align: center;
}

#sous-titre{
  font-family: DO;
  color: white;
  font-size: 74pt;
  margin-top: -50px;
  margin-bottom: 30px;
  text-align: center;
}

@keyframes titleanim {
  0% {
    transform: rotate(7deg) scale(1.1);
  }

  25%{
    transform: scale(1);
  }
  
  50% {
    transform: rotate(-7deg) scale(1.1);
  }

  75%{
    transform: scale(1);
  }

  100% {
    transform: rotate(7deg) scale(1.1);
  }
}

#imagecontainer {
    background: url("/fond.png") no-repeat;
    width: 100vw;
    height: 100vh;
    background-size:cover;
    position: fixed;
    z-index: -199;
  }

#player-cont{
    float: left;
    display: flexbox;
    /* width: 18vw; */
    max-height: 100vh;
    /* border-right: solid black 10px; */
    padding-left: 15px;
    overflow-y: scroll;
    overflow-x: hidden;
    position: fixed;
    padding-right: 10px;
}

#selection{
  /* position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9); */
  justify-content: center;
}

#selection-titre{
  font-size: 70px;
  text-align: center;
  margin-left: 0px ;
  /* margin-left: 425px;
  margin-bottom: 15px; */
}

h2{
    font-family: CL;
    color: rgb(255, 255, 255);
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 30pt;
}

.players{
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    display: flex;
    padding: 10px;
    margin-bottom: 15px;
    filter: drop-shadow(2px 5px 4px rgba(0, 0, 0, 0.329));
    min-width: 300px;
    max-width: 300px;
    
}

.player-info{
    margin-top: -10px;
    font-family: DO;
    color: rgb(41, 41, 41);
}

.name{
    font-size: 26pt;
    margin-bottom: 0px;
}

.score{
    font-size: 15pt;
}

.player-pp{
    width: 75px;
    max-width: 75px;
    max-height: 75px;
    margin-right: 20px;
    margin-left: 10px;
    border-radius: 50px;
}

#message-cont{
    float: left;
    margin-left: 550px;
    margin-top: 80px;
    /* width: 80vw;   */
}

.message{
    border-radius: 10px;
    display: flex;
    padding: 10px 25px 15px 25px;
    margin-bottom: 10px;

    /* left: 300px;
    top: 80px;
    position: relative; */

    background-color: rgb(255, 255, 255);
    max-width: 850px;

    /* margin-top: 80px;
    margin-left: 300px;
    margin-bottom: 30px; */
}

#sous-msg{
  display: flex;
}

.btn-ctx-dl{
  background-color: #00BFA6;
  font-family: DO;
  font-size: 20px;
  color: white;
  padding: 0px 10px 2px 10px;
  border: 2px solid #00BFA6;
  border-radius: 10px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .4s;
  width: auto;
  /* margin-top: 5px;
  margin-right: 149px; */
  float: right;
  /* margin-left: 768px; */
}
.btn-ctx-dl:hover{
  cursor: pointer;
  border: 2px dashed white;
}

#myImg{display: none;}

.message-info{
    margin-top: 0px;
    font-size: 20px;
    font-family: DO;
    color: rgb(41, 41, 41);
}

.ligne1-info{
    display: flex;
}

.random-name{
    font-size: 32px;
    margin-bottom: 10px;
    color: rgb(8, 105, 129);
}

.random-date{
    /* color: rgb(51, 133, 133)8, 105, 129); */
    margin-top: 16px;
    margin-left: 5px;
}

.random-msg{
    font-size: 22px;
    margin-bottom: 7px;
}

.random-img{
    display: block;
    height: 330px;
    width: 100%;

    object-fit: cover;
    object-position: center;

    /* max-height: 100%; */
    border-radius: 10px;
    margin-bottom: 10px;
    margin-top: 15px;
}

.random-pp{
    max-height: 100px;
    border-radius: 50%;
    width: 100px;
    margin-top: 5px;
    margin-right: 20px;
}

.suspects{
    display: flex;
    margin-left: -60px;
    margin-right: -50px;
    /* margin-bottom: 10px; */
    width: 1010px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;

    transform: scale(0.9);
}

.suspects-lobby{
    display: flex;
    margin-left: -60px;
    margin-right: -50px;
    /* margin-bottom: 10px; */
    width: 1010px;
    flex-wrap: wrap;
    justify-content: center;
    transform: scale(0.9);
}

.sus{
    margin-left: 15px;
    margin-right: 15px;
    transition-duration: 0.3s;
}

.sus:hover{
    cursor: pointer;
    transform: scale(1.1);
}
.susvote{
  margin-left: 15px;
  margin-right: 15px;
  transition-duration: 0.3s;
}

.susvote:hover{
  cursor: pointer;
  transform: scale(1.1);
}
.margint{
  margin-top: 10px;
}

.inutilisable {
  filter: grayscale(0.8);
  opacity: 0.5;
  cursor: not-allowed !important;
}

.img-sus{
    width: 120px;
    border-radius: 50%;
    border: solid 5px white;
}
.name-sus{
    text-align: center;
    margin-top: -22px;
    font-size: 24px;
    font-family: CL;
    color: white;
    -webkit-text-stroke: 1px rgb(138, 212, 255);
}

h4{
    /* margin-left: 185px; */
    font-family: DO;
    color: white;
    font-size: 46px;
    text-align: center;
    /* margin-top: 50px; */
    margin-bottom: 20px;
}


/* -------- SCROLL JOUEURS -------- */

  .force-overflow {
    min-height: 450px;
  }
  
  .scrollbar-primary::-webkit-scrollbar {
    width: 12px;
    background-color: rgb(138, 212, 255);
    background-color: #f5f5f500;
  }
  
  .scrollbar-primary::-webkit-scrollbar-thumb {
    border-radius: 10px;
    /* -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1); */
    background-color: #ffffff;
    background-color: #f5f5f500;
  }
  
  .scrollbar-primary {
    scrollbar-color: #ffffff #ffffff;
  }
  
  .scrollbar-secondary {
    scrollbar-color: #aa66cc #F5F5F5;
  }

  /* -------- CLOCK SECONDES EN PARTIE -------- */

  #clock {
    max-width: 30px;
    min-width: 30px;
    height: 20px;
    margin-right: 35px;
    margin-left: 10px;
    text-align: center;
    justify-content: center;
  }
  
  #seconds {
    text-align: center;
    display: block;
    width: 100%;
    margin-top: -5px;
    /* padding-top: 60px; */
    text-align: center;
    font-size: 40px;
    font-family: CL;
    color: white;
  }

  /* -------------- */
  
  .inputContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 240px;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.4);
  }
  
  #inputField {
    border: 2px solid white;
    background-color: transparent;
    border-radius: 50px;
    padding-bottom: 4px;
    padding-left: 15px;
    padding-right: 15px;
    color: black;
    /* font-weight: 500; */
    font-size: 18px;
    outline: none;
    caret-color: rgb(155, 78, 255);
    transition-duration: .3s;
    font-family: DO;
  }
  
  .userIcon {
    position: absolute;
    fill: rgb(255, 255, 255);
    width: 12px;
    top: -23px;
    left: -15px;
    opacity: 0;
    transition: .2s linear;
  }
  
  .usernameLabel {
    position: absolute;
    top: -25px;
    left: 5px;
    color: white;
    font-size: 14px;
    font-weight: 400;
    font-family: DO;
    overflow: hidden;
    transition: .2s linear;
    opacity: 0;
  }
  
  #inputField:focus ~ .usernameLabel,
  #inputField:valid ~ .usernameLabel {
    transform: translateX(20px);
    opacity: 1;
  }
  
  #inputField:focus ~ .userIcon,
  #inputField:valid ~ .userIcon {
    transform: translateX(20px);
    opacity: 1;
  }
  
  #inputField:focus,
  #inputField:valid {
    background-color: #ddd;
    transition-duration: .3s;
  }

  /* -------PRET BOUTON------ */
  
  .btn {
    /* margin-left: 300px; */
    background-color: #00BFA6;
    padding: 0px 35px 6px 35px;
    color: #fff;
    font-family: DO;
    font-size: 40px;
    cursor: pointer;
    border-radius: 10px;
    border: 2px dashed #00BFA6;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: .4s;
    position: absolute;
    bottom: 40px;
    width: 300px;
    left: 50%;
    transform: translate(-50%, -50%);
   }
   
   .btn span:last-child {
    display: none;
   }
   
   .btn:hover {
    transition: .4s;
    border: 2px dashed #00BFA6;
    background-color: #fff;
    color: #00BFA6;
   }
   
   .btn:active {
    background-color: #87dbd0;
   }
   
   /* ------------------- */

   #myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    /* display: none; */
  }
  
  #myImg:hover {opacity: 0.7;}
  
  /* The Modal (background) */
  .modal {
    overflow: hidden;
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(255, 255, 255, 0.219); /* Fallback color */
    background-color: rgba(255, 255, 255, 0.219); /* Black w/ opacity */
  }
  
  /* Modal Content (image) */
  /* .modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-height: 80%;
    border: solid 5px white;
    border-radius: 10px;
  } */
  .modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-height: 80%;
    max-width: 80%;
    border: solid 5px white;
    border-radius: 10px;
    background-color: white;
  }
  
  /* Caption of Modal Image */
  #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }
  
  /* Add Animation */
  .modal-content, #caption {  
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
  }
  
  @keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
  }
  
  /* The Close Button */
  .close {
    position: absolute;
    width: 100vw;
    height: 100vh;
    /* top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s; */
  }
  
  /* .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  } */
  
  /* 100% Image Width on Smaller Screens */
  @media only screen and (max-width: 700px){
    .modal-content {
      width: 100%;
    }
  }


  /* -----------PILLAGE CHRONO------------ */

.chronolancement {
    /* height: 100vh; */
    background-color: #479feb25;
    font-family: "Montserrat", sans-serif;
    -webkit-animation: 3s 0.875s cubic-bezier(0.9, 0, 0.1, 1) forwards background_color;
            animation: 3s 0.875s cubic-bezier(0.9, 0, 0.1, 1) forwards background_color;
  }

  #compteurl{
    width: 100vw;
    height: 100vh;
    background: url(./fond.png);
    position: fixed;
    top: 0px;
    left: 0px;
    background-size:cover;
    z-index: 99999;
    display: none;
    animation: fadeOut 0.5s linear 3.5s;
  }

  @keyframes fadeOut {
    0% {opacity: 100;}
    100% {opacity: 0;}
  }

  @keyframes background_color {
    33% {
      background-color: #479feb50;
    }
    67% {
      background-color: #7347eb50;
    }
    100% {
      background-color: #eb47e050;
    }
  }

  .compteur:before {
    content: "3";
    -webkit-animation: 3s 1s forwards timer_countdown, 1s 0.875s 3 timer_beat;
            animation: 3s 1s forwards timer_countdown, 1s 0.875s 3 timer_beat;
  }
  
  .compteur {
    /* width: 600px;
    height: 600px; */
    height: 100vh;
    width: 100vw;
    box-shadow: 0 0 0 1.875vmin, inset 3.75vmin 3.75vmin 7.5vmin rgba(0, 0, 0, 0.125), 3.75vmin 3.75vmin 7.5vmin rgba(0, 0, 0, 0.125);
    font-size: 37.5vmin;
    font-family: CL;
    text-shadow: 3.75vmin 3.75vmin 7.5vmin rgba(0, 0, 0, 0.125);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    /* border-radius: 50%; */
    font-weight: 700;
  }

  /* @media (min-width: 600px) {
    div {
      width: 50vmin;
      height: 50vmin;
      box-shadow: 0 0 0 1.25vmin, inset 2.5vmin 2.5vmin 5vmin rgba(0, 0, 0, 0.125), 2.5vmin 2.5vmin 5vmin rgba(0, 0, 0, 0.125);
      font-size: 25vmin;
      text-shadow: 2.5vmin 2.5vmin 5vmin rgba(0, 0, 0, 0.125);
    }
  } */
  
  @keyframes timer_beat {
    40%, 80% {
      transform: none;
    }
    50% {
      transform: scale(1.125);
    }
  }
  
  @keyframes timer_countdown {
    33% {
      content: "2";
    }
    67% {
      content: "1";
    }
    100% {
      content: "0";
    }
  }
  .compteur:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -100;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.125);
    -webkit-animation: 3s 1s linear forwards timer_indicator;
            animation: 3s 1s linear forwards timer_indicator;
  }
  @-webkit-keyframes timer_indicator {
    100% {
      transform: translateY(100%);
    }
  }
  @keyframes timer_indicator {
    100% {
      transform: translateY(100%);
    }
  }

  /* ------------CLOCK EN PARTIE (BARRE)------------- */

  #timern {
    display: none;
    -moz-animation: move-timer linear forwards 40s;
    -webkit-animation: move-timer linear forwards 40s;
    animation: move-timer linear forwards 40s;
  }
  
  .timer-container {
    background-color: #ffffff;
    height: 12px;
    padding: 3px;
    margin-top: 8px;
    width: 100%;
    margin-right: 20px;
    border-radius: 5px;
  }
  .timer-container span {
    float: left;
    border-radius: 4px;
    display: inline-block;
    height: 100%;
    background-color: #00bfa6;
    background-size: 15px 15px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.18) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
  }
  
  @-moz-keyframes animate-stripes {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: -100px 0;
    }
  }
  @-webkit-keyframes animate-stripes {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: -100px 0;
    }
  }
  @keyframes animate-stripes {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: -100px 0;
    }
  }
  #timern {
    -moz-animation: move-timer linear forwards 40s, animate-stripes 5s linear forwards;
    -webkit-animation: move-timer linear forwards 40s, animate-stripes 5s linear forwards;
    animation: move-timer linear forwards 40s, animate-stripes 5s linear forwards;
  }
  
  @-moz-keyframes move-timer {
    0% {
      width: 0;
    }
    100% {
      width: 100%;
    }
  }
  @-webkit-keyframes move-timer {
    0% {
      width: 0;
    }
    100% {
      width: 100%;
    }
  }
  @keyframes move-timer {
    0% {
      width: 0;
    }
    100% {
      width: 100%;
    }
  }




  /* Elio */

  #modal-reveal{
    position: fixed;
    top:0;
    left:0;
    height: 100vh;
    width: 100vw;
    z-index: 3;
    animation: blurbg 2s;
    animation-fill-mode: forwards;
    
    /* display: flex; */
    justify-content: center;
    align-items: center;
    display: none;
  }
  #modal-reveal img{
    width: 1000px;
    animation: pop 2s;
    animation-fill-mode: forwards;
   }
@keyframes pop {
  0%{
    opacity: 0;
    transform: scale(200%,200%);
  }
  15%{
    opacity: 1;
    transform: scale(100%,100%);
  }
  85%{
    opacity: 1;
    transform: scale(100%,100%);
  }
  100%{
    opacity: 0;
    transform: scale(0%,0%);
  }
}
@keyframes blurbg {
  0%{
    backdrop-filter: none;
  }
  15%{
    backdrop-filter: blur(10px);
  }
  85%{
    backdrop-filter: blur(10px);
  }
  100%{
    backdrop-filter: none;
  }
}
#btnsuivant{
  display:none;
}
.players{
  position: relative
}
.a-voté{
  position: absolute;
  top: -5px;
  right:-5px;
  background-color:#ff7979;
  border-radius: 5px;
  color: #fff;
  font-family: DO;
  padding: 2px 5px 5px 5px;
  display: none;
}

/* Victoire */

#container-victory-modal{
  display: none;
  z-index: 999999;
  position: fixed;
  width: 100%;
  height: 100%;
  background: url("./fond.png") no-repeat;
  background-size:cover;
  overflow-y: scroll;
}
#victory{
  position: relative;
  height: 100%;
}

#victory .scorefinal{
  margin-top: 0px;
  padding-top: 50px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 50pt;
}


#container-vic{
  position: absolute;
  top: 630px;
  transform: translate(-50%, 0);
  left: 50%;
  margin-bottom: 40px;
}

.player-vic{
  font-family: DO;
  display: flex;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
  filter: drop-shadow(2px 5px 4px rgba(0, 0, 0, 0.329));
  min-width: 600px;
  max-width: 600px;
  color: rgb(41, 41, 41);
}

#podium{
  display: flex;
  flex-direction: row;
  height: 500px;
  position: absolute;
  transform: translate(-50%, 0);
  left: 50%; 
}


.player-info-vic{
  display: flex;
}

.placement{
  margin: -10px 15px 0px 15px;
  font-size: 56px;
  font-family: DO;
  width: 100px;
  max-width: 100px;
  overflow: hidden;
  color: rgb(41, 41, 41);
}

.nomjoueurvic{
  display: flex;
  text-align: center;
  width: 370px;
  max-width: 370px;
  overflow: hidden;
}

.name-vic{
  font-size: 56px;
  margin: -10px 5px 0px 7px;
}

.score-vic{
  font-size: 56px;
  margin: -10px 15px 0px 15px;
  width: 70px;
  text-align: center;
}




.premier{ 
  width: 240px;
  margin-top: 70px;
  position: relative;
  /* */
}

.winnercrown{
  position: absolute;
top: -80px;
right:-25px;
  transform: rotate(25deg);
  /* left: 390px;
  top: -30px; */
  width: 150px;
}

.podium-pp{
  width: 200px;
  height: 200px;
  max-width: 200px;
  max-height: 200px;
  border-radius: 160px;
  border: solid 6px white;
}

#name-podium{
  margin-top: -40px;
  font-family: CL;
  text-align: center;
  font-size: 50px;
  color:  rgb(138, 212, 255);
  -webkit-text-stroke: white 2px;
}

.podium-score{
  margin-top: -5px;
  text-align: center;
  font-family: DO;
  font-size: 30px;
  color:  rgb(138, 212, 255);
  -webkit-text-stroke: white 2px;
}

.secscore{
  margin-top: -10px;
  font-size: 40px;
}

.deuxieme{
  margin-top: 200px;
  transform: scale(0.8);
}

.troisieme{
  margin-top: 200px;
  transform: scale(0.8);
}
#relancerGame{
  position: absolute;
  right: 50px;
  bottom: 50px;
  left: initial;
  transform: translate(0,0);
}
#partieEnCours{
  display: none;
  z-index: 999999;
  position: fixed;
  width: 100%;
  height: 100%;
  background: url("./fond.png") no-repeat;
  background-size:cover;
}
#partieEnCours h2{
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
}
.ping-discord{
  background-color: #e6e8fd;
  color: #5879f4;
  padding: 0 5px;
  border-radius: 5px;
}
#btn-ctx{
  display: none;
  margin-right: 10px;
}