@font-face {
  font-family: 'TypeLightSans';
  src: url('TypeLightSans-KV84p.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}


html {
  height: auto;
  min-height: 100vh;
  overflow: auto;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-image: url("img/background.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: #fff;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}


body.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}



body::-webkit-scrollbar {
  display: none;
}

.overlay {
  backdrop-filter: brightness(0.95);
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 20px 20px;
}

.profile-card {
  background: rgba(0, 0, 0, 0.6);
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  width: 75%;
  box-shadow: 0 0 12px #8000ff88;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.avatar {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-bottom: 4px;
}

.username {
  font-size: 1.4em;
  margin: 3px 0 6px;
}

.user-description {
  font-family: 'TypeLightSans', sans-serif;
  font-size: 1.1rem;
  color: white;
  border: none;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  animation: blink 1s step-end infinite;
  text-align: center;
  margin: 0 auto;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: white; }
}

.social-icons {
  margin-top: 6px;
  margin-bottom: 4px;
}

.social-icons i {
  font-size: 1.3em;
  margin: 0 8px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.social-icons i:hover {
  transform: scale(1.2);
  color: #0ff;
}

.background-fader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
  opacity: 0;
}

#background-fader1 {
  opacity: 1;
}

.location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.95em;
  color: #fff;
  opacity: 0.9;
}

.location i {
  color: #ff4d4d;
  font-size: 1.1em;
}

.music-player {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: transparent;
  color: white;
  padding: 15px 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.music-player .track-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.music-player #progress-bar {
  -webkit-appearance: none;
  width: 90%;
  height: 6px;
  border-radius: 5px;
  background: #333;
  outline: none;
  margin-bottom: 10px;
}

.music-player #progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #1db954;
  cursor: pointer;
  margin-top: -5px;
}

.music-player #progress-bar::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #1db954;
  cursor: pointer;
}

.music-player .controls {
  display: flex;
  gap: 25px;
  font-size: 20px;
}

#starter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('img/backfgroundstartsite.png');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

.starter-content {
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
}

.starter-emoji {
  font-size: 4rem;
  margin-bottom: 10px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#yt-player {
  visibility: hidden;
  width: 1px;
  height: 1px;
  position: absolute;
  left: -9999px;
}

.homies-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  width: 70%;
  color: white;
  padding: 6px 14px;
  font-size: 12px;
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.homies-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

.homies-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  margin-top: 20px;
}

.homie-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  margin-top: 4px;
  margin-bottom: 4px;
  opacity: 0; /* Startwert für Animation */
  animation-duration: 0.6s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}


/* Ungerade: von links */
.homie-box:nth-child(odd) {
  animation-name: swipeInLeft;
}

/* Gerade: von rechts */
.homie-box:nth-child(even) {
  animation-name: swipeInRight;
}


.homie-text {
  color: white;
}

.homie-name {
  font-size: 1.3em;
  font-weight: bold;
}

.homie-desc {
  font-size: 0.9em;
  opacity: 0.85;
}

.homie-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}


body.no-scroll,
html.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
  position: fixed;
  width: 100vw;
}

.homie-box:first-child {
  margin-top: 30px; /* oder z. B. 40px, je nach gewünschtem Abstand */
}





/* ✅ Scrollen auf Mobile wieder aktivieren */
@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}



.back-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  margin-bottom: 5px;
  border: 1px solid #ffffff44;
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  width: 91%;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}



@keyframes swipeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes swipeInRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
