.site-title {
  color: inherit;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: underline;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  flex : 1;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--imdb-dark);
  color: var(--imdb-white);
  overflow-x: hidden;
}

.page-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
}

header {
  background: rgba(0, 0, 0, 0.9);
  padding: 0.01em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--imdb-yellow);
}

h1 {
  font-family: var(--font-title);
  color: var(--imdb-yellow);
  font-size: 2rem
}

nav a {
  margin: 0 1em;
  color: var(--imdb-yellow);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;               /* sit on top of everything else */
}

.sucess {
  padding-top: 60px;           /* or whatever the navbar’s height is */
}

nav a:hover {
  color: var(--imdb-white);
}

.sucess {
  text-align: center;
  padding: auto ;
  position: relative;
  z-index: 1;
}

.sucess h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--imdb-yellow);
  margin-bottom: 1em;
  text-shadow: 0 0 42px var(--imdb-yellow);
}

.sucess h3 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--imdb-yellow);
  margin-bottom: 1em;
}

h4 {
  text-align: center;
  padding: auto ;
  position: relative;
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--imdb-yellow);
  margin-bottom: 1em;
  text-shadow: 0 0 42px var(--imdb-yellow);
}


.sucess p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 1em auto ;
}

.stress-word {
  font-family: var(--font-title);
  font-weight: bold;
  color: var(--imdb-yellow);
  letter-spacing: 1px;
  position: relative;
}

.features-selectors {
  display: flex;
  gap: 3rem;
  justify-content: center;
  background-color: var(--imdb-dark);
  border-radius: 10px;
  flex-wrap: wrap;
  margin: 1rem auto;
  padding: 1rem;
  max-width: 1000px;
}

.dropdown-container {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2em;
  gap: 1em;
}

.filter-dropdown {
  text-align: center;
  gap: 0.5rem;
}

.dropdown-container label {
  color: var(--imdb-white);
  font-size: 1rem;
  font-weight: bold;
}

/* Custom Tom Select Styling */
.ts-control {
  background-color: var(--imdb-dark);
  color: var(--imdb-yellow);
  border: 2px solid var(--imdb-yellow);
  font-weight: bold;
  border-radius: 6px;
  padding: 0.5rem;
}

.ts-control:hover {
  background-color: var(--hover-yellow);
}

.ts-dropdown {
  background-color: var(--imdb-dark);
  color: var(--imdb-yellow);
  border: 2px solid var(--imdb-yellow);
  border-radius: 6px;
}

.ts-dropdown .active {
  background-color: var(--hover-yellow);
  color: var(--imdb-dark);
}

.ts-dropdown [data-value="All"] {
  font-weight: bold;
}


.item {
  background-color: var(--imdb-yellow);
  color: var(--imdb-dark);
  border-radius: 4px;
  padding: 2px 6px;
}


.average-stats {
  display: flex;
  gap: 3em;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1em;
}

.average-stats div {
  background-color: var(--imdb-yellow);
  color: var(--imdb-black);
  padding: 1em 1.5em;
  margin-bottom : 3em;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  min-width: 150px;
}

button {
  background-color: var(--imdb-yellow);
  color: var(--imdb-black);
  font-weight: bold;
  padding: 0.9em 1.5em;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: var(--hover-yellow);
  transform: scale(1.03);
}

#sankey-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: auto ;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 4em;
  height: auto;
  padding : 2em;
  margin-bottom: 3em;
}


#tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 1000;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--imdb-white);
  background-color:var(--imdb-dark);
  border-radius: 5px;
  white-space: nowrap;
}


#sankey-container svg {
  width: 100%;
  height: 110%;
  overflow: visible;
  background-color: transparent;
}

.sankey-node {
  fill : var(--imdb-yellow)
}

.sankey-node:hover {
  fill: var(--hover-yellow);
}

.sankey-links path {
  stroke : var(--imdb-white);
  transition: stroke 0.2s ease;
  stroke-opacity: 0.4;
  fill : none;
}

.sankey-links path:hover {
  stroke: var(--imdb-yellow);
  stroke-opacity: 0.7;
}

.sankey-label {
  fill : var(--imdb-white);
  font-weight : bold;
}


.sankey-column-labels {
  text-align: center;
  font-weight: bold;
  fill: var(--imdb-white); 
  font-size: 18px;
  margin : auto;
}

.sankey-links path.highlighted {
  stroke: var(--hover-yellow);
  stroke-opacity: 0.9;
}

.sankey-links path {
  transition: stroke 0.3s, stroke-opacity 0.3s;
}

.hierarchy-selectors {
  display: flex;
  gap: 2rem;
  background-color: var(--imdb-dark);
  border-radius: 10px;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 1000px;
}

.hierarchy-selectors div {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  width: 100%;
}

.hierarchy-selectors label {
  color: var(--imdb-white);
  margin-bottom: 0.5rem;
  font-size: 1.1 rem;
}

.hierarchy-selectors select {
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--imdb-yellow);
  border-radius: 6px;
  background-color: var(--imdb-black);
  color: var(--imdb-yellow);
  font-weight: bold;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.hierarchy-selectors select:hover {
  background-color: var(--hover-yellow);
}

.hierarchy-selectors select:focus {
  border-color: var(--imdb-white);
  outline: none;
  background-color: var(--imdb-dark);
}

.hierarchy-selectors select option {
  background-color: var(--imdb-black); 
  color: var(--imdb-yellow); 
}

.hierarchy-selectors select option:hover {
  background-color: var(--hover-yellow); 
}

.hierarchy-selectors select option[value=""] {
  color: #b0b0b0;  
  background-color: var(--imdb-black); 
}

.hierarchy-selectors select option[value=""]:hover {
  color: #b0b0b0;  
  background-color: var(--imdb-black); 
}


/* Zoom bubble*/ 
#bubble {
  width: auto;
  height : auto;
  max-width: 1000px;
  margin: auto;
  padding: auto;
}

#bubble select {
  margin: 10px;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid var(--imdb-gray);
  background-color: var(--imdb-white);
  color: var(--imdb-dark);
}

#bubble svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: transparent;
  border-radius: 10px;
  cursor: pointer;
}

#bubble circle {
  stroke-width: 1px;
  transition: stroke 0.3s ease;
}


#bubble text {
  fill: var(--imdb-white);
  font-weight: bold;
  font-family: Arial;
  font-size: 16px;
  pointer-events: none;
}

/*
#buble-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: auto ;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  height: auto;
}

#buble-chart{
  width: 100%;
  height: 110%;
  overflow: visible;
}

.node circle {
  stroke: var(--imdb-dark);
  stroke-width: 0.5;
}

.node text {
  text-anchor: middle;
  dominant-baseline: middle;
  font-size: 9px;
  fill: var(--imdb-white);
  pointer-events: none;
}

.legend text {
  font-size: 12px;
  fill: var(--imdb-dark);
}
*/


.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--imdb-gray);
  padding: 2em;
  border-top: 1px solid #333;
  background-color: var(--imdb-dark);
}

.movie-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.left {
  width: 55%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  text-align: center;
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  background-color: var(--imdb-black);
  padding: 1em;
  border: 1px solid var(--imdb-yellow);
  border-radius: 8px;
  max-width: 400px;
}

.right img {
  max-width: 90%;
  border-radius: 20px;
}