body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f7fa;
  color: #333;
  transition: background 0.3s ease;
}

header {
  background-color: #0a74da;
  color: white;
  padding: 1rem;
  text-align: center;
  position: relative;
  height: 160px;
  box-sizing: border-box;
}

#greeting {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: #063970;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, transform 1s ease;
  z-index: 1000;
}


#datetime {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}


#datetime.visible {
  opacity: 1;
  transform: translateY(0);
}

nav {
  background-color: #063970;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  max-width: 1200px;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: block;
  padding: 1rem;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

nav ul li a:hover {
  background-color: #0a5abe;
}

main {
  padding: 2rem;
}

#searchInput {
  padding: 0.5rem;
  width: 100%;
  max-width: 400px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#searchResults {
  margin-top: 1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #ddd;
  margin-top: 3rem;
}

.fadein {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.post-actions {
    margin-top: 15px;
    text-align: right;
}

.comment-button {
    display: inline-block;
    background-color: #0a74da;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.comment-button:hover {
    background-color: #063970;
}


.post-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-item h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.post-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.9em;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}


.comments-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.comments-section h4 {
    color: #444;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.comment-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-left: 5px solid #0a74da; 
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-text {
    font-size: 0.95em;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.5;
}

.comment-meta {
    font-size: 0.8em;
    color: #888;
    text-align: right;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 8px;
}