@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes moveLeft {
  0% {
    left: 100%;
  }
  100% {
    left: -50px;
  }
}

#animatedBackground {
  position: relative;
  width: 25px; 
  height: auto;
  bottom: 0;
  left: 100%;
  animation: moveLeft 25s linear infinite;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #ffff;
  
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  background: #222;
  overflow-x: hidden;
}

.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #f5c2e7;
  transition: width 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
}

header {
  padding: 1rem 2rem;
  text-align: center;
}

.header-container {
  display: flex;
  align-items: center;
}

.header-bottom-border {
  margin: 0 auto;
  width: 15%;
  height: 2px;             
  background-color: #f5c2e7; 
  margin-top: 1rem;     
}

.header-container > * {
  flex: 1;
}

.site-title {
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.logo img {
  width: 50px;
  border-radius: 9999px;
}

.site-title h2 {
  font-size: 1.5rem;
}

.site-title {
  width: 300px;
  height: auto;
}

.nav-links a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #fff;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #f5c2e7;
  bottom: -2px;
  left: 0;
  border-radius: 1px;
}

.nav-links a:hover {
  color: #f5c2e7;
}

main {
  flex-grow: 1;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.article {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeInUp 0.5s ease forwards;
  border-top: solid #f5c2e7 1.5px;
  border-bottom: solid #f5c2e7 1.5px;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.article-title {
  font-size: 1.75rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

.article-title:hover {
  color: #f5c2e7;
}

.article-meta {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  gap: 1rem;
}

.article-tags a {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #f5c2e7;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #f5c2e7;
  transition: all 0.2s ease;
}

.article-tags a:hover {
  background: #f5c2e7;
  color: #fff;
}

.walking {
    width: 20px;
    height: auto;
}

footer {
  
  text-align: center;
  
  color: #222;
}

.floor {
  background-color: #f5c2e7; 
  top: 0;
  width: 100%;
  height: 10px;
}

li {
  list-style-position: inside;
  margin-left: 20px;
}


@media (max-width: 768px) {
  html, body {
      overflow-x: hidden;
    }

    .header-container {
    justify-content: center;
  }
  .site-title h2 {
  margin-left: 0px;
}
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .logo img {
     width: 80px;
  }

  .site-title {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    gap: 2rem;
    width: 100%;
  }

  .nav-links a {
    flex: none;
  }
}

.dropbtn {
  background-color: #f5c2e7;
  color: rgb(0, 0, 0);
  padding: 10px 16px;
  padding-top: 8px;
  font-size: 16px;
  border: none;
}

.dropdown {
  position: relative;
  display: inline-block;

}

.dropdown-content {
  opacity: 0;
  position: absolute;
  visibility: hidden;
  background-color: #ffbdee;
  min-width: 160px;
  padding: 16px;
  z-index: 1;
  right: 0;
  transform: translateY(0);
  transition: opacity 0.3s ease;
}

.dropdown-content a {
  color: black;
  text-decoration: none;
  display: block;
}

.dropdown-content a {
  color: black;
}

.site-links {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.site-links a {
  display: block;
  padding: 8px 16px;
}

#other-users {
  display: grid;
  gap: 2px;
  padding: 2px;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
}

.grid-item {
  background-color: rgba(0, 0, 0, 0.1);
}

#other-users a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
   
}

#other-users img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-content a:hover {background-color: #FBE6F5;}

.dropdown:hover .dropdown-content {opacity: 1; visibility: visible;}

.dropdown:hover .dropbtn {background-color: #d5d5d5;}