/* custom build css for the new site! */

:root {
  --off-white: #fbf9f2;
  --green-grey: #9CB9A9;
  --green-grey-low-light: #9CB9A94D;
  --green-hover: #E7FFF233;
  --black: #121D17;
  --black-70: #121D17B3;
  --hamaca-red: #F6323E;
  --slide-animation-time: 0.5s;
}

body {
  background: var(--off-white);
  overflow-x: hidden;
}

.container {
  padding: 0;
  margin: 0;
}

h1.neu {
  font-family: 'SwitzerVariable';
  color: var(--black);
  font-size: 45px;
  font-weight: 600;
  line-height: 59.4px;
  letter-spacing: 0.01em;
  text-align: left;
  margin-bottom: 28px;
}

h2.neu {
  font-family: 'SwitzerVariable';
  color: var(--black);
  font-size: 27px;
  font-weight: 600;
  line-height: 35.64px;
  letter-spacing: 0.01em;
  text-align: left;
}

h3.neu {
  font-family: 'SwitzerVariable';
  color: var(--black);
  font-size: 18px;
  font-weight: 500;
  line-height: 23.76px;
  letter-spacing: 0.06em;
  text-align: left;
}

h4.neu {
  font-family: 'SwitzerVariable';
  font-size: 18px;
  color: var(--black);
  font-weight: 300;
  line-height: 23.76px;
  letter-spacing: 0.06em;
  text-align: left;
}

p.p1-neu {
  font-family: 'SwitzerVariable';
  color: var(--black);
  font-size: 19px;
  font-weight: 400;
  line-height: 25.08px;
  letter-spacing: 0.01em;
  text-align: left;
  margin-bottom: 10px;
}

p.p2-neu {
  font-family: 'SwitzerVariable';
  color: var(--black);
  font-size: 16px;
  font-weight: 400;
  line-height: 21.12px;
  letter-spacing: 0.01em;
  text-align: left;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 20px; /* Set scrollbar width to 20px */
}

::-webkit-scrollbar-track {
  background-color: var(--off-white); /* Background for the scrollbar track */
  border: 1px solid var(--green-grey); /* Border around the scrollbar track */
}

::-webkit-scrollbar-thumb {
  background-color: var(--green-grey); /* Scrollbar handle (thumb) color */
  border: 1px solid var(--green-grey); /* Solid color for thumb border */
}

/* For Firefox */
* {
  scrollbar-width: auto; /* Makes scrollbar use full width */
  scrollbar-color: var(--green-grey) var(--off-white); /* Thumb and track colors */
}

/* Optional: Add a hover effect on the thumb */
::-webkit-scrollbar-thumb:hover {
  background-color: darken(var(--green-grey), 10%); /* Darken thumb on hover */
}

.hidden {
  display: none;
}

.search-mode-advanced {
  display: block; /* Show filter section when in advanced mode */
}

.filter-form-wrapper {
  display: block;
}

.tab-mode-titles {
  display: block;
}

#filter-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 60px;
  border: 1px solid var(--green-grey-low-light);
}

#filter-intro-text {
  display: flex;
  margin: 30px 20px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

#how-to-link {
  display: flex;
  align-items: flex-end;
  margin: 30px 20px;
  gap: 60px;
  border: 1px solid var(--green-grey);
  height: 300px;
  width: calc(100vw - 40px);
}

#how-to-link:hover {
  cursor: pointer;
  background-color: var(--green-hover);
}

#how-to-link:active {
  background-color: var(--hamaca-red);
}

button.neu:hover {
  cursor: pointer;
  background-color: var(--green-hover);
}

button.neu:active {
  background-color: var(--green-grey-low-light);
}

#how-to-title {
  margin-left: 40px;
  margin-bottom: 40px;
  width: 180px;
}

#how-to-icon {
  margin-bottom: 40px; 
}

.arrow-icon{
  width: 16.38px; 
  height: 18px; 
}

#filter-toggle-wrapper {
  margin: 50px 20px 20px 20px;
}

#text-search-bar {
 margin: 20px;
 display: flex;
 flex-direction: column;
 border: 1px solid var(--green-grey);
}

input[type="search"] {
  width: 100%;
  height: 60px;
  padding-left: 25px;
  border: 1px 1px 0px 1px solid var(--green-grey);
  background-color: unset;
  font-family: 'SwitzerVariable';
  font-size: 19px;
  font-weight: 400;
  line-height: 25.08px;
  letter-spacing: 0.01em;
  text-align: left;
  color: var(--black);
}

input[tyope="search"]:focus {
  outline: none;
}

input[type="search"]::placeholder {
  color: transparent; /* Hide the actual placeholder color */
  padding-left: 25px;
  background-image: linear-gradient(to right, #121D179A, #121D1700);
  background-clip: text;
  -webkit-background-clip: text;
}

button {
  all: unset;
  appearance: none; /* Removes default styling on some browsers */
  -webkit-appearance: none; /* Removes default styling on iOS/Safari */
  -moz-appearance: none; /* Removes default styling on Firefox */

  display: inline-block; /* Ensures the button behaves like a button */
  cursor: pointer; /* Makes it clear the element is interactive */

  /* Optional: Add a basic reset for padding and margin */
  padding: 0;
  margin: 0;

  /* Optional: Set a font reset */
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;

  /* Optional: Reset background and border */
  background: none;
  border: none;
  border-radius: 0;

  /* Optional: Remove any text decoration */
  text-decoration: none;

  /* Optional: Set a box-sizing reset */
  box-sizing: border-box;
}

.button-with-icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 25px;
  height: 60px;
}

.button-with-icon span {
  font-family: 'SwitzerVariable';
  font-size: 19px;
  font-weight: 400;
  line-height: 25.08px;
  letter-spacing: 0.01em;
  text-align: left;
}

#text-search-button {
  border-top: 1px solid var(--green-grey);
}

#results-header {
  width: 100%;
  height: 61px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--green-grey-low-light);
  border-bottom: 1px solid var(--green-grey-low-light);
  margin-top: 35px;
}

#results-header h4 {
  margin-left: 20px;
  letter-spacing: 0.01em;
}

.alphabetical-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  width: 205px;
  height: 100%;
  gap: 20px;
  border: 1px solid var(--green-grey);
  margin-top: -1px;
  margin-bottom: -1px;
}

.alphabetical-toggle:hover {
  background-color: var(--green-hover);
}

.alphabetical-toggle:active {
  background-color: var(--green-grey-low-light);
}

.toggle-label {
  font-family: 'SwitzerVariable';
  font-size: 18px;
  color: var(--black);
  font-weight: 300;
  line-height: 23.76px;
  letter-spacing: 0.01em;
  text-align: left;
}

.toggle-icon {
  width: 19px;
  height: 11px;
  margin-right: 30px;
  transition: transform 0.3s ease;
}

[data-state="desc"] .toggle-icon {
  transform: rotate(180deg); /* Rotate the arrow down when in descending mode */
}

ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style-type: none;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 0;
  unicode-bidi: isolate;
}

ul.nav {
  display: block;
}

.film-list .fli {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.fli-info-wrp {
  flex-grow: 1;
}

.fli-img {
  width: 100%;
  height: 166px;
  object-fit: cover;
  object-position: center;
}

.placeholdder {
  background-color: darkorchid;
}

.img-placeholder {
  width: 100%;
  height: 166px;
  background-color: var(--hamaca-red);
}

.img-placeholder-explore {
  width: 100%;
  height: 166px;
  background-color: var(--green-grey);
}

.fli-text {
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin: 20px 20px 11px 20px;
}

.fli-text-c1, .fli-text-c2 {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 20px 20px 11px 20px;
  color: black;
}

.fli-text * {
  margin: 0;
}

.fli-text-c1 {
  flex-grow: 2;
  max-width: 400px;
}
.fli-text-c2 {
  display: none;
  flex-grow: 0;
  width: 120px;
  margin-left: auto;
}

.autor-item-text-wrapper {
  display: flex;
  flex-direction: column;
  height: 72px;
  gap: 5px;
  margin: 20px 20px 20px 20px;
}

.autor-item-text-wrapper * {
  margin: 0;
}


.fli-tags {
  margin: 11px 20px 20px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.fli-tags * {
  margin: 0;
}

.film-item-tags {
  width: 100%;
  height: 4px;
  display: flex;
  flex-direction: row;
  gap: 0;
}

.film-item-tags * {
  min-width: 4px;
  flex-grow: 1;
  height: 100%;
}

.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px;
  background-color: var(--hamaca-red);
  color: (var(--off-white));
  display: none;
}

.loading-bar.active{
  display: block;
}

.disable-during-wait {
  opacity: 1;
  pointer-events: auto;
  cursor: auto;
}
.disable-during-wait.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}


/* iPads and similar tablets (screens between 450px and 1200px) */
@media screen and (min-width: 450px) and (max-width: 1200px) {
  .container {
    width: 100%;
  }

  .homespace {
    margin-bottom: 11vh;
  }

  #filter-intro-text {
    margin: 50px 40px 40px 40px;
    gap: unset;
  }

  #how-to-link {
    margin: 50px 40px;
    width: calc(100% - 80px);
    gap: 30px;
  }

  .laterNavLeft {
    display: none;
    visibility: hidden;
  }

  .laterNavRight {
    display: none;
    visibility: hidden;
  }

  .filter-toggle-outer-wrapper {
    width: 100%;
    border-bottom: 1px solid var(--green-grey-low-light);
    margin-bottom: -1px;
  }

  #filter-toggle-wrapper {
    margin: 50px 40px  -1px 40px;
  }

  #grid-toggle {
    width: 86px;
    height: 61px;
    margin-left: auto;
    border-left: 1px solid var(--green-grey);
    border-top: 1px solid var(--green-grey);
    border-bottom: 1px solid var(--green-grey);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
    cursor: pointer;
    margin-top: -1px;
    margin-bottom: -1px;
  }
  
  .bg-grid {
    background-image: url("../icons/neu/grid.png");
  }

  .bg-list {
    background-image: url("../icons/neu/list.png");
  }

  .fli a {
    display: flex;
  }

  .film-list.list-view .fli a{
    flex-direction: row;  
  }

  .film-list.list-view .fli a .fli-img{
    width: 232px;
    height: unset;
  }

  .film-list.grid-view .fli{
    width: 50%;
  }
  .film-list.grid-view .fli a{
    flex-direction: column;
  }

  .fli-text-c2 {
    display: block;
  }

  .film-list.grid-view .fli-text-c2{
    display: none;
  }
}

/* Regular computer screens (1200px to 1600px) */
@media screen and (min-width: 1200px) and (max-width: 1600px) {
  /* Styles for regular desktops */
  .container {
    width: 100%;
  }

  #filter-intro {
    flex-direction: row;
    align-items: stretch;
    margin: -1px 0;
    border-bottom: 1px solid var(--green-grey-low-light);
    border-top: 1px solid var(--green-grey-low-light);
  }

  #filter-intro-text {
    margin-top: 37px;
    margin-bottom: 37px;
    margin-left: calc(50% - 0.5 * 1140px);
    max-width: 660px;
  }

  #how-to-link {
    height: unset;
    margin: 0;
  }

  .filter-toggle-outer-wrapper {
    border-bottom: 1px solid var(--green-grey-low-light);
    margin-bottom: -1px;
  }

  #filter-toggle-wrapper {
    margin: 80px 0 0 0;
    margin-left: calc(50% - 0.5 * 1140px);
    margin-right: calc(50% - 0.5 * 1140px);
  }


  #grid-toggle {
    width: 86px;
    height: 100%;
    margin-left: auto;
    border-left: 1px solid var(--green-grey);
    border-top: 1px solid var(--green-grey);
    border-bottom: 1px solid var(--green-grey);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
    cursor: pointer;
    margin-top: -1px;
    margin-bottom: -1px;
  }
  
  .bg-grid {
    background-image: url("../icons/neu/grid.png");
  }


  .bg-list {
    background-image: url("../icons/neu/list.png");
  }

  .fli a {
    display: flex;
    flex-grow: 1;
  }


  .film-list.list-view .fli a{
    flex-direction: row;  
  }

  .film-list.list-view .fli a .fli-img{
    width: 242px;
    height: unset;
  }
  .film-list.grid-view .fli a .fli-img{
    width: 100%;
    height: 240px;
  }

  .film-list.grid-view .fli{
    width: 33.33%;
  }

  .grid-view .fli-info-wrp {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .film-list.grid-view .fli a{
    flex-direction: column;
  }

  .fli-text-c2 {
    display: block;
    width: 298px;
    padding: 20px;
  }

  .film-list.grid-view .fli-text-c2{
    display: none;
  }
}

/* Huge computer screens (1600px and above) */
@media screen and (min-width: 1600px) {
  /* Styles for large desktops */
}