body {
  font-family: 'Ubuntu Mono', monospace;
  margin: 0;
  padding: 0;
  height: var(--body-height);
  width: var(--body-width);
  display: flex;
  justify-content: center;
  align-items: center;
}

.Main {
  width: 100%;
  height: 100%;
  position: relative;
  background: white;
}

.BeachVolley1 {
  width: 100%;
  height: 100%;
  position: absolute;
  background-size: cover;
  background-position: center;
  background-image: url('background-image.jpg');
}

.VersionNumber {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  font-size: 12px;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 400;
}

.QRCodeButton {
  width: 10vw;
  height: 10vw;
  position: absolute;
  top: 3%;
  right: 3%;
  cursor: pointer;
}

.RulesButton {
  width: 10vw;
  height: 10vw;
  position: absolute;
  top: 3%;
  left: 3%;
  cursor: pointer;
}

.rules-container {
  position: absolute;
  width: 80vw;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 10px;
  text-align: center;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  font-size: 80%;
  color: #000000;
}

.QRCodeOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.QRCodeOverlay img {
  max-width: 80%;
  max-height: 80%;
}

.Menu {
  width: 80%; /*85% avant*/
  height: 60%; /*40% avant*/
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
}

.popup-container {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 80%;
  height: 50%;
}

.MemeRoulette {
  width: 100%;
  height: auto;
  position: fixed;
  top: 2%;
  text-align: center;
  vertical-align: top;
  color: #EB3B4B;
  font-size: 200%;
  font-family: 'Press Start 2P', cursive;
  font-weight: 700;
  word-wrap: break-word;
}

.waviy {
  position: relative;
  text-align: center;
  margin-top: 3em;
  width: 100%;
  height: auto;
}
.waviy span {
  position: relative;
  display: inline-block;
  font-size: 120%;
  color: #EB3B4B;
  font-family: 'Press Start 2P', cursive;
  font-weight: 700;
  word-wrap: break-word;
  animation: flip 2s infinite;
  animation-delay: calc(.2s * var(--i))
}
@keyframes flip {
  0%,80% {
    transform: rotateY(360deg) 
  }
}

.ExitButton {
  position: absolute;
  top: 3%;
  right: 3%;
  cursor: pointer;
}

.ExitIcon {
  width: 7vw;
  height: 7vw;
  filter: invert(100%);
}

.UsernameContainer {
  width: 100%;
  height: auto;
  position: absolute;
  top: 50%;
  transform: translateY(2%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.UsernameInput,
.GamePINInput {
  width: 100%;
  height: 45px;
  background: #EFEFEF;
  border: none;
  border-radius: 4em;
  font-size: 20px;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  outline: none;
  margin: 0 auto;
}

.CreateGame,
.JoinGame {
  width: 100%;
  height: 41px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.CreateGameButton,
.JoinGameButton{
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #EB3B4B;
  border: none;
  border-radius: 4em;
  cursor:pointer;
  user-select:none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 0.4s;
  -webkit-transition-duration: 0.4s; /* Safari */
}

.CreateGameButton:after,
.JoinGameButton:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s;
  box-shadow: 0 0 10px 40px white;
}

.CreateGameButton:active:after,
.JoinGameButton:active:after {
  box-shadow: 0 0 0 0 white;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  opacity: 1;
  transition: 0s;
}

.CreateGameLabel,
.JoinGameLabel {
  color: white;
  font-size: 22px;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  word-wrap: break-word;
}

.GamePin {
  width: 100%;
  text-align: center;
  vertical-align: top;
  color: white;
  font-size: 4vh;
  font-family: 'Press Start 2P', cursive;
  font-weight: 400;
  word-wrap: break-word;
  margin-bottom: 20px;
}

.PinNumber {
  width: 100%;
  text-align: center;
  vertical-align: top;
  color: #EB3B4B;
  font-size: 5vh;
  font-family: 'Press Start 2P', cursive;
  font-weight: 400;
  word-wrap: break-word;
}

.PlayerList {
  width: 80vw;
  height: 60vh;
  display: flex;
  justify-content: center;
  margin-top: 8vh;
}

.PlayerList table {
  width: 60vw;
  height: 30vh;
  border-collapse: collapse;
  text-align: center;
  color: #EB3B4B;
  font-size: 8vw;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
}

.PlayerList td {
  padding: 3vw;
}

.StartGame {
  width: 100%;
  height: 41px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: absolute;
  top: 70vh;
}

.StartGameButton {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #EB3B4B;
  border: none;
  border-radius: 4em;
  cursor:pointer;
  user-select:none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 0.4s;
  -webkit-transition-duration: 0.4s; /* Safari */
}

.StartGameButton:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s;
  box-shadow: 0 0 10px 40px white;
}

.StartGameButton:active:after {
  box-shadow: 0 0 0 0 white;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  opacity: 1;
  transition: 0s;
}

.StartGameLabel {
  color: white;
  font-size: 22px;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  word-wrap: break-word;
}

.AddTimer {
  width: 100%;
  height: 41px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: absolute;
  top: 70vh;
  margin-top: 4em;
}

.AddTimerButton {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #EB3B4B;
  border: none;
  border-radius: 4em;
  cursor:pointer;
  user-select:none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 0.4s;
  -webkit-transition-duration: 0.4s; /* Safari */
}

.AddTimerButton:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s;
  box-shadow: 0 0 10px 40px white;
}

.AddTimerButton:active:after {
  box-shadow: 0 0 0 0 white;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  opacity: 1;
  transition: 0s;
}

.AddTimerLabel {
  color: white;
  font-size: 22px;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  word-wrap: break-word;
}

/* Styles pour la fenêtre modale */
.modal {
  display: block;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  position: absolute;
  width: 80vw;
  height: 28vh;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 30px;
  text-align: center;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  font-size: 80%;
  color: #000000;
}

.timerSelect {
  width: 80%;
  height: 45px;
  font-size: 18px;
  text-align: center;
  border-radius: 30px;
}

.popupConfirm,
.popupRemove {
  width: 80%;
  height: 41px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
  margin-top: 2vh;
}

.popupConfirmButton,
.popupRemoveButton {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #EB3B4B;
  border: none;
  border-radius: 4em;
  cursor:pointer;
  user-select:none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 0.4s;
  -webkit-transition-duration: 0.4s; /* Safari */
}

.popupConfirmButton:after,
.popupRemoveButton:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s;
  box-shadow: 0 0 10px 40px white;
}

.popupConfirmButton:active:after,
.popupRemoveButton:active:after {
  box-shadow: 0 0 0 0 white;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  opacity: 1;
  transition: 0s;
}
 
.popupConfirmLabel,
.popupRemoveLabel {
  color: white;
  font-size: 22px;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  word-wrap: break-word;
}

.RankingTable {
  width: 100%;
  border-collapse:separate; 
  border-spacing: 0 1em;
  text-align: center;
  color: black;
  font-size: 20px;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
}

.RankingTable td {
  padding: 0.8em;
  background-color: white;
}

.RankingTable tr td:first-child {
  border-bottom-left-radius: 1em;
  border-top-left-radius: 1em;
}

.RankingTable tr td:last-child {
  border-bottom-right-radius: 1em;
  border-top-right-radius: 1em;
}

.RandomImageContainer {
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  vertical-align: top;
  position: static;
  display: flex;
}

.RandomImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.CountdownContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.Countdown {
  font-size: 10vw;
  font-family: 'Press Start 2P', cursive;
  color: #EB3B4B;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


.PictureInput {
  width: 100%;
  height: auto;
  position: static;
  flex-direction: column;
  align-items: center;
}

.PictureInputField {
  width: 100%;
  height: 45px;
  background: #EFEFEF;
  border: none;
  border-radius: 4em;
  font-size: 20px;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 400;
  outline: none;
  margin: 0 auto;
  position: absolute;
  top: 60vh;
}

.PictureSubmit {
  width: 100%;
  height: 41px;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 70vh;
}

.PictureSubmitButton {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #EB3B4B;
  border: none;
  border-radius: 4em;
  cursor:pointer;
  user-select:none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 0.4s;
  -webkit-transition-duration: 0.4s; /* Safari */
}

.PictureSubmitButton:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s;
  box-shadow: 0 0 10px 40px white;
}

.PictureSubmitButton:active:after {
  box-shadow: 0 0 0 0 white;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  opacity: 1;
  transition: 0s;
}

.PictureSubmitLabel {
  color: white;
  font-size: 22px;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  word-wrap: break-word;
}

.CaptionList {
  width: 100%;
  height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.CaptionItem {
  width: 100%;
  height: auto;
  background-color: #EFEFEF;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 400;
  color: black;
  cursor: pointer;
  position: relative;
  padding: 3%;
  text-align: center; /* Centrage du texte */
}

.LoadingAnimation {
  width: 100%;
  height: 60%;
  margin-top: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Next {
  width: 100%;
  height: 41px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: absolute;
  top: 70vh;
}

.NextButton {
  width: 60%;
  height: 100%;
  position: relative;
  background-color: #EB3B4B;
  border: none;
  border-radius: 4em;
  cursor:pointer;
  user-select:none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 0.4s;
  -webkit-transition-duration: 0.4s; /* Safari */
}

.NextButton:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s;
  box-shadow: 0 0 10px 40px white;
}

.NextButton:active:after {
  box-shadow: 0 0 0 0 white;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  opacity: 1;
  transition: 0s;
}

.NextLabel {
  color: white;
  font-size: 22px;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  word-wrap: break-word;
}
/*
.PlayAgain {
  width: 100%;
  height: 41px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.PlayAgainButton {
  width: 60%;
  height: 100%;
  position: relative;
  background-color: #EB3B4B;
  border: none;
  border-radius: 4em;
  cursor:pointer;
  user-select:none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 0.4s;
  -webkit-transition-duration: 0.4s;
}

.PlayAgainButton:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s;
  box-shadow: 0 0 10px 40px white;
}

.PlayAgainButton:active:after {
  box-shadow: 0 0 0 0 white;
  position: absolute;
  border-radius: 4em;
  left: 0;
  top:0;
  opacity: 1;
  transition: 0s;
}

.PlayAgainLabel {
  color: white;
  font-size: 22px;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  word-wrap: break-word;
}
*/