/* Flixpick v.2.2 Designed by David Bihanic (c)2026 */

@import "fonts/fonts.css" screen;

html {
  background-color: #141414;
}

body {
  margin: 0;
  overflow-x: hidden;
  padding: 0;
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

* {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#logo {
  position: absolute;
  height: 30px;
  width: 170px;
  background-image: url(../img/flixpick.svg);
  background-size: 170px;
  background-repeat: no-repeat;
  z-index: 9999;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 0;
  left: 50%;
  top: 20px;
  transform: translate(-50%);
}

#sh-l {
  position: absolute;
  height: 50%;
  width: 100%;
  background: -moz-linear-gradient(top, rgba(0,0,0,0.65) 10%, rgba(0,0,0,0) 100%);
  background: -webkit-linear-gradient(top, rgba(0,0,0,0.65) 10%, rgba(0,0,0,0) 100%);
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 10%, rgba(0,0,0,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6000000', endColorstr='#00000000', GradientType=0);
  z-index: 999;
}

#sh-l-2 {
  position: absolute;
  height: 50%;
  width: 100%;
  bottom: 0;
  background: -moz-linear-gradient(top, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0.65) 100%);
  background: -webkit-linear-gradient(top, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0.65) 100%);
  background: linear-gradient(to bottom, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0.65) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#de000000', GradientType=0);
  z-index: 999;
}

#creds {
  position: absolute;
  height: 17px;
  width: auto;
  bottom: 15px;
  left: 15px;
  z-index: 99999999;
}

#creds a {
  color: #9c9c9c;
  transition-property: color;
  transition-duration: .5s;
}

#creds a:hover,
#creds a:active {
  color: white;
}

.lb {
  color: grey;
  font-size: 12px;
}

.title {
  color: white;
  font-size: 13px;
}

.txt {
  color: #b3b3b3;
  font-size: 15px;
}

.data {
  color: white;
  font-size: 15px;
}

#legends {
  position: absolute;
  height: 17px;
  width: auto;
  bottom: 15px;
  right: 15px;
  z-index: 99999999;
}

#filters {
  position: absolute;
  height: 17px;
  width: auto;
  top: 22px;
  left: 15px;
  z-index: 99999999;
  display: flex;
  gap: 25px;
}

.filter-btn {
  color: #7a7a7a;
  font-size: 15px;
  cursor: pointer;
  width: auto;
  pointer-events: auto;
  transition: color 0.3s ease;
  user-select: none;
}

.filter-btn:hover {
  color: #d1d1d1;
}

.filter-btn.active {
  color: #ffffff;
  font-weight: bold;
}

#data,
#cinema {
  position: absolute;
  height: auto;
  width: auto;
  top: 22px;
  right: 15px;
  z-index: 99999999;
}

#label,
#label_c {
  text-align: right;
  width: auto;
  float: left;
  padding-right: 6px;
}

#value,
#value_c {
  text-align: right;
  width: auto;
  float: right;
}

#help,
#help * {
  box-sizing: border-box;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: normal !important;
  border: none !important;
}

#tooltip {
  position: fixed;
  display: none;
  z-index: 99998;
  pointer-events: none;
  background: rgba(12,12,12,.95);
  color: #fff;
  padding: 8px 12px;
  border-left: 3px solid #E50914;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  font: 13px/1.4 sans-serif;
  width: auto;
  height: auto;
  max-width: 260px;
}

#status {
  position: fixed;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  z-index: 99999;
  display: none;
  pointer-events: none;
  color: #fff;
  font: 13px/1.4 sans-serif;
  max-width: 80vw;
  text-align: center;
  text-shadow: 0 1px 3px #000, 0 0 10px #000;
}

body.loading > *:not(#loader) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.ui-ready > *:not(#loader) {
  animation: np-fade .9s ease backwards;
}

@keyframes np-fade {
  from {
    opacity: 0;
  }
}

html body #loader {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
  z-index: 2147483647 !important;
  display: grid !important;
  place-items: center !important;
  background: #141414 !important;
  opacity: 1;
  transition: opacity .8s ease;
}

#loader.done {
  opacity: 0;
  pointer-events: none;
}

#loader.gone {
  display: none !important;
}

#loader-text {
  position: static !important;
  display: block !important;
  width: max-content;
  color: #9c9c9c;
  font-size: 15px;
  text-align: left;
  transform: translateX(-10px);
  opacity: 1;
  transition: opacity .8s ease !important;
}

#loader-text.fade-out {
  opacity: 0 !important;
}

html body #loader .ld-wrap {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  text-align: center !important;
}

html body #loader #loader-pct {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #9c9c9c !important;
  font-size: 15px !important;
  line-height: 1 !important;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

html body #loader #loader-pct .ld-unit {
  position: static !important;
  transform: none !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

#loader-num {
  color: white;
}

#help {
  position: absolute;
  bottom: 48px;
  right: 15px;
  max-width: calc(100vw - 30px);
  width: 380px;
  height: auto;
  z-index: 999999;
  background: rgba(12, 12, 12, 0.94);
  padding: 16px 18px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  box-sizing: border-box;
  border: none !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

#help.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

#help,
#help * {
  box-sizing: border-box;
  height: auto;
  width: auto;
  color: grey !important;
  font-size: 12px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.help-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#help .hp-row {
  display: flex;
  align-items: baseline;
  font-size: 12px !important;
  border: none !important;
  width: 100%;
}

#help .hp-row b {
  flex: 0 0 120px;
  font-size: 12px !important;
  color: grey !important;
  text-align: left;
}

#help .hp-row span {
  flex: 1;
  font-size: 12px !important;
  color: grey !important;
  text-align: left;
}

#data,
#cinema {
  transition: opacity .8s ease;
}

#data.panel-on,
#cinema.panel-on {
  opacity: 1 !important;
  visibility: visible !important;
}

#data.panel-off,
#cinema.panel-off {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .8s ease, visibility 0s linear .8s;
}

/* Adaptation mobile */

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  #logo {
    filter: drop-shadow(1px 1px 0.1em black);
    transform: translate(-50%) scale(1);
  }

  #filters {
    top: auto;
    min-width: 230px;
    bottom: 25px;
    justify-content: center;
    align-items: center;
    left: 50%;
    transform: translateX(-50%);
    gap: 22px;
    background: rgba(12, 12, 12, 0.85);
    padding: 11px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 9999999;
  }

  .filter-btn {
    font-size: 15px !important;
  }

  #legends, #help, #creds, #cinema, #data, #sh-l, #sh-l-2 {
    display: none !important;
  }
