body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
}

header {
  background-color: #222;
  color: white;
  padding: 2rem 0;
  position: relative;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav {
  background-color: #444;
  padding: 0.5rem 0;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.profile-area {
  position: relative;
}

.profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

#profile-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 150px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1001;
}

#profile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#profile-menu li {
  border-bottom: 1px solid #eee;
}

#profile-menu li a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
}

#profile-menu li a:hover {
  background-color: #f0f0f0;
}

section {
  margin: 2rem 0;
}

.post {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

#welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #222;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 1s ease;
}

.welcome-message {
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#welcome-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-content img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.hidden {
  display: none;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.close-button {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#auth-form input {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#auth-form button {
  padding: 0.75rem;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#auth-form button:hover {
  background-color: #444;
}

.switch-auth {
  font-size: 0.9rem;
  text-align: center;
}

.switch-auth a {
  color: #007bff;
  text-decoration: none;
}

.switch-auth a:hover {
  text-decoration: underline;
}
