* {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

/*HEADER STUFF*/

.header-left {
  border-right-color: black;
  border-right-style: dashed;
  border-right-width: 2px;
  box-sizing: border-box;
  text-align: center;
  display: inline-block;
  font-size: larger;
  font-weight: bold;
  color: #159dd8;
  background-color: #fcb53e;
  width: 24%;
  height: 100%;
}
.header-center {
  border-right-color: black;
  border-right-style: dashed;
  border-right-width: 2px;
  border-left-color: black;
  border-left-style: dashed;
  border-left-width: 2px;
  box-sizing: border-box;
  text-align: center;
  display: inline-block;
  font-size: larger;
  font-weight: bold;
  color: #159dd8;
  background-color: #fcb53e;
  width: 24%;
  height: 100%;
}
.header-right {
  border-left-color: black;
  border-left-style: dashed;
  border-left-width: 2px;
  box-sizing: border-box;
  text-align: center;
  display: inline-block;
  font-size: larger;
  font-weight: bold;
  color: #159dd8;
  background-color: #fcb53e;
  width: 24%;
  height: 100%;
}

#header-menu {
  background-color: #fcb53e;
  color: #fcb53e;
  margin-top: 10px;
  width: 100%;
  height: auto;
  overflow: visible;
}
/*DROPDOWN STUFF*/

.dropdown {
  display: inline-block;
  position: relative;
  overflow: visible;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  overflow: visible;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  background-color: #2bb891;
  text-decoration: none;
}

.dropdown-content a:hover {
  color: #159dd8;
  background-color: #00a4bd;
}

/*END DROPDOWN*/

header {
  background-color: #2bb891;
  position: fixed;
  z-index: 3;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 5%;
  overflow: visible;
}

/*END HEADER*/

.search-list {
  width: 30%;
  background-color: #d08856;
  color: #aa210f;
}

/* FORM STUFF */
.create-form {
  width: 100%;
  background-color: white;
  color: #159dd8;
  border-style: solid;
  border-color: #0c9dd6;
  padding: 2%;
}

p {
  white-space: pre-line;
}
.form-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  width: auto;
}

.form-label {
  background-color: white;
  color: #159dd8;
}
.form-input {
  border-style: ridge;
  margin: auto;
  background-color: #efefef;
  margin: 3px;
  color: #159dd8;
}

#error-label {
  color: #aa210f;
  font-size: small;
  font-style: italic;
}

.form-submit-button {
  margin: 10px;
}

/* END FORM */

/* BODY STUFF */

#body-background {
  position: fixed;
  z-index: 1;
  height: 90%;
  width: 100%;
  top: 5%;
  color: #159dd8;
  background-color: white;
  overflow: scroll;
  flex-grow: 1;
}
/* END BODY */

/* FOOTER STUFF */
footer {
  background-color: #2bb891;
  z-index: 2;
  color: #41403c;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 6%;
}
/* END FOOTER */

/* SEARCH LISTS STUFF */

#search-form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#search-form input[type="text"] {
  padding: 10px;
  font-size: 17px;
  border: 1px solid grey;
  float: left;
  width: 60%;
  background: #f1f1f1;
}

#search-form button {
  float: left;
  width: 20%;
  padding: 10px;
  background: #2196f3;
  color: white;
  font-size: 17px;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
}

#search-form button:hover {
  background: #0b7dda;
}

.search-result {
  box-sizing: border-box;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#list-collection {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: flex;
  overflow-x: auto;
}

.list-wrapper {
  flex: 1 0 33.33%;
}

.list-of-all {
  width: 100%;
  overflow: auto;
  max-height: 100%;
}

.list-header {
  font-size: large;
  font-weight: bold;
}

/* END SEARCH LISTS */

/* USER STUFF */

.user-info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.user-info-wrapper h1 {
  margin-bottom: 10px;
  color: #333;
}

.user-info-wrapper p {
  margin-bottom: 10px;
  color: #666;
}

.profile-picture {
  size: fixed;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* END USER */

/* PHOTO GALLERY STUFF */

.gallery-wrapper {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 20px auto;
}

.gallery-grid {
  display: grid;
  /* Two columns, stacking vertically. */
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 12px;
}

.gallery-item {
  position: relative;
  margin: 0;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  cursor: zoom-in; /* hint: double-click to enlarge */
}

/* Per-picture caption: a bar pinned to the bottom of the image.
   Collapsed to one line by default; click it to expand the full text. */
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 6px 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  cursor: pointer;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item.caption-open .gallery-caption {
  white-space: normal;
  overflow: visible;
  background-color: rgba(0, 0, 0, 0.82);
}

.gallery-delete-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(170, 33, 15, 0.85);
  color: white;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 5px;
}

.gallery-delete-button:hover {
  background-color: rgba(170, 33, 15, 1);
}

/* Enlarged-picture overlay (double-click a picture). */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-image {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

.gallery-lightbox-caption {
  margin-top: 12px;
  color: white;
  font-size: 16px;
  text-align: center;
  max-width: 90%;
}

.gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

/* Messages Stuff */
.message-send {
  background-color: #4caf50; /* Green */
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

#messages-wrapper {
  margin: 3px;
  padding-left: 5px;
  padding-right: 5px;
  size: fixed;
  width: 50%;
  max-height: 50%;
  border-width: 2px;
  color: #159dd8;
  border-style: solid;
  border-color: #0c9dd6;
  overflow: auto;
}

.message-sender {
  display: inline-block;
  font-size: smaller;
  color: #aaaaaa;
  margin: 5px;
}

.message-text {
  display: block;
  margin: 5px;
}

.delete-comment-button {
  display: inline-block;
}

.message {
  margin: 5px;
  background-color: #f0f0f0;
}

.messages-container {
  overflow: auto;
  max-height: 25%;
  display: flex;
  flex-direction: column-reverse;
}

/* End Messages */

/* Friend Request Stuff */

#friend-request-wrapper {
  size: fixed;
  width: 50%;
  height: 25%;
  border-style: solid;
  border-width: 2px;
  border-color: #aaaaaa;
  overflow: auto;
}

#friend-request {
  background-color: #eeeeee;
}

.button-wrapper {
  align-content: center;
  display: inline-block;
  size: auto;
  width: 9%;
}

.request-sender {
  color: black;
  display: inline-block;
  width: 80%;
}
.accept-button {
  background-color: greenyellow;
  display: inline-block;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

.reject-button {
  background-color: red;
  display: inline-block;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

/* End Friend Request */

/* Weather */

.weather-data {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
}

.forecast {
  flex: 1 0 10%;
  margin: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.forecast img {
  width: 50%;
  height: auto;
}

/* End Weather */

/* Main Page */
.home-image {
  display: block;
  width: auto;
  height: 55%;
  margin: auto;
}

.logo-image {
  display: block;
  width: auto;
  height: 300px;
}

.welcome-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#index-main {
  height: 100%;
  width: 80%;
  margin: auto;
}

main {
  height: 100%;
  width: 100%;
  margin: auto;
}

p.index {
  text-align: center;
  font-size: 20px;
}

.mortgage-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mortgage-logo {
  display: block;
  width: auto;
  height: 200px;
  margin: auto;
}
/* End Main Page */

/* Event Page */

.event-container {
  display: flex;
  justify-content: space-between;
}

.event-content {
  flex: 1;
}

.event-image-container {
  /* Adjust the width as needed */
  width: 40%;
  margin: 5%;
}

.event-image {
  width: 100%;
  height: auto;
}

/* End Event Page */

/* Group Page */

.group-container {
  display: flex;
  justify-content: space-between;
}

.group-content {
  flex: 1;
}

.group-image-container {
  /* Adjust the width as needed */
  width: 40%;
  margin: 5%;
}

.group-image {
  width: 100%;
  height: auto;
}
/* End Group Page */

/* MISC. STUFF */

.hidden {
  display: none;
}

.edit-button {
  background-color: #4caf50; /* Green */
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

.join-button {
  background-color: #4caf50; /* Green */
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

.delete-button {
  background-color: #aa210f; /* Red */
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

.leave-button {
  background-color: #aa210f; /* Red */
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

#password {
  font-size: 8pt;
}
/* END MISC. */

/* ===== REUSABLE SPACING UTILITIES ===== */
/* Small, composable helpers so page-specific spacing tweaks live in CSS
   instead of inline style="" attributes. Extend the scale as needed
   (e.g. .mt-10, .mb-20) to keep markup free of inline styles. */
.mt-5 {
  margin-top: 5px;
}
.mb-5 {
  margin-bottom: 5px;
}
.my-5 {
  margin-top: 5px;
  margin-bottom: 5px;
}
/* ===== END UTILITIES ===== */

/* ===== VISIBILITY / PROFILE / SLIDER ===== */
.visibility-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 16px auto;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
}

.visibility-public,
.visibility-badge:not(.visibility-private) {
  background-color: #e8f0e9;
  color: #2f5d34;
}

.visibility-private,
.visibility-badge.visibility-private {
  background-color: #f3e8e6;
  color: #8a3b2f;
}

.event-content h1 .visibility-badge,
.event-content h1 .listing-badge,
.search-result .visibility-badge {
  display: inline-block;
  margin: 0 0 0 8px;
  vertical-align: middle;
}

.listing-badge {
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
}

.listing-on {
  background-color: #e6f4ea;
  color: #1e7e34;
}

.listing-off {
  background-color: #f1f1f1;
  color: #666;
}

.profile-name {
  margin: 8px 0 10px 0;
  color: #222;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 12px;
  align-items: center;
  margin: 0 auto 28px auto;
  max-width: 900px;
}

.profile-picture-hero {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 0;
  object-fit: cover;
  margin: 0;
}

.profile-statement-wrap {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  text-align: center;
}

.profile-statement {
  white-space: pre-wrap;
  color: #333;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  width: 100%;
}

.profile-link-website {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}

.profile-link-social {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.profile-link a {
  color: #222;
  text-decoration: underline;
  word-break: break-word;
}

.profile-description {
  white-space: pre-wrap;
  color: #333;
  line-height: 1.55;
  max-width: 900px;
  margin: 0 auto 28px auto;
}

.description-box {
  white-space: pre-wrap;
  padding: 12px 14px;
  background-color: #f7f7f5;
  border-left: 3px solid #bbb;
  color: #333;
  margin-bottom: 12px;
}

.profile-section {
  margin-bottom: 24px;
}

.profile-family-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.profile-family-groups h3 {
  margin-top: 0;
}

.profile-family-groups ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.profile-family-groups li {
  margin-bottom: 6px;
}

.profile-picture-bar {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.picture-bar-description {
  color: #555;
  margin-bottom: 10px;
}

.private-box {
  padding: 12px 14px;
  background-color: #faf6f5;
  border: 1px solid #e8d8d4;
  border-radius: 6px;
}

.muted {
  color: #888;
}

.private-entity {
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
}

.picture-slider {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 0 auto 24px auto;
}

.picture-slider-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
  overflow: hidden;
  border-radius: 6px;
}

.picture-slider-slide {
  display: none;
  margin: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.picture-slider-slide.is-active {
  display: block;
}

.picture-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.picture-slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
}

.slideshow-title-hint {
  margin: 6px 0 10px 0;
  font-size: 0.9rem;
}

.collaboration-hint {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
}

.collaboration-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}

.collaboration-check input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.picture-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.picture-slider-prev {
  left: 8px;
}

.picture-slider-next {
  right: 8px;
}

.picture-slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.75);
}

.picture-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.picture-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: #ccc;
  cursor: pointer;
}

.picture-slider-dot.is-active {
  background-color: #555;
}

.slider-delete-button {
  z-index: 3;
}

@media (max-width: 640px) {
  .profile-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 360px;
  }

  .profile-picture-hero,
  .profile-statement-wrap,
  .profile-link-website,
  .profile-link-social {
    grid-column: 1;
    grid-row: auto;
  }

  .profile-picture-hero {
    max-width: none;
  }

  .profile-family-groups {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .picture-slider-viewport {
    aspect-ratio: 4 / 3;
  }
}
/* ===== END VISIBILITY / PROFILE / SLIDER ===== */
