@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;
  margin-bottom: 20px;
  line-height: 1.1;
  align-items: center;
  overflow-y: auto; 
  font-family: sans-serif; !important
}

.container {
  width: 1000px;
  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;
}

/* 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 */
}

/* 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;
  cursor: pointer;
  display: flex;
  color: white;
  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;
  display: flex;
  justify-content: center;
  border-bottom: 2px solid black;
  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;
}



.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: 568px;
  box-sizing: border-box;
}


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

.login-logo .left-box {
  width: 280px;   /* increase this number as needed */
  height: 170px;
  margin-top: 5px;
}

.contact-box-content {
  flex: 50;
  background: #f5f5f5;
  position: relative;
  min-height: 160px;   /* adjust to whatever height you want */
  overflow-y: auto;    /* enables vertical scrolling */
  padding-right: 5px;  /* room for scrollbar */
  display: flex;
  padding: 8px 12px;
  height: 160px;
  text-align: left;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border: 2px solid #548532;
}



/* Friend Request Modal - Windows XP Blue Style */
.friend-modal {
  width: 300px;
  max-width: 90%;
  border: 2px solid #000080; /* dark blue border */
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}

.friend-modal-banner {
  background-color: blue; /* bright blue banner */
  color: white;
  font-weight: bold;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  cursor: default;
  border-bottom: 2px solid #000080;
}

.modal .close-btn {
  background: red;       /* Red background */
  color: white;          /* White X */
  font-weight: bold;
  border-radius: 2px;
  padding: 2px 6px;
  height: 40%;
  cursor: pointer;
  float: right;
  font-size: 14px;
  margin-top: 5px;
  line-height: 14px;
}

  /* Optional: hover effect */
.modal .close-btn:hover {
  background: darkred;
}

.friend-modal-body {
  padding: 0px 0px;
  color: black;
  font-size: 0.9rem;
}

.modal-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-buttons button {
  background-color: #0000cd; /* bright blue */
  color: white;
  border: 1px solid #000080;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.85rem;
}

.modal-buttons button:hover {
  background-color: #4169e1; /* slightly lighter blue on hover */
}


#info-bio {
  display: inline-block;     /* allows width to control wrapping */
  max-width: 15ch;           /* wrap after roughly 10 characters */
  color: gray;
  word-wrap: break-word;     /* break words if needed */
  white-space: normal;       /* allow wrapping */
}

#info-age {
  color: gray;
}

#info-gender {
  color: gray;
}


.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns per row */
  gap: 10px 20px; /* vertical and horizontal gap */
}

.contact-btn {
  padding: 4px 4px;
  font-size: 11px;
  border: none;
  color: blue;
  cursor: pointer;
  background: none;
  text-align: left;
}


/* Force profile picture + info to be next to each other */
.profile-top-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 20px;
}

/* Ensure the info never goes under */
.profile-info {
  white-space: nowrap;
  line-height: 1;
  margin-Left: 10px;
  font-weight: none;
  font-size: 12px;
}
.info-row .info-value {
  max-width: 30ch;
  word-wrap: break-word;
  white-space: normal;
  /* Optional styling for saved state */
  color: black; /* green for saved text */
}

.info-value {
  white-space: normal;         /* allow wrapping */
  word-wrap: break-word;       /* old browsers */
  overflow-wrap: anywhere;     /* modern approach, breaks long words */
  max-width: 60%;             /* ensure it doesn't overflow container */
}
.profile-info div {
  margin-bottom: 6px;
  font-weight: none;
}

.info-row[data-field="Bio"] .info-value {
  max-width: 25ch;
  word-wrap: break-word;
  margin-Left: 20px;
  white-space: normal;
}

.info-row[data-field="Mobile"] .info-value {
  max-width: 30ch;
  word-wrap: break-word;
  white-space: normal;
}

.info-row[data-field="High School"] .info-value {
  max-width: 20ch;
  word-wrap: break-word;
  white-space: normal;
}

.info-row[data-field="Hometown"] .info-value {
  max-width: 30ch;
  word-wrap: break-word;
  white-space: normal;
}

.info-row[data-field="Favourite Shows"] .info-value {
  max-width: 30ch;
  word-wrap: break-word;
  white-space: normal;
}

.info-row[data-field="Favourite Movies"] .info-value {
  max-width: 30ch;
  word-wrap: break-word;
  white-space: normal;
}

.info-row[data-field="Hobbies"] .info-value {
  max-width: 30ch;
  word-wrap: break-word;
  white-space: normal;
}

.info-row[data-field="Music"] .info-value {
  max-width: 30ch;
  word-wrap: break-word;
  white-space: normal;
}

.link-item {
  cursor: pointer;
  font-size: 11px;
  text-align: center;
  color: #800080;
  text-decoration: underline;
}
.left-image-content {
  flex: 50;
  background: #f5f5f5;
  position: relative;
  max-height: 350px;   /* adjust to whatever height you want */
  overflow-y: auto;    /* enables vertical scrolling */
  padding-right: 5px;  /* room for scrollbar */
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  padding-bottom: 0px;
}


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

.profile-bio {
  max-height: 257px;   /* pick any height you want */
  padding-right: 6px;  /* room for scrollbar */
  margin-top: 10px;
}

.info-section {
  margin-bottom: 14px;
  padding: 8px;
}

.info-title {
  font-size: 13px;
  margin-bottom: 6px;
  color: #333;
}
.info-row {
  display: flex;
  justify-content: flex-start; /* keep items starting from left */
  gap: 8px;                     /* space between label and value */
  font-size: 10px;
  padding: 2px 0;
}

.info-label {
  color: #444;
  width: 120px; /* fixed width for all labels */
}

.info-value {
  color: gray;
  margin-Left: 20px;
  font-size: 1.1em;
  text-align: left;  /* values left-aligned */
  flex: 1;           /* take remaining space */
}
.account-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
}

.account-links li a {
  text-decoration: none;
  color: blue;
  font-size: 12px;
  padding: 10px 4px;
}

.left-image-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 4px;               /* space on left and right edges */
  border-bottom: 2px solid black;
  font-size: 0.9em;
  z-index: 10;
}

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

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

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

.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-content {
  display: block;         /* remove flex centering */
  text-align: left;
  overflow-y: auto;
  min-height: 250px;
  vertical-align: top;
}


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

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


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

.instant-msg-btn {
  color: blue;
  border: none;
  cursor: pointer;
}

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

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

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




/* 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 */
}


/* -------------------- MODAL -------------------- */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* dark overlay */
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex; /* show when active */
}

.modal-content {
  background-color: #fff;
  padding: 20px 25px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1rem;
}

.modal-content input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.modal-content .save-btn {
  padding: 8px 15px;
  background-color: #4CAF50;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.modal-content .save-btn:hover {
  background-color: #45a049;
}

.modal-content .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.modal-content .close-btn:hover {
  color: #000;
}


.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 */
}
html, body {
  background: lightgray;
}

/* Dark mode */
html[data-theme="ribbit-dark"],
body[data-theme="ribbit-dark"] {
  background: #3B3B3B; !important;
}
