 body {
      font-family: Arial, sans-serif;
      margin: 20px;
      line-height: 1.4;
    }
    section {
      margin-bottom: 40px;
    }
    h1, h2 {
      margin: 0.5em 0 0.2em;
    }
    label {
      display: block;
      margin-top: 10px;
    }
    input {
      display: block;
      margin-top: 5px;
      padding: 6px;
      width: 250px;
      box-sizing: border-box;
    }
    button {
      display: block;
      margin-top: 15px;
      padding: 6px 12px;
    }
    nav {
		    display: ruby;
      margin-bottom: 20px;
    }
    nav a {
      margin-right: 15px;
      text-decoration: none;
      color: blue;
    }
    img.profile-small {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      display: block;
      margin-bottom: 10px;
    }
    img.profile-medium {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      display: block;
      margin-bottom: 10px;
    }
    #profile-bar {
      display: flex;
	  background-color: burlywood;
      align-items: center;
	  margin-bottom: 10px;
    }
    #profile-bar img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      margin-right: 10px;
    }
    hr {
      margin: 40px 0;
      border: none;
      border-top: 1px solid #ccc;
    }
	
	.toggle-container {
	display: inline-flex;
}

        .input-textarea {
            width: 250px;
            padding: 0.5em;
            margin-bottom: 1em;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-family: inherit;
        }
		
		.post-container {
      width: 500px;
      max-width: 600px;
      border: 1px solid #ccc;
      font-family: Arial, sans-serif;
    }
    
    .post-container img.middle {
    width: 100%;   /* stretch to container width */
    height: auto;  /* maintain aspect ratio */
    display: block;
}

    .post-container .top,
    .post-container .bottom {
      padding: 10px;
    }

    
	
/* OVERLAY */
	
.overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 9999;
}

.overlay-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 60%;
    max-height: 70%;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.overlay-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}














/*CHAT*/

 .chat-container {
      width: 500px;
      border: 1px solid #ccc;
      display: flex;
      flex-direction: column;
      height: 600px;
    }

    .chat-top {
      padding: 10px;
      border-bottom: 1px solid #ccc;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .chat-top .title {
      font-weight: bold;
    }

    .chat-middle {
      flex: 1;
      overflow-y: auto;
      padding: 10px;
      background: #fafafa;
    }

    .chat-info {
      text-align: center;
      font-size: 0.85em;
      color: #666;
      margin-bottom: 15px;
    }

    .message {
      margin-bottom: 12px;
      display: flex;
      flex-direction: column;
    }

    .message.received {
      align-items: flex-start;
    }

    .message.sent {
      align-items: flex-end;
    }

    .bubble {
      padding: 8px 12px;
      border-radius: 16px;
      max-width: 80%;
      background: #eee;
    }

    .sent .bubble {
      background: #dcf8c6;
    }

    .bubble img {
      max-width: 100%;
      border-radius: 12px;
      display: block;
    }

    .time {
      font-size: 0.75em;
      color: #888;
      margin-top: 4px;
    }

    /* Read-receipt styling */
    .receipt {
      margin-left: 6px;
      font-size: 0.75em;
      color: #4fc3f7;
    }

    .chat-bottom {
      padding: 10px;
      border-top: 1px solid #ccc;
      display: flex;
      align-items: center;
    }

    .chat-bottom button {
      background: none;
      border: none;
      font-size: 1.2em;
      cursor: pointer;
    }

    .chat-bottom input {
      flex: 1;
      margin: 0 8px;
      padding: 6px 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    .chat-bottom .send {
      color: #0066cc;
      font-weight: bold;
      cursor: pointer;
    }