body {
  padding: 0;
  margin: 0;
  padding: 50px;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #595959;
  font-weight: 400;
  background: linear-gradient(135deg, rgba(172, 167, 167, 0.8), rgba(247, 234, 164, 0.8));
  background-attachment: fixed;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}


/* When page-exit */
body.fade-out {
  opacity: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #222;
  margin: 0 0 20px;
}

p,
ul,
ol,
table,
pre,
dl {
  margin: 0 0 20px;
  text-align: justify;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  font-size: 28px;
  font-weight: 500;
}

h2 {
  color: #393939;
  font-weight: 500;
}

h3,
h4,
h5,
h6 {
  color: #494949;
  font-weight: 500;
}

a {
  color: #39c;
  text-decoration: none;
}

a:hover {
  color: #069;
}

a small {
  font-size: 11px;
  color: #777;
  margin-top: -0.3em;
  display: block;
}

a:hover small {
  color: #777;
}

.wrapper {
  /* Adjust width for a larger layout */
  /* width:1080px; */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

blockquote {
  border-left: 1px solid #e5e5e5;
  margin: 0;
  padding: 0 0 0 20px;
  font-style: italic;
}

code,
pre {
  font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
  color: #333;
}

pre {
  padding: 8px 15px;
  background: #f8f8f8;
  border-radius: 5px;
  border: 1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid #e5e5e5;
}

dt {
  color: #444;
  font-weight: 500;
}

th {
  color: #444;
}

img {
  max-width: 100%;
}

header {
  width: 270px;
  float: left;
  position: fixed;
  -webkit-font-smoothing: subpixel-antialiased;
}

header ul {
  list-style: none;
  height: 40px;
  padding: 0;
  background: #f4f4f4;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  width: 270px;
}

header li {
  width: 89px;
  float: left;
  border-right: 1px solid #e0e0e0;
  height: 40px;
}

header li:first-child a {
  border-radius: 5px 0 0 5px;
}

header li:last-child a {
  border-radius: 0 5px 5px 0;
}

header ul a {
  line-height: 1;
  font-size: 11px;
  color: #999;
  display: block;
  text-align: center;
  padding-top: 6px;
  height: 34px;
}

header ul a:hover {
  color: #999;
}

header ul a:active {
  background-color: #f0f0f0;
}

strong {
  color: #222;
  font-weight: 500;
}

header ul li+li+li {
  border-right: none;
  width: 89px;
}

header ul a strong {
  font-size: 14px;
  display: block;
  color: #222;
}

section {
  /*width:750px;*/
  width: 100%;
  /* Make the section span the full width */
  /*float:right;*/
  float: none;
  padding-bottom: 50px;
  margin-top: 150px;
  /* Add space equal to the height of the fixed hero section */
}

body.title-page section {
  margin-top: 0;
  /* No margin for the title page */
}

small {
  font-size: 11px;
}

hr {
  border: 0;
  background: #e5e5e5;
  height: 1px;
  margin: 0 0 20px;
}

footer {
  width: 270px;
  float: left;
  position: fixed;
  bottom: 50px;
  -webkit-font-smoothing: subpixel-antialiased;
}

/* Custom styles */

/* Fade-out effect */
.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

/* Back to Main Page Button */
.btn-main-page {
  display: inline-flex;
  align-items: center;
  color: #BFA86A;
  text-decoration: none;
  font-family: 'Garamond', serif;
  font-size: 1.2em;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-left: 20px;
}

.btn-main-page .icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.btn-main-page:hover {
  background-color: #E3D9B6;
  color: #1a1a1a;
}

/* Previous and Next Buttons */
.movie-nav-buttons {
  display: flex;
  gap: 10px;
  margin-right: 40px;
}

.btn-movie-nav {
  display: inline-flex;
  align-items: center;
  background-color: #1a1a1a;
  color: #BFA86A;
  text-decoration: none;
  font-family: 'Garamond', serif;
  font-size: 1.2em;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-movie-nav .nav-arrow {
  font-size: 1.5em;
  margin: 0 5px;
}

.btn-movie-nav:hover {
  background-color: #E3D9B6;
  color: #1a1a1a;
}


/* Navigation Button Styles */
.navigation-buttons {
  text-align: center;
  margin: 20px 0;
}


.movie-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
}


/* Text styles */
.text-custom {
  font-family: 'Times New Roman', sans-serif;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #333;
  margin-top: 20px;
  padding: 10px 20px;
}

/* Styles for the movie grid */
.movie-grid {
  display: grid;
  /* Enable grid layout */
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns with equal width */
  gap: 20px;
  /* Space between grid items */
  margin-top: 20px;
}

.movie-grid a {
  text-align: center;
  /* Centers the text and image within the link */
  display: block;
  /* Ensures the text is treated as a block below the image */
  text-decoration: none;
  color: inherit;
}

.movie-grid img {
  width: 300px;
  /* Set the same width for all images */
  height: 230px;
  /* Set the same height for all images */
  object-fit: cover;
  /* Ensures the image is cropped proportionally to fit the box */
  border-radius: 10px;
  /* Rounded corners for images */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Subtle shadow */
  transition: transform 0.2s ease-in-out;
  /* Smooth zoom on hover */
}

.movie-grid img:hover {
  transform: scale(1.05);
  /* Slight zoom effect */
}

.movie-grid p {
  text-align: center;
  margin-top: 10px;
  font-size: 1.5rem;
  font-family: 'Times New Roman', serif;
  color: #444;
}


/* Sticky Banner Styles */
.sticky-banner {
  position: fixed;
  display: flex;
  justify-content: space-between;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: #1a1a1a;
  padding: 20px 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
  color: white;
  z-index: 1000;
  font-family: 'Garamond', serif;
}

.sticky-banner .highlight {
  font-size: 1em;
  flex-grow: 1;
  color: #BFA86A;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
}

.sticky-banner h1 {
  font-size: 3.2em;
  margin: 20px 0;
  color: #E3D9B6;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
}

.sticky-banner h2 {
  font-size: 1.3em;
  margin: 10px 0;
  font-style: italic;
  color: #D4C593;
  text-align: center;
}

.sticky-banner .small {
  font-size: 1em;
  color: #999;
  margin-top: 20px;
  text-align: center;
}

.sticky-banner .small strong {
  color: #E3D9B6;
}

.content {
  padding-top: 50px;
}

/* Background glitter effect */
#starshine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shine {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  background-image: url("../img/star.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  overflow: hidden;
  z-index: -1;
  color: tansparent;
  -moz-opacity: 0;
  opacity: 0;
  animation: glitter 6s linear 0s infinite normal;
  -webkit-animation: glitter 6s linear 0s infinite normal;
  -moz-animation: glitter 8s linear 0s infinite normal;
  -ms-animation: glitter 8s linear 0s infinite normal;
  -o-animation: glitter 8s linear 0s infinite normal;
}

.shine.small {
  width: 10px;
  height: 10px;
}

.shine.medium {
  width: 20px;
  height: 20px;
}

.shine.large {
  width: 30px;
  height: 30px;
}

/*CSS3 keyframes for glittering effect*/
@keyframes glitter {
  0% {
    -webkit-transform: scale(0.3) rotate(0deg);
    opacity: 0;
  }

  25% {
    -webkit-transform: scale(1) rotate(360deg);
    opacity: 1;
  }

  50% {
    -webkit-transform: scale(0.3) rotate(720deg);
    opacity: 0;
  }

  100% {
    -webkit-transform: scale(0.3) rotate(0deg);
    opacity: 0;
  }
}

/* Credits */
.credits-container {
  position: relative;
  width: 100%;
  height: 600px;
  margin-top: 100px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
  background-color: #000;
  overflow: hidden;
  border: 5px solid #D4C593;
  border-radius: 20px;
  /* Centering horizontally */
  left: 50%;
  transform: translateX(-50%);
}

.credits {
  position: absolute;
  font-family: 'Garamond', serif;
  width: 100%;
  animation: rollCredits 15s linear infinite;
  text-align: center;
}

@keyframes rollCredits {
  0% {
    top: 100%;
  }

  100% {
    top: -150%;
  }
}

.credits-item {
  margin: 60px 0;
}

.credits-item .name {
  font-size: 2em;
  color: #fff;
}

.credits-item .role {
  font-size: 1.5em;
  color: #ccc;
}

.credits-item .general {
  font-size: 1.2em;
  color: #999;
}

.credits-item .title {
  font-size: 2.8em;
  color: #fff;
}

/* Plot container */
.plot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  width: 85%;
  height: 600px;
  margin-left: auto;
  margin-right: auto;
}

.plot-container-large {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  width: 85%;
  height: 750px;
  margin-left: auto;
  margin-right: auto;
}

@media print,
screen and (max-width: 960px) {

  div.wrapper {
    width: auto;
    margin: 0;
  }

  header,
  section,
  footer {
    float: none;
    position: static;
    width: auto;
  }

  header {
    padding-right: 320px;
  }

  section {
    border: 1px solid #e5e5e5;
    border-width: 1px 0;
    padding: 20px 0;
    margin: 0 0 20px;
  }

  header a small {
    display: inline;
  }

  header ul {
    position: absolute;
    right: 50px;
    top: 52px;
  }
}

@media print,
screen and (max-width: 720px) {
  body {
    word-wrap: break-word;
  }

  header {
    padding: 0;
  }

  header ul,
  header p.view {
    position: static;
  }

  pre,
  code {
    word-wrap: normal;
  }
}

@media print,
screen and (max-width: 480px) {
  body {
    padding: 15px;
  }

  header ul {
    width: 99%;
  }

  header li,
  header ul li+li+li {
    width: 33%;
  }
}

@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
    color: #444;
  }
}

/* Responsive grid: 2 columns on tablets, 1 column on smaller screens */
@media screen and (max-width: 768px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns */
  }
}

@media screen and (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
    /* 1 column */
  }
}