html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: white;
  font-family: sans-serif;
}

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  overflow-x: hidden; /* prevents horizontal scroll, which is usually unwanted */
}

/* Background image behind everything */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('media.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  filter: brightness(0.7);
}
#movies {
  display: flex;
  gap: 20px;             /* space between posters */
  flex-wrap: wrap;       /* allows wrapping on small screens */
  justify-content: flex-start; /* aligns items to the left */
}

/* Top row of tabs/titles */
.container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 20px;
}



.hidden {
  display: none !important;
}

.frosted-box {
   display: flex;
  position: relative;
  width: 1200px;
  height: auto;
  text-align: center;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid white;

}

.frosted-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  background-color: #070d33;
  border-radius: 10px;
  border-color:white;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  opacity: 0.7;
  z-index: -1; /* keep behind the content */
}


.tab {
  cursor: pointer;
  font-weight: normal;
  margin-right: 20px;
  display: inline-block;
}

.tab:hover {
  text-decoration: underline;
}

.content {
  margin-top: 20px;
}
.media-item {
  position: relative;
  width: 160px;
  margin: 20px;
  flex: 0 0 160px;       /* fixed width for consistency */

}

.poster {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Hidden scrollable info box */
.info {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  max-height: 0;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0px;
  transition: max-height ease;
  z-index: 2;
  border-radius: 8px;
}
.info p {
  margin: 15px;
}
/* Show on hover */
.media-item:hover .info {
  max-height: 241px; /* set how tall the scrollable section should be */
}

.frame{
  position: relative;
  top: -270px;    /* move it up */
  left: 22px;   /* move it left */
  width: 250px;  
  height: 250px;  
  z-index: 3;
  pointer-events: none; /* allow interactions to go through */
}

