/* GET RID OF BOOTSTARP */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

.container-xl {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  /* padding-inline: 1rem; */
}

.gx-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* your default spacing */
}

input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s,
    box-shadow 0.15s;
}
/* GET RID OF BOOTSTARP */

/* Base palette */
:root {
  --primary: black;
  --primary-light: white;
  --background: #ffffff;
  --text: #333;
  --bg_right: #96a0b6;
  --bg_right_light: #acaebf;
}

.profile_bar {
  user-select: none;
  display: flex;
  overflow: hidden;
  align-items: center;
  border: 0.1rem solid black;

  background-color: #484e74;
  padding: 0.5rem;
  border-radius: 8px;
}

.profile_link {
  margin-left: 10px;
  font-weight: bold;
}

#description {
  display: flex;
  overflow: hidden;
  align-items: center;
  /* 1border: 1px solid black; */
  padding: 10px;
  margin: 10px 0px;
  background-color: #9394a4;

  background-color: #5b5c79;
  padding: 0.5rem;
  border-radius: 8px;
}

.postOptionsParent {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px;
}

.post_top_info {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  margin: 10px 0px;
}
.small_delete {
  width: 25px;
  aspect-ratio: 1;
  border-radius: 100%;
  background-color: red;
  border: solid black 2px;
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 38;
  color: black;
  font-weight: bolder;
}

.delete-button {
  transition: background-color 0.3s, transform 0.2s;
  border: solid black 3px;
  border-radius: 6px;
  color: #ffffff;
  background-color: #eb002c;
  margin: 5px;
}

.delete-button:hover {
  background-color: #cc0000; /* Darker red */
}

.delete-button:active {
  transform: scale(0.98);
}

/* Optional: Adding an icon */
.delete-button i {
  font-size: 18px;
}

.pano_change_arrow {
  height: 100%;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  margin-left: 0.5%;
  margin-right: 0.5%;
  flex-grow: 1;
  flex-shrink: 0;
}

.pano_list {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* scroll-behavior: unset; */
  gap: 3px;
  top: 0;
  left: 10%;
  height: 100%;
  flex-grow: 5;

  top: 0;
  left: 10%;
  height: 100%;
  flex-grow: 5;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

#pano_list_parent {
  opacity: 0.1;

  transition: top 0.5s ease, opacity 0.5s ease;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  /* overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none; */
}

#pano_list_parent.hide {
  display: none;
}

#pano_list_parent.slide {
  top: -96px;
  opacity: 0.3;
}

#pano_list_parent:hover {
  opacity: 1;
  background-color: #000000;
}

#pano_list_parent.visible {
  opacity: 1;
  background-color: #000000;
}

.selectable_pano {
  background-image: url("/img/error.png");
  height: 90px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-size: cover;
}

.selectable_pano:hover {
  border: solid white 3px;
}

.selected_pano {
  border: solid white 3px;
}

#dingus {
  user-select: none;
  position: absolute;
  top: 104%;
  left: 50%;
  transform: translate(-30%, -35%);
  font-size: 25px;
  height: 30px;
  width: 30px;
}

#main_box {
  color: white;
  /* height: 95vh; */
  flex: 1;
  width: 100vw; /* Full viewport width */
  display: flex;
  max-height: 96svh;

  /* Prevents scrolling in the main content area */
  min-width: 0;

  overflow: hidden;
}

.top-bar {
  height: 4svh;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px;
  background-color: #606060;
  background-color: #5a636c;

  padding: 0px 10px;
  user-select: none;
}

.top_bar_a {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
  align-items: center;

  max-width: 95vw;
  padding: 0 5px;

  background: rgba(77, 95, 197, 0.8);
  border-radius: 5px;
  box-shadow: 0px 0px 1svh rgba(0, 0, 0, 0.5);

  font-size: 2.8svh;
  height: 4.5svh;
  margin: 0.4svh 0.6svw;
  color: white;
  cursor: pointer;
}

.top_bar_a:hover {
  background: rgb(77, 95, 197);
}

.top-bar button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.right_m_box {
  padding: 2px;
}

.right_m_icon {
  aspect-ratio: 1;
  height: 100%;
  filter: brightness(0) invert(1);
}

.top_bar_pfp {
  height: 3.6vh;
  width: 3.6vh;
  border-radius: 25%;
  border: solid rgb(255, 255, 255) 2px;
}

.top_bar_icon {
  height: 4vh;
  width: 4vh;
  filter: brightness(0) invert(1);
}

#top_bar_name {
  overflow: hidden;
}

.top_bar_arrows {
  display: flex;
  height: 94%;
}

#user_settings_dropdown_btn {
  font-size: 0px;
}

.dropdown {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: wrap;
  align-content: center;

  padding: 5px 0px;
  top: 4.5vh;
  right: 1vw;
  background: rgb(193 197 220 / 80%);
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
  text-align: center;

  animation: fadeIn 1s ease-in-out;
  backdrop-filter: blur(4px);

  z-index: 9999;
}

.user_settings_dropdown {
  top: 4.5vh;
  right: 1vw;
}

.upload_dropdown {
  top: 4.5vh;
  right: calc(25vw - 4vh);
}

.upload_section {
  padding: 0.3rem;
  /* margin-top: 10px;  */
  font-size: 14px;
}

/* .help-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#e9ecef;color:#111;font-weight:700;font-size:12px;cursor:default;margin-left:8px}
.help-icon:focus{outline:2px solid #9fc7ff}
.help-icon .help-tooltip{visibility:hidden;opacity:0;transition:opacity .15s ease,visibility .15s;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#222;color:#fff;padding:6px 8px;border-radius:4px;white-space:nowrap;font-size:12px;z-index:1000;pointer-events:none}
.help-icon:hover .help-tooltip,.help-icon:focus .help-tooltip{visibility:visible;opacity:1;pointer-events:auto} */

.help-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e9ecef;
  color: #111;
  font-weight: 700;
  font-size: 12px;
  cursor: default;
  margin-left: 8px;
}

.help-icon:focus {
  outline: 2px solid #9fc7ff;
}

.help-icon .help-tooltip {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease, visibility 0.15s;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 1000;
  pointer-events: none;
}

.help-icon:hover .help-tooltip,
.help-icon:focus .help-tooltip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.help-icon .help-tooltip.tooltip-upload {
  transform: translateX(-100%);
  width: 270px;
  white-space: unset;
}

/* Reset default details marker */
.collapsible-summary::-webkit-details-marker {
  display: none;
}

/* Overall collapsible box */
.collapsible {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--primary-light);
  border-radius: 4px;
  margin: 12px 0;
  box-shadow: 0 2px 5px rgba(150, 160, 182, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
}

.collapsible[open] {
  box-shadow: 0 3px 8px rgba(150, 160, 182, 0.25);
}

/* Summary (header) */
.collapsible-summary {
  cursor: pointer;
  padding: 4px 16px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(150, 160, 182, 0.1);
  border: solid black 0.1rem;
  user-select: none;
  position: relative;
  transition: background 0.2s ease;
}

.collapsible-summary:hover {
  background: rgba(150, 160, 182, 0.2);
}

/* Add custom arrow indicator */
.collapsible-summary::after {
  content: "›";
  position: absolute;
  right: 4%;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.collapsible[open] .collapsible-summary::after {
  transform: rotate(270deg);
}

/* Inner content */
.collapsible-content {
  padding: 8px;
  color: var(--primary-light);
  background: var(--bg_right_light);
}

.collapsible-content p {
  font-size: medium;
  margin: 0 0 12px;
  color: var(--primary-light);
}

/* Button style */
.action-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 600;
}

.action-btn:hover {
  background: var(--primary-light);
}

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--primary-light);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.new-collection-form {
  font-size: larger;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;

  margin-top: 10px;
}

#add_existing_collection {
  align-items: center;
  justify-content: center;
  flex-direction: row;
  min-height: 200px;
}

/* When checkbox is checked → show form
.collapsible-content:has(.collapsible-checkbox:checked) .new-collection-form {
  max-height: 300px;
  opacity: 1;
} */

/* Style the inputs nicely */
.new-collection-form input[type="text"],
.new-collection-form textarea {
  margin-bottom: 8px;
  border: 1px solid var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  padding: 8px;
  font-size: 0.95rem;
  background: #f9f9f9;
  resize: vertical;
  transition: border 0.3s ease;
}

.new-collection-form input[type="text"]:focus,
.new-collection-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: #fff;
}

/* Optional: make textarea a bit smaller */
.new-collection-form textarea {
  min-height: 60px;
  max-height: 150px;
}

.collMiniIcon {
  background-size: cover;
  background-origin: unset;
  aspect-ratio: 1;
  border: 2px solid;
  width: 30%;
  margin: 4px;

  user-select: none;
  cursor: pointer;
}

.upload_separator {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #f5f5f5, #ccc, #f5f5f5);
  margin: 0.4rem 0;
}

.show {
  display: flex;
}
.user_settings_dropdown a {
  color: white;
}

/* For WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
  width: 0.3rem; /* Width of the scrollbar */
  height: 0.3rem; /* Height of the scrollbar (for horizontal scrollbars) */
}

::-webkit-scrollbar-track {
  background: rgb(101 101 101); /* Track background */
}

::-webkit-scrollbar-thumb {
  background-color: rgb(255 255 255 / 30%); /* Scrollbar color */
  border-radius: 3px; /* Rounded edges */
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5); /* Slightly darker on hover */
}

/* Left column - flexible width */
#left_column {
  position: relative;
  flex-grow: 1;
  flex-shrink: 1; /* Makes the left column expand to fill remaining space */
  background-color: #f0f0f0;
  padding: 0;
  margin: 0;
  /*display: inline-block;*/
  min-width: 0; /* Prevents it from shrinking below zero */
}

#Pano_canvas {
  touch-action: none;
}

#right_panel {
  width: 300px; /* Fixed width */
  background-color: #acaebf; /*  #d0d0d0 */

  background-color: #96a0b6;
  overflow-y: auto; /* Allows internal scrolling */
  height: 100%;

  flex-shrink: 0; /* Prevents shrinking when resizing */
  transition: height 0.5s ease;
  /* transition: 0.5s ease; */

  /* scrollbar-width: none; */
}

#right_panel button {
  color: black;
  padding: 3px;
  font-weight: bold;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  color: black;
  padding: 0px 4px 0px 4px;
  font-weight: bold;
}

#logo {
  background-color: #353030;
}

#content {
  background-color: #2b2727;
}

.comment {
  position: relative;
  margin-top: 6px;
  margin-bottom: 6px;
  border-radius: 7px;
  padding: 7px;
  transition: opacity ease-in-out 2s;
}
.comment_top {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-height: 3em;
}

.comment_mid {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
}
.send_arrow {
  cursor: pointer;
  width: 10%;
  height: auto;
  margin-top: 10px;
  background: url(/img/ui/send.svg);
  background-size: contain;
  filter: brightness(0) invert(1);
  background-repeat: no-repeat;
  max-width: 4vh;
}

.edited_mark {
  border-radius: 5px;
  padding: 0.1em;
  background-color: dimgray;
  right: 0.3em;
  display: block;
  position: absolute;
  bottom: 0.3em;
  font-weight: bold;
}
.comment_options_sub {
  top: -5%;
  right: -1.5%;
  position: absolute;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-around;

  background-color: #b2cfee;
  /* height: 80px;
  width: 120px; */
  border: solid black 2px;
  border-radius: 5px;

  transition: opacity 0.2s ease, visibility 0.2s ease;
  visibility: hidden;
  opacity: 0;
  z-index: 10;
}

.comment_3dots {
  transition: opacity 0.2s ease, visibility 0.2s ease;

  background-size: contain;
  background-position-x: right;
  background-position-y: top;
  background-repeat: no-repeat;
  aspect-ratio: 1;

  display: block;
  width: 1em;
  height: 2em;
  background-image: url("/img/ui/3dots.svg");
}

.comment_3dots:hover .comment_options_sub {
  opacity: 1;
  visibility: visible;
}

.options_sub_sub {
  cursor: pointer;
  padding: 3px;
  margin: 3px;
  background-color: #63676a;
}

#comment_input_field {
  flex-grow: 1;
  color: white;
  padding: 5px;
  margin-right: 3px;
  font-size: 14px;
}
#comment_input_container {
  display: flex;
  width: 100%;
}

#char_count {
  margin-top: 10px;
  color: white;
  font-size: 12px;
}

.comment_a {
  display: flex;
  flex-direction: row;
}
.comment_bottom {
  overflow-wrap: break-word;

  text-overflow: clip;
}

.comment_style_a {
  background-color: #43566f86;
}

.comment_style_b {
  background-color: #7a7a877e;
}

.comment_style_c {
  background-color: #27b48b;
}

.comment strong {
  height: 50%;
  overflow: hidden;
  overflow-wrap: break-word;
}

.comment_profile_pic {
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  border: 3px solid black;
  margin-right: 0.2rem;
}

.hide {
  display: none !important;
}

#profilePictureUrl {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 4px solid black;
}

#mobile_controlls {
  display: none;
  z-index: 10;
}

#extend_right_panel_pc {
  top: 94vh;
  width: 40px;
  font-size: xx-large;
  font-weight: bolder;
  color: white;
  background: transparent;
  overflow: hidden;
  transform: translate(-37px) rotate(90deg);

  user-select: none;
}

@media (min-width: 900px) {
  #right_panel.expanded_pc {
    width: 0vw !important;

    padding-left: 0px;
    padding-right: 0px;
  }
  #right_panel_og,
  #right_panel_upload {
    /* margin-top: 10px; */
  }
}

@media (max-width: 900px) {
  #right_panel.expanded_mobile {
    height: 40vh !important;
    overflow: scroll;
  }

  #right_panel_og,
  #right_panel_upload {
    margin-top: 4vh;
  }

  #main_box {
    flex-direction: column; /* Stack left and right panels vertically */
  }

  #left_column {
    width: 100%; /* Full width on mobile */
    height: 100%;
    user-select: none;
  }

  #left-column.profilepage_open {
    height: 100px;
    width: 100px;
  }

  #right_panel {
    width: 100%;
    margin-top: 0px;
    padding: 0em;
    padding-top: 0em;
    position: fixed;
    left: 0;
    bottom: 0;
    height: 4vh;
    overflow-y: hidden;
    transition: height 0.5s ease;
    /* Prevents the right column from shrinking */
  }

  #mobile_controlls {
    display: flex;
    height: 4vh;
    padding: 0px;
    justify-content: space-around;
  }

  /*special css for user profile page on mobile devices*/
}

/* fixes  */
html {
  height: 100svh;
}

body {
  /* background-image: url("../tile_background2.png"); */
  background: linear-gradient(180deg, #1e3a5f, #2d5a8a, #4a77b6);
  height: 100svh;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
}

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

/*////////////////////////////////////////////////////
//////////////////////////////////////////////////////*/

#profile_page_edit {
  border: solid #6659db 0.4rem;
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 96%;
  background-color: #d4e4ff;
  top: 2%;
  left: 50%;
  transform: translate(-50%, 0%);
  box-sizing: border-box;
  z-index: 10;
  border-radius: 10px;

  align-items: stretch;
  padding-bottom: 5rem;

  background-color: aliceblue;
}

#profile_edit_toggle {
  color: white;
  margin-top: 1rem;
  background-color: #383c59;
  background-color: #4755bb;
  padding: 2px 10px;

  border-radius: 8px;
}

#profile_edit_close {
  font-weight: 600;
  font-size: large;
  color: white;
  background: darkred;
}

#profile_bio_edit {
  min-height: 25vh;
}

#main_box.profilepage_open {
  display: flex;
  flex-grow: 1;
  min-width: 0;
  flex-wrap: nowrap;
  flex-direction: column;

  scrollbar-width: 30px;

  overflow-y: scroll;
}

#left_column.profilepage_open {
  height: 20vh;
  flex-grow: 0;
  width: 100vw;
}

#userprofile_page {
  width: 100vw;
  min-height: 80vh;
  height: auto;
  flex-grow: 1;
}

#userprofile_page_content {
  background-color: gray;

  /* Darker variant */
  background-color: #3c4073;

  /* Lighter variant */
  background-color: #5a5f94;

  /* Slightly tinted variant */
  background-color: #464b82cc; /* Adds transparency */

  /* Gradient from base to darker */
  background: linear-gradient(45deg, #464b82, #3c4073);

  /* Gradient from base to lighter */
  background: linear-gradient(45deg, #464b82, #5a5f94);

  /* Subtle overlay with transparency */
  background: linear-gradient(90deg, #464b82, #464b82cc);

  /* Vibrant purple-to-blue gradient */
  background: linear-gradient(90deg, #464b82, #5864c2);

  /* Cool dusk effect */
  background: linear-gradient(120deg, #464b82, #3c4073, #5864c2);

  min-height: 80vh;
  font-size: 20px;
  /*padding: 3%;*/
}

.userprofile_page.hide {
  display: none;
  opacity: 0;
}

#profile_top_bar {
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: nowrap;
}

.profile_picture {
  user-select: none;
  cursor: pointer;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 50%;
  border: 4px solid black;
  width: calc((50vw + 250vh) / 200 * 14);
  height: calc((50vw + 250vh) / 200 * 14);
  position: absolute;
  top: -5vh;
  left: 0;
}

.profile_picture_edit {
  position: unset;
  top: unset;
  left: unset;
  background-size: cover;
  /* background-position-x: 17%;
  background-position-y: 10%; */
}

#pfp_pslider_y {
  width: calc((50vw + 250vh) / 200 * 14);
  transform: rotate(90deg);
  position: absolute;
  left: 60%;
  top: 30%;
  touch-action: none;
}
#pfp_pslider_size {
  width: calc((50vw + 250vh) / 200 * 14);
  touch-action: none;
}

#pfp_pslider_x {
  width: calc((50vw + 250vh) / 200 * 14);
  margin: 1rem 0px;
  touch-action: none;
}

#pfp_preview {
  display: inline-block;
}

#friendly_name_edit {
  background: white;
  color: unset;
}
#profile_details {
  margin: 1vw;
  display: flex;
  flex-grow: 1;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: stretch;
}

#BLOCKER {
  user-select: none;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;

  width: calc((50vw + 250vh) / 200 * 14);
  height: calc((((50vw + 250vh) / 200 * 14) - 5vh));
}

#profile_page_about_me {
  margin-bottom: 10px;
  border-radius: 10px;
  background-color: beige;
  min-height: 5vh;
  max-height: 15vh;
  padding: 5px;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow: hidden; /* <-- start hidden */
  position: relative;
}

#expand_button {
  margin-left: auto;
  display: none; /* hidden until needed */
  cursor: pointer;
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
}

#profile_page_sides {
  width: 100%;
  height: auto;
  position: relative;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
}

#profile_page_left {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: aquamarine;
  min-height: 30vh;
  width: 30%;
  margin: 10px;
}

#profile_page_right {
  flex-grow: 1;
  border-radius: 10px;
  background-color: #cf63e7;
  background: linear-gradient(270deg, #cf63e7, #813194);
  /* overflow: hidden; im disabling this beacuse polaroids in photos tab are cliped when expanded*/
  min-height: 50vh;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin: 10px;
  padding-bottom: 20px;
  padding: 0px 0.3rem;
}

.collection_box {
  padding-top: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 320px;
  min-width: 49%;
  max-width: 99%;
  aspect-ratio: 5 / 4;
  font-size: small;

  background: linear-gradient(to bottom right, #f8f8f8, #eaeaea);
  background-color: #eaeaea;
  border-radius: 2%;
  border: 2px solid #8c8c8c;
  color: black;

  position: relative;
  overflow: hidden;

  margin: 0.5%;

  /* transition: transform 0.5s ease, box-shadow 0.3s ease, z-index 0.3s ease;
    transform-style: preserve-3d; */
  transform: scale(1);

  z-index: 1;
}

.collection-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000000;
}

.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  position: fixed;
  top: 5%;
  width: 93%;
  height: 72%;
  border: 2px solid #8c8c8c;
}

.collection_img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Add blur and white tint */
  filter: blur(0.5px);
  /* opacity: 0.8; */
}

#collection_links {
  display: flex;
  width: 100%;
  min-height: 400px;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-evenly;
}

#selected_collection {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
  min-height: 400px;
  background-color: #e0e0e0;
  background: linear-gradient(0deg, rgb(255, 228, 163), rgb(255, 215, 125));
  background-color: rgba(247, 238, 215, 0.9);
}

#collection_images {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  flex-direction: row;

  width: 100%;
  min-height: 300px;
}

#collection_description {
  min-height: 150px;
  margin: 1rem;
  padding: 0.5rem;
  background-color: #e0e0e0;
  background: linear-gradient(0deg, rgb(244, 198, 92), rgb(255, 215, 125));
  border-color: rgb(203, 178, 113);

  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", sans-serif;
}

#collection_back {
  position: absolute;
  top: 25px;
  right: 25px;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background-color: #6c757d; /* sleek gray */
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;

  user-select: none;
}

#collection_back:hover {
  background-color: #5a6268;
  transform: scale(1.05);
}

#collection_back:active {
  background-color: #495057;
  transform: scale(0.97);
}

.collection-title {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 1;
  text-align: center;
  padding: 4%;
}

.coll_stat {
  color: #000000;
}

.profile_page_collections {
  align-content: flex-start;
  flex-direction: row;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  border: solid 5px #cbb271;
  min-height: 45vh;
  border-radius: 10px;

  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/* Container Card */
.collection-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.06);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

/* Thumbnail */
.collection-thumb {
  flex: 0 0 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6, #e9eef8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-thumb-placeholder {
  width: 56px;
  height: 56px;
}

/* Content Section */
.collection-content {
  flex: 1;
  min-width: 0;
}

.collection-opened-title {
  margin: 0 0 6px 0;
  font-size: 1.5rem;
  line-height: 1.15;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-description {
  margin: 0 0 8px 0;
  color: #374151;
  font-size: 0.98rem;
  /* max-height: 3.2rem; */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta Info */
.collection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.95rem;
  color: #6b7280;
}

.collection-meta strong {
  color: #111827;
  font-weight: 600;
}

.collection-meta .separator {
  opacity: 0.5;
}

/* Stats Section */
.coll-stats {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #374151;
}

.stat-pill {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  background: #f8fafc;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

#all_user_pano {
  display: flex;
  justify-content: space-evenly;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.polaroid {
  display: flex;
  flex-direction: column-reverse;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;

  width: 190px;
  max-width: 49%;
  aspect-ratio: 1 / 1.28;
  font-size: small;
  background: linear-gradient(to bottom right, #f8f8f8, #eaeaea);

  background-color: aliceblue;
  border-radius: 2%;
  border: 2px solid black;
  color: black;

  position: relative;
  overflow: hidden;

  margin: 0.5%;
  transition: transform 0.5s ease, box-shadow 0.3s ease, z-index 0.3s ease;

  transform-style: preserve-3d;
  transform: scale(1);
  z-index: 1;

  box-shadow: 0 2px 5px rgb(0, 0, 0);

  opacity: 0;
  animation: fadeInPolaroid 0.6s ease forwards;
}

@keyframes fadeInPolaroid {
  to {
    opacity: 1;
  }
}
.polaroid:hover {
  transform: scale(1.25) rotate(-1deg);
  z-index: 15; /* Ensure it appears above other items */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.polaroid_upload {
  max-width: unset;
}

.polaroid_upload:hover {
  transform: scale(1.5); /* Increase size on hover */
  z-index: 15; /* Ensure it appears above other items */
}

.polaroid_img {
  position: absolute;

  top: 0%;
  /* width: 90%;
    border: 2px solid black; */
  aspect-ratio: 1 / 1;
  z-index: 1;

  width: 100%;
  height: auto;
  border: 9px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin-bottom: 0.5rem;

  /* aspect ratio update */
  object-position: 50% 50%;
  object-fit: cover;
}

/* Animation that pans from center → left → right */
.polaroid_img:hover {
  animation: panImage 5s ease-in-out forwards;
}

@keyframes panImage {
  0% {
    object-position: 50% 50%;
  } /* center */
  33% {
    object-position: 0% 50%;
  } /* left */
  66% {
    object-position: 100% 50%;
  } /* right */
  100% {
    object-position: 50% 50%;
  } /* back to center */
}

.polaroid_text.wide {
  height: 21%;
  top: 79%;
  color: #000000;
  width: 100%;
}

.polaroid_text {
  display: flex;
  white-space: nowrap;
  flex-wrap: wrap;
  align-content: center;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;

  position: absolute;
  z-index: 0;

  height: 22%;
  overflow: hidden;

  width: 100%;
  padding: 0.1rem 0.3rem;

  text-align: center;

  font-size: 0.9rem;
  font-size: 120%;
  /* % is more consistent on all devices */
  background-color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid #ddd;

  /* font-family: 'Courier New', Courier, monospace;
  font-family: 'Rock Salt'; */
  font-family: "Patrick Hand", cursive;

  text-shadow: 0.5px 0.5px #ccc;
}

.polaroid_inner_text {
  height: 50%;
  max-width: 100%;
  color: black;
  overflow: hidden;
}

/* Start animation only on hover */
.polaroid:hover .polaroid_scroll {
  animation: scroll-text 10s linear infinite;
  overflow: unset;
}

.scroll-mask {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

@keyframes scroll-text {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-200%);
  }
}

.buttons_parent {
  user-select: none;

  padding-top: 0.2rem;
  padding-left: 1%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: flex-start;
  position: relative;
  top: 5px;
  padding-top: 0.2rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.button_base {
  font-weight: bold;
  font-size: 22px;
  color: black;
  border-bottom: none;
  position: relative;

  border-top-left-radius: 0.3rem;
  border-top-right-radius: 1.5rem;
  z-index: 0;

  margin-left: 2%;
  padding: 0.4rem 0.6rem;

  overflow: hidden;
}

.button_one {
  /* background-color: #FFDF8E; */
  background-color: rgb(255, 215, 125);
  border-color: #bca559;
}

.button_two {
  background-color: #f4c65c;
  border-color: #cbb271;
}

.button_three {
  z-index: 0;
  background-color: #fbd272;
  border-color: #e2bd67;
}

#error_window {
  background-color: aliceblue;
}

#error_window_in {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  justify-content: start; /* Align items at the top */
  text-align: center; /* Center-align text within each element */
  padding: 20px;
  width: 100%; /* Full width of the container */
  height: 100vh; /* Full viewport height */
  box-sizing: border-box;
}

/* Image styling */
#error_window_in img {
  width: 50%; /* Takes 50% of the container's width */
  height: auto; /* Maintains aspect ratio */
  margin-bottom: 20px; /* Space between image and heading */
}

/* Heading styling */
#error_window_in h1 {
  margin: 0;
  font-size: 1.5rem; /* Adjust size as needed */
  color: black;
}

.home-button {
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.home-button:hover {
  background-color: #0056b3;
}

#profile_back_button {
  position: absolute;
  top: 85%;
  right: 0;
  width: 20calc ((50vw + 250vh) / 200 * 10);
}

@media (max-width: 900px) {
  #profile_page_sides {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: center;
  }

  #profile_page_left {
    width: 100%;
  }

  #profile_page_right {
    width: 100%;
  }
}

.loading {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;

  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#progress_origin {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  pointer-events: none;
}
.progress-container {
  margin-top: 10px;
  width: 100%;
  height: 16px;
  background-color: #f3f3f3;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  text-align: center;
  line-height: 30px; /* vertically center text */
  color: white;
  font-weight: bold;
  transition: width 0.2s ease;
}

.center_loader {
  width: 100%;
  display: flex;
  justify-content: center;
}

.loader {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: 5px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.go_fast {
  animation: rotation 0.3s linear infinite;
}

/* EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI */

/* SOCIAL MEDIA LINKS --- SOCIAL MEDIA LINKS --- SOCIAL MEDIA LINKS */

/* Platform styles */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  max-width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;

  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 8px 20px rgba(0, 0, 0, 0.25);

  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

.social-btn .icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  filter: brightness(1.1);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.icon svg {
  width: 18px;
  height: 18px;
}

.x {
  background: linear-gradient(135deg, #000, #222);
}

.instagram {
  /* this border hack is so stupid lol */
  border: solid #383c59 1px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcaf45);
}

.github {
  background: linear-gradient(135deg, #24292e, #0f1419);
}

.website {
  background: linear-gradient(135deg, #4a00e0, #2575fc);
}

.steam {
  background: linear-gradient(135deg, #585858, #2a475e);
}

.kofi {
  background: linear-gradient(135deg, #ff5f5f, #ff3d3d);
}

.kuula {
  background: linear-gradient(135deg, #4092b4, #49d9a1);
}

.youtube {
  color: black;
  background: white;
}

.facebook {
  background: linear-gradient(135deg, #1877f2, #0f5dc7);
}

.threads {
  background: linear-gradient(135deg, #000, #444);
}

.discord {
  background: linear-gradient(135deg, #5865f2, #404eed);
}

.linkedin {
  background: linear-gradient(135deg, #0a66c2, #004182);
}

/* SOCIAL MEDIA LINKS --- SOCIAL MEDIA LINKS --- SOCIAL MEDIA LINKS */

/* POPUP POPUP POPUP POPUP POPUP POPUP
POPUP POPUP POPUP POPUP POPUP POPUP  */

.popup-container {
  position: fixed;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  pointer-events: none;
}

.popup-msg {
  font-size: 1.2rem;
  pointer-events: auto;
  cursor: grab;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 600;
  user-select: none;
  transition: transform 0.3s ease, opacity 0.4s ease;
}

.popup-msg.dragging {
  cursor: grabbing;
}

.popup-msg.fade {
  display: unset;
  opacity: 0;
  transform: translateX(100px) scale(0.95);
}

/* POSITIONING */
.popup-top-right {
  top: 20px;
  right: 20px;
  align-items: flex-end;
}
.popup-top-left {
  top: 20px;
  left: 20px;
}
.popup-bottom-right {
  bottom: 20px;
  right: 20px;
  align-items: flex-end;
}
.popup-bottom-left {
  bottom: 20px;
  left: 20px;
}
.popup-top-center {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.popup-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
}

.emoji {
  font-size: 1.7em;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.2s ease;
}

.emoji:hover {
  transform: scale(1.2);
}

.selected {
  transform: scale(1.5);
}

.selected:hover {
  transform: scale(1.5);
}

#output {
  margin-top: 20px;
  font-size: 1.2rem;
  text-align: center;
}

#likes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.likes {
  width: fit-content;
  margin: 3px 2px 3px 2px;
  background: linear-gradient(178deg, #2b264b, #167bda);
  padding: 3px;
  border-radius: 10px; /* Softer rounded corners */
}
/* EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI EMOJI */

/* Container for the button and reactions */
.reaction-container {
  position: relative;
  display: inline-flex;
}

/* The main button */
.reaction-button {
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.reaction-button:hover {
  background-color: #0056b3;
}

.emoji-selector {
  transition: opacity 0.2s ease, visibility 0.2s ease;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #d7d7d7;
  border: 1px solid #000000;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  position: absolute;
  top: 0%;
  left: 0%;

  padding: 5px;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

/* Show the reactions bar on hover */
.reaction-container:hover .emoji-selector {
  opacity: 1;
  visibility: visible;
}

#about_page {
  font-size: 1em;
  font-family: "Times New Roman", Times, serif;
  color: black;
  background-color: #8786b8c7;

  width: 50%;
  min-height: 50%;
}

/* TO LAZY TO CREATE BASE CLASS, COPIED SAME THING FOR NOW */

#PHOTOS {
  user-select: none;

  background: linear-gradient(0deg, rgb(255 228 163), rgb(255, 215, 125));
  border-color: #bca559;
}

#PHOTOS_content {
  width: 100%;
  height: 100%;
  min-height: 40vh;

  display: flex;
  justify-content: space-evenly;
  align-content: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

#COLLECTIONS {
  background: linear-gradient(180deg, rgb(244, 198, 92), rgb(255, 215, 125));
  border-color: #cbb271;
}

#FEED {
  background: linear-gradient(180deg, #fbd272, rgb(255, 215, 125));
  border-color: #e2bd67;
}

.button_base.active {
  z-index: 5;
}

.PHOTOS_pages {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 6px;
  flex-wrap: nowrap;
  align-items: center;
}

.PHOTOS_pages_search {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 6px;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0.5rem;
}

.PHOTOS_pages_group {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.pano_change_arrow .pagination-link {
  display: flex;
  padding: 8px 12px;
  text-decoration: none;
  width: 100%;
  height: 100%;
  font-size: 4em;
  color: #ffffff;
  background-color: unset;
  border-radius: 4px;
  transition: background-color 0.3s;
  justify-content: center;
  align-items: flex-end;
}

.pagination {
  gap: 2px;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
}
/* Link styling */
.pagination-link {
  display: inline-block;
  padding: 4px 6px;
  text-decoration: none;
  font-size: 16px;
  color: #ffffff;
  background-color: #464b82;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.pagination-disabled {
  background-color: #48484858;
}

/* Hover effect */
.pagination-link:hover:not(.pagination-disabled) {
  background-color: #5864c2;
  cursor: pointer;
}

/* Active page styling (optional) */
.pagination-link.active {
  margin: 0px 3px;
  font-weight: bold;
  background-color: #2c2f4a;
}

/* Active page styling (optional) */
.pagination-link_active {
  margin: 0px 4px;
  font-weight: bold;
  background-color: #5864c2;
  transform: scale(1.2);
}

textarea {
  width: 100%; /* Adjusts to parent container width */
  height: 100px; /* Height of the text area */
  padding: 10px; /* Adds padding inside the text area */
  font-family: Arial, sans-serif; /* Sets a clean font */
  font-size: 14px; /* Adjusts the font size */
  border: 1px solid #ccc; /* Adds a light border */
  border-radius: 5px; /* Rounds the corners */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
  resize: vertical; /* Allows resizing vertically only */
  outline: none; /* Removes outline on focus */
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

textarea:focus {
  border-color: #007bff; /* Changes border color on focus */
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.25); /* Enhances shadow on focus */
}

.tag_req_parent {
  border-radius: 8px;
  padding: 5px;
  background-color: #3f51b5;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tag-button {
  margin: 4px;
  padding: 6px 12px;
  border: none;
  background-color: #eee;
  border-radius: 4px;
  cursor: pointer;
}

.new-tag-input {
  width: 15rem;
  padding: 0px !important;
  margin: 0px !important;
}

.tag_list_add_p {
  position: relative;
  flex-basis: 100%;
  cursor: pointer;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
}

.tag {
  cursor: pointer;
  background-color: #ffffff;
}

.tag_absolute_right {
  position: absolute;
  right: 0px;
}

.tag_new {
  background-color: #ffc107;
}

.tag-artist {
  background-color: #ffe0e0;
}
.tag-character {
  background-color: #e0f0ff;
}
.tag-copyright {
  background-color: #f0ffe0;
}
.tag-general {
  background-color: #f5f5f5;
}
.tag-meta {
  background-color: #fff0f5;
}
.tag-country {
  background-color: rgb(139 161 216);
}

.tag-camera {
  background-color: #aee2dd;
}
.tag-landscape {
  background-color: #c1ecff;
}

#suggestions {
  padding: 5px 0px 5px 0px;
}

#suggestions button {
  margin: 1px;
}

#selected-tags {
  padding: 5px 0px 5px 0px;
}

#selected-tags button {
  margin: 1px;
}

select {
  background-color: white;
  color: black;
  padding: 0em 0.2em;
  border: 2px solid #888;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: cornflowerblue;
  box-shadow: 0 0 5px rgba(100, 149, 237, 0.5);
}

option {
  padding: 0.5em;
  background-color: white;
  color: black;
  font-size: 1rem;
}

.tag-request-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-family: sans-serif;
  font-size: 0.95rem;
}

.tag-request-table th,
.tag-request-table td {
  padding: 0.5em;
  border: 1px solid #ccc;
  text-align: left;
}

.tag-request-table thead {
  background-color: cornflowerblue;
  color: white;
}

.tag-request-table tbody tr:nth-child(even) {
  background-color: #535784;
}
/* 
.tag-request-table tbody tr:hover {
  background-color: #eef;
  transition: background-color 0.2s ease;
} */

button {
  font-size: medium;
  padding: 0em 0.3em;
  color: #000000;
  font-weight: bold;
}

/*  DOOOMSCROLLL */
/*  DOOOMSCROLLL */
/*  DOOOMSCROLLL */
/*  DOOOMSCROLLL */
/*  DOOOMSCROLLL */

#landing {
  z-index: 8;
  padding: 0px;
  width: 100vw;
  height: 96svh;
  overflow: hidden;
}

.feed_page {
  /* if you want 3d background or not */
  position: absolute;
  z-index: 8;
  padding: 0px;
  width: 100vw;
  height: 96svh;
  overflow: hidden;
}

.feed_page_sub {
  background-color: whitesmoke;
  min-height: 96vh;
  overflow-y: scroll;
}

.inner_landing {
  padding-left: 10%;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-content: center;
  flex-wrap: wrap;
  flex-direction: row;

  overflow: hidden;
}

.inner_landing_login {
  justify-content: center;
  padding-left: 0px;
  align-content: flex-end;
}

.landing_logo {
  border-radius: 25px;
  padding: 10px 20px;
  border: solid rgb(191, 233, 231) 4px;
  height: auto;
  max-height: 95svh;
  max-width: 360px;
  background: rgba(40 72 255 / 80%);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  backdrop-filter: blur(4px); /* Apply slight background blur */
  overflow: scroll;
  scrollbar-width: none;
}

.landing_logo h1 {
  font-weight: bold;
  color: #d0d0d0;
}

.landing_logo h2 {
  font-weight: bold;
  color: #d0d0d0;
}

form {
  display: flex;
  flex-direction: column;
  overflow: scroll;
  scrollbar-width: none;
}

input[type="text"],
input[type="password"] {
  padding: 5px;
  margin: 5px 0;
  border: none;
  border-radius: 5px;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
}

input::placeholder {
  color: #ddd;
}

.buttons button {
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 30%;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.buttons button[type="submit"] {
  background-color: #1e90ff;
}

.buttons button[type="submit"]:hover {
  background-color: #63b8ff;
}

.buttons button[type="button"] {
  background-color: #32cd32;
}

.buttons button[type="button"]:hover {
  background-color: #7fff00;
}

@media (max-width: 900px) {
  #inner_landing {
    padding-left: 0px;
    justify-content: center;
  }
}

a {
  color: white;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

#forgoten_pw {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: solid #a4cae3 4px;
  background: #657acc;
  padding: 0.8rem;
  border-radius: 0.5rem;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}

#forgoten_pw_email {
  font-weight: bolder;
  font-size: 1rem;
}

.reset_pw_btn {
  margin-top: 0.5rem;
  padding: 0em 0.3em;
  color: #000000;
  font-weight: bold;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.pw_msg {
  font-size: large;
  color: white;
  font-weight: bold;
  margin-top: 1rem;
}

/* ////////////////////// */
/* ABOUT PAGE */

.groupReturn {
  display: flex;
  overflow: hidden;
  align-items: center;
  padding: 10px;
  margin-bottom: 0.5rem;
  background-color: #9394a4;
  background-color: #5b5c79;
  padding: 0.5rem;
  border-radius: 8px;

  user-select: none;
}

.about {
  /* margin-top: 33px; */
  border-radius: 25px;
  /* border: solid rgb(191, 233, 231) 4px; */
  height: auto;
  max-height: 96svh;
  max-width: 90%;
  /* background: rgba(40 72 255 / 80%); */
  border-radius: 15px;
  /* box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); */
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  /* backdrop-filter: blur(4px); */
  overflow: hidden;
  scrollbar-width: none;
  display: flex;
  align-items: flex-end;
  align-items: stretch;
  transition: height 0.5s ease;
}

.about_sub {
  transition: height 0.5s ease;
  margin: 0px 10px;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: calc(1vw + 1vh);
  background: rgb(40 72 255 / 47%);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  backdrop-filter: blur(4px);
  color: white;
}

.expand_sub {
  max-height: 95svh;
  transition: height 0.5s ease;
}

.about_sub_inner_l,
.about_sub_inner_r {
  box-sizing: border-box;
  flex: 1 1 48%;
  max-width: 65%;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  overflow: auto;
  word-wrap: break-word;
}

/* Left-aligned block (visual left) */
.about_sub_inner_l {
  align-self: flex-start;
  margin-right: 1%;
}

/* Right-aligned block (visual right). Keep inner text readable by default. */
.about_sub_inner_r {
  align-self: flex-end;
  margin-left: 1%;
}

/* Helper to force right text alignment inside the right block if needed:
   <div class="about_sub_inner_r"><div class="align-right">...</div></div> */
.about_sub_inner_r .align-right {
  margin-left: auto;
  text-align: right;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 900px) {
  .about_sub_inner_l,
  .about_sub_inner_r {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0.5rem 0;
    align-self: stretch;
    text-align: left;
  }

  .about_sub_inner_r .align-right {
    text-align: left;
    margin-left: 0;
  }
}

#about_sub_right {
  /* overflow:auto; */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#about_sub_left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.about h1 {
  font-weight: bold;
  color: #d0d0d0;
}

.about h2 {
  font-weight: bold;
  color: #d0d0d0;
}

.buttons2 {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-evenly;
  flex-wrap: nowrap;
}

.buttons2 button {
  color: #fff;
  border: none;
  margin: 1%;
  border-radius: 5px;
  font-size: 80%;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.buttons2 button[type="submit"] {
  background-color: #1e90ff;
}

.buttons2 button[type="submit"]:hover {
  background-color: #63b8ff;
}

.buttons2 button[type="button"] {
  background-color: #32cd32;
}

.buttons2 button[type="button"]:hover {
  background-color: #7fff00;
}

@media (max-width: 800px) {
  .about_sub {
    font-size: calc(2vw + 1vh);
  }
  .about {
    height: 100%;
    max-height: 100%;

    flex-direction: column-reverse;
    flex-wrap: nowrap;
    justify-content: space-evenly;
  }
}

/* Container for the button and reactions */
/* adpted for mass photo selector */
.mass_edit_button {
  background-color: green;
}

.reaction-container {
  position: relative;
  display: inline-flex;
}

/* The main button */
.reaction-button {
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.reaction-button:hover {
  background-color: #0056b3;
}

.option-selector {
  flex-wrap: wrap;
  max-width: 86vw;
  width: max-content;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  align-items: stretch;
  background: #d7d7d7;
  border: 1px solid #000000;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 100%;
  right: 0%;
  /* margin-top: 5px; */
  padding: 5px;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
  gap: 5px;
}
.option-sub {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  text-wrap-mode: nowrap;
  gap: 4px;
}
/* Show the reactions bar on hover */
.reaction-container:hover .option-selector {
  opacity: 1;
  visibility: visible;
}

.checkbox_1 {
  z-index: 20;
  left: 5%;
  top: 5%;
  scale: 1.5;
  position: absolute;
}

.multiplePanoSelected {
  border: 4px solid red;
}

.selectable_pano_del {
  background-image: url(/img/error.png);
  max-width: calc((25vw + 100vh) / 100 * 8);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: solid black 2px;
}

.button_selected {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border-radius: 5px;
}

.polaroid_ribbon {
  font-size: x-large;
  z-index: 20;
  position: absolute;
  left: 0px;
  top: 10%;
  width: 100%;
  height: 20%;
  background-color: #0d6efdab;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visibility_private {
  background-color: rgba(220, 53, 69, 0.8); /* red */
}

.visibility_unlisted {
  background-color: rgba(255, 193, 7, 0.8); /* yellow/orange */
}

/*
OLD COLORS  
.type-meta { color: #0d4f5aff; }
.type-country { color: #636363ff; }
.type-artist { color: #4CAF50; }
.type-character { color: #2196F3; }
.type-copyright { color: #9C27B0; }
.type-general { color:rgba(0, 0, 0, 1); } */

.type-meta {
  color: #057081;
}
.type-country {
  color: #af2626;
}
.type-artist {
  color: #2baf31;
}
.type-character {
  color: #0a82e2;
}
.type-copyright {
  color: #971dac;
}
.type-general {
  color: rgba(0, 0, 0, 1);
} /* Optional, or just skip in JS */

.count {
  color: #888;
}
