body {
  font-family: "Figtree", sans-serif;
  background-image: url("/background.svg");
  background-position: 75%;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  color: #333;
  overflow: hidden;
}

#app {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.container {
  position: relative;
  width: 100%;
  text-align: center;
  max-height: 100vh;
  min-height: 100vh;
  height: 100%;
  backdrop-filter: blur(15px);
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  animation: fadeIn 0.8s ease-out;
}

.main-message {
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sub-message {
  color: #8a2be2;
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  margin: 0;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.description {
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
  color: #555;
}

#powered-by {
  font-size: 14px;
  color: #000000;
  opacity: 0.7;
  position: absolute;
  bottom: 30px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

#powered-by:hover {
  opacity: 1;
}

.responsive-player {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.1));
}

.queue-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  margin: 0px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 15px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: slideUp 0.5s ease-out;
}

#current-place {
  font-size: 40px;
  font-weight: 700;
  color: #8a2be2;
  margin: 0px;
  animation: pulse 2s infinite;
}

#health-status {
  position: absolute;
  top: 40px;
  right: 20px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  gap: 8px;
}

#connection-status {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

#healthCircle {
  transition: fill 0.3s ease;
}

.queue-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.position-improved {
  animation: positionImproved 2s ease;
  color: #4CAF50 !important;
}

.wait-time {
  font-size: 14px;
  margin: 5px 0 0 0;
  color: #666;
}

#estimated-time {
  font-weight: 600;
  color: #8a2be2;
}

.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100;
  text-align: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.success-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.success-message h2 {
  color: #4CAF50;
  margin-bottom: 10px;
}

.success-message p {
  margin: 0;
  color: #555;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes positionImproved {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Progress bar styles */
.progress-container {
  width: 80%;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  margin: 10px 0;
  height: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8a2be2, #9370db);
  border-radius: 30px;
  transition: width 1s ease;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* Tablet and smaller devices */
@media (max-width: 1200px) {
  body {
    background-image: url("/mobile_background.svg");
  }

  .responsive-player {
    width: 90%;
    height: auto;
  }
  .container {
    gap: 40px;
  }

  .text-content {
    gap: 14px;
  }

  .sub-message {
    font-size: 36px;
  }

  .main-message,
  .description {
    font-size: 16px;
  }

  .queue-status {
    font-size: 16px;
    padding: 12px 24px;
  }

  #current-place {
    font-size: 36px;
  }
}

/* Mobile devices */
@media (max-width: 600px) {
  body {
    background-image: url("/mobile_background.svg");
  }

  .container {
    gap: 40px;
  }

  .responsive-player {
    width: 80%;
    height: auto;
  }

  .text-content {
    gap: 10px;
  }

  .sub-message {
    font-size: 24px;
  }

  .main-message,
  .description {
    font-size: 14px;
  }

  .queue-status {
    font-size: 14px;
    padding: 10px 20px;
  }

  #current-place {
    font-size: 30px;
  }
  
  .progress-container {
    width: 90%;
    height: 10px;
  }
}

/* Smaller mobile devices */
@media (max-width: 320px) {
  .container {
    gap: 20px;
    padding: 10px;
  }

  .responsive-player {
    width: 100%;
    height: auto;
  }

  .text-content {
    gap: 8px;
  }

  .sub-message {
    font-size: 20px;
  }

  .main-message {
    font-size: 12px;
    line-height: 20px;
  }

  .description {
    font-size: 12px;
  }

  .queue-status {
    font-size: 12px;
    padding: 8px 16px;
  }

  #current-place {
    font-size: 24px;
  }
  
  .progress-container {
    height: 8px;
  }
}
