* {
  font-family: "Roboto Mono", monospace;
  color: white;
  text-decoration: none;
}

body {
    background-color: black;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
  font-family: "BBH Bartle";
  font-size: 13.5vw;
  margin-bottom: 0px;
  margin-top: -2.5vw;
  letter-spacing: -2vw;
}

h2 {
  font-family: "BBH Bartle";
  font-size: 3vw;
  margin-bottom: 0px;
  margin-top: -0.5vw;
  letter-spacing: -0.3vw;
}

h3 {
  font-family: "BBH Bartle";
  font-size: 3rem;
  margin-bottom: 0px;
  margin-top: 10px;
  letter-spacing: -0.2vw;
}

h4 {
  margin: 0px;
  margin-bottom: 10px;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

button {
  background-color: rebeccapurple;
  cursor: pointer;
  border: 1px solid white;
  border-radius: 10px;
  padding: 5px;
  transition: filter 0.2s ease, transform 0.1s ease;
}

button:hover {
    filter: brightness(1.2);
}

button:active {
    filter: brightness(0.8);
    transform: scale(0.97);
}

/* .btn — base class for <a> elements styled as buttons */

.btn {
    display: inline-block;
    background-color: rebeccapurple;
    cursor: pointer;
    border: 1px solid white;
    border-radius: 10px;
    padding: 5px;
    transition: filter 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.btn:hover {
    filter: brightness(1.2);
}

.btn:active {
    filter: brightness(0.8);
    transform: scale(0.97);
}

.btn-add {
    background-color: green;
}

.btn-remove {
    background-color: red;
}

.btn-cta {
    background-color: #11998e;
}

.btn-search {
    background-color: #e67e22;
}

input {
  background-color: white;
  color: black;
  border: 1px solid white;
  border-radius: 10px;
  padding: 5px;
}

select {
  background-color: black;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    position: sticky;
    top: 0;
    z-index: 998;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overscroll-behavior-y: contain;
}

p {
  margin: 5px;
  margin-left: 0px;
}

.star {
    font-size: 1.2rem;
    color: #555;
}

.star.filled {
    color: #ffc107;
}

.login_button {
    font-size: 13px;
    padding: 4px 10px;
    opacity: 0.75;
}

.about_header_link {
    font-size: 14px;
    opacity: 0.8;
    padding: 6px 10px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.page_content {
    flex: 1;
}

.bar_item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.main_title {
  height: 100%;
}

.logo_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    margin: 0px;
}

.nav_toggle_btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.nav_toggle_btn svg {
    width: 36px;
    height: 36px;
    overflow: visible;
    flex-shrink: 0;
}

.nav_toggle_btn svg .bar {
    transform-origin: 12px 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav_toggle_btn svg.is-open .bar-top {
    transform: translateY(5px) rotate(45deg);
}

.nav_toggle_btn svg.is-open .bar-mid {
    opacity: 0;
    transform: scaleX(0);
}

.nav_toggle_btn svg.is-open .bar-bot {
    transform: translateY(-5px) rotate(-45deg);
}

.links_container {
  display: flex;
  flex-direction: column;
  margin-top: 25px;
  margin-bottom: 40px;
}

.poster {
  width: 95px;
  height: 142.5px;
  border: 1px solid white;
  border-radius: 5px;
}

.footer_links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.jmgk_credit {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: 30px;
    padding-top: 30px;
}

.jmgk_link {
    background: linear-gradient(270deg, #14d500, #7600ff, #00d0ff);
    background-size: 600% 600%;
    -webkit-animation: AnimationName 30s ease infinite;
    -moz-animation: AnimationName 30s ease infinite;
    animation: AnimationName 30s ease infinite;
}

@-webkit-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

.link {
  /*text-decoration: underline;*/
}

/* Nav menu links */

#nav_menu a {
    transition: opacity 0.2s ease;
    display: inline-block;
}

#nav_menu a:hover {
    opacity: 0.6;
}

#nav_menu a:active {
    opacity: 0.4;
    transform: scale(0.97);
}

/* Nav menu logout button */

#nav_menu button[type="submit"] {
    background: none;
    border: none;
    padding: 0;
    transition: opacity 0.2s ease;
}

#nav_menu button[type="submit"]:hover {
    opacity: 0.6;
}

#nav_menu button[type="submit"]:active {
    opacity: 0.4;
    transform: scale(0.97);
}

/* Hamburger button - overrides general button hover */

.nav_toggle_btn:hover {
    filter: none;
    background: none;
}

.nav_toggle_btn:active {
    filter: none;
    background: none;
    transform: scale(0.95);
}

/* Nav menu */

#nav_menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: -4px 0 16px rgba(0,0,0,0.15);
    padding: 60px 30px 30px 30px;
    box-sizing: border-box;
    z-index: 1000;
}

#nav_menu.is-open {
    opacity: 1;
    visibility: visible;
}

#nav_menu ul {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#nav_backdrop {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

#nav_backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1000px) {
  h1 {
    margin-left: -5px;
  }
}

/* Film modal ------------------------------------------- */

.film_modal_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.film_modal_card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    max-width: 460px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.film_modal_close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.film_modal_top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.film_modal_poster {
    width: 80px;
    flex-shrink: 0;
    border-radius: 4px;
}

.film_modal_info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.film_modal_info h4 {
    margin: 0;
}

.film_modal_lists {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.film_modal_list_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.film_modal_list_name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    padding: 5px 10px;
}

.film_modal_no_lists {
    opacity: 0.6;
    font-size: 0.9rem;
}

.film_modal_new_list {
    display: block;
    font-size: 0.9rem;
}

.btn-loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading::after {
    content: ' ⟳';
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.film_modal_toggle_btn {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.film_modal_toggle_btn.add_button {
    background-color: green;
}

.film_modal_toggle_btn.remove_button {
    background-color: red;
}

.film_modal_toggle_btn.add_button:hover,
.film_modal_toggle_btn.remove_button:hover {
    filter: brightness(1.3);
}

/* Film modal END --------------------------------------- */

@media (max-width: 600px) {
  h3 {
      font-size: 2rem;
      margin-top: 0px;
  }

  p {
    font-size: 0.8rem;
  }

  .nav_toggle_btn svg {
      width: 28px;
      height: 28px;
  }
}
