* {
    box-sizing: border-box; 
}

body {
    background: white;
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    

}

#index-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
    background: gray;
    color: white;
}



.nav-link {
  display: inline-block;
  color: white;
  border-radius: 8px;
}

.left-side .nav-link:hover {
  background: #1a2130;
}

.container.narrow {
  margin-left: 100px;
  margin-right: 100px;
  margin-top: 50px;
  margin-bottom: 50px;
  color:white;
}

.posts-grid {
  display: flex;             
  gap: 20px;
  flex-direction: column;
  
}

.posts-grid > article {
  background: lightgray;
  border-radius: 10px;
  padding: 20px;
  width: 100%;

}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}


.post-header .post-date {
  font-size: 0.95rem;
  
}

.profile-image {
  width: 36px;
  height: 36px;
  border-radius: 30px;
  object-fit: cover; 
  border: 1px solid black;
}

.post-image {
  display: block;     
  width: 100%;       
  height: auto;       
  border-radius: 10px;
  margin: 10px 0;
  object-fit: cover;
}

.post-title {
  font-size: 16px;
  margin: 5px 0 5px;
}

.post-title + p {
  margin-top: 5px;
}

.footer {
    color:black;
    text-align: center;
}

#right-side-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-menu {
  position: relative;
  display: inline-block;
}

#user-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid black;
  object-fit: cover;
  cursor: pointer;
  background: #ccc; 
}


.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  color: #000;
  border: 1px solid #999;
  border-radius: 4px;
  display: none;
  padding: 6px 10px;
  font-size: 14px;
  text-align: left;
}

.dropdown.show {
  display: block;
}

.dropdown p {
  margin: 2px 0;
}

.dropdown a {
  color: #000;
  text-decoration: none;
}

.dropdown a:hover {
  text-decoration: underline;
}


@media screen and (max-width: 768px) {
    .container.narrow {          
        width: 100%;       
      }

      #index-header {
        margin-bottom: 20px;
        width: 100%;
      }
      .container.narrow {
        margin:0;
        padding:0;
      }
}
