/* Basic reset, Google Fonts, and general styles */
body,
h1,
p,
form,
button {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: black;
  color: white;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
  line-height: 1.6;
  /* Improved line spacing for readability */
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  background-color: rgba(0, 0, 0, 0.9);
  /* semi-transparent black for overlay effect */
  z-index: 1000;
  /* Higher z-index to stay on top */
  transition: top 0.3s;
  padding: 10px 0;
  /* Padding for visual comfort */
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

/* Specific styles for navigation links */
nav a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  /* Adjust padding for better clickability and appearance */
}

/* General styles for all other anchor tags not in navigation */
a:not(nav a) {
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  /* Slightly larger for readability */
}

a:not(nav a):hover {
  text-decoration: underline;
}

.main-content {
  padding-top: 60px;
  /* Ensure content starts below fixed header */
}

main {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
}

i.fab {
  font-size: 1.5em;
  /* Makes the icon larger */
  /* color: #C13584; */
  /* Instagram-brand color, you can choose another if you prefer */
}

i.fab:hover {
  color: #E1306C;
  /* A lighter Instagram-brand color for hover effect */
}

.credits-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 40px 20px;
  /* Increased padding for better spacing around text */
  text-align: center;
  /* Align text to the left for a more traditional reading experience */
}

.video-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

video {
  width: 100%;
  height: auto;
}

.parallax {
  /* Ensure correct path to the still image */
  height: 100vh;
  /* Maintain set height for visual impact */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no repeat;
  background-size: cover;
}

.poster {
  height: 100vh;
  background-size: cover; /* Cover the entire element */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* Do not repeat the image */
  padding: 40px;
}

footer {
  padding: 15px 0;
  background-color: #222;
  color: #ccc;
  text-align: center;
  position: relative;
  width: 100%;
  bottom: 0;
}

.synopsis {
  font-weight: 100;
  font-size: 18px;
  padding: 50px;
  height: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Ensures space distribution between header, main content, and translator */
  text-align: left;
  color: white;
  background-color: #000;
  /* Optional: for better visibility */
}

.synopsis h4 {
  margin-bottom: 20px;
  /* Gives space below the heading */
}

.synopsis p {
  flex-grow: 1;
  /* Allows the paragraph to take available space, pushing the translator to the bottom */
  margin-bottom: 10px;
  /* Spacing between paragraphs */
}

.screening-details {
  font-size: 16px;
  color: #ccc;
  padding: 50px;
  /* Lighter color for distinction */
  margin-bottom: 20px;
}

.translator {
  font-style: italic;
  font-size: 14px;
  color: #ccc;
  /* Lighter color for distinction */
  align-self: flex-end;
  /* Aligns the translation credit to the bottom */
}

.author {
  font-weight: 400;
  font-size: 16px;
  color: #ccc;
  /* Lighter color for distinction */
  align-self: flex-start;
  margin-bottom: 30px;
}

.container {
  min-height: 100vh;
}

/* Responsive Typography and Containers */
@media (max-width: 768px) {

  h1,
  h2,
  h4 {
    font-size: 1.5em;
    /* Adjusting heading sizes for smaller screens */
  }

  .synopsis,
  .credits-container,
  .parallax {
    padding: 10px;
    /* Reducing padding for smaller screens */
  }

  .synopsis {
    font-size: 16px;
    /* Adjusting font size for smaller screens */
  }

  .translator {
    font-size: 12px;
    /* Adjust translator credit size */
  }

  nav a {
    padding: 10px 10px;
    /* Reducing padding for nav links */
  }
}

@media (max-width: 480px) {

  body,
  p {
    font-size: 14px;
    /* Smaller font size for very small screens */
  }

  nav {
    flex-direction: column;
    /* Stack nav items vertically on very small screens */
    align-items: center;
  }

  nav a {
    padding: 8px;
    text-align: center;
    /* Ensure nav links are centered */
    width: 100%;
    /* Full width nav links for easier tapping */
  }
}
