@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%;   font-family: sans-serif; background: lightgray }

body {
  display: flex;
  justify-content: center;
  letter-spacing: 0.5px;
  line-height: 1.1;
  align-items: center;
  overflow-y: auto;
  font-family: sans-serif; !important


}

.container {
  width: 800px;
  background: white;
  position: absolute; /* or fixed */
  top: 0;
  z-index: 999;
  left: 50%;
  transform: translateX(-50%); /* center horizontally */
  padding-top: 90px; /* space for banner */
  padding-bottom: 40px; /* space for footer links */
}

/* Banner */
.banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  display: flex;
  align-items: center;
  background-color: #4CAF50;
}


.banner-links {
  position: absolute;
  top: 5px;
  right: 10px;
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.banner-links a {
  text-decoration: underline;
  color: white;
  font-size: 0.85em;
  position: relative;
  padding: 0 8px;
}

/* Divider between items */
.banner-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #013220;
}

.banner-links a:hover {
  color: lightgreen;
}

.banner img {
  max-height: 75px; /* adjust as needed */
}

.banner-text {
  font-size: 1.1em;
  text-shadow: 1px 1px 0 #ccc;
  font-style: italic; /* makes the text italic */
  color: white; /* dark green like your border */
}

/* Flex wrapper */
.banner-search-wrapper {
  display: flex;
  align-items: stretch; /* ensures children stretch to same height */
  gap: 4px;
  margin-top: 8px;
  width: 100px;
  margin-Left: 0px;
}

.banner-search-wrapper-browse {
  display: flex;
  align-items: stretch; /* ensures children stretch to same height */
  gap: 4px;
  margin-top: 4px;
  width: 100px;
  margin-Left: 10px;
}

/* Dropdown */
.search-type {
  padding: 0 0px; /* vertical padding 0, horizontal 8px */
  font-size: 12px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #000;
  height: 20px; /* match search input height exactly */
  box-sizing: border-box; /* includes border in height */
}

.info {
  margin-Left: 12px;
  font-size: 0.7em;
  font-weight: none;
  color: blue;
  margin-top: 15px;
  
}

/* Search input */
.banner-search {
  flex: 1;
  padding: 0 8px;
  font-size: 12px;
  border: 1px solid #ccc;
  height: 20px; /* same as dropdown */
  box-sizing: border-box;
}

.search-button {
  height: 20px; /* same as input/dropdown */
  padding: 0 6px;
  font-size: 12px;
  background-color: blue;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.search-button:hover {
  background-color: #f0f0f0; /* simple hover effect */
}

.nav-links {
  position: static;
  top: 90px;   /* stick *right under the banner* */
  z-index: 999;
  border-bottom: 2px solid black;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
  background-color: #4CAF50;
}


.nav-links a {
  text-decoration: none;
  color: white;
  text-shadow: 1px 1px 0 #ccc;
  font-size: 11px;
  position: relative;
  padding: 0 10px; /* space around text so divider isn't too close */
}

/* Divider */
.nav-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  text-shadow: 1px 1px 0 #ccc;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: black; /* dark green divider */
}


.nav-links a:hover {
  text-decoration: underline;
}

/* Login box */
.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* spreads top, middle, bottom */
  width: 100%;
  height: calc(100% - 140px); /* fills container minus banner */
  position: relative;
  padding: 20px;
}

/* Branches */
.branches {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  gap: 20px;
  flex-wrap: wrap;
}

.login-branch, .signup-branch, .forgot-branch {
  padding: 5px 15px;
  min-width: 120px;
  height: 35px;
  background-color: #fff;
  color: #013220;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid black;
  text-decoration: none;
  cursor: pointer;
}

.login-branch:hover,
.signup-branch:hover,
.forgot-branch:hover {
  background-color: #013220;
  color: #fff;
}
.left-post-input {
  width: 100%;
  padding: 10px;
  margin: 10px auto; /* centers the textarea */
  font-size: 0.9em;
  border: 2px solid #013220;
  resize: vertical; /* allow vertical resizing */
  box-sizing: border-box;
}

.left-banner-search {
  width: 150px;
  padding: 10px;
  height: 5%;
  margin: 10px; /* centers the textarea */
  font-size: 0.9em;
  border: 2px solid #013220;
  resize: vertical; /* allow vertical resizing */
  box-sizing: border-box;
}

.main-content {
  display: flex;
  gap: 20px;          /* space between boxes */
  padding: 0 20px;    /* 20px gap from left and right edges */
  margin-top: 20px;
  width: 100%;
  height: 570px;
  z-index: 999;
  box-sizing: border-box;
}


.left-box {
  flex: 70;
  background: #f5f5f5;
  border: 2px solid #548532;
  min-height: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.chat-wrapper {
  overflow-y: auto;
}

.dm-input-area {
  align-items: flex-end;
}
#dm-preview-area img {
  max-width: 40px;
  max-height: 40px;
}

#dm-preview-area {
  position: absolute;
  bottom: 60px; /* adjust if needed */
  left: 1%;
  width: 100%;
  display: flex;
  gap: 8px;
  padding: 5px;
  flex-wrap: wrap;
  z-index: 50;
}
.instant-box {
  flex: 30;
  background: #f5f5f5;
  border: 2px solid #548532;
  min-height: 200px;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.group-box {
  flex: 30;
  background: #f5f5f5;
  border: 2px solid #548532;
  min-height: 200px;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.chat-box-banner {
  background: #548532;
}
.chat-box-banner {
  background: #548532;
  color: white;
  padding: 10px 0px;
  border-bottom: 2px solid black;
  display: flex;
  height: 25px;
  font-size: 0.9em;
  justify-content: space-between;
  align-items: center;
}

.dm-input-area button {
  margin-left: 8px;
  padding: 4px 10px;
  background: #C4FF9C;
  color: black;
  border: 2px solid black;
  cursor: pointer;
}

.group-box {
  flex: 30;
  background: #f5f5f5;
  border: 2px solid #548532;
  min-height: 200px;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.left-image-content {
  flex: 30;
  background: #f5f5f5;
  min-height: 312px;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.account-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  margin-top: 10px;
}

.account-links li a {
  text-decoration: none;
  color: darkgreen;
  font-size: 0.8em;
  padding: 6px 8px;
}

.account-links li a:hover {
  color: black;
}

.left-image-banner {
  position: sticky;
  top: 0;
  width: 100%;
  height: 30px;
  background-color: darkgreen;
  color: white;
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: space-between; /* text left, input right */
  padding: 0 10px;               /* space on left and right edges */
  border-bottom: 1px solid green;
  font-size: 0.9em;
  z-index: 10;
}

.left-box-banner {
  position: static;
  top: 0;
  width: 100%;
  height: 25px;
  background-color: #548532;
  color: white;
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: space-between; /* text left, input right */
  padding: 0px 0px;               /* space on left and right edges */
  border-bottom: 2px solid black;
  font-size: 0.9em;
  z-index: 10;
}



.instant-box-banner {
  position: sticky;
  top: 0;
  width: 100%;
  height: 25px;
  background-color: #548532;
  color: white;
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: space-between; /* text left, input right */
  padding: 0 10px;               /* space on left and right edges */
  border-bottom: 2px solid #548532;
  font-size: 0.9em;
  z-index: 10;
}
.group-banner {
  position: sticky;
  top: 0;
  width: 100%;
  height: 25px;
  background-color: #548532;
  color: white;
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: space-between; /* text left, input right */
  padding: 0 10px;               /* space on left and right edges */
  border-bottom: 2px solid #548532;
  font-size: 0.9em;
  z-index: 10;
}
.group-box-banner {
  position: sticky;
  top: 0;
  width: 100%;
  height: 25px;
  background-color: #548532;
  color: white;
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: space-between; /* text left, input right */
  padding: 0 10px;               /* space on left and right edges */
  border-bottom: 2px solid #548532;
  font-size: 0.9em;
  z-index: 10;
}

/* ================= REMINDERS MODAL ================= */
.modal {
  display: none; /* Hidden by default */
  position: fixed; 
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; /* Enable scroll if content is taller than screen */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto; /* 10% from top, centered horizontally */
  padding: 20px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: slideDown 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.modal-close:hover {
  color: #D62B2B;
}

.modal h2 {
  margin-bottom: 12px;;
  color: #4CAF50;
  font-size: 1.3em;
}

.modal p {
  font-size: 0.9em;
  line-height: 1.5;
  color: #555;
}

.modal button {
  padding: 6px 12px;
  border: none;
  cursor: pointer;
}

#reminders-modal button#create-reminder-btn {
  background-color: #4CAF50;
  color: white;
}

#reminders-modal button#create-reminder-btn:hover {
  background-color: #45a049;
}

/* Slide-down animation for modal */
@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.left-box-banner .close-btn-x {
  background: #ff5c5c; /* red XP-style button */
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 0 0px;
  display: inline-flex;
  border-bottom: 2px solid #548532;
  align-items: center;
  margin-Right: 0px;
  justify-content: center;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.left-box-banner .close-btn-x:hover {
  background: #ff1c1c;
}

/* ===== Chat container scroll behavior ===== */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  overflow-y: auto;
  height: calc(100vh - 180px); /* adjust as needed */
}

/* ----- Date label ----- */
.date-label {
  text-align: center;
  font-size: 0.75em;
  color: #666;
  margin: 10px 0;
  opacity: 0.9;
}

.message .message-text {
  font-size: 12px; /* adjust size as needed */
  line-height: 1.4; /* optional: keeps text readable */
}


/* ===== Speech Bubble Base ===== */
.chat-bubble {
  max-width: 65%;
  padding: 10px 14px;
  font-size: 0.85em;
  line-height: 1.35em;
  position: relative;
  display: inline-block;
  word-break: break-word;
  margin: 6px 0;
}

.chat-bubble .user-header a {
  color: #2670ff;
  text-decoration: underline;
}

/* ----- Sender (YOU) style ----- */
.chat-bubble.sent {
  background: #C4FF9C;
  border: 2px solid #2b6220;
  align-self: flex-end;
}

.chat-bubble .user-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 1em;
  margin-top: 0px;
  font-weight: 600;
  opacity: 0.9;
}

.bubble-avatar {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.15);
}

.user-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.bubble-username {
  font-size: 0.85em;
  font-weight: bold;
  color: #0073ff;
  text-decoration: none;
}

.bubble-time {
  margin-top: 4px;
  font-size: 0.75em;
  color: #666;
}

/* Tail */
.chat-bubble.sent::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 12px;
  border-width: 8px;
  border-style: solid;
  border-color: #C4FF9C transparent transparent transparent;
  transform: rotate(45deg);
}

/* ----- Received style ----- */
.chat-bubble.received {
  background: #fff;
  border: 2px solid #ccc;
  align-self: flex-start;
}

/* Tail */
.chat-bubble.received::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 12px;
  border-width: 8px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
  transform: rotate(-45deg);
}

/* ===== Sweet drop shadow for both ===== */
.chat-bubble.sent,
.chat-bubble.received {
  box-shadow: 0px 1px 3px rgba(0,0,0,0.12);
  border: 2px solid black;
}

/* ===== Unread badge on friends list ===== */
.unread-badge {
  background: red;
  color: white;
  font-size: 0.7em;
  padding: 0px 5px;
  border-radius: 8px;
  margin-left: 6px;
}

/* Scrollbar optional styling */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 3px;
}


.people-you-may-know {
  flex: 30;
  background: #f5f5f5;
  border: 2px solid darkgreen;
  min-height: 150px;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.people-you-may-know-banner {
  position: sticky;
  top: 0;
  width: 100%;
  height: 40px;
  background-color: #548532;
  color: white;
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: space-between; /* text left, input right */
  padding: 0 10px;               /* space on left and right edges */
  border-bottom: 2px solid black;
  font-size: 0.9em;
  margin-bottom: 15px;
  z-index: 10;
}

.left-post-input {
  width: 90%;
  padding: 10px;
  margin: 10px; /* centers the textarea */
  font-size: 0.9em;
  border: 2px solid #013220;
  resize: vertical; /* allow vertical resizing */
  box-sizing: border-box;
}


.right-box {
  flex: 30;
  background: #f5f5f5;
  border: 2px solid green;
  height: 180px;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.right-box-banner {
  position: sticky;
  top: 0;
  width: 100%;
  height: 40px;
  background-color: #90EE90;
  color: #013220;
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: space-between; /* text left, input right */
  padding: 0 10px;               /* space on left and right edges */
  border-bottom: 2px solid black;
  font-size: 0.9em;
  margin-bottom: 15px;
  z-index: 10;
}

.right-bottom-box {
  background: #f5f5f5;
  border: 2px solid green;
  min-height: 150px;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Optional sticky banner inside bottom right box */
.right-bottom-box-banner {
  position: sticky;
  top: 0;
  width: 100%;
  height: 40px;
  background-color: darkgreen;
  color: white;
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: flex-start;  /* text stick to the left */
  padding: 0 10px;              /* space on left and right edges */
  border-bottom: 2px solid black;
  font-size: 0.9em;
  margin-bottom: 15px;
  z-index: 10;
}

/* Content wrapper inside bottom right box */
.right-bottom-box-content {
  padding: 20px;
  flex: 1;
}

.right-column {
  flex: 30;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 20px; /* space between top-right and bottom-right boxes */
}

.bottom-row {
  display: flex;
  padding: 0 20px;  /* spacing from container sides */
  margin-top: 20px; /* gap from content above */
  width: 100%;
  box-sizing: border-box;
}

/* Bottom boxes */
.bottom-row .content-box {
  flex: 1;                  /* equal width */
  background: #f5f5f5;
  border: 1px solid green;
  font-size: 0.8rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0;               /* remove padding from box so banner touches top */
}
.bottom-left-content,
.additional-content,
.bottom-middle-content,
.bottom-right-content {
  padding: 10px;
  text-align: left;
  flex: 1;
}

/* Login text below credentials */
.login-text {
  margin-top: 10px;
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
  color: #001a0f;
}

/* Footer links at bottom */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

a.development-link {
  color: black;           /* default text color */
  text-decoration: underline;  /* optional: remove underline */
}

a.development-link:hover {
  color: #4CAF50;         /* green on hover */
}

.link-item {
  cursor: pointer;
  font-size: 11px;
  text-align: center;
  color: #800080;
  text-decoration: underline;
}

.footer {
  position: fixed;      /* always fixed to viewport */
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  z-index: 1;         /* on top of everything */
}

