body {
  position: relative;
  font-family: "Inter", sans-serif;
  background: #0d1117;
  color: #e6edf3;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

button {
  color: #e6edf3;
  font-family: "Inter", sans-serif;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgb(16, 23, 39);
  border: 1px solid rgb(30, 41, 57);
  border-radius: 15px;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  margin: auto;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgb(30, 41, 57);
  object-fit: cover;
}

.profile-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#username {
  font-family: "Google Sans Code", monospace;
  margin: 20px 0px 0px;
  font-size: 24px;
}

#username-tag {
  font-family: "Google Sans Code", monospace;
  margin: 6px 0px 0px;
  font-size: 14px;
  color: rgb(145, 153, 167);
}

#location {
  margin-top: -8px;
  font-size: 12px;
  color: rgb(93, 101, 116);
  display: flex;
  align-items: center;
  gap: 6px;
}

#location svg {
  vertical-align: middle; /* ช่วยให้ไม่เอียงลงข้างล่าง */
}

.profile-skills {
  font-family: "Space Mono", monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(30, 41, 57);
  background-color: rgb(3, 7, 18);
  font-size: 14px;
  margin: 6px 0px 20px;
  border-radius: 8px;
  padding-left: 30px;
  padding-right: 30px;
  height: 38px;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
}

#code-icon {
  color: rgb(93, 101, 116);
}

.profile-description {
  font-size: 14px;
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 0px 0px 10px;
}

.profile-buttons {
  flex: 1;
  display: flex; /* ✅ ทำให้ภายในเป็น flex */
  align-items: center; /* ✅ จัดแนวตั้งให้ตรงกลาง */
  justify-content: center; /* ✅ จัดแนวนอนตรงกลาง */
  gap: 6px; /* ✅ เว้นช่องระหว่าง icon กับข้อความนิดหนึ่ง */
  padding-left: 1em;
  padding-right: 1em;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgb(41, 52, 69);
  background: rgb(16, 23, 39);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.profile-buttons:hover {
  background: rgb(30, 41, 57);
}

.contact-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

svg path {
  fill: rgb(93, 101, 116);
}

.contact-icon > a >svg:hover path {
  fill: white;
}

.snowflake {
  position: fixed;
  top: -10px;
  color: white;
  z-index: 9999;
  user-select: none;
  pointer-events: none;
  
  animation-name: fall; 
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
}

@keyframes fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

.snowflake::before {
  content: "❄";
}

#songContainer {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.6s ease;
}

#songContainer.show {
  max-height: 220px; /* slightly more than iframe height */
  opacity: 1;
  margin-top: 10px;
  margin-bottom: -35px;
}


@media (max-width: 500px) {
  .profile-container {
    padding: 20px;
    max-width: 80%;
  }
}