
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap");

body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  overflow-y: hidden;
}


.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}


.background {
  animation: gradientAnimation 5s ease infinite;
  background: linear-gradient(270deg, #ad1fff, #c560ff);
  background-size: 400% 400%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.background::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  z-index: -2;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


.lp {
  align-self: center;
  transition: 0.2s scale;
  width: 80%;
  text-align: center;
  margin-top: 63px;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.lp:hover {
  scale: 1.02;
}

.lpplaat {
  width: 500px;
  animation: lpdraai 3s linear infinite;
  align-self: center;
  cursor: grab;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}


.header {
  font-size: 3em;
  color: white;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin-top: 1%;
}

.header .logo {
  width: 424px;

  max-width: 100%;
}

.logo {
  transition: 0.2s scale;
}

.logo:hover {
  scale: 1.06;
}

@keyframes lpdraai {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
    .header {
      font-size: 2em;
    }

    .lpplaat {
      width: 500px;
      -ms-user-select: none;
      -webkit-user-select: none;
      user-select: none;
    }

    .lobbyselector {
      width: 95%;
      height: auto;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border-radius: 20px;
      padding: 20px;
      box-sizing: border-box;
    }
}

@media (max-width: 1505px) {
  .arrow {
    display: none;
  }
}


@media (max-width: 480px) {
  .header {
    font-size: 1.5em;
  }

  .lpplaat {
    width: 500px;
  }

  .header .logo {
    width: 80%;
  }
}

@keyframes slideInfinite {

  0%,
  100% {
    transform: translateX(0%);
  }

  50% {
    transform: translateX(-100%);
  }
}


.header .logo {
  width: 424px;
  max-width: 100%;
  animation: slideInfinite 10s linear infinite;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}


.arrow {
  width: 120px;
  position: absolute;
  top: 39%;
  right: 31%;
  filter: invert(100%);
  opacity: 75%;
}

.custom-heartbeat {
  animation: customHeartBeat 2s ease-in-out;
}

@keyframes customHeartBeat {

  0%,
  100% {
    transform: scale(1) rotate(-30deg);
  }

  14%,
  80% {
    transform: scale(1.3) rotate(-30deg);
  }
}


@media (max-width: 768px) {
  .header {
    font-size: 1.5em;
  }

  .header .logo {
    width: 80%;
    animation: none;
    margin-right: 18vw;
    transition: 0.2s scale;
  }

  .header .logo:hover {
    scale: 1.02;
  }

  .lpplaat {
    width: 95%;
    max-width: 300px;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .logo {
    width: 70%;
    max-width: 200px;
  }

  .arrow {
    display: none;
  }
}


.lobbyselector {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 75%;
  transform-origin: center;
  border-radius: 30px;
  background-color: #f0f0f0;
  color: #333; 
  transform: translate(-50%, -50%) !important;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: .2s all;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lobbyselector::-webkit-scrollbar {
  display: none;
}

.hide {
  display: none;
}

.lobbytitle {
  margin: 20px;
  color: #ad1fff;
}

@keyframes zoominup {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes zoomoutdown {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.lobbyselector .close-button {
  position: absolute;
  color: #333;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease-in, color 0.2s ease-in;
  transform: scale(1);
  margin: 12px;
}

.lobbyselector .close-button:hover {
  transform: scale(1.15);
  color: #ff5555;
  font-weight: bolder;
}

.bottom-links {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 16px;
  z-index: 1000;
}

.bottom-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.bottom-links a:hover {
  color: #ffc107;
}

.bottom-links span {
  color: white;
  margin: 0 5px;
}


.button-39 {
  margin: 12px;
  background-color: #ad1fff; 
  border: 2px solid #c560ff;
  border-radius: .5rem;
  box-sizing: border-box;
  color: #ffffff;
  font-family: "Inter var",ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  padding: .75rem 1rem;
  text-align: center;
  text-decoration: none #D1D5DB solid;
  text-decoration-thickness: auto;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  position: absolute;
  top: 10px;
  right: 70px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease-in, color 0.2s ease-in;
  transform: scale(1);
}

.button-39:hover {
  background-color: #c560ff;
  border-color: #ad1fff;
}

.button-39:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.button-39:focus-visible {
  box-shadow: none;
}

.lobbyselector .lobbytitle,
.lobbyselector h1,
.lobbyselector p,
.lobbyselector h3 {
  text-align: center;
  font-size: 28px;
  color: #ad1fff;
}

.lobbyselector h1,
.lobbyselector h3 {
  padding-top: 8px;
}

.cssbuttons-io-button {
  background: #a370f0;
  color: white;
  font-family: inherit;
  padding: 0.35em;
  padding-left: 1.2em;
  font-size: 17px;
  font-weight: 500;
  border-radius: 0.9em;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 1.6em -0.6em #714da6;
  overflow: hidden;
  position: relative;
  height: 2.8em;
  padding-right: 3.3em;
  cursor: pointer;
}

.cssbuttons-io-button .icon {
  background: white;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2em;
  width: 2.2em;
  border-radius: 0.7em;
  box-shadow: 0.1em 0.1em 0.6em 0.2em #7b52b9;
  right: 0.3em;
  transition: all 0.3s;
}

.cssbuttons-io-button:hover .icon {
  width: calc(100% - 0.6em);
}

.cssbuttons-io-button .icon svg {
  width: 1.1em;
  transition: transform 0.3s;
  color: #7b52b9;
}

.cssbuttons-io-button:hover .icon svg {
  transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
  transform: scale(0.95);
}


.lobbyselector .button-39 {
  position: static;
  margin-bottom: 2.5vh;
  margin-left: 2.8vw;
}

.lobbies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  border: 2px solid transparent;
  backdrop-filter: blur(50px);
  background-color: rgb(236, 226, 226);
  gap: 20px;
  align-items: center; 
  flex-direction: column;
  max-height: 100%; 
  overflow-y: auto; 
}

.hr-lobby {
  width: 70%;
	background-color: #fff;
	border-top: 1px dashed #8c8b8b;
}

.lobby {
  flex: 0 1 calc(33.33% - 20px);
  margin-bottom: 20px;
  background-color: #f0f0f0; 
  border: 1px solid #c560ff; 
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  padding: 15px; 
  margin: 15x auto; 
  text-align: center; 
  width: 100%; 
  max-width: 300px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in;
  transform: scale(0.97);
  opacity: 80%;
  margin-bottom: 20px;
}

.lobby:hover {
  transform: scale(1);
  cursor: crosshair;
  opacity: 100%;
}

.lobby h2, .lobby p {
  color: #333; 
  margin: 10px 0; 
}

.lobby .join-button {
  padding: 8px 16px; 
  background-color: #ad1fff;
  color: #ffffff; 
  text-decoration: none;
  border-radius: 4px; 
  font-weight: bold; 
  transition: background-color 0.3s; 
}

.lobby .join-button:hover {
  background-color: #c560ff;
}

@media (max-width: 768px) {
  .lobbyselector .button-39 {
  margin-left: 15vw;
  }

    .lobbies {
    flex-direction: column;
    max-height: 60vh;
    overflow-y: auto;
  }

  .lobby {
    flex-basis: 100%;
    width: 80%;
    flex-direction: column; 
  }
}

.music-control {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.music-button {
  background-color: #a81ef8;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-left: 35px;
  border-radius: 5px;
  cursor: crosshair;
  transition: background-color 0.3s;
}

.music-button:hover {
  background-color: #921bd6;
}

@media (max-width: 768px) {
  .music-button {
    padding: 15px 30px; 
    font-size: 1.2em;
  }
}

#players {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
}


#player1 { background: #00FF3F; }
#player2 { background: #35B5FF; }
#player3 { background: #FF479C; }
#player4 { background: #FFFB38; }



.player img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #000;
    margin-bottom: 20px;
}

.player-name {
    margin-bottom: 15px;
}

.player-img {
  margin-bottom: 1vh;
}

.player-button {
  display: none;
  margin-top: 10px;
  width: 130px;
  height: 40px;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #171717;
  color: #fff;
  border: none;
  border-radius: 5px;
  transition: all .4s;
}

.player-button:hover {
   border-radius: 5px;
 transform: translateY(-10px);
 box-shadow: 0 7px 0 -2px #f85959,
  0 15px 0 -4px #39a2db,
  0 16px 10px -3px #39a2db;
}


.player-button:active{
   transition: all 0.2s;
 transform: translateY(-5px);
 box-shadow: 0 2px 0 -2px #f85959,
  0 8px 0 -4px #39a2db,
  0 12px 10px -3px #39a2db;
}

.leave-button-container {
    top: 20px;
    left: 20px;
    z-index: 120;
}

.version {
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgb(96, 89, 89);
    font-size: 0.8em;
    z-index: 100;
}

.button-39 {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.player-name {
    margin-top: 10px;
    animation: colorShift 5s infinite alternate;
}

.lobby-info-container {
    position: absolute;
    top: 60px;
    width: 197px;
    left: 50%;
    height: 56px;
    line-height: 1.5;
    text-align: center;
    transform: translateX(-50%);
    background: white;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.lobby-info-container::before {
  content: 'Lobby Code';
  font-size: 15px;
  line-height: 2;
  width: 100px;
  height: 30px;
  border-radius: 5px;
  background-color: white;
  position: absolute;
  top: -25px;
  left: 25%;

}

@keyframes colorShift {
    0% { border-color: #00ff3f; }
    50% { border-color: #35b5ff; }
    100% { border-color: #fffb38; }
}

#lobbyInfo {
  color: black;
  font-size: 40px;
}


@media (max-width: 1080px) {
    #players {
        flex-wrap: wrap; 
        justify-content: center;
    }

    .player {
        margin: 10px; 
        width: calc(50% - 20px); 
        padding: 15px;
    }

}

@media (max-width: 768px) {
    .player img {
        width: 80px;
        height: 80px;
    }

    .player {
        padding: 10px;
        margin: 10px auto;
        width: 45%;
        font-size: 0.8em;
    }

    #players {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .lobby-info-container {
      display: none;
    }

    .leave-button-container {
        position: absolute;
        top: 0px;
        right: -65px; 
    }

    .credits {
      display: none;
    }

    .music-requests {
      display: none;
    }

    .lobby-info-container {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      top: 80px;
      left: 50%;
      transform: translateX(-50%);
      width: auto;
      margin-bottom: 20v;
      padding: 25px;
      font-size: 20px;
    }

    .lobby-info-container::before {
      content: 'Lobby Code';
      position: static;
      width: 100%;
      text-align: center;
    }  
}

.short-text {
    display: none;
}


@media (max-width: 768px) {
   
    .full-text {
        display: none;
    }

   
    .short-text {
        display: inline;
    }
}

.credits {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  z-index: 100; 
}

.credits a {
  color: #ffc107; 
  text-decoration: none; 
  opacity: 80%;
  transition: all 0.2s ease-in;
  scale: 1;
}

.credits a:hover {
  text-decoration: underline;
  opacity: 100%;
}

.music-requests {
  position: absolute;
  bottom: 35px; 
  left: 45px;
  color: white;
  z-index: 100;
}

.music-requests a {
  color: #ffc107; 
  text-decoration: none; 
  opacity: 80%;
  transition: all 0.2s ease-in;
  scale: 1;
}

.music-requests a:hover {
  opacity: 100%;
}

.version {
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgb(106, 102, 102);
    font-size: 0.8em;
    z-index: 100;
}

.feedback-link {
    position: absolute;
    top: 35px;
    left: 10px;
    color: rgb(96, 89, 89);
    font-size: 0.8em;
    z-index: 1000;
    text-decoration: none;
}

.feedback-link:hover {
    color: #ffc107;
}

.feedback-link:hover, .feedback-link:active {
    cursor: pointer;
}

@media (max-width: 768px) {
   
    .music-requests {
        display: block;
        position: absolute;
        top: 60px;
        left: 10px;
        font-size: 0.8em;
        color: white;
    }

    .music-requests a {
        color: rgb(255, 255, 255);
        text-decoration: none;
        opacity: 100%;
        transition: opacity 0.2s ease-in;
    }

    .music-requests a:hover {
        opacity: 100%;
    }

    .feedback-link {
      position: absolute;
      top: 35px;
      z-index: 100;
    }
}

.music-control {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.music-button-container,
.volume-slider-container {
    margin: 5px 0; /* Adjust the spacing between button and slider as needed */
}

.volume-slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 150px; /* Adjust the width as needed */
}

/* Original slider styles */
.slider {
  --slider-width: 80%; /* Adjusted for narrower width */
  --slider-height: 6px;
  --slider-bg: #fff; /* White background for the slider */
  --slider-border-radius: 999px;
  --level-color: rgb(82, 82, 82); /* Gray color for the filled part */
  --level-transition-duration: .1s;
  --icon-margin: 15px;
  --icon-color: var(--level-color);
  --icon-size: 25px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
}

.slider .volume {
  display: inline-block;
  vertical-align: top;
  margin-right: var(--icon-margin);
  color: var(--icon-color);
  width: var(--icon-size);
  height: auto;
}

.slider .level {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--slider-width);
  height: var(--slider-height);
  background: var(--slider-bg);
  border-radius: var(--slider-border-radius);
  transition: height var(--level-transition-duration);
  cursor: inherit;
}

.slider .level::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; /* Adjusted thumb size */
  height: 20px; /* Adjusted thumb size */
  border-radius: 50%;
  background: var(--level-color);
  cursor: pointer;
}

.slider:hover .level {
  height: calc(var(--slider-height) * 2);
}
