:root {
  --bg: #0000003a;
}

a:link svg {
  color: #ffffff;
  text-decoration: none;
}

body {
  align-items: center;
  background-color: #0a0a0a;
  color: #ffffff;
  display: flex;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  height: 100vh;
  justify-content: center;
  margin: 0;
}

.background {
  background-image: url('assets/background.png');
  background-position: center;
  background-size: cover;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}

.bio {
  color: #ffffff99;
  font-size: clamp(14px, 2vw, 16px);
  margin-top: -1px;
  text-align: left;
}

.clan-container {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.content {
  align-items: flex-start;
  backdrop-filter: blur(7px);
  background-color: var(--bg);
  border-radius: 25px;
  box-shadow: 20px 20px 20px #00000081;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: min(350px, 450px);
  justify-content: flex-start;
  padding: 10px;
  position: relative;
  width: min(90vw, 550px);
}

#footer {
  bottom: 0;
  color: #ffffff42;
  font-family: consolas;
  font-weight: 300;
  left: 0;
  padding: 7px;
  position: fixed;
}

.footer a:hover {
  color: #ffffff42;
  text-decoration: underline;
}

.footer a:link {
  color: #ffffff42;
  text-decoration: none;
}

.footer a:visited {
  color: #ffffff42;
  text-decoration: none;
}

.name {
  font-size: clamp(24px, 4vw, 30px);
  text-align: left;
}

.not-playing {
  color: #888888;
  font-style: italic;
}

.pfp-container {
  position: relative;
  width: fit-content;
}

.pnb {
  align-items: center;
  display: flex;
  flex-direction: row;
  font-size: 30px;
  gap: 15px;
  padding: clamp(10px, 2vw, 20px);
  width: auto;
}

.pnb img {
  border-radius: 15%;
  box-shadow: 0 0 20px #5e5e5e;
  height: clamp(80px, 10vw, 110px);
  width: clamp(80px, 10vw, 110px);
}

.profile {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-icons {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}

.spotify-album {
  color: #a0a0a0;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.spotify-album-art {
  border-radius: 5px;
  flex-shrink: 0;
  height: 100px;
  margin-right: 15px;
  overflow: hidden;
  width: 100px;
}

.spotify-album-art img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.spotify-artist {
  color: #cccccc;
  margin-bottom: 3px;
}

.spotify-container {
  align-items: center;
  display: flex;
}

.spotify-info {
  flex-grow: 1;
}

.spotify-progress {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  height: 4px;
  margin-bottom: 5px;
}

.spotify-progress-bar {
  background-color: #1DB954;
  border-radius: 2px;
  height: 100%;
  width: 0%;
}

.spotify-song {
  color: #ffffff;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 3px;
}

.spotify-timestamps {
  color: #888888;
  display: flex;
  font-size: 0.8em;
  justify-content: space-between;
}

#status-dot {
  background-color: #6B7280;
  border: 4px solid #0a0a0a;
  border-radius: 50%;
  bottom: 5px;
  cursor: pointer;
  height: 16px;
  position: absolute;
  right: -8px;
  width: 16px;
}

#status-dot::after {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  bottom: 100%;
  color: white;
  content: attr(title);
  font-size: 14px;
  left: 50%;
  margin-bottom: 7px;
  opacity: 0;
  padding: 5px 10px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 0.2s, visibility 0.2s;
  visibility: hidden;
  white-space: nowrap;
}

#status-dot:hover::after {
  opacity: 1;
  visibility: visible;
}

.text {
  display: flex;
  flex-direction: column;
  height: clamp(80px, 10vw, 110px);
  justify-content: space-between;
}

.text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@media (max-width: 768px) {
  .content {
    margin-top: 2rem;
  }
  
  .pnb {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }
  
  .text {
    gap: 3px;
  }
}

.spotify-presence {
  backdrop-filter: blur(15px);
  background-color: rgba(18, 18, 18, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  margin: 15px;
  padding: 15px;
  text-align: left;
  width: calc(100% - 30px);
}

.spotify-container {
  display: flex;
  align-items: center;
}
.spotify-album-art {
  width: 100px;
  height: 100px;
  margin-right: 15px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}
.spotify-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotify-info {
  flex-grow: 1;
}
.spotify-song {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 3px;
  font-size: 1.1em;
}
.spotify-artist {
  color: #cccccc;
  margin-bottom: 3px;
}
.spotify-album {
  color: #a0a0a0;
  font-size: 0.9em;
  margin-bottom: 8px;
}
.spotify-progress {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 5px;
}
.spotify-progress-bar {
  height: 100%;
  background-color: #1DB954;
  border-radius: 2px;
  width: 0%;
}
.spotify-timestamps {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  color: #888888;
}
.not-playing {
  color: #888888;
  font-style: italic;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

body.loaded {
  opacity: 1;
}