html, body {
  margin: 0;
  padding: 0;
  font-family: monospace, system-ui, sans-serif;
}

.mainContent::-webkit-scrollbar{
  display: none;
}

.mainContent {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


:root {
  --bg-color: #201f2c;
  --btn-green: #51b351;
  background-color: #201f2c;
  color: white;
  height: 100%;
  overflow-x: hidden;
}

.hide-overflow {
  overflow: hidden;
  /* font-family: monospace, system-ui, sans-serif; */
}

.pointer-events-none {
    pointer-events: none;
}

.vertical-line {
  color: white;
  margin: 40px 0;
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden; /* For the carousel to work */
}

.home-nav {
  width: 100%;
  height: 5vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  margin: 0;
  background-color: var(--bg-color);
  align-items: center;
  padding-left: 60px;
  padding-right: 60px;
  justify-content: space-between;
}

.home h1 {
  font-weight: bold;
  font-size: 80;
}

.home p {
  color: rgb(198, 198, 198);
  margin: 0;
  padding: 0;
}

.home-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 16px;
  margin-top: clamp(12px, 2vh, 24px);
}

.home-intro p {
  max-width: min(70ch, 92vw);
  text-align: center;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.45;
  white-space: pre-line;
}

/* Carousel css from https://blog.logto.io/css-only-infinite-scroll */
.carousel-view {
  width: 100%;
  height: 40vh;
  overflow: hidden;
  padding: 6.5vh;
  /* Adds mask from left to right */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
  display: flex;
  gap: 1.1vh;
  width: max-content;
  /* Infinite scroll animation */
  animation: scrolling 240s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-track .movie-card {
  width: 28vh;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  border-radius: 10px;
  overflow: hidden; /* Ensures image corners curve with the card */
  cursor: pointer;
}

.carousel-track .movie-card img {
display: block;
width: 100%;
height: auto;
}

.carousel-track .movie-card:hover {
  transform: scale(1.05);
  /* Using two shadows creates realistic depth */
  /* From https://www.w3schools.com/css/css3_shadows.asp */
  box-shadow:0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
      /* 
  Logic:
  The track contains 2 identical sets of items. 
  When the animation reaches 100%, it has moved -50% (the width of one set).
  => The first item of the 2nd set aligns with where the 1st item 
  of the 1st set started. The animation then snaps back to 0%.
      */
    transform: translateX(-50%);
  }
}

.header {
  width: 100%;
  height: 10vh;
  position: sticky;
  display: flex;
  flex-direction: row;
  align-items: center; /* Fixes stretched buttons */
  margin: 0;
  padding: 0 20px 0 0;
  background-color: #201f29;
  /* Box shadow for header? breaks detailsview shadow */
  /* z-index: 1; */
 /* box-shadow: -5px 0 5px rgba(0, 0, 0, 0.3); */
}

.header .username {
  color: white;
  font-family: monospace, system-ui, sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 15px;
}

/* Logo text */
.logo-text {
  font-family: monospace, system-ui, sans-serif;
  font-weight: bold;
  color: var(--btn-green);
  font-size: 5vh;
  margin: 0;
  margin-left: 20px;
  margin-right: auto;
  cursor: pointer;
}

.header-toggle {
  display: none;
}

@media (max-width: 700px) {
  .header {
    height: 200px;
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
  }
  .logo-text {
    font-size: 50px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .header-toggle {
    position: fixed;
    top: 20px;
    right: 5%;
    display: block;
    border: 0px;
    background-color: rgba(0, 0, 0 ,0);
    color: #ccc;
    font-size: 30px;
    cursor: pointer;
  }
  .header-toggle:active {
    color: white;
  }

  .header:not(.header-is-open) .profile-pic {
    display: none;
  }
  .header:not(.header-is-open) .secondary-button {
    display: none;
  }
  .header:not(.header-is-open) .username {
    display: none;
  }
  .header:not(.header-is-open) {
    height: 75px;
  }
  .header-toggle:is(.header-is-open) {
    top: 150px;
  }
  .header-toggle:not(.header-is-open) {
    top: 24px;
  }

  .home-section, .profile-container, .swipe-sidebar, .lobby-wrapper {
    margin-top: 75px;
  }
  .profile-container h2 {
    padding-top: 75px;
  }
  .scroll-auto {
    height: 100vh;
  }
  .swipe-container {
    height: 100vh;
  }
  .swipe-content {
    margin-top: 75px;
    grid-template-rows: 65vh 12vh 8vh; 
  }
}


.settings-button {
  align-self: right;
}
.settings-button svg {
  color: gray;
  font-size: 8vh;
}
.profile-button {
  /* Removed flex: 1 to prevent stretching */
  margin-right: 10px;
}
.profile-button svg {
  color: gray;
  font-size: 8vh;
}

.swipe-flex-parent {
  position: relative;
}

.details-view-background {
  position: relative;
  width: 100%;
  height: 100vh;
}

.details-view-background::after {
  content: '';
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/inset */
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.details-view-background.is-dark::after {
  opacity: 1;
}

.swipe-container {
  min-height: 90vh;
  position: relative;
  overflow: hidden;
  flex: 1;
}

.input-disabled {
  pointer-events: none;
  opacity: 0.8;
  filter: blur(2px);
}

.swipe-content {
  flex: 1;
  height: 100%;
  display: grid;
  place-items: center;
  padding-top: 2vh;
  grid-template-rows: 65vh 12vh 7vh; 
}

.swipe-content .swipe-card {
  height: 65vh;
  width: 43vh;
  border-radius: 8px;
}

.swipe-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: #201f29;
  transition: transform ease 0.2s;
  font-family: monospace;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  /* https://stackoverflow.com/questions/19428584/remove-box-shadow-from-only-top-of-div */
  clip-path: inset(0 0 0 -60px);
}

.sidebar-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%; /* Fill the sidebar height */
  box-sizing: border-box;
  padding-bottom: 50px;
}

/* container based on seed-results but vertical */
/* Adds vertical scroll when there's a lot of people joined */
.sidebar-lobby-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-content: flex-start;
  gap: 15px;
  
  overflow-y: auto;
  flex: 1; /* takes up all remaining height in sidebar */
  width: 100%;
  padding: 20px 0; /* Top/Bottom padding for the mask */
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 3%,
    black 97%,
    transparent
  );
}

/* fr details */
.sidebar-lobby-container {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10–11 */
}

.sidebar-lobby-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* Individual User Card */
.sidebar-user-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px; /* fixed width to force wrapping */
  text-align: center;
}

.sidebar-user-item p {
  margin: 5px 0 0 0;
  font-size: 0.8rem;
  word-break: break-word; /* handle long names */
}

.sidebar-toggle {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100%) translateY(50%);
  width: 50px;
  height: 50px;
  transition:
      transform 80ms ease,
      box-shadow 80ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .sidebar-toggle svg:hover {
      background-color: rgb(201, 201, 201);
  }
}
.sidebar-toggle svg:active {
  transform: scale(0.96);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.sidebar-toggle svg {
  width: 50px;
  height: 50px;
  color: white;
  border: 2px gray solid;
  border-right: 0px;
  border-radius: 8px 0px 0px 8px;
  transition: background-color ease 150ms;
}

.swipe-sidebar:not(.is-open) {
  transform: translateX(100%);
}

.swipe-sidebar:not(.is-open) .sidebar-toggle {
  transform: translateX(-100%, -50%);
}


.swipe-like-img, .swipe-dislike-img, .swipe-settings-img {
  height: 65vh;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
}

.swipe-container .swipe-card-wrapper:hover {
  cursor: grab;
}

.swipe-container .swipe-card-wrapper:active {
  cursor: grabbing;
}

.swipe-card-wrapper {
  height: 65vh;
  width: auto;
  border-radius: 8px;
}

.swipe-more-info-img {
  filter: brightness(0.9);
  height: 9vh;
  width: auto;
}

.swipe-title {
	padding: 20px;
  font-size: 4.5vh;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* max rows */
  line-clamp: 2; /* standard */
  overflow: hidden;
}
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  /* phone UI */
  .swipe-title {
    font-size: 4vh;
  }
}

.dislike-btn svg {
  color: rgb(189, 58, 58);
  font-size: 12vh;
  transition: transform 0.2s ease;
}
.dislike-btn svg:hover {
  transform: scale(1.3);
}
.like-btn svg {
  color: rgb(146, 226, 71);
  font-size: 10vh;
  transition: transform 0.2s ease;
}
.more-info-btn svg {
  color: gray;
  font-size: 11vh;
  transition: transform 0.2s ease;
}

.dislike-btn svg:hover, .like-btn svg:hover, .more-info-btn svg:hover {
  transform: scale(1.3);
}


@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  /* phone UI */
  .dislike-btn svg:hover, .like-btn svg:hover, .more-info-btn svg:hover {
    transform: scale(1);
  }
  .dislike-btn svg:active, .like-btn svg:active, .more-info-btn svg:active {
    transform: scale(1.3);
  }
}

.swipe-container h3 {
  font-size: 40px;
  width: 500px;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 0px;
}

.movie-poster {
  height: 60vh;
  width: auto;
  border-radius: 5px;
}


/* Styled like genre-option buttons */
.primary-button {
  border: 2px solid var(--btn-green);
  background-color: rgba(81, 179, 81, 0.2); /* Transparent green */
  color: white;
  font-weight: bold;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 5px;
  /* background-color: var(--btn-green); */ /* <--Uncomment here: better? */
  transition: transform 0.3s ease;
}

.primary-button:hover {
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(81, 179, 81, 0.7); /* Glow */
}

.destructive-button {
  border: 1px solid red;
  background-color: rgba(179, 81, 81, 0.2); /* Transparent green */
  color: white;
  font-weight: bold;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 5px;
  /* background-color: var(--btn-green); */ /* <--Uncomment here: better? */
  transition: transform 0.3s ease;
}

.destructive-button:hover {
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(179, 81, 81, 0.7); /* Glow */
}

.details-container {
  position: absolute;
  top: 96%;
  height: calc(100% - 4%);
  width: 100%;
  max-width: 65vw;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background-color: black;
  font-family: 'Inter', system-ui, sans-serif;
  transition: top 0.3s ease-in-out;
  border-bottom: 0px;
  border-radius: 20px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  z-index: 10;
}

@media (min-width: 1024px) and (orientation: landscape) {
  .details-container {
    max-width: 65vw;
  }
}

@media (min-width: 1024px) and (orientation: portrait) {
  .details-container {
    max-width: 100vw;
  }
}

@media (max-width: 1023px) {
  .details-container {
    max-width: 100vw;
  }
  .swipe-sidebar {
    width: 100vw;
  }
  .swipe-sidebar.is-open .sidebar-toggle {
    transform: translateX(0%) rotate(180deg);
    top: 3vh;
  }
}


/* BACKGROUND LAYER */
/* Scaling the iframe to fill screen */
/* Since object-fit: cover; doesnt work */
/* From https://stackoverflow.com/a/60192837 */
.details-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none; /* Let clicks pass through */
  border-bottom: 0px;
  border-radius: 20px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.details-video-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%) scale(1.35);
}

.details-container .secondary-button {
  font-weight: bold;
  font-size: 15px;
  padding: 10px 16px;
}

@media (min-aspect-ratio: 16/9) {
  /* height = 100 * (9 / 16) = 56.25 */
  .details-video-frame {
    width: 100vw;
    height: 56.25vw;
  }
}
@media (max-aspect-ratio: 16/9) {
  /* width = 100 / (9 / 16) = 177.777777 */
  .details-video-frame {
    height: 100vh;
    width: 177.78vh;
  }
}

.details-fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay for text */
.details-overlay-gradient {
  position: absolute;
  inset: 0;
  /* Gives a really nice realistic gradient */
  /* from https://ishadeed.com/article/handling-text-over-image-css/ */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.8) 75%,
    #000000 100%
  );
  z-index: 2;
}

.details-scrollable-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10;
  scroll-behavior: smooth;
  border-bottom: 0px;
  border-radius: 20px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.hide-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10–11 */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* Main section, content layer */
.details-content-layer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  padding-bottom: 60px;
  box-sizing: border-box;
}

/* Top "nav bar" */
.details-top-bar {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px; /* Stretch to allow right-aligned buttons */
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* Let clicks pass through empty space */
}

.details-nav-btn {
  pointer-events: auto; /* Re-enable clicks on buttons */
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.details-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.details-video-controls {
  display: flex;
  pointer-events: auto;
  gap: 10px;
}

/* Main Info Styling */
.details-info-wrapper {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.details-info-wrapper:not(:hover) {
  .hide {
    opacity: 0;
    transform: translateY(-20px);
    transition: ease 0.5s;
  }
}

.details-info-wrapper:hover {
  .hide {
    transition: ease 0.5s;
    opacity: 1;
  }
}

.details-title {
  font-family: "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  margin: 0;
  letter-spacing: -1px;
}

/* Metadata Row */
.details-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: #e0e0e0;
}

.meta-dot {
  color: #888;
}

.meta-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: white;
  transition: transform 0.2s ease;
}
.meta-rating span {
  font-weight: bold;
}

/* IMDb specific styling */
.meta-imdb-logo {
  height: 24px;
  width: auto;
}

/* Genres */
.details-genres-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.details-genre-chip {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Description */
.details-overview {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
  overflow: hidden;
}

/* Action Buttons */
.details-actions-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
}

.details-more-info {
  position: relative;
  /* I think #000 works better here vs --bg-color */
  background-color: #000000; /* Solid background to cover video */
  padding: 40px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  gap: 40px;
  /* Create a gradient fade from the video into this black section */
  box-shadow: 0 -50px 50px 20px #000000;
}

.details-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #eee;
  border-left: 4px solid var(--btn-green);
  padding-left: 10px;
}

.details-grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Actor/Provider Cards */
.detail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  text-align: center;
}

.headshot {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%; /* Circle for pfp */
  margin-bottom: 8px;
  border: 2px solid #333;
}

.detail-card.provider img {
  border-radius: 12px;
  border: none;
  width: 60px;
  height: 60px;
}

.detail-card.provider:hover {
    cursor: pointer;
}

.detail-card .name {
  margin: 3px;
  font-size: 0.9rem;
  font-weight: bold;
  color: white;
}

.detail-card .role {
  font-size: 0.8rem;
  color: #aaa;
}

.detail-card {
  transition: ease 0.3s;
}

.detail-card:hover {
  transform: scale(1.05);
}

.no-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #333;
  color: #b9b9b9;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .details-title {
    font-size: 2.5rem;
  }
  .details-info-wrapper {
    width: 100%;
    padding-right: 20px;
  }
}

.primary-button:active {
  transform: scale(1);
}

.session-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 50px;
}

.join-session-input {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.join-session-input input {
  padding: 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.currently-in-session-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  padding-bottom: 20px;
}

/* Options View Styles */
.options-container {
  padding: 20px;
  max-width: 800px; /* Keeps it from getting too wide on desktop */
  margin: 0 auto; /* Centers container */
  text-align: center;
}

.options-container h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 20px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Subtle background */
  border-radius: 10px;
}

/* Uses MuiSlider-root, bad practice? */
.MuiSlider-root.slider {
  /* Sets main color, affects track and thumb */
  color: var(--btn-green);
  max-width: 500px;
}

.MuiSlider-root.slider .MuiSlider-valueLabel {
  /* Sets color of valueLabel */
  background-color: var(--btn-green);
}

/* From https://stackoverflow.com/a/67770685 */
.MuiSlider-root.slider .MuiSlider-thumb:hover {
  box-shadow: 0 0 0 10px rgba(81, 179, 81, 0.1);
}

.MuiSlider-root.slider .MuiSlider-active {
  box-shadow: 0 0 0 10px rgba(81, 179, 81, 0.2);
}

/* Recolor imdB slider – should it? */
.MuiSlider-root.imdb-slider {
  /* Sets main color, affects track and thumb */
  color: #f2db83;
  max-width: 500px;
}

.MuiSlider-root.imdb-slider .MuiSlider-valueLabel {
  /* Sets color of valueLabel */
  background-color: #dba506;
}

.MuiSlider-root.imdb-slider .MuiSlider-thumb:hover {
  box-shadow: 0 0 0 10px #dba60624;
}

.MuiSlider-root.imdb-slider .MuiSlider-thumb:active {
  box-shadow: 0 0 0 10px #dba60664;
}

.genre-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.genre-option {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid gray;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

.genre-option:hover {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

/* Selected State */
.genre-option.selected {
  border: 2px solid var(--btn-green);
  background-color: rgba(81, 179, 81, 0.2); /* Transparent green */
  color: white;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(81, 179, 81, 0.7); /* Glow */
}

.genre-option.selected:hover {
  border: 2px solid rgb(179, 81, 81);
  background-color: rgba(179, 81, 81, 0.2); /* Transparent green */
  color: white;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(179, 81, 81, 0.7); /* Glow */
}

.genre-option {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid gray;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

.genre-option.all {
  margin-bottom: 20px;
}

/* Najs med green highlight or not? */
/* .genre-option.all:hover:not(.selected) {
    border: 2px solid var(--btn-green);
    background-color: rgba(81, 179, 81, 0.2); 
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(81, 179, 81, 0.7);
} */

.account-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
}

.account-section a {
  color: rgb(166, 166, 223);
}

.account-section input {
  padding-left: 9px;
  height: 2rem;
  border-radius: 8px;
  border: none;
}

.account-form {
  display: flex;
  flex-direction: column;
  margin-top: 10vh;
  background-color: #3a3851;
  padding: 30px;
  border-radius: 10px;
  width: 350px;
  gap: 10px;
}

.account-form input {
  width: 70%;
}

.account-form button {
  margin-top: 20px;
  width: 50%;
}

/* Options view */
.secondary-button {
  border: 2px solid var(--btn-green);
  /* background-color: rgba(81, 179, 81, 0.2); */ /* Transparent green */
  color: white;
  font-weight: bold;
  font-size: 12px;
  padding: 8px 13px;
  margin: 0 5px;
  border-radius: 5px;
  background-color: var(--btn-green); /* <--Uncomment here: better? */
  transition: transform 0.3s ease;
}
/* 
.secondary-button.red {
  padding: 0;
  font-size: 30px;
  border: transparent;
  background-color: transparent;
  color: rgb(179, 81, 81);;
  font-weight: bold;
} */

.secondary-button:hover {
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(81, 179, 81, 0.7); /* Glow */
}
/* 
.secondary-button.red:hover {
  box-shadow: none;
} */

.search-row {
  display: flex;
  margin-bottom: 10px;
  justify-content: center;
}

.search-row input {
  width: 45%;
}

.username-input {
  max-width: 300px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #444444;
  background-color: #2a2a2a;
  color: white;
  font-size: 16px;
}

/* Copied over from homeview carousel */
.seed-results-container {
  display: flex;
  overflow: auto; /* Allow manual scrolling */
  gap: 16px;
  padding: 20px 30px;
  width: 100%;
  box-sizing: border-box;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );

  /* Scrollbar Styling */
  scrollbar-color: #00000088;
}

/* The cards - matching .carousel-track .movie-card style */
.seed-result-card {
  display: flex;
  flex: 0 0 150px; /* Fixed width for each card, slightly smaller than home carousel */
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease;

  /* Ensures the absolute child (checkmark) stays inside this card */
  position: relative;
}

.seed-result-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Base shadow */
}

.seed-result-card:hover {
  transform: scale(1.05);
}

.seed-result-card:hover img {
  /* Using two shadows creates realistic depth */
  /* From https://www.w3schools.com/css/css3_shadows.asp */
  box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.seed-result-card .checkmark {
  /* Position it over the image */
  position: absolute;
  top: 8px;
  left: 8px;

  font-size: 24px; /* Size of the icon */
  color: var(--btn-green);
  /* The only way I thought to make the checkmark white on the inside only: */
  background: radial-gradient(white 45%, transparent 50%);
}

.lobby-wrapper {
  position: relative;
  min-height: 90vh;
  background-color: var(--bg-color);
}

.lobby-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
}

.lobby-content {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.lobby-content h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: bold;
  text-decoration: none;
}

.lobby-code-section,
.lobby-users-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lobby-code-section p,
.lobby-users-section p {
  margin: 0 0 10px 0;
  color: #aaa;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lobby-code {
  font-size: 3rem;
  font-family: monospace;
  letter-spacing: 5px;
  font-weight: bold;
  color: var(--btn-green);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 30px;
  border-radius: 8px;
  border: 1px solid #444;
}

.lobby-users-section {
  width: 100%;
}

.user-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.user-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 6px;
  font-size: 1.1rem;
  color: white;
}

.lobby-actions {
  width: 100%;
  display: flex;
	flex-direction: column;
  justify-content: center;
	gap: 15px;
}

.lobby-actions .primary-button {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}
	
.waiting-text {
  color: #888;
  font-style: italic;
}

.home-nav {
  width: 100%;
  height: 5vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  margin: 0;
  background-color: var(--bg-color);
  align-items: center;
  padding-left: 60px;
  padding-right: 60px;
  justify-content: space-between;
}

/* Match animation styles */

.matchContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  position: relative;
  font-family: "Inter", sans-serif;
}

.match-vignette {
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/inset */
  position: absolute;
  inset: 0;
  background-color: var(--btn-green);
  pointer-events: none;
  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.match-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--btn-green);
  /* Glow effect */
  text-shadow: 0 0 30px var(--btn-green);
  position: relative;
}

.heart-text {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 60px;
}

.match-text {
  font-weight: bold;
  font-size: 24px;
}

/* Match animation styles */

.matchContainer {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  font-family: "Inter", sans-serif;
  pointer-events: none;
}

.match-vignette {
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/inset */
  position: absolute;
  inset: 0;
  background-color: var(--btn-green);
  pointer-events: none;
  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

.match-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--btn-green);
  /* Glow effect */
  text-shadow: 0 0 30px var(--btn-green);
  position: relative;
  pointer-events: none;
}

.heart-text {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 60px;
  pointer-events: none;
}

.match-text {
  font-weight: bold;
  font-size: 24px;
  pointer-events: none;
}

/* Profile View */

.profile-pic {
  border-radius: 50%;
  /* Smoothens the edges, for some reason: */
  border: var(--btn-green);
  /* overflow: "hidden"; */
}

.scroll-auto {
  overflow-y: auto;
  overflow-x: hidden;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  height: 90vh;
  box-sizing: border-box;
}

.profile-container h2 {
  font-size: 3rem;
  margin-top: 5px;
  margin-bottom: 30px;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
}

/* Header Section (Avatar + info) */
.profile-header {
  display: flex;
  flex-direction: row; /* Side by side */
  align-items: center;
  gap: 40px;
  border-radius: 15px;
  padding: 30px;
}

.profile-container .no-image {
  color: #555;
  width: auto;
  height: auto;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.profile-info .username {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.profile-info .secondary-button {
  margin-left: 1px;
}

/* Adjust the search/input row specifically for profile */
.profile-info .search-row {
  width: 100%;
  justify-content: flex-start; /* align left */
  margin: 10px 0 0 0;
  gap: 10px;
}

.profile-info .search-row input {
  width: 250px;
  padding: 8px 12px;
  font-size: 14px;
}

/* Liked Movies Section */
.profile-container .section h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #ccc;
}

.gray-text {
  color: #ccc;
}

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 2px solid rgb(179, 81, 81);
  border-radius: 50%;
  background-color: rgba(179, 81, 81, 0.8); /* Transparent green */
  color: white;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(179, 81, 81, 0.7); /* Glow */
  cursor: pointer;
  transition: transform ease 0.2s, background-color ease 0.2s;
}

.remove-btn:hover {
  background-color: #ff4d4d;
  border: 2px solid #ff4d4d;
  transform: scale(1.05);
}

.movie-title {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: white;
}

/* Logged Out */
.center-div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-info {
    align-items: center;
  }

  .profile-info .search-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .profile-container {
    justify-content: center;
  }
}

.matches-cards {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.match-card {
  background-color: rgba(255, 255, 255, 0.1);
  width: 200px;
  border-radius: 10px;
  padding: 5px 30px;
  object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.match-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.match-card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 10px 0 20px 0;
  text-align: center;
}

.match-card-match-with {
  text-decoration: underline;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  width: 80%;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  border-radius: 4px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: brightness(0.7);
  -webkit-backdrop-filter: brightness(0.7);

  color: #fff;
  opacity: 0;
  pointer-events: none;
}
.tooltip div {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-wrapper:hover .tooltip {
  opacity: 1;
}
.error-message {
  color: red;
}

.success-message {
  color: var(--btn-green);
}

.friends-list-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  min-width: 300px;
  max-width: 350px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
  max-height: calc(100vh - 40px);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.friends-list-container h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #ccc;
  text-align: center;
  border-bottom: 2px solid var(--btn-green);
  padding-bottom: 10px;
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  overflow-x: visible;
  padding: 5px;
  padding-right: 10px;
  margin-right: -5px;
  
  scrollbar-width: thin;
  scrollbar-color: var(--btn-green) rgba(255, 255, 255, 0.1);
}

.friends-list::-webkit-scrollbar {
  width: 6px;
}

.friends-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.friends-list::-webkit-scrollbar-thumb {
  background: var(--btn-green);
  border-radius: 3px;
}

.friends-list::-webkit-scrollbar-thumb:hover {
  background: #6bc96b;
}

.friends-list .friend-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.friends-list .friend-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--btn-green);
  transform: translateX(-2px);
}

.friends-list .friend-item p {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friends-list .friend-item .secondary-button {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.invite-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  
  background-color: #2a2a2a;
  border: 2px solid var(--btn-green);
  border-radius: 15px;
  padding: 40px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  min-width: 300px;
}

.invite-notification p {
  font-size: 1.2rem;
  text-align: center;
  margin: 0;
  color: white;
}

.invite-buttons {
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: center;
}

.invite-buttons button {
  flex: 1;
  padding: 12px 20px;
  font-size: 1rem;
}

/* Optional: Add a backdrop overlay behind the popup */
.invite-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(3px);
}

@media (max-width: 1023px) {
  .lobby-wrapper {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 40px;
  }
  
  .friends-list-container {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    max-width: 600px;
    width: 100%;
    max-height: 300px;
    margin: 0 auto;
  }
  
  .lobby-container {
    min-height: auto;
  }
}

.email-text {
  color: rgb(164, 164, 164);
}
