html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #3c3d3f;
  line-height: 1.6;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  height: 64px;
}

header #title {
  color: #000;
  text-decoration: none;
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  flex: 1;
}

.header_btn {
  text-decoration: none;
  font-size: 16px;
  margin: 0 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: #0077ff;
  color: white;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header_btn:hover {
  background-color: #005ecc;
  transform: scale(1.05);
}

#close_button {
  background-image: url("../media/close33.png");
  background-repeat: no-repeat;
  background-size: contain;
  width: 32px;
  height: 32px;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.alert {
  color: #d32f2f;
  font-weight: bold;
}

/* Auth section styles */
#auth-section {
    position: absolute;
    right: 20px;
    top: 20px;
}

.auth-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.auth-btn:hover {
    background: #0056b3;
}

#user-info {
    color: #333;
    font-size: 14px;
}

body:not(.logged-in) #post_image,
body:not(.logged-in) #image-display,
body:not(.logged-in) #post_comment,
body:not(.logged-in) #comments {
    display: none;
}

body:not(.logged-in) #guest-buttons {
    display: block;
}

body.logged-in #guest-buttons {
    display: none;
}

body.logged-in #user-info {
    display: block !important;
}